joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b290
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000f5db
mov eax, dword fs:[0]
push eax
sub esp, 0xf44
mov eax, dword [0x10016034]
xor eax, esp
mov dword [esp + 0xf3c], eax
mov eax, dword [0x10016034]
xor eax, esp
push eax
lea eax, [esp + 0xf48]
mov dword fs:[0], eax
push str.SoftwareCyberlinkBoomerang
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0x10], vtable.BaseReg.0
mov dword [esp + 0x514], 0x80000001
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
push str.DumpMSG
lea eax, [esp + 0x418]
push 0x80
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0x18
mov dword [esp + 0x50c], 1
mov dword [esp + 4], vtable.BoolReg.0
mov dword [esp + 0x510], 0
lea eax, [esp + 0x510]
push eax
sub esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0xf5c], 0
call fcn.1000ab70
test eax, eax
je 0x1000b3db
cmp dword [esp + 0x50c], 0
je 0x1000b369
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
call dword [eax]
cmp dword [esp + 0x510], 0
je 0x1000b3db
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [esp + 0xb34]
push 0x208
push eax
call dword [sym.imp.MSVCR110.dll_vswprintf_s]
xor eax, eax
push 0x616
push eax
mov word [esp + 0x52c], ax
lea eax, [esp + 0x52e]
push eax
call sub.MSVCR110.dll_memset
lea eax, [esp + 0xb48]
push eax
push 0x100132a4
lea eax, [esp + 0x538]
push 0x30c
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x2c
lea eax, [esp + 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0xf48]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0xf3c]
xor ecx, esp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
Function at 0x1000b670
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10016034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov dword [ebp - 0x214], ebx
test esi, esi
jne 0x1000b6ad
push 0x208
lea eax, [ebp - 0x20c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea esi, [ebp - 0x20c]
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0
push 0x1001075c
mov ecx, ebx
mov edi, eax
call fcn.100099b0
test edi, edi
je 0x1000b762
push edi
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new___unsigned_int_]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000b762
push ebx
push edi
push dword [ebp - 0x218]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x100132a0
push ebx
mov dword [ebp - 0x21c], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
movzx eax, cx
push eax
movzx eax, dx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push 0x100132d8
push dword [ebp - 0x214]
call fcn.1000a6a0
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1000d9da
mov esp, ebp
pop ebp
ret

Function at 0x1000c1b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f548
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10016034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x800
or eax, edx
jge 0x1000c201
push 0x800
call fcn.10009f30
push edi
push 0x800
push dword [esi]
push 0x1001075c
push 0x100133d8
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
test eax, eax
jne 0x1000c228
xor ecx, ecx
jmp 0x1000c23b
push dword [eax - 8]
push eax
call dword [sym.imp.MSVCR110.dll_wcsnlen]
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1000c28f
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x1000c28f
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], edx
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
setne bl
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000c27b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10001230
int3
Function at 0x1000c8a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10016034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x118]
push eax
xor ebx, ebx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
dec eax
je 0x1000c9dd
dec eax
jne case.default.0x1000c8f1
mov eax, dword [ebp - 0x114]
dec eax
cmp eax, 5
ja case.default.0x1000c8f1
jmp dword [eax*4 + 0x1000ca34]
mov ebx, 5
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov ebx, 6
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x1000c95e
dec eax
je 0x1000c948
mov ebx, 9
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov ebx, 8
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov ebx, 7
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x1000c9b1
dec eax
je 0x1000c99b
dec eax
jne case.default.0x1000c8f1
mov ebx, 0xc
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov ebx, 0xb
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov ebx, 0xa
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov ebx, 0xd
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x1000ca1e
cmp eax, 0xa
je 0x1000ca08
xor ebx, ebx
cmp eax, 0x5a
setne bl
add ebx, 3
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov ebx, 2
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
mov ebx, 1
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1000d9da
mov esp, ebp
pop ebp
ret
Function at 0x40d59f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407300
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d63a
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x418bd4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40d63a
cmp eax, 1
je 0x40d65b
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d63a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40d607
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40d636
xor eax, eax
inc eax
jmp 0x40d67a
cmp edi, eax
jae 0x40d63e
xor eax, eax
jmp 0x40d67a
cmp eax, esi
jae 0x40d645
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x418bd4]
jmp 0x40d65e
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x518904aa
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2d364e6
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x13355fd6
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x270070
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x45b01e
Capabilities:
Encode data using xor

Disassembly:
jmp 0x471e66
push edi
mov edi, dword [esp + 0x14]
lea ecx, [esp + 8]
call fcn.0045c10d
test eax, eax
je 0x471ef3
push esi
xor esi, esi
cmp dword [esp + 0x1c], esi
jbe 0x471ef2
push ebx
push ebp
mov ebx, 0x45649c
mov ebp, 0x588418
mov al, byte [edi + esi]
xor al, 0x73
push ebx
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebp
mov byte [edi + esi], al
call fcn.00458d6e
pop ecx
pop ecx
mov ecx, eax
call fcn.0045cccf
mov al, byte [edi + esi]
push ebx
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebp
mov byte [edi + esi], al
call fcn.00458d6e
pop ecx
pop ecx
mov ecx, eax
call fcn.0045cccf
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x5165e4
mov byte [edi + esi], al
call fcn.0045818e
xor byte [edi + esi], al
inc esi
pop ecx
cmp esi, dword [esp + 0x24]
jb 0x471e8d
pop ebp
pop ebx
pop esi
lea ecx, [esp + 8]
call fcn.00459b7e
pop edi
ret 0x14

Function at 0x45b933
Capabilities:
Parse pe header

Disassembly:
jmp 0x4a1780
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a17bf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a17bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a17bf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4a17bf
cmp dword [ecx + 0x74], 0xe
jbe 0x4a17bf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x49f952
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004590fc
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x49f991
sub eax, 1
je 0x49f98c
sub eax, 1
je 0x49f988
xor eax, eax
leave
ret
push 3
jmp 0x49f993
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4f6c36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00457108
mov eax, dword [0x5851c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0045c176
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f6c78
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f6dd4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045c2fc
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x589a20]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00458ab7
mov ecx, dword [esi*4 + 0x589a20]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4f6dcd
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f6dcd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f6dcd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00458ab7
add esp, 0x14
test edx, edx
jl 0x4f6dcd
jg 0x4f6d43
test eax, eax
jb 0x4f6dcd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f6dcd
jl 0x4f6d5d
cmp dword [ebp - 0x1008], eax
ja 0x4f6dcd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f6d7b
test ebx, ebx
je 0x4f6db4
cmp ecx, edi
jae 0x4f6db4
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f6d95
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f6da1
cmp byte [ecx + 1], 0xa
jne 0x4f6da1
inc ecx
jmp 0x4f6da1
movzx eax, al
movsx eax, byte [eax + 0x585530]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f6d7b
cmp edx, ebx
jne 0x4f6d7b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f6dd2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045880f
leave
ret
Function at 0x4f6fd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x589a20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f7019
cmp byte [ebx], 0xa
jne 0x4f7019
or byte [eax + edi + 0x28], 4
jmp 0x4f701e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4f711c
mov al, byte [edx]
cmp al, 0x1a
je 0x4f70fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4f704d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4f7072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4f707c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4f702f
jmp 0x4f711c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f70f9
cmp dword [ebp - 0xc], 0
je 0x4f70f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x589a20]
test byte [eax + edi + 0x28], 0x48
je 0x4f70d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f70be
mov byte [esi], dl
jmp 0x4f70cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x589a20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f711c
cmp byte [ebp - 1], 0xa
jne 0x4f70e2
cmp esi, ebx
jne 0x4f70e2
mov byte [esi], 0xa
jmp 0x4f711b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00456ba4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f711c
mov byte [esi], 0xd
jmp 0x4f711b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x589a20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f7118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f711c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f7178
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x589a20]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f71bb
cmp word [esi], dx
jne 0x4f71bb
or byte [edi + eax + 0x28], 4
jmp 0x4f71c0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4f7313
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4f72f3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4f7202
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f7238
cmp eax, edx
jae 0x4f7244
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4f71da
jmp 0x4f7313
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f72ef
cmp dword [ebp - 0x14], 0
je 0x4f72ef
mov eax, dword [ebx*4 + 0x589a20]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4f72c7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4f7290
mov word [esi], cx
jmp 0x4f72c3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x589a20]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x589a20]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x589a20]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4f7313
pop ebx
cmp word [ebp - 4], bx
jne 0x4f72d8
cmp esi, dword [ebp + 0xc]
jne 0x4f72d8
mov word [esi], bx
jmp 0x4f7310
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00456ba4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4f7313
push 0xd
jmp 0x4f730c
mov ecx, dword [ebx*4 + 0x589a20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f730a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f7313
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4fa1b4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5851c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4fa1ff
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004fa676
test al, al
jne 0x4fa1f9
sub edx, 2
cmp edx, edi
jne 0x4fa1df
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4fa221
lea eax, [edi + 2]
cmp edx, eax
je 0x4fa221
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004f9dad
add esp, 0x10
jmp 0x4fa31b
push esi
lea ecx, [ebp - 0x255]
call fcn.004fa676
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4fa264
push dword [ebp - 0x25c]
jmp 0x4fa211
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4fa2a1
cmp word [ebp - 0x226], 0
je 0x4fa2c2
cmp word [ebp - 0x226], ax
jne 0x4fa2a1
cmp word [ebp - 0x224], 0
je 0x4fa2c2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004f9dad
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4fa30e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4fa27b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4fa2f6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4fa31b
push 0x4f9795
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0045b64f
add esp, 0x10
jmp 0x4fa2eb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045880f
leave
ret