joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54b4e4
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov ebp, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x18], ebp
call fcn.005f6eb0
push dword [edi + 0x40]
mov dword [esp + 0x20], eax
call fcn.005f6eb0
mov dword [esp + 0x10], eax
call fcn.005c1b70
mov esi, eax
test esi, esi
je 0x54b642
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x54b62d
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x54b556
push 1
push 0x34
push esi
call fcn.005c4ac0
add esp, 0xc
mov eax, dword [0x672708]
test eax, eax
je 0x54b56e
push eax
push 0x2714
push esi
call fcn.005c4ac0
add esp, 0xc
mov eax, dword [0x67270c]
test eax, eax
je 0x54b59f
cmp dword [0x672710], ebx
je 0x54b59f
push eax
push 0x27bf
push esi
call fcn.005c4ac0
push dword [0x672710]
push 0x27c0
push esi
call fcn.005c4ac0
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push esi
call fcn.005c4ac0
push dword [esp + 0x1c]
push 0x2722
push esi
call fcn.005c4ac0
push 0x54b67b
push 0x4e2b
push esi
call fcn.005c4ac0
push edi
push 0x2711
push esi
call fcn.005c4ac0
push dword [edi + 0x28]
push 0x9c
push esi
call fcn.005c4ac0
push dword [edi + 0x2c]
push 0x9b
push esi
call fcn.005c4ac0
add esp, 0x48
push 1
push 0x63
push esi
call fcn.005c4ac0
push esi
call fcn.005c1c10
add esp, 0x10
test eax, eax
jne 0x54b618
cmp dword [edi + 4], 0xfffffffb
je 0x54b618
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x54b62d
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.005c1b30
pop ecx
cmp ebx, 1
jne 0x54b642
mov dword [edi + 4], 0xfffffffe
jmp 0x54b651
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push dword [esp + 0x1c]
call fcn.005f6ea0
push dword [esp + 0x10]
call fcn.005f6ea0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x54bae2
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebx
push edi
push dword [0x673f00]
xor edi, edi
call fcn.00559421
mov ebx, eax
cmp dword [esp + 0x10], edi
je 0x54bbd6
push ebp
push esi
push 0x60
push 8
push dword [0x6720e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [esp + 0x18]
mov esi, eax
xor ebp, ebp
inc ebp
or dword [esi + 4], 0xffffffff
mov dword [esi], ebp
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 8], eax
mov dword [esp], str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
call sub.MSVCRT.dll__wcsdup
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], eax
test cl, 1
je 0x54bbc4
test ebx, ebx
je 0x54bb8e
push ebx
push edi
push dword [0x6720e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x54bb89
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x54bbbb
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x54bbdd
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x54bbb3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x54bbb7
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x54bbd2
push esi
call fcn.0054ae32
pop ecx
jmp 0x54bbd4
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x48], eax
call fcn.0054b6bd
pop ecx
mov edi, esi
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
ret 0x18

Function at 0x54c5ea
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x54c539
push 0x10
push 0x2c
call fcn.00559b34
push 0
push 0
push 8
mov dword [0x67271c], eax
call fcn.0055948c
cmp word [0x672714], 0
mov dword [0x673f0c], eax
jne 0x54c6cf
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x54c642
mov word [0x672714], di
jmp 0x54c64a
xor eax, eax
mov word [0x672714], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x672730], eax
test eax, eax
je 0x54c6ce
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x60d89c
push eax
call esi
push 0x60d8a8
push dword [0x672730]
mov dword [0x672720], eax
call esi
push str.getnameinfo
push dword [0x672730]
mov dword [0x672724], eax
call esi
push str.WSAStringToAddressA
push dword [0x672730]
mov dword [0x672728], eax
call esi
cmp dword [0x672720], 0
mov dword [0x67272c], eax
pop esi
je 0x54c6ce
cmp dword [0x672724], 0
je 0x54c6ce
cmp dword [0x672728], 0
je 0x54c6ce
test eax, eax
je 0x54c6ce
mov dword [0x672718], edi
pop edi
add esp, 0x190
ret
Function at 0x54c7df
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x54c955
mov eax, dword [esp + 0x24]
dec eax
je 0x54c938
dec eax
jne 0x54c955
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0054c798
pop ecx
test eax, eax
je 0x54c896
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x54c859
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x54c934
dec ebx
je 0x54c930
dec ebx
je 0x54c90f
dec ebx
je 0x54c8c9
sub ebx, 4
jne 0x54c955
test edi, edi
jne 0x54c955
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x54c955
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x54c859
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x54c854
sub edi, 0
je 0x54c901
dec edi
je 0x54c8f3
dec edi
je 0x54c8e5
dec edi
jne 0x54c955
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x54c955
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x54c955
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x54c955
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x54c955
sub edi, 0
je 0x54c92c
dec edi
je 0x54c928
dec edi
jne 0x54c955
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x54c955
push 0x3c
jmp 0x54c954
push 0x32
jmp 0x54c954
push 0x14
jmp 0x54c954
push 5
jmp 0x54c954
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x54c952
cmp eax, 0xa
je 0x54c94e
cmp eax, 0x5a
jne 0x54c955
push 0x28
jmp 0x54c954
push 0x1e
jmp 0x54c954
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x54cac0
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x54cc08
xor ecx, ecx
cmp word [eax], cx
je 0x54cc08
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x54cb19
cmp eax, 3
jne 0x54cb53
cmp word [esp + 0xa], 0x3a
jne 0x54cb53
cmp eax, 2
jne 0x54cb37
lea eax, [esp + 8]
push 0x60d8fc
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x54cc08
push 0xfffffffffffffffe
pop edi
jmp 0x54cc08
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x54cb68
cmp ax, bx
jne 0x54cb72
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x54cb5b
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x54cbb1
test byte [esp + 0x21c], 0x10
je 0x54cb98
push 0xfffffffffffffffe
pop edi
jmp 0x54cba8
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x54cc06
cmp word [esp + 0x10], bp
jne 0x54cbbf
cmp word [esp + 0x12], bp
je 0x54cbde
cmp word [esp + 0x10], bx
jne 0x54cbcd
cmp word [esp + 0x12], bx
je 0x54cbde
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x54cc06
cmp word [esp + 0x12], ax
jne 0x54cc06
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x54cbf3
test al, 0x10
je 0x54cc06
jmp 0x54cc03
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x54cc06
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x54cc17
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x54cc8f
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x54cc70
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x54cc6d
cmp ecx, 0x5c
je 0x54cc6d
cmp ecx, 0x2f
jne 0x54cc7a
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x54cc5a
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x54cc91
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x54cd09
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x672748]
push esi
test eax, eax
jne 0x54cd2e
push fcn.0054ce36
push 0x10
push 0x258
call fcn.00559b34
mov dword [0x672748], eax
push dword [esp + 0xc]
push eax
call fcn.00559aa0
mov esi, eax
test esi, esi
je 0x54ce2f
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x54cd50
mov edi, 0x5f8008
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x54cd60
xor eax, eax
cmp word [ebx], ax
jne 0x54cd65
mov ebx, 0x60d900
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x6720e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x54ce16
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x54cdc6
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x54cdca
push 0x60d8fc
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x54cdca
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x54cdee
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x54ce04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x54ce02
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x6720e4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x54ce2d
cmp dword [esp + 0x14], 0xffffffff
je 0x54ce21
mov esi, dword [esp + 0x14]
push esi
push dword [0x672748]
call fcn.00559a12
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x54d2ca
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x54d2f3
test byte [esp + 8], 2
je 0x54d2e7
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x54d2f5
xor eax, eax
ret 8

Function at 0x54d306
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x54d31c
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x54d31f
or eax, 0xffffffff
ret 4

Function at 0x54d395
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x54d3b5
cmp dword [esp + 8], 0
je 0x54d3b5
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x54d3b7
xor eax, eax
ret 8

Function at 0x54d5c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x54d5fc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x54d810
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x54d875
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x54d86d
push dword [esp + 0x10]
push dword [0x673f10]
call fcn.00559a61
test eax, eax
je 0x54d863
cmp dword [eax + 4], 0
je 0x54d852
push edi
push esi
push eax
call fcn.0054e6c0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x54d880
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x54d988
cmp word [edx], 0
je 0x54d988
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x54d8ae
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x54d90d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x54d8e0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54d8c0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0054e6c0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54d8e0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.0054e7d0
mov edi, eax
test edi, edi
je 0x54d903
cmp dword [esi + 4], 0
je 0x54d95b
push dword [esp + 0x14]
push edi
push esi
call fcn.0054e6c0
push edi
push 0
push dword [0x6720e4]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x6720e4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x54d990
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x673f10]
call fcn.00559a61
test eax, eax
je 0x54d9ac
mov dword [esp + 4], eax
jmp fcn.0054d880
xor eax, eax
ret 0xc

Function at 0x54e0d0
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x673f10]
call fcn.00559a61
test eax, eax
je case.0x54e0fe.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x54e0fe.3
movzx ecx, byte [ecx + 0x54e208]
jmp dword [ecx*4 + 0x54e1f0]
cmp dword [eax + 4], 0
je 0x54e11b
push 2
push 0x60d964
push eax
call fcn.0054e6c0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x60d964
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x54e14a
push 3
push 0x60d044
push eax
call fcn.0054e6c0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x60d044
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x54e179
push 2
push 0x60d968
push eax
call fcn.0054e6c0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x60d968
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x54e1a8
push 4
push 0x60d96c
push eax
call fcn.0054e6c0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x60d96c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x54e1d7
push 4
push 0x60d974
push eax
call fcn.0054e6c0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x60d974
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
Function at 0x54e220
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x673f10]
call fcn.00559a61
test eax, eax
je 0x54e26b
cmp dword [eax + 4], 0
je 0x54e255
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.0054e5a0
movzx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x54e280
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x673f10]
call fcn.00559a61
test eax, eax
je 0x54e2cb
cmp dword [eax + 4], 0
je 0x54e2b5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.0054e5a0
movsx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x54e2e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push ebx
push dword [0x673f10]
mov dword [esp + 0x10], 0
call fcn.00559a61
mov ebp, eax
test ebp, ebp
je 0x54e43c
push esi
push edi
push ebx
call fcn.0054da20
cmp dword [ebp + 4], 0
mov esi, eax
mov edi, edx
je 0x54e32c
push 4
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.0054e5a0
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x54e347
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, 2
jl 0x54e375
lea edx, [esp + 0x18]
mov eax, 0xfeff
cmp word [edx], ax
jne 0x54e375
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.0054d6f0
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
pop ecx
ret 4
cmp ecx, 3
jl 0x54e3a6
lea edx, [esp + 0x18]
cmp word [edx], 0xbbef
jne 0x54e3a6
cmp byte [edx + 2], 0xbf
jne 0x54e3a6
add esi, 3
adc edi, 0
push edi
push esi
push ebx
call fcn.0054d6f0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret 4
cmp ecx, 2
jl 0x54e3d4
lea edx, [esp + 0x18]
mov eax, 0xfffe
cmp word [edx], ax
jne 0x54e3d4
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.0054d6f0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret 4
cmp ecx, 4
jl 0x54e427
lea eax, [esp + 0x18]
cmp dword [eax], 0xfeff
jne 0x54e400
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.0054d6f0
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
cmp dword [eax], 0xfffe0000
jne 0x54e427
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.0054d6f0
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret 4
push edi
push esi
push ebx
call fcn.0054d6f0
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4
Function at 0x54e450
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x673f10]
call fcn.00559a61
mov esi, eax
test esi, esi
je 0x54e4cf
cmp dword [esi + 4], 0
je 0x54e4a0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0054e5a0
test eax, eax
je 0x54e494
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54e4da
cmp dword [esp + 8], 0
je 0x54e4da
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x54e5a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x54e5c1
push esi
call fcn.0054d5c0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x54e635
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x54e622
dec ecx
je 0x54e60d
sub ecx, 2
je 0x54e5fa
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x54e67a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x54e69b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x54e6c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x54e7c7
cmp dword [esi + 0x14], 1
jne 0x54e70b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x54e788
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x54e773
dec eax
je 0x54e75c
sub eax, 2
je 0x54e747
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.0054d5c0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x54e7b5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x54e731
xor eax, eax
pop esi
add esp, 0xc
ret 0xc