joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53576d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x10], 0
je 0x535782
mov eax, dword [ebp + 0x10]
and dword [eax], 0
cmp dword [ebp + 0xc], 0
jne 0x53578f
xor al, al
jmp 0x535869
cmp dword [ebp + 8], 0
jne 0x53579c
xor al, al
jmp 0x535869
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 0xffffffff
jne 0x5357ac
mov al, 1
jmp 0x535869
and dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
jne 0x5357f3
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x14]
test eax, eax
je 0x5357e8
mov eax, dword [ebp - 0x14]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
or dword [eax + 0x18], 0xffffffff
mov al, 1
jmp 0x535869
push dword [ebp - 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00519044
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0
je 0x535849
and byte [ebp - 0xd], 0
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
call fcn.004f24ac
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x535849
cmp dword [ebp + 0x14], 0
je 0x535845
push str.Aborted_by_application
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
call dword [eax + 0x14]
and byte [ebp - 1], 0
cmp dword [ebp + 0x10], 0
je 0x535857
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
mov al, byte [ebp - 1]
leave
ret 0x10
Function at 0x53b976
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xdc]
add ecx, 8
call fcn.0055420c
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x53ba37
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x53b9d2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xdc]
mov eax, dword [eax]
mov dword [ecx + 0x4c], eax
jmp 0x53b9dc
mov eax, dword [ebp - 0xdc]
and dword [eax + 0x4c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 3]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 2]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 1]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
push eax
push str._d._d._d._d
lea eax, [ebp - 0xd8]
push eax
call fcn.005913fc
add esp, 0x18
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0xdc]
add ecx, 0x2c
call fcn.004cf872
jmp 0x53ba45
mov ecx, dword [ebp - 0xdc]
add ecx, 0x2c
call fcn.004cd0cb
mov eax, dword [ebp - 0xdc]
and byte [eax + 0x48], 0
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
call fcn.0058cc82
leave
ret
Function at 0x53bf2a
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x53bf39
jmp 0x53bf6e
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
leave
ret 4

Function at 0x53d20f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
jne 0x53d225
xor al, al
jmp 0x53d324
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x53d240
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.00565be4
pop ecx
mov eax, dword [ebp - 0x14]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 0xc], 0
push dword [ebp + 8]
push 1
push 4
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
call fcn.00595e05
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x53d27b
xor al, al
jmp 0x53d324
push dword [ebp + 8]
push 1
push 4
mov eax, dword [ebp - 0x14]
add eax, 0xc
push eax
call fcn.00595e05
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x53d2a5
mov eax, dword [ebp - 0x14]
and dword [eax + 8], 0
xor al, al
jmp 0x53d324
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 0
jne 0x53d2b2
mov al, 1
jmp 0x53d324
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
shl eax, 1
shl eax, 2
push eax
call fcn.00565bb9
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax + 0xc]
push 8
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call fcn.00595e05
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0xc]
je 0x53d322
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.00565be4
pop ecx
mov eax, dword [ebp - 0x14]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
and dword [eax + 0xc], 0
xor al, al
jmp 0x53d324
mov al, 1
leave
ret 4
Function at 0x53da28
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0xffffffff
jne 0x53da41
xor al, al
jmp 0x53daf1
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0xffffffff
jne 0x53da7f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
xor al, al
jmp 0x53daf1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x10]
call fcn.004d1618
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
call fcn.004d28b5
mov ecx, dword [ebp + 0x10]
call fcn.0055420c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x53dab0
xor al, al
jmp 0x53daf1
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53dad4
xor al, al
jmp 0x53daf1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x53daef
xor al, al
jmp 0x53daf1
mov al, 1
leave
ret 0xc

Function at 0x53daf5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0xffffffff
jne 0x53db0e
xor al, al
jmp 0x53dbbd
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 8], 0xffffffff
jne 0x53db4c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
xor al, al
jmp 0x53dbbd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x10]
call fcn.004d1618
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
call fcn.004d28b5
mov ecx, dword [ebp + 0x10]
call fcn.0055420c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x53db7d
xor al, al
jmp 0x53dbbd
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53dba1
xor al, al
jmp 0x53dbbd
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
call fcn.004d174e
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov al, 1
leave
ret 0xc
Function at 0x545b31
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax + 4]
call fcn.00545b9e
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
and eax, 0xff
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
imul eax, eax, 0x8088405
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
shr eax, 0x18
mov byte [ebp + 8], al
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
call fcn.00545b9e
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
leave
ret 4

Function at 0x5463d6
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
mov eax, 0x5af5e8
call fcn.00591b5c
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004e80b6
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x60ec6c
mov eax, dword [ebp - 0x10]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
and byte [eax + 0x48], 0
mov eax, dword [ebp - 0x10]
and byte [eax + 0x49], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004cde9c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
and dword [eax + 0x68], 0
mov eax, dword [ebp - 0x10]
and byte [eax + 0x6c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.004cde9c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
and byte [eax + 0x8c], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x90], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x94], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x98], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x9c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.004d8514
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0xb4
call fcn.004d8514
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
and word [eax + 0xc8], 0
mov eax, dword [ebp - 0x10]
and byte [eax + 0xca], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xcc
call fcn.004cde9c
push 8
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x40
push eax
call fcn.0058ee10
add esp, 0xc
push 0x10
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x30
push eax
call fcn.0058ee10
add esp, 0xc
push 0x10
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x20
push eax
call fcn.0058ee10
add esp, 0xc
push 4
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call fcn.0058ee10
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x546762
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 0x48]
test eax, eax
je 0x54687a
and dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10
mov eax, dword [ebp - 0x28]
add eax, 0x30
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x6c4f6c
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
call fcn.004f24ac
mov ecx, dword [ebp - 0x28]
add ecx, 0xa0
call fcn.0055420c
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x5467c4
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x546810
push dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
add ecx, 0xa0
call fcn.004d8592
mov dword [ebp - 0x10], eax
and dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 8
mov ecx, dword [ebp - 0x10]
call fcn.00545e34
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x6c4f6c
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.004f24ac
jmp 0x5467bd
mov ecx, dword [ebp - 0x28]
add ecx, 0xb4
call fcn.0055420c
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x54682e
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x54687a
push dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
add ecx, 0xb4
call fcn.004d8592
mov dword [ebp - 0x18], eax
and dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 8
mov ecx, dword [ebp - 0x18]
call fcn.00545e34
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x6c4f6c
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
call fcn.004f24ac
jmp 0x546827
mov ecx, dword [ebp - 0x28]
add ecx, 0xa0
call fcn.0055420c
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x546898
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5468cb
push dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
add ecx, 0xa0
call fcn.004d8592
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.00546762
jmp 0x546891
mov ecx, dword [ebp - 0x28]
add ecx, 0xb4
call fcn.0055420c
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x5468e9
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x54691c
push dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
add ecx, 0xb4
call fcn.004d8592
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
call fcn.00546762
jmp 0x5468e2
mov al, 1
leave
ret 0xc
Function at 0x546922
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0x48]
test eax, eax
jne 0x546962
and dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10
mov eax, dword [ebp - 0x18]
add eax, 0x20
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x6c4f6c
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
call fcn.004f24ac
mov ecx, dword [ebp - 0x18]
add ecx, 0xa0
call fcn.0055420c
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x546980
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5469b3
push dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
add ecx, 0xa0
call fcn.004d8592
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
call fcn.00546922
jmp 0x546979
mov ecx, dword [ebp - 0x18]
add ecx, 0xb4
call fcn.0055420c
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x5469d1
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x546a04
push dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
add ecx, 0xb4
call fcn.004d8592
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
call fcn.00546922
jmp 0x5469ca
mov al, 1
leave
ret 0xc
Function at 0x546a0a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0xca]
test eax, eax
je 0x546a9f
mov ecx, dword [ebp - 0x20]
add ecx, 0xcc
call fcn.004cec35
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xcc
call fcn.004ccbf8
mov word [ebp - 0xc], ax
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x6c4f6c
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.004f24ac
push 0
lea eax, [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xc]
shl eax, 1
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x6c4f6c
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.004f24ac
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x20]
add ecx, 0xa0
call fcn.0055420c
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x546abd
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x546af0
push dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
add ecx, 0xa0
call fcn.004d8592
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.00546a0a
jmp 0x546ab6
mov ecx, dword [ebp - 0x20]
add ecx, 0xb4
call fcn.0055420c
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x546b0e
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x546b41
push dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
add ecx, 0xb4
call fcn.004d8592
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.00546a0a
jmp 0x546b07
mov al, 1
leave
ret 0xc
Function at 0x546b47
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x5af64c
call fcn.00591b5c
mov eax, 0x109c
call fcn.00591d60
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x10a8], ecx
lea ecx, [ebp - 0x7c]
call fcn.004d00b6
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10a8]
add ecx, 0x70
call fcn.0055420c
push eax
lea ecx, [ebp - 0x7c]
call fcn.004d0448
push 0
lea eax, [ebp - 0x7c]
push eax
call fcn.004d5a6a
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x546bc6
and dword [ebp - 0x1098], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004d018e
mov eax, dword [ebp - 0x1098]
jmp 0x546cfb
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x546bf8
and dword [ebp - 0x109c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004d018e
mov eax, dword [ebp - 0x109c]
jmp 0x546cfb
cmp dword [ebp - 0x18], 0xffffffff
jne 0x546c2c
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0x10a0], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004d018e
mov eax, dword [ebp - 0x10a0]
jmp 0x546cfb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1088], 0x1000
and dword [ebp - 0x80], 0
cmp dword [ebp - 0x14], 0
je 0x546cd0
and dword [ebp - 0x1094], 0
push 0
lea eax, [ebp - 0x1094]
push eax
push dword [ebp - 0x1088]
lea eax, [ebp - 0x1084]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1090], eax
cmp dword [ebp - 0x1090], 0
jne 0x546c81
jmp 0x546cd0
push 0
lea eax, [ebp - 0x108c]
push eax
push dword [ebp - 0x1094]
lea eax, [ebp - 0x1084]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x108c]
mov dword [ebp - 0x80], eax
push 0x6c4f6c
push dword [ebp - 0x108c]
mov ecx, dword [ebp + 0xc]
call fcn.004f24ac
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1094]
mov dword [ebp - 0x14], eax
jmp 0x546c40
push 0
push dword [ebp - 0x10]
call fcn.004e81eb
pop ecx
pop ecx
or dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x10a4], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.004d018e
mov eax, dword [ebp - 0x10a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x84]
xor ecx, dword [ebp + 4]
call fcn.0058cc82
leave
ret 8
Function at 0x546d17
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 0x48]
test eax, eax
jne 0x546de2
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 0x6c]
test eax, eax
je 0x546d51
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
call fcn.00546b47
mov dword [ebp - 0xc], eax
jmp 0x546d9a
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x90], 0
je 0x546d9a
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x94], 0
je 0x546d9a
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x94]
mov eax, dword [ebp - 0x28]
push dword [eax + 0x90]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x6c4f6c
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
call fcn.004f24ac
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x98], 0
je 0x546de2
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x98]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x6c4f6c
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
call fcn.004f24ac
mov ecx, dword [ebp - 0x28]
add ecx, 0xa0
call fcn.0055420c
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x546e00
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x546e33
push dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
add ecx, 0xa0
call fcn.004d8592
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.00546d17
jmp 0x546df9
mov ecx, dword [ebp - 0x28]
add ecx, 0xb4
call fcn.0055420c
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x546e51
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x546e84
push dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
add ecx, 0xb4
call fcn.004d8592
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
call fcn.00546d17
jmp 0x546e4a
mov al, 1
leave
ret 0xc