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

Disassembly:
push 0x18
mov eax, 0x101853d2
call fcn.101616b5
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x1002c9fe
push dword [ebp + 8]
mov ecx, eax
call fcn.1002cc8c
mov esi, eax
test esi, esi
je 0x1002ca91
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x1002c9e7
push edx
call fcn.10029b33
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002c9e7
xor edi, edi
inc edi
jmp 0x1002c9f1
push dword [ebx]
call fcn.10029b2e
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.1002c819
jmp 0x1002ca8f
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.10161678
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x1002ca87
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.10029b33
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x1002ca81
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.1007799b
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.1007799b
add al, bl
mov edx, edi
test edx, edx
jns 0x1002ca72
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x1002ca49
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.1002c20e
mov eax, edi
call fcn.1016167e
ret 0x10

Function at 0x1002ca99
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x1002caec
push esi
push dword [ebp + 8]
call fcn.1002cc8c
mov edi, eax
test edi, edi
jne 0x1002cabc
mov eax, dword [ebp + 0x10]
jmp 0x1002cafe
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1002cab7
mov eax, dword [ebp - 8]
jmp 0x1002cafe
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10031909
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x1003194e
call fcn.1002eba1
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1003194e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1003196a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1003f897
mov ebx, eax
test edi, edi
je 0x10031968
test esi, esi
je 0x10031968
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003237c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1003243a
cmp dword [esi + 0x20], 0
je 0x1003243a
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1003243a
cmp dword [ebp + 8], 0
je 0x1003243a
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.1002eba1
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1003240b
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003243a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.10040447
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x1003242b
test edi, edi
je 0x1003242b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x10032436
mov ecx, esi
call fcn.1003211f
mov eax, ebx
jmp 0x1003243c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10036947
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1018901e
call fcn.101616b5
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1003696d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x100369cc
call fcn.100380e5
push eax
lea ecx, [ebp - 0x10]
call fcn.1002acb6
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.10161678
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10168b36
push eax
call fcn.1002b2ca
add esp, 0x14
test esi, esi
je 0x100369bf
push esi
call fcn.10166e0b
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1002c20e
mov eax, ebx
call fcn.1016167e
ret 8
Function at 0x10040aae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x10040ad9
cmp dword [ebx + 0x80], 0
jne 0x10040ad9
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.1002eba1
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.10040d6c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10040b13
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.1002eba1
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10040b4a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10040b6b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10042c52
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x10042c6c
mov edi, dword [esi + 0xc]
jmp 0x10042cac
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10042c85
call fcn.1003cb54
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10042c9a
call fcn.1003cb54
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10042cac
call fcn.1003cb54
call fcn.1002eba1
cmp dword [eax + 0x3c], 0
je 0x10042cc1
push edi
mov ecx, ebx
call fcn.100422e6
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.10042e9e
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10042cea
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10042cf6
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10048cae
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10036891
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10048cea
call fcn.10048ed0
mov dword [esi + 0xc], 1
jmp 0x10048cef
call fcn.10048ed0
cmp dword [esi], 0
je 0x10048d38
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x10048d12
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.100319df
jmp 0x10048d23
push 0xff
mov ecx, esi
call fcn.1002be59
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1002cdc8
jmp 0x10048d5c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x10048d5c
push dword [esi]
push dword [ebp - 4]
call fcn.10036e16
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10048e25
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.10048ed0
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10048e6d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.100319df
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1002cdc8
jmp 0x10048e78
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10036e16
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1005a4f8
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100a8cd2
call fcn.1002ebf5
cmp dword [eax + 0x14], 0
jne 0x1005a513
mov ecx, esi
pop esi
jmp fcn.10059843
pop esi
ret

Function at 0x1005b3e9
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10146068
call fcn.1002ebf5
cmp dword [eax + 0x14], 0
jne 0x1005b404
mov ecx, esi
pop esi
jmp fcn.1005ac67
pop esi
ret
Function at 0x10069c2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x10069c48
call fcn.1002eba1
mov esi, dword [eax + 0xc]
push 0x101bf3f4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10069c9e
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10069c9d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10069c7e
xor esi, esi
jmp 0x10069c94
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.10069ca6
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1017990d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101795cd

Function at 0x408931
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
or edx, eax
mov edx, edx
call fcn.0040894f
xor dword [esi], ecx
mov eax, eax
inc esi
sub eax, edx
cmp esi, ebx
jne fcn.00408931
add eax, eax
ret
Function at 0x410b10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5060bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea edi, [esi + 8]
mov ecx, edi
mov dword [esi], vtable._ckCharset.0
call fcn.00408020
xor eax, eax
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esi + 0x30], eax
call fcn.00407ec0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x41d8e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0041d503
push eax
push esi
push dword [ebp + 8]
call fcn.0041d4b8
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0041d503
push eax
push esi
push dword [ebp + 8]
call fcn.0041d4b8
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0041d4f3
jmp 0x88499476

Function at 0x41e110
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x5125b], al
inc dword [eax]
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
clc
cli
invalid
push dword [ebp - 0x3a]
test ecx, edi
cli
invalid
jmp dword [esi - 0x3a]
test edx, edi
cli
invalid
invalid
jns 0x41e13a
test ebx, edi
cli
invalid
call [ecx*4 - 0x5137b]
invalid
Function at 0x4204b0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x58b710], 0
jne 0x4204d6
mov dword [0x58b710], 1
call fcn.0041e170
push eax
call fcn.004ed7c5
add esp, 4
call fcn.00420340
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x420581
push ebx
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0046fb70
add eax, ebp
push eax
mov ecx, edi
call fcn.00405fb0
xor ebx, ebx
call fcn.00420300
test ebp, ebp
jle 0x42056a
push esi
lea esi, [ebp - 1]
shr esi, 2
add esi, 1
lea ebx, [esi*4]
jmp 0x420520
mov eax, dword [0x58b320]
movzx ecx, byte [eax + 0x576778]
mov dword [0x58b320], ecx
mov ecx, dword [0x576770]
movzx edx, byte [ecx + 0x576778]
mov ecx, dword [ecx*4 + 0x58b328]
xor dword [eax*4 + 0x58b328], ecx
lea eax, [eax*4 + 0x58b328]
push 4
push eax
mov ecx, edi
mov dword [0x576770], edx
call fcn.004050c0
sub esi, 1
jne 0x420520
pop esi
cmp ebx, ebp
mov byte [0x58b324], 0
jle 0x42057f
sub ebx, ebp
push ebx
mov ecx, edi
call fcn.004041c0
pop edi
pop ebx
pop ebp
ret

Function at 0x4209e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5033bb
mov eax, dword fs:[0]
push eax
mov eax, 0x18a4
call fcn.004eda00
mov eax, dword [0x5894dc]
xor eax, esp
mov dword [esp + 0x18a0], eax
push esi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x18ac]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18bc]
lea ecx, [esp + 8]
call fcn.004542c0
lea ecx, [esp + 8]
mov dword [esp + 0x18b4], 0
call fcn.004542f0
test al, al
jne 0x420a5b
lea edx, [esp + 0x8a4]
push edx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x420a7f
lea eax, [esp + 0xa0]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0xa0]
push ecx
mov ecx, esi
call fcn.00402920
jmp 0x420a8e
lea edx, [esp + 0x8a4]
push edx
mov ecx, esi
call fcn.00403c10
lea ecx, [esp + 8]
mov dword [esp + 0x18b4], 0xffffffff
call fcn.004542e0
mov ecx, dword [esp + 0x18ac]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18a0]
xor ecx, esp
call fcn.004ec47e
add esp, 0x18b0
ret
Function at 0x420ad0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5033fb
mov eax, dword fs:[0]
push eax
mov eax, 0x20a8
call fcn.004eda00
mov eax, dword [0x5894dc]
xor eax, esp
mov dword [esp + 0x20a4], eax
push esi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x20b0]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20c0]
lea ecx, [esp + 8]
call fcn.004542c0
lea ecx, [esp + 8]
mov dword [esp + 0x20b8], 0
call fcn.004542f0
test al, al
je 0x420b58
lea eax, [esp + 0x8a4]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x8a4]
push ecx
mov ecx, esi
call fcn.00402920
jmp 0x420bad
lea edx, [esp + 0x10a8]
push edx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x420b9e
lea eax, [esp + 0xa0]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x420b8d
mov byte [esp + 0xa0], al
lea ecx, [esp + 0xa0]
push ecx
mov ecx, esi
call fcn.00402920
jmp 0x420bad
lea edx, [esp + 0x10a8]
push edx
mov ecx, esi
call fcn.00403c10
lea ecx, [esp + 8]
mov dword [esp + 0x20b8], 0xffffffff
call fcn.004542e0
mov ecx, dword [esp + 0x20b0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20a4]
xor ecx, esp
call fcn.004ec47e
add esp, 0x20b4
ret
Function at 0x424ca0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov edi, dword [esp + 0x1c]
mov byte [ebp], 0
mov ebx, ecx
mov dword [edi], 0
je 0x424d53
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x424d53
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x424d1c
push 0
push edi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x424d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x424d0f
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x424d67
push eax
call fcn.004247b0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
cmp dword [edi], 0
jne 0x424d13
mov byte [ebp], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov eax, dword [ebx + 8]
test eax, eax
je 0x424d67
push eax
push esi
push 1
push ecx
call fcn.004efd16
add esp, 0x10
cmp eax, esi
mov dword [edi], eax
je 0x424d13
mov eax, dword [ebx + 8]
push eax
call fcn.004efa42
add esp, 4
test eax, eax
jne 0x424d67
pop edi
pop esi
mov byte [ebp], 1
pop ebp
mov al, 1
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x424d67
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.NULL_buf_or_bufSize
call eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14

Function at 0x424f00
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x503908
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x424fa5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x424f8e
mov esi, dword [esp + 0x48]
test esi, esi
je 0x424f8e
lea ecx, [esp + 0x10]
call fcn.00408020
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
call fcn.0040a3e0
mov edi, dword [esi]
lea ecx, [esp + 0x10]
call fcn.004e81e0
push eax
mov eax, dword [edi + 0x10]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push str.Failed_to_get_file_size__32_
mov ecx, esi
call eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], ebx
call fcn.00408310
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x424fd0
push ecx
call fcn.004f8075
push eax
call fcn.004eff17
add esp, 8
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4
Function at 0x424ff0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x503908
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4250c4
lea ecx, [esp + 0xc]
push ecx
xor edi, edi
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4250a2
mov esi, dword [esp + 0x48]
cmp esi, edi
je 0x425088
lea ecx, [esp + 0x10]
call fcn.00408020
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], edi
call fcn.0040a3e0
mov edi, dword [esi]
lea ecx, [esp + 0x10]
call fcn.004e81e0
mov edx, dword [edi + 0x10]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push str.Failed_to_get_file_size__64_
mov ecx, esi
call edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.00408310
or eax, 0xffffffff
or edx, 0xffffffff
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x38
ret 4
mov ecx, dword [esp + 0xc]
push ecx
push eax
call fcn.004251a0
add esp, 8
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x38
ret 4
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x425088
push ecx
call fcn.004f8075
push eax
call fcn.004f0016
add esp, 8
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x38
ret 4
Function at 0x440c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x505e17
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push esi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xf8]
call fcn.00408020
lea ecx, [esp + 0xa8]
mov dword [esp + 0x128], 0
call fcn.00408020
lea ecx, [esp + 0x58]
mov byte [esp + 0x128], 1
call fcn.00408020
lea ecx, [esp + 8]
mov byte [esp + 0x128], 2
call fcn.00408020
lea ecx, [esp + 0x80]
mov byte [esp + 0x128], 3
call fcn.00408020
lea ecx, [esp + 0xd0]
mov byte [esp + 0x128], 4
call fcn.00408020
lea ecx, [esp + 0x30]
mov byte [esp + 0x128], 5
call fcn.00408020
lea eax, [esi + 0x98]
push eax
lea ecx, [esp + 0xfc]
mov byte [esp + 0x12c], 6
call fcn.00409110
lea ecx, [esi + 0x110]
push ecx
lea ecx, [esp + 0xac]
call fcn.00409110
lea edx, [esi + 0x160]
push edx
lea ecx, [esp + 0x5c]
call fcn.00409110
lea eax, [esi + 0x188]
push eax
lea ecx, [esp + 0xc]
call fcn.00409110
lea ecx, [esi + 0x1e8]
push ecx
lea ecx, [esp + 0x84]
call fcn.00409110
lea edx, [esi + 0x238]
push edx
lea ecx, [esp + 0xd4]
call fcn.00409110
lea eax, [esi + 0x260]
push eax
lea ecx, [esp + 0x34]
call fcn.00409110
lea ecx, [esp + 0x30]
call fcn.004e81e0
push eax
lea ecx, [esp + 0xd4]
call fcn.004e81e0
push eax
lea ecx, [esp + 0x88]
call fcn.004e81e0
mov ecx, dword [esp + 0x138]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004e81e0
push eax
lea ecx, [esp + 0x6c]
call fcn.004e81e0
push eax
lea ecx, [esp + 0xc0]
call fcn.004e81e0
push eax
lea ecx, [esp + 0x114]
call fcn.004e81e0
push eax
mov ecx, esi
call fcn.0043f940
lea ecx, [esp + 0x30]
mov byte [esp + 0x128], 5
call fcn.00408310
lea ecx, [esp + 0xd0]
mov byte [esp + 0x128], 4
call fcn.00408310
lea ecx, [esp + 0x80]
mov byte [esp + 0x128], 3
call fcn.00408310
lea ecx, [esp + 8]
mov byte [esp + 0x128], 2
call fcn.00408310
lea ecx, [esp + 0x58]
mov byte [esp + 0x128], 1
call fcn.00408310
lea ecx, [esp + 0xa8]
mov byte [esp + 0x128], 0
call fcn.00408310
lea ecx, [esp + 0xf8]
mov dword [esp + 0x128], 0xffffffff
call fcn.00408310
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x124
ret 4