joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d370
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x496023
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00487566
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048ccd9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048e231
test eax, eax
je 0x44d48c
mov ecx, dword [esp + 0x3c]
call fcn.0048cd06
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44d450
push edi
mov ecx, esi
call fcn.0048a2cc
mov ecx, esi
call fcn.0044d5f0
cmp dword [esp + 0x38], 1
jne 0x44d485
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048a436
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44fea0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44fed3
push esi
call fcn.00452fb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44fecc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44ff59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44ff42
mov eax, dword [esi + 8]
test eax, eax
je 0x44fef7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44ff3e
cmp eax, 2
je 0x44ff42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44feea
cmp eax, 3
je 0x44ff1d
cmp eax, 1
jne 0x44feea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44feea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44feea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044ff80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44ff68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044ff80
add esp, 4
pop esi
ret

Function at 0x464cc0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x464d63
test eax, eax
jbe 0x464d63
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x464d63
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x464d0e
xor esi, esi
jmp 0x464d14
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x464d3f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00411ea0
add esi, eax
push esi
mov ebx, esi
call fcn.00411ea0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x464d20
pop ebp
test edi, edi
pop edi
jne 0x464d63
test ebx, ebx
je 0x464d63
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00475ae0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x464ea5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x464fbd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x464fbd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004879b8
mov esi, eax
test esi, esi
je 0x464fbd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x464fbd
mov ecx, esi
call fcn.00464e10
cmp edi, eax
jge 0x464fbd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x464f43
mov dword [esp + 0x34], 1
jmp 0x464f9e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x464fbd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00463640
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x48835c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x488394
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00486413
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004863eb
jmp 0x4883a0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x489a4d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x489a8f
call fcn.0048f738
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x489a8f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x489a86
xor eax, eax
jmp 0x489a97
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00489a9d
pop edi
pop esi
pop ebx
ret 4
Function at 0x48fc68
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48fc96
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48fcb4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048fbce
jmp 0x48fcb4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48fcb4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048fbce
test edi, edi
mov eax, edi
jne 0x48fc9e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e39
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401e74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401e70
lea ebx, [ebx]
cmp esi, eax
jae 0x401e74
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401e60
cmp esi, eax
jb 0x401e7a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403ae9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x403b2f
call fcn.0040c14a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x403b2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x403b72
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x403b5b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x403b5b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x403b6f
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40b866
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40b8a9
call fcn.0040c14a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40b8a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b8c4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040b41d
test ebx, ebx
mov esi, eax
je 0x40b8c2
test edi, edi
je 0x40b8c2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40e203
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40e231
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40e24f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040e16d
jmp 0x40e24f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40e24f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040e16d
test edi, edi
mov eax, edi
jne 0x40e239
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x444448]
test ecx, ecx
je 0x40e312
jmp 0x40e202
ret 8

Function at 0x41d205
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441418]
jne 0x41d20f
repz ret
jmp fcn.00421af2
Function at 0x42a37a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042314b
xor ebx, ebx
cmp dword [0x4451a0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42a44f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42a3ba
xor eax, eax
jmp 0x42a513
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x436bb0
push edi
call esi
cmp eax, ebx
je 0x42a3b3
push eax
call fcn.004230e8
mov dword [esp], 0x436ba0
push edi
mov dword [0x4451a0], eax
call esi
push eax
call fcn.004230e8
mov dword [esp], 0x436b8c
push edi
mov dword [0x4451a4], eax
call esi
push eax
call fcn.004230e8
mov dword [0x4451a8], eax
lea eax, [ebp - 8]
push eax
call fcn.0041e9c4
test eax, eax
pop ecx
pop ecx
je 0x42a41d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00422987
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42a44f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004230e8
cmp eax, ebx
pop ecx
mov dword [0x4451b0], eax
je 0x42a44f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004230e8
pop ecx
mov dword [0x4451ac], eax
mov eax, dword [0x4451ac]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42a4c8
cmp dword [0x4451b0], esi
je 0x42a4c8
push eax
call fcn.00423154
pop ecx
call eax
cmp eax, ebx
je 0x42a495
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4451b0]
call fcn.00423154
pop ecx
call eax
test eax, eax
je 0x42a495
test byte [ebp - 0x18], 1
jne 0x42a4c8
lea eax, [ebp - 0xc]
push eax
call fcn.0041e9fb
test eax, eax
pop ecx
je 0x42a4b0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00422987
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42a4bf
or dword [ebp + 0x10], 0x200000
jmp 0x42a4f9
or dword [ebp + 0x10], 0x40000
jmp 0x42a4f9
mov eax, dword [0x4451a4]
cmp eax, esi
je 0x42a4f9
push eax
call fcn.00423154
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42a4f9
mov eax, dword [0x4451a8]
cmp eax, esi
je 0x42a4f9
push dword [ebp - 4]
push eax
call fcn.00423154
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4451a0]
call fcn.00423154
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430684
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x441418]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00430619
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041ecd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4306d3
cmp dword [ebp - 0x1c], 5
jb 0x4306eb
jmp 0x4306e7
cmp dword [ebp - 0x10], 1
jne 0x4306eb
cmp dword [ebp - 0x1c], 4
ja 0x4306e7
jne 0x4306eb
cmp dword [ebp - 0x18], 0
jbe 0x4306eb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4384a0
call fcn.004304ed
test eax, eax
jge 0x43070c
mov byte [0x44533c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041d205
add ebp, 0x78
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40277c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x488008], 0x8088405
inc edx
mov dword [ebx + 0x488008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x488010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4028a8
xor eax, eax
push ebp
push 0x4028a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4028e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4028a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x488010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x488010], ax
mov esp, ebp
pop ebp
ret

Function at 0x402f10
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a038], 0
je 0x402f71
cmp word [0x48a20c], 0xd7b2
jne 0x402f39
cmp dword [0x48a214], 0
jbe 0x402f39
mov eax, 0x48a208
call dword [0x48a224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x488050
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402f98
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48801c], 0
jne 0x402f8d
push 0
push 0x488070
push 0x488050
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x414f84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.kernel32.dll_ReadFile
pop ecx
pop ecx
pop ebp
ret
Function at 0x415478
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.kernel32.dll_WriteFile_1
pop ecx
pop ecx
pop ebp
ret
Function at 0x422c20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040340c
xor eax, eax
push ebp
push 0x422d60
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040341c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x422d4a
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
jmp 0x422caa
inc dword [ebp - 0x18]
imul eax, dword [ebp - 0x18], 0x17
cmp dword [eax*2 + 0x564fee], 0
jne 0x422ca7
imul eax, dword [ebp - 0x18], 0x17
cmp byte [eax*2 + 0x565002], 0
jne 0x422ca7
imul eax, dword [ebp - 0x18], 0x17
lea eax, [eax*2 + 0x564fe6]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0x3e8
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x20]
add eax, 0x18
mov edx, dword [ebp - 4]
call fcn.00403100
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x1c], 1
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax + 0x1e], edx
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax + 0x22], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x2a], eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x1d], 0
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax + 0x26], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422d67
lea eax, [ebp - 4]
call fcn.004030ac
ret
Function at 0x422d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x17
lea eax, [eax*2 + 0x564fe6]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x1d], 0
jne 0x422db4
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x22]
mov edx, dword [ebp - 0x28]
cmp eax, dword [edx + 4]
jl 0x422db4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00404364
jmp 0x422f08
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x22]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 4]
cdq
idiv ecx
mov dword [ebp - 0x1c], edx
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x2a]
push eax
call sub.kernel32.dll_SetFilePointer
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x422e34
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x2a]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax + 0x2a], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
call fcn.0040341c
push eax
call sub.kernel32.dll_CreateFileA
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x2a], eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x2a]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp - 0x1c]
cdq
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
cdq
cmp edx, dword [esp + 4]
jne 0x422e65
cmp eax, dword [esp]
pop edx
pop eax
jae 0x422ee5
jmp 0x422e69
pop edx
pop eax
jge 0x422ee5
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x2a]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x1d], 0
je 0x422ed8
push 0
push 0
push 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x2a]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x2a]
push eax
call sub.kernel32.dll_ReadFile
jmp 0x422eff
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
call fcn.00404364
jmp 0x422eff
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x2a]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
add dword [edx + 0x22], eax
mov esp, ebp
pop ebp
ret