joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4613c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov edi, dword [esp + 0x78]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
call fcn.004947b0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x78], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x64], edx
add esp, 0x4c
mov edx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00460860

Function at 0x4614b0
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov ecx, 0x10624dd3
push esi
push ebx
mov esi, 1
mov ebx, 1
sub esp, 0x4c
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
imul edx, dword [esp + 0x68], 0x3e8
mov eax, edx
mul ecx
shr edx, 6
mov dword [esp + 0x3c], edx
jmp 0x46150b
mov eax, ebx
not eax
cmp eax, esi
jb 0x4615a6
mov eax, dword [esp + 0x98]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00494850
lea eax, [esi + ebx]
mov esi, ebx
mov ebx, eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
call fcn.004947b0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
call fcn.00460860
call edi
sub eax, ebp
cmp dword [esp + 0x3c], eax
ja 0x4614e1
mov eax, dword [esp + 0x6c]
mov dword [eax], ebx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x48f0d0
Capabilities:
Encode data using base64

Disassembly:
push esi
push ebx
xor edx, edx
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
movsx eax, byte [ecx + edx]
lea ebx, [eax - 0x41]
cmp bl, 0x19
ja 0x48f190
sub eax, 0x41
mov dword [esp + edx*4], eax
add edx, 1
cmp edx, 4
jne 0x48f0db
mov edx, dword [esp]
cmp edx, 0xffffffff
je 0x48f180
mov ecx, dword [esp + 4]
cmp ecx, 0xffffffff
je 0x48f180
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
cmp ebx, 0xffffffff
je 0x48f1d0
xor eax, eax
cmp esi, 0xffffffff
setne al
shl ecx, 0xc
shl edx, 0x12
or edx, ecx
and esi, 0x3f
shl ebx, 6
or edx, esi
and ebx, 0xfc0
mov esi, dword [esp + 0x20]
or edx, ebx
add eax, 2
mov ecx, edx
shr ecx, 0x10
cmp eax, 3
mov byte [esi + 1], dh
mov byte [esi], cl
jne 0x48f200
mov esi, dword [esp + 0x20]
mov byte [esi + 2], dl
add esp, 0x10
pop ebx
pop esi
ret
lea ebx, [eax - 0x30]
cmp bl, 9
jbe 0x48f1a0
cmp al, 0x2b
je 0x48f1c0
cmp al, 0x2f
je 0x48f1f1
cmp al, 0x3d
je 0x48f1b0
lea esi, [esi]
lea edi, [edi]
xor eax, eax
add esp, 0x10
pop ebx
pop esi
ret
lea ebx, [eax - 0x61]
cmp bl, 0x19
ja 0x48f162
sub eax, 0x47
jmp 0x48f0ee
add eax, 4
jmp 0x48f0ee
mov eax, 0xffffffff
jmp 0x48f0ee
mov eax, 0x3e
jmp 0x48f0ee
cmp esi, 0xffffffff
jne 0x48f180
mov eax, dword [esp + 0x20]
shl edx, 0x12
shl ecx, 0xc
or edx, ecx
shr edx, 0x10
mov byte [eax], dl
add esp, 0x10
mov eax, 1
pop ebx
pop esi
ret
mov eax, 0x3f
jmp 0x48f0ee
mov eax, 2
jmp 0x48f182
Function at 0x4995e0
Capabilities:
Get session user name

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4c2acc], 0
mov eax, dword [0x4c2ac8]
je 0x499680
test eax, eax
je 0x499770
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp], 8
mov dword [esp + 8], esi
call eax
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00493390
mov dword [esp + 8], esi
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], 8
call dword [0x4c2ac8]
sub esp, 0xc
test al, al
je 0x4996d0
mov dword [esp + 4], 0x40
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
je 0x499675
mov byte [eax], 0
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], str.secur32.dll
call fcn.004998e0
mov dword [esp], str.sspicli.dll
mov ebx, eax
call fcn.004998e0
test ebx, ebx
je 0x499750
mov dword [esp + 4], str.GetUserNameExA
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x4c2acc], 1
sub esp, 8
mov dword [0x4c2ac8], eax
jmp 0x4995f8
mov dword [esp], ebx
call fcn.00493420
mov dword [esp + 0x1c], 0
mov dword [esp + 4], esi
mov dword [esp], 0
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call edi
sub esp, 8
test eax, eax
je 0x499740
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00493390
mov dword [esp + 4], esi
mov ebx, eax
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
jne 0x499675
mov dword [esp], ebx
xor ebx, ebx
call fcn.00493420
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0x1c], 0x100
mov eax, 0x100
jmp 0x4996fe
mov dword [0x4c2ac8], 0
mov byte [0x4c2acc], 1
lea esi, [esp + 0x1c]
jmp 0x4996d8
lea esi, [esp + 0x1c]
jmp 0x4996d8

Function at 0x499d30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 4
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
sub esp, 0x18
test eax, eax
jne 0x499d80
cmp dword [esp + 0x2c], 4
je 0x499d90
mov eax, edx
add esp, 0x3c
ret
cmp dword [esp + 0x28], 4
sete dl
add esp, 0x3c
mov eax, edx
ret
Function at 0x499df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
xor esi, esi
sub esp, 0x4c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x64]
lea ebp, [esp + 0x3c]
lea edi, [esp + 0x38]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
jne 0x499ea6
cmp dword [esp + 0x38], 1
jne 0x499ea6
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
lea ecx, [eax + 1]
mov dword [esp], ecx
mov dword [esp + 0x2c], ecx
call fcn.00493390
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
jne 0x499ed2
cmp dword [esp + 0x38], 1
mov ecx, dword [esp + 0x2c]
jne 0x499ed2
mov eax, dword [esp + 0x3c]
cmp eax, ecx
jae 0x499eb0
mov byte [esi + eax], 0
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x6c
mov dword [esp + 4], str._MoTTY_windows_utils_registry.c
mov dword [esp], str.size___allocsize
call fcn.0049d570
mov eax, dword [esp + 0x3c]
jmp 0x499ea2
mov dword [esp], esi
xor esi, esi
call fcn.00493420
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x49a100
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push ebx
sub esp, 0x14
movzx ebx, byte [0x4c2ae0]
test bl, bl
je 0x49a120
movzx ebx, byte [0x4c2ad8]
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
mov dword [esp], str.advapi32.dll
mov byte [0x4c2ae0], 1
call fcn.004998e0
test eax, eax
mov dword [0x4c2adc], eax
je 0x49a24c
mov dword [esp + 4], str.GetSecurityInfo
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
sub esp, 8
test eax, eax
mov dword [0x4c2fa8], eax
je 0x49a24c
mov eax, dword [0x4c2adc]
test eax, eax
je 0x49a260
mov dword [esp + 4], str.SetSecurityInfo
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x4c2fac], eax
je 0x49a24c
mov eax, dword [0x4c2adc]
test eax, eax
je 0x49a280
mov dword [esp + 4], str.OpenProcessToken
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x4c2f98], eax
je 0x49a24c
mov eax, dword [0x4c2adc]
test eax, eax
je 0x49a270
mov dword [esp + 4], str.GetTokenInformation
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x4c2fa4], eax
je 0x49a24c
mov eax, dword [0x4c2adc]
test eax, eax
je 0x49a290
mov dword [esp + 4], str.InitializeSecurityDescriptor
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x4c2fa0], eax
je 0x49a24c
mov eax, dword [0x4c2adc]
test eax, eax
je 0x49a2a0
mov dword [esp + 4], str.SetSecurityDescriptorOwner
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x4c2f9c], eax
je 0x49a24c
mov eax, dword [0x4c2adc]
test eax, eax
je 0x49a2b0
mov dword [esp + 4], str.SetEntriesInAclA
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
mov dword [0x4c2f94], eax
setne bl
mov byte [0x4c2ad8], bl
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
mov dword [0x4c2fac], 0
jmp 0x49a24c
mov dword [0x4c2fa4], 0
jmp 0x49a24c
mov dword [0x4c2f98], 0
jmp 0x49a24c
mov dword [0x4c2fa0], 0
jmp 0x49a24c
mov dword [0x4c2f9c], 0
jmp 0x49a24c
mov dword [0x4c2f94], 0
jmp 0x49a24c

Function at 0x49c310
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x4c2b44]
test eax, eax
je 0x49c320
repz ret
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x49c366
mov dword [esp + 0xc], eax
mov eax, dword [0x4c2b44]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4c2b40
mov dword [esp], eax
call fcn.00493440
mov dword [0x4c2b44], eax
mov edx, dword [0x4c2b40]
mov dword [esp], eax
mov dword [esp + 4], edx
call ebx
sub esp, 8
cmp dword [0x4c2b40], eax
jbe 0x49c330
mov eax, dword [0x4c2b44]
add esp, 0x28
pop ebx
ret
Function at 0x49c850
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4c2eac]
test esi, esi
jle 0x49c960
mov edi, dword [0x4c2eb0]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x49c884
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x49c905
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x49c870
mov dword [esp], eax
mov ebx, eax
call fcn.0049d090
test eax, eax
mov edi, eax
je 0x49c987
mov eax, dword [0x4c2eb0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0049d190
add eax, dword [edi + 0xc]
mov edx, dword [0x4c2eb0]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x49c967
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x49c8fe
sub eax, 4
and eax, 0xfffffffb
jne 0x49c910
add dword [0x4c2eac], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4c2eb0]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x49c8fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0049e388
lea esi, [esi]
xor esi, esi
jmp 0x49c88e
mov eax, dword [0x4c2eb0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0049e388
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0049e388
mov esi, esi
lea edi, [edi]

Function at 0x49cd10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4c2ed0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4c2ec8]
sub esp, 4
test ebx, ebx
je 0x49cd65
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x49cd5e
test esi, esi
je 0x49cd5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x49cd40
mov dword [esp], 0x4c2ed0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x49e388
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0049e200
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0049e200
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
pop ebp
jmp fcn.004014e0
Function at 0xd3e370
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 0xd3e38e
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 0xd67074
push ecx
mov edi, eax
call fcn.00d52198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd3e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d5202e
push esi
call fcn.00d51fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd41850
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 0xd418ae
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 0xd6c720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd418ba
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.00d521e1
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 0xd418ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd6c720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd4192a
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.00d53082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd41957
mov word [eax], si
add eax, 2
push eax
call fcn.00d53030
add esp, 4
jmp 0xd41959
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 0xd418ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd418b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd420c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd67458
push ecx
call fcn.00d521e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d521e1
add esp, 0x10
jmp 0xd420d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d5220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d51dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d42050
mov eax, dword [0xd6c728]
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 0xd4213b
push esi
call fcn.00d41fb0
add esp, 4
mov dword [0xd6c728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd4214c
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.00d41ff0
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 0xd45440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd454b7
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 0xd4548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd45471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd4547e
add edx, ecx
cmp ebx, edx
jb 0xd4548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd45467
xor ecx, ecx
jmp 0xd454a2
test eax, eax
jne 0xd45492
xor ecx, ecx
jmp 0xd454a2
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.00d453c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd458f0
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 0xd45921
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 0xd45946
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 0xd4596e
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 0xd45993
push ecx
push esi
call fcn.00d454c0
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
Function at 0xd46c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xd46c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd46c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd46c38
add edx, eax
cmp ebx, edx
jb 0xd46c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd46c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd46c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xd46c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
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 0xd46cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd46c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd46ca8
add edx, ecx
cmp ebx, edx
jb 0xd46cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd46c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd46f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00d53145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd46ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xd46fdd
lea eax, [esp + 0x18]
push eax
jmp 0xd46fe2
push 0xd6c720
call fcn.00d52fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd46fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd46f40
push 4
push ecx
push eax
call fcn.00d5343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd47310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00d53145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd473ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xd4738d
lea eax, [esp + 0x18]
push eax
jmp 0xd47392
push 0xd6c720
call fcn.00d52fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd47360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd46f40
push 4
push ecx
push eax
call fcn.00d5343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret