joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ff00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47df2b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a67d0]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
push 0x206
lea eax, [esp + 0x22]
push 0
push eax
mov edi, ecx
mov word [esp + 0x28], 0
call fcn.00461680
mov edx, dword [0x4a7e18]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x90
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x190
push 0xff0000
mov ecx, 0x14
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov edx, ecx
mov esi, ecx
mov dword [eax + 4], edx
mov ebx, ecx
mov dword [eax + 8], esi
push ecx
mov dword [eax + 0xc], ebx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00403a00
lea ebp, [edi + 0x9c]
mov ecx, ebp
call fcn.0040c310
mov esi, dword [edi + 0x54]
test esi, esi
je 0x4200c2
lea ebx, [esi + 0x58]
mov ecx, ebx
call fcn.00404b10
mov ecx, ebx
call fcn.00404c50
mov ecx, ebx
call fcn.00404930
mov edx, dword [0x4a7e18]
push 0x104
lea ecx, [esp + 0x228]
push ecx
push 0x8f
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
call fcn.00432e21
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x420013
push 0x80004005
call fcn.004022f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x5c]
push ecx
mov ecx, dword [ebx]
push edx
push eax
push ecx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x450], 0
call fcn.0041fec0
mov edi, dword [edi + 0xb0]
add esp, 0x18
push 0x190
push 0xff0000
mov ecx, 0x14
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edi
mov edx, ecx
mov esi, ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x2c]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push esi
call fcn.00402750
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call fcn.0040c310
mov dword [esp + 0x438], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4200c2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004611fb
add esp, 0x428
ret
Function at 0x421610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e1db
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a67d0]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
push 0x206
lea eax, [esp + 0x22]
push 0
push eax
mov edi, ecx
mov word [esp + 0x28], 0
call fcn.00461680
mov edx, dword [0x4a7e18]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x8e
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x190
push 0xff0000
mov ecx, 0x14
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov edx, ecx
mov esi, ecx
mov dword [eax + 4], edx
mov ebx, ecx
mov dword [eax + 8], esi
push ecx
mov dword [eax + 0xc], ebx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00403a00
lea ebp, [edi + 0x9c]
mov ecx, ebp
call fcn.0040c310
mov esi, dword [edi + 0x54]
test esi, esi
je 0x4217d2
lea ebx, [esi + 0x58]
mov ecx, ebx
call fcn.00404b10
mov ecx, ebx
call fcn.00404c50
mov ecx, ebx
call fcn.00404930
mov edx, dword [0x4a7e18]
push 0x104
lea ecx, [esp + 0x228]
push ecx
push 0x8f
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
call fcn.00432e21
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x421723
push 0x80004005
call fcn.004022f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x5c]
push ecx
mov ecx, dword [ebx]
push edx
push eax
push ecx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x450], 0
call fcn.0041fec0
mov edi, dword [edi + 0xb0]
add esp, 0x18
push 0x190
push 0xff0000
mov ecx, 0x14
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edi
mov edx, ecx
mov esi, ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x2c]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push esi
call fcn.00402750
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [edi], eax
call fcn.0040c310
mov dword [esp + 0x438], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4217d2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004611fb
add esp, 0x428
ret
Function at 0x423280
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e486
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x434], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a67d0]
xor eax, esp
push eax
lea eax, [esp + 0x44c]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x244]
push eax
mov esi, ecx
mov ecx, dword [0x4a7e18]
mov ebp, 0x14
push 0x69
push ecx
mov edi, ebp
mov ebx, ebp
mov dword [esp + 0x44], ebp
call dword [sym.imp.USER32.dll_LoadStringW]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov edx, ebp
push ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x254]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00403a00
push 2
lea ecx, [esi + 0x9c]
call fcn.0040beb0
mov ecx, dword [esi + 0x20]
push 1
xor ebx, ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.0043af62
cmp eax, ebx
je 0x42333c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x42333e
xor eax, eax
mov ecx, eax
call fcn.004120c0
mov esi, dword [esi + 0x54]
cmp esi, ebx
je 0x423457
mov ecx, dword [esi + 0x74]
call fcn.0041bb00
lea ecx, [esp + 0x17]
call fcn.0040cda0
mov dword [esp + 0x454], ebx
call fcn.00432e21
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x423382
push 0x80004005
call fcn.004022f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1f]
mov byte [esp + 0x45c], 1
call fcn.0040cdd0
cmp dword [esp + 0x1c], ebx
je 0x42341c
push 0x206
lea eax, [esp + 0x3e]
push ebx
push eax
mov word [esp + 0x44], bx
call fcn.00461680
lea ecx, [esp + 0x44]
push ecx
call fcn.00401100
add esp, 0x10
test eax, eax
je 0x42341c
push str.AutoUpdate.exe
lea edx, [esp + 0x3c]
push 0x104
push edx
call fcn.00462a7e
add esp, 0xc
lea ecx, [esi + 0x58]
call fcn.00404e70
test eax, eax
push ebx
push ebx
push ebx
je 0x42340b
lea eax, [esp + 0x44]
push eax
push str.runas
jmp 0x423415
lea ecx, [esp + 0x44]
push ecx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x454], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423443
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x17]
mov dword [esp + 0x454], 0xffffffff
call fcn.00410030
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.004611fb
add esp, 0x444
ret
Function at 0x425e80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x210], eax
mov ecx, dword [esp + 0x21c]
mov eax, dword [esp + 0x218]
push esi
mov esi, dword [esp + 0x224]
lea edx, [esp + 4]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov word [esi], 0
jne 0x425f1c
push edi
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
mov dword [esp + 0x18], 0x104
call fcn.00461680
mov eax, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov edi, eax
test edi, edi
jne 0x425f1b
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov ecx, dword [esp + 0x214]
pop esi
xor ecx, esp
call fcn.004611fb
add esp, 0x214
ret 0xc

Function at 0x425f40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0
jne 0x425ff6
push ebp
mov ebp, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f89
push 0
call ebp
test eax, eax
mov dword [ebx + 4], eax
jne 0x425ff5
push esi
push edi
push 0x40e
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00461680
add esp, 0xc
push 0x206
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x425fb0
lea edx, [esp + 0x10]
mov ecx, 7
mov esi, 0x486d08
push edx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x425ff3
push 0x6a
push esi
call ebp
test eax, eax
je 0x425fec
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x414]
pop ebx
xor ecx, esp
call fcn.004611fb
add esp, 0x414
ret
Function at 0x426070
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x418
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
mov ebp, dword [esp + 0x420]
push esi
mov esi, ecx
xor eax, eax
test ebp, ebp
mov dword [esp + 8], esi
je 0x426250
cmp word [ebp], ax
je 0x426250
push 4
push str.APP:
push ebp
call fcn.00463dd3
add esp, 0xc
test eax, eax
jne 0x4260c2
mov eax, 4
jmp 0x4260db
push 5
push 0x4885c4
push ebp
call fcn.00463dd3
add esp, 0xc
test eax, eax
jne 0x4260f4
mov eax, 5
mov ecx, dword [esp + 0x42c]
push ecx
lea edx, [ebp + eax*2]
push edx
mov ecx, esi
call fcn.00425d40
jmp 0x426250
mov eax, dword [esp + 0x428]
push ebx
push eax
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
cmp ebx, 0x20
ja 0x426244
push 0x40e
lea ecx, [esp + 0x16]
push 0
push ecx
mov word [esp + 0x1c], 0
call fcn.00461680
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push str..htm
push SysReAllocStringLen
mov ecx, esi
call fcn.00425e80
test eax, eax
jne 0x426244
push edi
lea edi, [esp + 0x14]
add edi, 0xfffffffe
jmp 0x426160
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x426160
lea eax, [esp + 0x14]
mov ecx, 0xa
mov esi, str._shellopencommand
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
push SysReAllocStringLen
call fcn.00425e80
test eax, eax
jne 0x426243
lea edx, [esp + 0x14]
push str.__1_
push edx
call fcn.00463593
add esp, 8
test eax, eax
jne 0x4261d3
lea eax, [esp + 0x14]
push 0x486d2c
push eax
call fcn.00463593
add esp, 8
test eax, eax
jne 0x4261d3
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + eax*2 + 0x12]
jmp 0x4261d8
mov word [eax], 0
mov edi, eax
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4261e0
mov edx, dword [0x486d24]
mov ecx, ebp
mov dword [edi], edx
mov esi, ecx
jmp 0x426200
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x426200
sub ecx, esi
add eax, 0xfffffffe
mov edx, ecx
mov edi, eax
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x426214
mov eax, dword [esp + 0x430]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ebx, eax
pop edi
mov edx, 0x20
cmp edx, ebx
sbb eax, eax
neg eax
pop ebx
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
xor ecx, esp
call fcn.004611fb
add esp, 0x418
ret 0xc

Function at 0x426390
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x17
xor esi, esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4263a3
push 2
jmp 0x4263a5
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
test ax, ax
mov eax, 1
jge 0x4263ba
mov eax, esi
pop esi
ret
Function at 0x42ba20
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
cmp ebp, eax
jbe 0x42ba40
pop edi
mov eax, 8
pop ebp
add esp, 0xc
ret 0x14
push esi
mov esi, dword [esp + 0x1c]
push eax
push 0
push esi
call fcn.00461680
add esp, 0xc
push 0
push 1
push 0
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push eax
mov dword [edi], 0
call esi
test eax, eax
jne 0x42ba89
push 8
push 1
push eax
push eax
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x42bc0f
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x42bc0f
mov ecx, dword [esp + 0x28]
push 0
push 0x24
push str.E8A26CEF_9228_4520_B929_F2E7F4DF809A
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x42bc0f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x800000
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x42bc0f
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0x3f0
mov dword [esp + 0x2c], 0
call fcn.00464255
mov esi, eax
add esp, 4
test esi, esi
je 0x42bc0f
push ebx
push 0x3f0
push 0
push esi
call fcn.00461680
mov ebx, dword [esp + 0x34]
lea eax, [ebx + ebp]
add esp, 0xc
mov dword [esp + 0x28], eax
xor ebp, ebp
jmp 0x42bb40
mov edi, dword [esp + 0x28]
sub edi, ebx
cmp edi, 0x3e8
jae 0x42bb61
push edi
push ebx
push esi
mov ebp, 1
call fcn.00461e20
mov dword [esp + 0x2c], edi
jmp 0x42bb75
push 0x3e8
push ebx
push esi
call fcn.00461e20
mov dword [esp + 0x2c], 0x3e8
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
push ebp
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x42bbff
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
push eax
push esi
push edi
call fcn.00461e20
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add dword [ecx], eax
add edi, eax
add esp, 0xc
add ebx, eax
test ebp, ebp
mov dword [esp + 0x14], edi
je 0x42bb40
push esi
call fcn.00462af8
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x42bbd3
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x42bbe2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42bbf3
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop esi
pop edi
pop ebp
add esp, 0xc
ret 0x14
pop esi
pop edi
mov eax, 1
pop ebp
add esp, 0xc
ret 0x14
Function at 0x42bc20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x49b888
push 0x462330
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4a67d0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
cmp dword [ebp + 0xc], 0
je 0x42bd3f
cmp edi, 0xffffffff
je 0x42bd3f
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42bd3f
push 0x32000
call fcn.00464255
add esp, 4
mov esi, eax
mov dword [ebp - 0x80], esi
test esi, esi
je 0x42bd3f
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
push ecx
call fcn.004128d0
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x42bcc0
mov eax, dword [ebp + 0xc]
push 0
cmp eax, 0x32000
jbe 0x42bcf8
lea edx, [ebp - 0x78]
push edx
push 0x32000
push esi
push edi
call ebx
test eax, eax
je 0x42bd1f
sub dword [ebp + 0xc], 0x32000
push 0x32000
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.00413190
add esp, 0xc
jmp 0x42bcc0
lea ecx, [ebp - 0x78]
push ecx
push eax
push esi
push edi
call ebx
mov edx, dword [ebp - 0x78]
push edx
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.00413190
mov ecx, dword [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.00413230
add esp, 0x14
mov dword [ebp - 4], 0xfffffffe
call fcn.0042bd35
mov eax, 1
jmp 0x42bd41
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004611fb
mov esp, ebp
pop ebp
ret
Function at 0x42bd60
Capabilities:
Get file size

Disassembly:
sub esp, 0x64
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x68]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
xor eax, eax
push ebx
push 1
push SysReAllocStringLen
push ecx
mov byte [esp + 0x28], bl
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov word [esp + 0x45], ax
mov byte [esp + 0x47], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42bdd8
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004611fb
add esp, 0x64
ret
push edi
mov edi, dword [esp + 0x7c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, ebx
jne 0x42be05
mov edi, eax
cmp edi, 0xffffffff
jne 0x42be25
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004611fb
add esp, 0x64
ret
cmp eax, edi
je 0x42be25
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004611fb
add esp, 0x64
ret
lea eax, [esp + 0x10]
push eax
push edi
push esi
call fcn.0042bc20
add esp, 0xc
test eax, eax
je 0x42be70
push 0x3f
lea ecx, [esp + 0x35]
push 0
push ecx
mov byte [esp + 0x3c], bl
call fcn.00461680
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00413360
push 0x20
lea ecx, [esp + 0x48]
push ebp
push ecx
call fcn.0047777d
add esp, 0x20
test eax, eax
jne 0x42be70
lea ebx, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004611fb
add esp, 0x64
ret
Function at 0x42beb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x814
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x810], eax
mov eax, dword [esp + 0x818]
push ebx
mov ebx, dword [esp + 0x820]
push edi
push str.rb_ccsUTF_16LE
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
call fcn.004644b9
mov edi, eax
add esp, 8
test edi, edi
je 0x42c0eb
push ebp
push 0x3f0
call fcn.00464255
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x42c0d1
push 0x3f0
push 0
push ebp
call fcn.00461680
add esp, 0xc
mov dword [esp + 0x14], ebx
push esi
push edi
push 0x3e8
push 1
push ebp
call fcn.00464768
push edi
mov esi, eax
call fcn.004643c6
add esp, 0x14
test eax, eax
jne 0x42c0cd
mov eax, dword [esp + 0x18]
push esi
push ebp
push eax
call fcn.00461e20
add dword [esp + 0x24], esi
add dword [esp + 0x1c], esi
push edi
call fcn.00464397
add esp, 0x10
test eax, eax
je 0x42bf25
push edi
call fcn.00462f70
push ebp
call fcn.00462af8
mov ecx, dword [esp + 0x18]
xor ebp, ebp
push ecx
mov dword [esp + 0x20], ebp
call fcn.00464255
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x42c0cd
mov edx, dword [esp + 0x10]
push edx
push ebp
push edi
call fcn.00461680
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ebp
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.0042ba20
test eax, eax
jne 0x42c0bb
mov edx, dword [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.0042b910
cmp eax, 8
jne 0x42c08a
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00464255
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x42c02f
mov edx, dword [esp + 0x14]
push edx
push ebp
push esi
call fcn.00461680
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.0042b910
mov ebp, dword [esp + 0x14]
lea edx, [ebp + 2]
push edx
push 0
push ebx
call fcn.00461680
push ebp
push esi
push ebx
call fcn.00461e20
add esp, 0x18
push esi
mov ebp, 1
call fcn.00462af8
add esp, 4
push edi
call fcn.00462af8
add esp, 4
cmp byte [ebx], 0xff
jne 0x42c06f
cmp byte [ebx + 1], 0xfe
jne 0x42c06f
cmp byte [ebx + 2], 0x3c
lea eax, [ebx + 2]
jne 0x42c06f
cmp byte [ebx + 3], 0
jne 0x42c06f
mov esi, dword [esp + 0x14]
push esi
push eax
push ebx
call fcn.00461e20
mov byte [ebx + esi - 1], 0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [ebx + eax - 2], 0
mov eax, ebp
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.004611fb
add esp, 0x814
ret
mov eax, dword [esp + 0x1c]
push eax
call fcn.0047ac20
push eax
push 0x489e90
lea ecx, [esp + 0x28]
push ecx
call fcn.0042be90
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov ecx, 0x4a7eec
call fcn.00411d40
jmp 0x42c02f
mov eax, dword [esp + 0x1c]
push eax
call fcn.0047ac20
push eax
push 0x489e74
jmp 0x42c09a
xor eax, eax
jmp 0x42c071
pop ebp
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.004611fb
add esp, 0x814
ret
mov ecx, dword [esp + 0x818]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004611fb
add esp, 0x814
ret