joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59f274
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x59f344
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x59f35c
call fcn.00405048
xor ebx, ebx
lea eax, [ebp - 4]
xor edx, edx
mov dl, bl
add edx, 0x41
call fcn.004051dc
lea eax, [ebp - 4]
mov edx, 0x59f36c
call fcn.004052d8
mov eax, dword [ebp - 4]
call fcn.004054d0
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x59f2dc
cmp eax, dword [esp]
pop edx
pop eax
jne 0x59f316
lea eax, [ebp - 8]
xor edx, edx
mov dl, bl
add edx, 0x41
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.004036f0
mov edx, 0x59f370
lea eax, [ebp - 0xc]
mov cl, 2
call fcn.004036c0
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00405258
jmp 0x59f317
inc ebx
cmp bl, 0x19
ja 0x59f32e
mov eax, dword [esi]
mov edx, 0x59f35c
call fcn.0040541c
je 0x59f2a2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f34b
lea eax, [ebp - 4]
call fcn.00404ff4
ret

Function at 0x59f374
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00404ff4
push 1
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
je 0x59f478
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x59f478
xor eax, eax
push ebp
push 0x59f471
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x59f45e
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x59f457
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalSize
mov edx, 0x7fffffff
call fcn.00442a98
mov esi, eax
mov eax, esi
call fcn.00402c7c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x59f439
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, esi
call fcn.00402f2c
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040b17c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f440
mov eax, dword [ebp - 4]
call fcn.00402cac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f478
call sub.user32.dll_CloseClipboard
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x59f584
Capabilities:
Get session user name

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x59f5b1
mov edx, ebx
lea eax, [esp + 4]
call fcn.0040b17c
jmp 0x59f5c2
mov esi, dword [0x5b2a3c]
mov esi, dword [esi]
mov edx, ebx
mov eax, 0xe4
call esi
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x59f5cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x59f707
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404ff4
mov eax, dword [0x5b2ce4]
cmp dword [eax], 0
je 0x59f650
lea eax, [ebp - 0x105]
push eax
push 0
push 0
push esi
push 0
mov eax, dword [0x5b2ce4]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x59f6e9
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b17c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040ef24
jmp 0x59f6e9
sub esi, 5
je 0x59f665
sub esi, 0x1f
je 0x59f673
dec esi
je 0x59f6a8
dec esi
je 0x59f6dd
jmp 0x59f6e9
mov eax, ebx
mov edx, 0x59f71c
call fcn.00405048
jmp 0x59f6e9
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
test eax, eax
jbe 0x59f6e9
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.0040b17c
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040ef24
jmp 0x59f6e9
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
test eax, eax
jbe 0x59f6e9
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x105]
call fcn.0040b17c
mov eax, dword [ebp - 0x114]
mov edx, ebx
call fcn.0040ef24
jmp 0x59f6e9
mov eax, ebx
mov edx, 0x59f738
call fcn.00405048
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f70e
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00405018
ret

Function at 0x59f760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59f7d7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jbe 0x59f7b7
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040b17c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040ef10
jmp 0x59f7be
mov eax, ebx
call fcn.00404ff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f7de
lea eax, [ebp - 0x10c]
call fcn.00404ff4
ret

Function at 0x59f7e4
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff4
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x59f818
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x59f811
mov eax, dword [esp]
jmp 0x59f813
xor eax, eax
add esp, 0xc
ret
Function at 0x7fba10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x684015
lea edi, [esi - 0x283015]
push edi
jmp 0x7fba2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7fba31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7fba20
mov eax, 1
add ebx, ebx
jne 0x7fba43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7fba54
jne 0x7fba73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7fba73
dec eax
add ebx, ebx
jne 0x7fba60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7fba38
add ebx, ebx
jne 0x7fba6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7fbac5
xor ecx, ecx
sub eax, 3
jb 0x7fba8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7fbafa
sar eax, 1
mov ebp, eax
jmp 0x7fba96
add ebx, ebx
jne 0x7fba96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7fba64
inc ecx
add ebx, ebx
jne 0x7fbaa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7fba64
add ebx, ebx
jne 0x7fbab1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7fbaa6
jne 0x7fbac2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7fbaa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7fbae4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7fbad6
jmp 0x7fba26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7fbae4
add edi, ecx
jmp 0x7fba26
pop esi
mov edi, esi
mov ecx, 0xb2d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7fbb02
cmp byte [edi], 0x23
jne 0x7fbb02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7fbb07
lea edi, [esi + 0x3f9000]
mov eax, dword [edi]
or eax, eax
je 0x7fbb76
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3fb000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3fb050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7fbb34
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3fb058]
or eax, eax
je 0x7fbb70
mov dword [ebx], eax
add ebx, 4
jmp 0x7fbb51
call dword [esi + 0x3fb054]
mov ebp, dword [esi + 0x3fb05c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7fbbaa
sub esp, 0xffffff80
jmp 0x44c250
Function at 0x401030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x405c5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x409034
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004056fc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4010c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x405c8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x40903c
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004056fc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x404cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40660f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x409b4c
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004056fc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x405580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40665f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x409ce0
push ecx
push 8
push 1
push 5
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004056fc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x405660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40668f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x409cec
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004056fc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x100054f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
lea esi, [edi + 8]
mov word [edi], cx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [edi + 0x10]
push eax
push esi
call sym.IPHLPAPI.DLL_ConvertInterfaceLuidToIndex
mov ebx, dword [ebp + 0xc]
lea edx, [edi + 0x50]
mov dword [edi + 0x14], 0
mov esi, 0x10
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0xc8
mov dword [edi + 0x24], 0x258
movzx eax, byte [ebx]
mov byte [edi + 0x28], al
movzx eax, byte [ebx + 1]
mov byte [edi + 0x29], al
movzx eax, byte [ebx + 3]
mov byte [edi + 0x2a], al
movzx eax, byte [ebx + 4]
mov byte [edi + 0x2b], al
movzx eax, byte [ebx + 6]
mov byte [edi + 0x2c], al
movzx eax, byte [ebx + 5]
mov byte [edi + 0x2d], al
movzx eax, byte [ebx + 0xa]
mov byte [edi + 0x2e], al
movzx eax, byte [ebx + 0xb]
mov byte [edi + 0x2f], al
movzx eax, byte [ebx + 0xc]
mov byte [edi + 0x30], al
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x34], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x34]
mov dword [edi + 0x4c], eax
lea eax, [ebx + 0x38]
mov ecx, dword [eax]
lea eax, [eax + 4]
mov dword [edx], ecx
lea edx, [edx + 4]
sub esi, 1
jne 0x100055b0
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x90], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x94], eax
mov eax, dword [ebx + 0x78]
mov dword [edi + 0x98], eax
movzx eax, byte [ebx + 0x98]
mov byte [edi + 0xa6], al
cmp dword [edx + 0x10], esi
seta al
mov byte [edi + 0x9c], al
movzx eax, byte [edx + 8]
mov byte [edi + 0x9d], al
movzx eax, byte [ecx]
mov byte [edi + 0x9e], al
movzx eax, byte [ecx + 1]
mov byte [edi + 0x9f], al
mov eax, dword [edx + 0xc]
mov dword [edi + 0xa0], eax
movzx eax, byte [edx + 0x20]
mov byte [edi + 0xa4], al
movzx eax, byte [edx + 0x21]
mov byte [edi + 0xa5], al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x10006f50
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10029170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebx], 0
mov edi, dword [edx + 0xc]
cmp ecx, 0x100018b0
je 0x100070a4
cmp ecx, 0x10001898
jne 0x1000708f
lea eax, [ebp - 0x204]
mov esi, 0x10001a20
mov ecx, eax
mov edx, 0x200
sub esi, ecx
lea ecx, [edx + 0x7ffffdfe]
test ecx, ecx
je 0x10006fbe
mov cl, byte [esi + eax]
test cl, cl
je 0x10006fbe
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x10006fa0
jmp 0x10013c57
test edx, edx
je 0x10013c57
mov byte [eax], 0
mov ecx, 0x200
lea eax, [ebp - 0x204]
cmp byte [eax], 0
je 0x10006fe1
inc eax
sub ecx, 1
jne 0x10006fd4
jmp 0x10007034
test ecx, ecx
je 0x10007034
mov esi, 0x200
lea eax, [ebp - 0x204]
mov edx, esi
sub edx, ecx
lea eax, [eax + edx]
sub esi, edx
je 0x10013c5d
lea ecx, [edx + 0x7ffffdfe]
add ecx, esi
sub edi, eax
lea esp, [esp]
test ecx, ecx
je 0x10007029
mov dl, byte [edi + eax]
test dl, dl
je 0x10007029
mov byte [eax], dl
dec ecx
inc eax
sub esi, 1
jne 0x10007010
jmp 0x10013c5d
test esi, esi
je 0x10013c5d
mov byte [eax], 0
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000708f
mov esi, dword [ebp - 0x210]
test esi, esi
je 0x1000708f
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0x10001a70
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x10013c63
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012ae0
mov esp, ebp
pop ebp
ret 4
mov esi, 0x200
lea ecx, [ebp - 0x204]
push 0x100019d0
mov edx, esi
call fcn.100058d0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x204]
call fcn.1000a320
test eax, eax
js 0x10007034
sub esi, dword [ebp - 0x20c]
push ecx
push edi
push ecx
lea ecx, [ebp - 0x204]
mov edx, esi
add ecx, dword [ebp - 0x20c]
call fcn.10005910
jmp 0x10007034
dec eax
jmp 0x10006fc6
dec eax
jmp 0x10007031
cmp dword [ebp - 0x214], 1
jne 0x10007088
mov ecx, dword [ebp - 0x208]
cmp ecx, 2
jb 0x10007088
add ecx, 2
mov dword [ebp - 0x208], ecx
call fcn.1000563a
mov dword [ebx], eax
test eax, eax
je 0x10007088
push eax
push dword [ebp - 0x208]
mov edx, 0x10001a70
mov ecx, esi
call fcn.1000c4e7
test al, al
jne 0x10013cc0
mov ecx, dword [ebx]
call fcn.1000bd1b
mov dword [ebx], 0
jmp 0x10007088
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebx]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013ccc
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
jmp 0x10007091
Function at 0x1000b5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor edx, edx
xor ecx, ecx
inc ecx
pop ebp
jmp fcn.1000a370

Function at 0x1000c4e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
sub dword [ebp + 8], 2
lea eax, [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
push esi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edx
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1000c541
cmp dword [ebp - 4], 1
jne 0x1000c541
mov eax, dword [ebp + 8]
cmp eax, 2
jb 0x1000c541
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2], cx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x1000c527
sub esi, ecx
sar esi, 1
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
jmp 0x1000c539
Function at 0x1001f770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x10029170]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
push 8
pop ecx
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x78
xor edi, edi
lea eax, [esp + 0x3c]
push edi
push eax
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
test esi, esi
jne 0x1001f7c7
push 0x57
pop eax
jmp 0x1001f898
mov eax, dword [ebp + 8]
mov ebx, 0x100018b0
push edi
push edi
push 0x78
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x44]
push eax
push edi
push edi
push 0x20
lea eax, [esp + 0x34]
push eax
push edi
push ebx
push 1
call dword [sym.imp.NSI.dll_NsiGetAllParameters]
test eax, eax
jne 0x1001f898
push 0x38
push edi
push esi
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
mov eax, dword [esp + 0x48]
add esp, 0xc
mov dword [esi], eax
lea eax, [esi + 4]
push eax
movzx eax, byte [esp + 0x44]
push eax
call sym.IPHLPAPI.DLL_ConvertLengthToIpv4Mask
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0xa0]
push ecx
push eax
mov dword [esi + 0x10], eax
call sym.IPHLPAPI.DLL_ConvertInterfaceIndexToLuid
test eax, eax
jne 0x1001f898
push 0x1c
push 4
lea eax, [esp + 0x14]
push eax
push edi
push 8
lea eax, [esp + 0x24]
push eax
push 7
push ebx
push 1
call dword [sym.imp.NSI.dll_NsiGetParameter]
test eax, eax
jne 0x1001f898
cmp dword [esi + 0xc], edi
setne al
add eax, 3
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x88]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0xc]
mov dword [esi + 0x24], eax
or eax, 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
xor eax, eax
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012ae0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x872370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x87238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x89b074
push ecx
mov edi, eax
call fcn.00886198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8723cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0088602e
push esi
call fcn.00885fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x875850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8758ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x8a0720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8758ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008861e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8758ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x8a0720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x87592a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00887082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x875957
mov word [eax], si
add eax, 2
push eax
call fcn.00887030
add esp, 4
jmp 0x875959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8758ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8758b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x875ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret