joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4296f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x489a02
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x40], ebx
call fcn.00427f10
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
add esp, 8
lea edx, [esp + 0x14]
push edx
push 0x20119
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42978e
mov esi, dword [esp + 0x40]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
cmp edi, ebx
je 0x429778
push edi
call fcn.00470041
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00427f10
push 0x800
mov edi, 0x400
push ebx
mov dword [esp + 0x3c], edi
call fcn.0046fe26
mov esi, eax
add esp, 0x10
mov dword [esp + 0x28], esi
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
push edx
mov byte [esp + 0x50], 1
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x429801
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x40]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
jmp 0x429828
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x42981a
cmp eax, 7
jne 0x4297ee
mov edi, dword [esp + 0x40]
push esi
push edi
call fcn.00428bf0
add esp, 8
cmp esi, ebx
je 0x429835
push esi
call fcn.00470041
add esp, 4
cmp ebp, ebx
je 0x429842
push ebp
call fcn.00470041
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x429ab0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x489a6b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor ebx, ebx
push 0x208
mov dword [esp + 0x14], ebx
push ebx
mov dword [esp + 0x1c], 0x104
call fcn.0046fe26
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
push ebx
push 0x1c
push esi
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x429b1b
push esi
push edi
call fcn.00428bf0
add esp, 8
jmp 0x429b35
push ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push 0x490721
mov ecx, edi
mov byte [edi + 4], bl
call fcn.0040b580
cmp esi, ebx
je 0x429b42
push esi
call fcn.00470041
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x429b60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x489a91
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4acab8]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, 1
xor ebx, ebx
mov esi, 0xf
test byte [0x4adf88], al
jne 0x429bd2
or dword [0x4adf88], eax
push 0x48ede0
mov dword [0x4adf84], esi
mov dword [0x4adf80], ebx
mov byte [0x4adf70], bl
call fcn.0047115f
add esp, 4
cmp dword [0x4adf80], ebx
jne 0x429ca9
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00428bf0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4adf6c
mov dword [esp + 0x248], ebx
call fcn.0040b360
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x23c], 0xffffffff
jb 0x429c34
mov eax, dword [esp + 0x10]
push eax
call fcn.0046fa18
add esp, 4
mov ecx, dword [0x4adf80]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
cmp ecx, ebx
jbe 0x429ca9
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x429c5c
call fcn.004707a2
mov ecx, dword [0x4adf80]
cmp dword [0x4adf84], 0x10
mov eax, dword [0x4adf70]
jae 0x429c6f
mov eax, 0x4adf70
cmp byte [eax + esi], 0x2f
je 0x429ca9
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x429c81
call fcn.004707a2
cmp dword [0x4adf84], 0x10
mov eax, dword [0x4adf70]
jae 0x429c94
mov eax, 0x4adf70
cmp byte [eax + esi], 0x5c
je 0x429ca9
push 0x492cc8
mov ecx, 0x4adf6c
call fcn.0040b690
mov eax, 0x4adf6c
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00470538
add esp, 0x234
ret
Function at 0x429ce0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x489aca
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4acab8]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, 1
xor ebx, ebx
mov esi, 0xf
test byte [0x4adfa8], al
jne 0x429d52
or dword [0x4adfa8], eax
push 0x48ee10
mov dword [0x4adfa4], esi
mov dword [0x4adfa0], ebx
mov byte [0x4adf90], bl
call fcn.0047115f
add esp, 4
cmp dword [0x4adfa0], ebx
jne 0x429e3a
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00428bf0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4adf8c
mov dword [esp + 0x248], ebx
call fcn.0040b360
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x23c], 0xffffffff
jb 0x429db4
mov eax, dword [esp + 0x10]
push eax
call fcn.0046fa18
add esp, 4
mov ecx, dword [0x4adfa0]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
cmp ecx, ebx
jbe 0x429e29
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x429ddc
call fcn.004707a2
mov ecx, dword [0x4adfa0]
cmp dword [0x4adfa4], 0x10
mov eax, dword [0x4adf90]
jae 0x429def
mov eax, 0x4adf90
cmp byte [eax + esi], 0x2f
je 0x429e29
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x429e01
call fcn.004707a2
cmp dword [0x4adfa4], 0x10
mov eax, dword [0x4adf90]
jae 0x429e14
mov eax, 0x4adf90
cmp byte [eax + esi], 0x5c
je 0x429e29
push 0x492cc8
mov ecx, 0x4adf8c
call fcn.0040b690
push 0x17
push str.mediaget_installer_tmp_
mov ecx, 0x4adf8c
call fcn.0040b440
mov eax, 0x4adf8c
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00470538
add esp, 0x234
ret

Function at 0x42a840
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x198
mov eax, dword [0x4acab8]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
mov esi, dword [esp + 0x1a0]
push edi
mov edi, dword [esp + 0x1a8]
lea eax, [esp + 0xc]
push eax
push 0x202
mov dword [esp + 0x10], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42a8b8
cmp dword [edi + 0x18], 0x10
jb 0x42a88b
mov edi, dword [edi + 4]
jmp 0x42a88e
add edi, 4
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42a8b8
cmp word [eax + 8], 2
jne 0x42a8b8
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, esi
call fcn.0040b920
jmp 0x42a8d8
push 0
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push 0x490721
mov ecx, esi
mov byte [esi + 4], 0
call fcn.0040b580
mov ecx, dword [esp + 0x19c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00470538
add esp, 0x198
ret
Function at 0x42b0c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x489d9f
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push esi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
push 1
push 2
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 0
call fcn.00419fd0
mov esi, dword [esp + 0xc0]
push 0x490964
push esi
lea eax, [esp + 0x34]
push str.Error_code:
push eax
mov dword [esp + 0xc4], 1
call fcn.0041a0b0
add esp, 8
mov ecx, eax
call fcn.00426570
push eax
call fcn.0041a0b0
add esp, 8
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x800
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
test eax, eax
jne 0x42b17b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea edx, [esp + 0x30]
push str.FormatMessage_error___code
push edx
call fcn.0041a0b0
add esp, 8
mov ecx, eax
call fcn.00426570
jmp 0x42b1c7
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00428bf0
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0xc4], 2
call fcn.0041a500
add esp, 0x10
cmp dword [esp + 0x28], 0x10
mov byte [esp + 0xb4], 1
jb 0x42b1bc
mov eax, dword [esp + 0x14]
push eax
call fcn.0046fa18
add esp, 4
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov esi, dword [esp + 0xbc]
push esi
lea ecx, [esp + 0x30]
call fcn.004197e0
lea ecx, [esp + 0x78]
mov dword [esp + 0xc], 1
mov byte [esp + 0xb4], 0
call fcn.00418870
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.0046f729
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xb0
ret
Function at 0x42b3d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x489de8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x74], 2
call fcn.00427f10
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00427f10
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00427f10
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
add esp, 0x18
push 5
push esi
push edi
push ebp
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x42b4ab
cmp esi, ebx
je 0x42b47b
push esi
call fcn.00470041
add esp, 4
cmp edi, ebx
je 0x42b488
push edi
call fcn.00470041
add esp, 4
cmp ebp, ebx
je 0x42b495
push ebp
call fcn.00470041
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0042b220
push eax
lea ecx, [esp + 0x38]
push str.ShellExecute_error:
push ecx
mov byte [esp + 0x80], 3
call fcn.0040bcf0
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4ab808
mov byte [esp + 0x78], 4
call fcn.0040b360
mov ebp, 0x10
cmp dword [esp + 0x44], ebp
jb 0x42b4fc
mov edx, dword [esp + 0x30]
push edx
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
cmp dword [esp + 0x60], ebp
jb 0x42b51f
mov eax, dword [esp + 0x4c]
push eax
call fcn.0046fa18
add esp, 4
cmp esi, ebx
je 0x42b52c
push esi
call fcn.00470041
add esp, 4
cmp edi, ebx
je 0x42b539
push edi
call fcn.00470041
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42b54a
push eax
call fcn.00470041
add esp, 4
xor al, al
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x42bc50
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x489f18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4acab8]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
push edi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00428bf0
add esp, 8
push 1
push 0xffffffffffffffff
push 0x492cc8
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], 0
call fcn.0042d8c0
cmp eax, 0xffffffff
jne 0x42bccc
push 1
push eax
push 0x491830
lea ecx, [esp + 0x20]
call fcn.0042d8c0
cmp eax, 0xffffffff
je 0x42bd03
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call fcn.00418c70
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x5c], 1
call fcn.0042b980
add esp, 4
cmp dword [esp + 0x48], 0x10
jb 0x42bd03
mov eax, dword [esp + 0x34]
push eax
call fcn.0046fa18
add esp, 4
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42bd3b
cmp dword [esp + 0x2c], 0x10
jb 0x42bd37
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046fa18
add esp, 4
xor al, al
jmp 0x42bd7c
mov ebx, dword [esp + 0x68]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x42bd5d
cmp dword [esp + 0x10], ebx
jne 0x42bd5d
mov bl, 1
jmp 0x42bd5f
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x2c], 0x10
jb 0x42bd7a
mov eax, dword [esp + 0x18]
push eax
call fcn.0046fa18
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00470538
add esp, 0x4c
ret

Function at 0x42bda0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x489f48
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x24], 0
call fcn.00427f10
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
push edx
push eax
push esi
call fcn.0042bc50
add esp, 0x14
mov bl, al
test esi, esi
je 0x42be12
push esi
call fcn.00470041
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x42be30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x489f73
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x34], 1
call fcn.00427f10
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00427f10
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
add esp, 0x10
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
cmp esi, ebp
jne 0x42bebe
cmp edi, ebp
je 0x42beb7
push edi
call fcn.00470041
add esp, 4
cmp ebx, ebp
je 0x42bf08
push ebx
jmp 0x42bf00
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebp
je 0x42beea
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ecx, dword [esp + 0x3c]
push ebx
push eax
push ecx
call fcn.0042bda0
add esp, 0xc
cmp edi, ebp
je 0x42bef7
push edi
call fcn.00470041
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x42bf08
push eax
call fcn.00470041
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x42c950
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48a176
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42ca1d
lea ecx, [esp + 0x38]
push ecx
call fcn.0042f670
push eax
lea edx, [esp + 0x24]
push str.CreateFile_error:
push edx
mov dword [esp + 0xa4], ebx
call fcn.0040bcf0
add esp, 0x10
push edi
push ebx
push eax
mov ecx, 0x4ab808
mov byte [esp + 0xa0], 1
call fcn.0040b360
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x42c9f1
mov eax, dword [esp + 0x20]
push eax
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], esi
jb 0x42cb7e
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0046fa18
add esp, 4
jmp 0x42cb7e
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x42cafe
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x18]
cdq
cmp ecx, edx
jg 0x42cafe
mov ecx, dword [esp + 0x14]
jl 0x42ca53
cmp ecx, eax
ja 0x42cafe
mov esi, dword [esp + 0xa0]
mov edx, dword [esi]
lea eax, [ecx + 1]
push eax
push edx
mov dword [esi + 4], eax
call fcn.0046fe26
mov edx, dword [esp + 0x1c]
add esp, 8
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42caac
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp eax, ecx
jne 0x42caac
cmp edx, dword [esp + 0x18]
jne 0x42caac
mov eax, dword [esi]
push edi
mov byte [ecx + eax], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x42cb80
lea ecx, [esp + 0x70]
push ecx
call fcn.0042f670
push eax
lea edx, [esp + 0x5c]
push str.ReadFile_error:
push edx
mov dword [esp + 0xa4], 4
call fcn.0040bcf0
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4ab808
mov byte [esp + 0xa0], 5
call fcn.0040b360
lea ecx, [esp + 0x54]
call fcn.0040ae10
lea ecx, [esp + 0x70]
call fcn.0040ae10
jmp 0x42cb77
lea eax, [esp + 0x38]
push eax
call fcn.0042f670
push eax
lea ecx, [esp + 0x24]
push str.GetFileSizeEx_error:
push ecx
mov dword [esp + 0xa4], 2
call fcn.0040bcf0
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4ab808
mov byte [esp + 0xa0], 3
call fcn.0040b360
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x42cb54
mov edx, dword [esp + 0x20]
push edx
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], esi
jb 0x42cb77
mov eax, dword [esp + 0x3c]
push eax
call fcn.0046fa18
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x88
ret
Function at 0x42cba0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x48a1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x1c]
push eax
mov esi, 1
push ecx
mov dword [esp + 0x58], esi
call fcn.00427f10
mov ebx, dword [esp + 0x60]
add esp, 8
mov ecx, ebx
call fcn.0042ee90
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 8
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ccb7
push 0x7d0
push edi
mov dword [esp + 0x30], 0x3e8
call fcn.0046fe26
mov esi, eax
add esp, 8
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x3e8
push esi
push edi
push ecx
mov byte [esp + 0x60], 2
call ebp
test eax, eax
jne 0x42cc9f
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.00428bf0
add esp, 8
push eax
mov ecx, ebx
mov byte [esp + 0x54], 3
call fcn.0042f6a0
cmp dword [esp + 0x44], 0x10
mov byte [esp + 0x50], 2
jb 0x42cc8c
mov eax, dword [esp + 0x30]
push eax
call fcn.0046fa18
add esp, 4
mov ecx, dword [esp + 0x14]
push 0x3e8
push esi
inc edi
push edi
push ecx
call ebp
test eax, eax
je 0x42cc58
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42ccb7
push esi
call fcn.00470041
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42ccc8
push eax
call fcn.00470041
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x42d470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a2bb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4acab8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x24], 0
call fcn.00427f10
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
push edx
push eax
push esi
call fcn.0042c950
add esp, 0x14
mov bl, al
test esi, esi
je 0x42d4e2
push esi
call fcn.00470041
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x42f8a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4acab8]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00470880
add esp, 0xc
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
lea ecx, [esp + 8]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x42f917
push edi
mov edi, dword [esp + 0x240]
cmp dword [esp + 0x14], edi
jne 0x42f903
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x42f914
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x42f8f5
jmp 0x42f916
mov ebx, eax
pop edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00470538
add esp, 0x230
ret

Function at 0x42f940
Capabilities:
Get process image filename

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
xor edi, edi
push edi
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x42f983
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x42f977
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.DLL_GetLastError]