joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c14
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404e44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404e44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404e60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404d20
xor eax, eax
push ebp
push 0x404d19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404a50
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404cfe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404e80
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404cfe
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404d20
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404e3a
cmp byte [ebp - 0xd], 0
jne 0x404d67
cmp byte [ebp - 0x12], 0
je 0x404e3a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d80
dec ebx
cmp byte [ebx], 0x2e
je 0x404d8f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d7f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404e3a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404dcc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404e3a
cmp byte [ebp - 0xd], 0
je 0x404e3a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404e3a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404d20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404e44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404e44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c97
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404e60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404d20
xor eax, eax
push ebp
push 0x404d19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404a50
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404cfe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404e80
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404cfe
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404d20
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404e3a
cmp byte [ebp - 0xd], 0
jne 0x404d67
cmp byte [ebp - 0x12], 0
je 0x404e3a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d80
dec ebx
cmp byte [ebx], 0x2e
je 0x404d8f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d7f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404e3a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404dcc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404e3a
cmp byte [ebp - 0xd], 0
je 0x404e3a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404e3a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d6c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406da5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042c8
jmp 0x406dae
mov eax, ebx
mov edx, esi
call fcn.0040422c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406db8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406dda
movzx eax, byte [esp]
jmp 0x406ddc
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40746c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4072e4
mov eax, dword [0x412c14]
cmp byte [eax], 0
je 0x4074e8
mov eax, dword [0x412b44]
call fcn.004030a8
call fcn.00402db4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040622c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x407530
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40751e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x412b18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4157f0]
call fcn.004049f8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b618
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
mov dword [esi], eax
xor ebx, ebx
mov dword [edi + 0x990], 0x103
push esi
lea eax, [edi + 0x990]
push eax
lea eax, [edi + 0x580]
push eax
lea eax, [edi + 0x14]
push eax
call sub.ws2_32.dll_WSCGetProviderPath
inc eax
je 0x40b73d
push 0x103
lea eax, [edi + 0x788]
push eax
lea eax, [edi + 0x580]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x40b699
cmp eax, 0x103
jg 0x40b699
lea eax, [edi + 0x788]
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [edi + 0xb9c], eax
cmp dword [edi + 0xb9c], 0
jne 0x40b714
mov bl, 1
jmp 0x40b714
test eax, eax
jne 0x40b714
push 0
push 0
push 0x104
lea eax, [ebp - 0x104]
push eax
mov eax, dword [edi + 0x990]
push eax
lea eax, [edi + 0x580]
push eax
push 0
push 0
call sub.kernel32.dll_WideCharToMultiByte_1
test eax, eax
jne 0x40b6ca
mov bl, 1
test bl, bl
jne 0x40b714
push 0x103
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x40b6f1
cmp eax, 0x103
jle 0x40b6f3
mov bl, 1
test bl, bl
jne 0x40b714
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_LoadLibraryA_1
mov dword [edi + 0xb9c], eax
cmp dword [edi + 0xb9c], 0
jne 0x40b714
mov bl, 1
test bl, bl
jne 0x40b73d
push 0x40b754
mov eax, dword [edi + 0xb9c]
push eax
call sub.kernel32.dll_GetProcAddress_3
mov dword [edi + 0x994], eax
cmp dword [edi + 0x994], 0
je 0x40b73d
or eax, 0xffffffff
jmp 0x40b74b
cmp dword [esi], 0
jne 0x40b749
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bc04
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x40bcdc
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
sete bl
test bl, bl
je 0x40bcd1
push 0x40bd10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40bd1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete bl
test bl, bl
je 0x40bcc8
cmp dword [ebp - 0xc], 3
jne 0x40bcc8
cmp dword [esi], 0
je 0x40bc8d
mov eax, dword [esi]
push eax
call fcn.00404ffc
pop ecx
mov eax, dword [ebp - 0x10]
call fcn.00402c74
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40bd1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete bl
test bl, bl
jne 0x40bcc8
mov eax, dword [esi]
push eax
call fcn.00404ffc
pop ecx
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bd2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x40bdc4
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x40bdba
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40bdf8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40bdb1
cmp dword [ebp - 0xc], 4
jne 0x40bdb1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40bdf8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40bdb1
cmp dword [ebp - 0x14], 1
sete al
neg al
sbb ebx, ebx
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40be08
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x40bee8
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x40bee1
mov dword [ebp - 0x14], 0x64
lea eax, [ebp - 0x7c]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.0040310c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x40bf20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40bed8
cmp dword [ebp - 0x10], 1
jne 0x40bed8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x40bed8
mov dword [ebp - 0x14], 4
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push 0x40bf3c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x40becf
or ebx, 0xffffffff
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41090c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc20
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x410b0f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040be08
test eax, eax
jne 0x410941
xor ebx, ebx
jmp 0x410aee
xor ebx, ebx
push 0x20a
lea eax, [ebp - 0x3da]
push eax
mov eax, dword [0x4157f0]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x1a8]
push eax
mov dl, 2
mov al, 2
call fcn.00408b70
push eax
call sub.ws2_32.dll_WSAStartup
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410981
or ebx, 0xffffffff
jmp 0x410aee
lea eax, [ebp - 8]
call fcn.0040b980
test bl, bl
jne 0x410ae2
call fcn.00410bc0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x410ae2
lea edx, [ebp - 0x10]
mov al, 1
call fcn.0040b840
mov ebx, eax
test ebx, ebx
je 0x410ad9
lea eax, [ebp - 0x1d0]
mov edx, 0x28
call fcn.00408c98
xor eax, eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x410a62
inc esi
xor edi, edi
imul eax, edi, 0x9d
cmp dword [ebx + eax*4 + 0x28], 0
je 0x410a5a
lea eax, [ebp - 0x3e0]
imul edx, edi, 0x9d
lea edx, [ebx + edx*4 + 0x74]
mov ecx, pe_nt_image_headers32
call fcn.00404438
mov eax, dword [ebp - 0x3e0]
lea edx, [ebp - 4]
call fcn.0040ad78
mov eax, dword [ebp - 4]
mov edx, 0x410b28
call fcn.00404554
je 0x410a3d
mov eax, dword [ebp - 4]
mov edx, 0x410b48
call fcn.00404554
je 0x410a3d
mov eax, dword [ebp - 4]
mov edx, 0x410b68
call fcn.00404554
jne 0x410a5a
cmp dword [ebp - 0x14], 9
jae 0x410a5a
imul eax, edi, 0x9d
mov eax, dword [ebx + eax*4 + 0x24]
mov edx, dword [ebp - 0x14]
mov dword [ebp + edx*4 - 0x1d0], eax
inc dword [ebp - 0x14]
inc edi
dec esi
jne 0x4109db
cmp dword [ebp - 0x14], 0
jbe 0x410ace
push 0x410b80
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.004100b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x410ace
push 1
lea edx, [ebp - 0x3da]
mov eax, dword [0x412bb8]
mov ecx, dword [ebp - 0x18]
call fcn.0041012c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410ac6
lea edx, [ebp - 0x1d0]
lea eax, [ebp - 0x3da]
mov ecx, dword [ebp - 0x14]
call fcn.0041014c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x410ac6
call fcn.004108f4
mov eax, dword [ebp - 0x18]
call fcn.0040b96c
test ebx, ebx
je 0x410ad9
mov eax, ebx
call fcn.0040b93c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeLibrary_2
call fcn.0040b9b4
call sub.ws2_32.dll_WSACleanup
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410b16
lea eax, [ebp - 0x3e0]
call fcn.004041d8
lea eax, [ebp - 4]
call fcn.004041d8
ret
Function at 0x410bc0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push ebx
push esi
push edi
xor esi, esi
xor ebx, ebx
push 0x105
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
jne 0x410c2c
push 0x410c8c
push 0x105
lea eax, [ebp - 0x414]
push eax
call fcn.00408f54
mov edi, eax
mov eax, edi
call fcn.00408d74
test eax, eax
je 0x410c0a
mov bl, 1
test bl, bl
jne 0x410c2c
push 0x105
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
jne 0x410c2c
mov bl, 1
test bl, bl
jne 0x410c79
push 0x410cbc
push 0x105
lea eax, [ebp - 0x20a]
push eax
call fcn.004092da
mov edi, eax
mov eax, edi
call fcn.00408d74
test eax, eax
jne 0x410c79
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_LoadLibraryW
mov esi, eax
test esi, esi
je 0x410c79
push 0x410cd4
push esi
call sub.kernel32.dll_GetProcAddress_3
mov dword [0x412ab4], eax
mov eax, esi
jmp 0x410c85
test esi, esi
je 0x410c83
push esi
call sub.kernel32.dll_FreeLibrary_2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x731370
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 0x73138e
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 0x75a074
push ecx
mov edi, eax
call fcn.00745198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7313cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0074502e
push esi
call fcn.00744fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x734850
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 0x7348ae
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 0x75f720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7348ba
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.007451e1
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 0x7348ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x75f720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x73492a
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.00746082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x734957
mov word [eax], si
add eax, 2
push eax
call fcn.00746030
add esp, 4
jmp 0x734959
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 0x7348ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7348b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x734ff0
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
Function at 0x735080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7350c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x75a458
push ecx
call fcn.007451e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007451e1
add esp, 0x10
jmp 0x7350d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0074520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00744dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00735050
mov eax, dword [0x75f728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x73513b
push esi
call fcn.00734fb0
add esp, 4
mov dword [0x75f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x73514c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00734ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x738440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7384b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x73848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x738471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x73847e
add edx, ecx
cmp ebx, edx
jb 0x73848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x738467
xor ecx, ecx
jmp 0x7384a2
test eax, eax
jne 0x738492
xor ecx, ecx
jmp 0x7384a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.007383c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7388f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x738921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x738946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x73896e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x738993
push ecx
push esi
call fcn.007384c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret