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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x417b80
cmp dword [ebp + 0x14], edi
je 0x417b80
cmp ecx, edi
jne 0x417b87
call fcn.00415557
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0041412a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x417b9b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x417bbc
cmp ebx, 0xffffffff
je 0x417bab
push ebx
push edi
push ecx
call fcn.004155a0
add esp, 0xc
cmp esi, edi
je 0x417b68
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x417b68
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x417bd8
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x417bdf
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x417cd0
test word [esi + 0xc], 0x10c
je 0x417c33
mov eax, dword [esi + 4]
test eax, eax
je 0x417c33
jl 0x417d31
cmp ebx, eax
mov edi, ebx
jb 0x417c04
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x417cd8
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00413c31
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x417cc8
cmp ebx, dword [ebp - 0xc]
jb 0x417ca0
cmp dword [ebp - 0xc], 0
je 0x417c5d
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x417c52
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x417c59
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x417c68
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x417c68
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x417d04
push eax
push dword [ebp - 8]
push esi
call fcn.00417798
pop ecx
push eax
call fcn.004216d4
add esp, 0xc
test eax, eax
je 0x417d43
cmp eax, 0xffffffff
je 0x417d31
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x417cc8
push esi
call fcn.00420ff3
cmp eax, 0xffffffff
pop ecx
je 0x417d35
cmp dword [ebp - 4], 0
je 0x417d04
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x417be7
mov eax, dword [ebp + 0x14]
jmp 0x417b82
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x417cef
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004155a0
add esp, 0xc
call fcn.00415557
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x417b78
cmp dword [ebp + 0xc], 0xffffffff
je 0x417d1a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004155a0
add esp, 0xc
call fcn.00415557
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x417b78
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x417b82
or dword [esi + 0xc], 0x10
jmp 0x417d35
Function at 0x41b934
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x432e38]
je 0x41b94f
inc edi
cmp edi, 0x17
jb 0x41b940
cmp edi, 0x17
jae 0x41bacf
push ebp
push 3
call fcn.00422e12
cmp eax, 1
pop ecx
je 0x41ba9b
push 3
call fcn.00422e12
test eax, eax
pop ecx
jne 0x41b983
cmp dword [0x432b5c], 1
je 0x41ba9b
cmp ebx, 0xfc
je 0x41bace
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4360b0
push ebp
call fcn.004171da
add esp, 0xc
test eax, eax
je 0x41b9b9
push esi
push esi
push esi
push esi
push esi
call fcn.0041402e
add esp, 0x14
push 0x104
mov esi, 0x4360c9
push esi
push 0
mov byte [0x4361cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b9fd
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004171da
add esp, 0xc
test eax, eax
je 0x41b9fd
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041402e
add esp, 0x14
push esi
call fcn.00414d70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ba42
push esi
call fcn.00414d70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4363c4
push 0x42b164
sub ecx, eax
push ecx
push eax
call fcn.00418ce1
add esp, 0x14
test eax, eax
je 0x41ba42
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041402e
add esp, 0x14
jmp 0x41ba44
xor esi, esi
push 0x42b160
push ebx
push ebp
call fcn.00418c20
add esp, 0xc
test eax, eax
je 0x41ba64
push esi
push esi
push esi
push esi
push esi
call fcn.0041402e
add esp, 0x14
push dword [edi*8 + 0x432e3c]
push ebx
push ebp
call fcn.00418c20
add esp, 0xc
test eax, eax
je 0x41ba86
push esi
push esi
push esi
push esi
push esi
call fcn.0041402e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00422c55
add esp, 0xc
jmp 0x41bace
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41bace
cmp ebp, 0xffffffff
je 0x41bace
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x432e3c]
push dword [esi]
call fcn.00414d70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x422c55
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041ca45
xor ebx, ebx
cmp dword [0x43695c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x422d2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x422e0b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42b3ac
push edi
call esi
cmp eax, ebx
je 0x422e0b
push eax
call fcn.0041c9d7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43695c], eax
call esi
push eax
call fcn.0041c9d7
mov dword [esp], 0x42b388
push edi
mov dword [0x436960], eax
call esi
push eax
call fcn.0041c9d7
mov dword [0x436964], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418e3d
test eax, eax
pop ecx
pop ecx
je 0x422cf9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041402e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x422d2b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041c9d7
cmp eax, ebx
pop ecx
mov dword [0x43696c], eax
je 0x422d2b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041c9d7
pop ecx
mov dword [0x436968], eax
mov eax, dword [0x436968]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x422db0
cmp dword [0x43696c], ecx
je 0x422db0
push eax
call fcn.0041ca4e
push dword [0x43696c]
mov esi, eax
call fcn.0041ca4e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x422db0
cmp edi, ebx
je 0x422db0
call esi
cmp eax, ebx
je 0x422d7d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422d7d
test byte [ebp - 0x18], 1
jne 0x422db0
lea eax, [ebp - 0x10]
push eax
call fcn.00418e74
test eax, eax
pop ecx
je 0x422d98
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041402e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x422da7
or dword [ebp + 0x10], 0x200000
jmp 0x422deb
or dword [ebp + 0x10], 0x40000
jmp 0x422deb
mov eax, dword [0x436960]
cmp eax, dword [ebp - 8]
je 0x422deb
push eax
call fcn.0041ca4e
cmp eax, ebx
pop ecx
je 0x422deb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x422deb
mov eax, dword [0x436964]
cmp eax, dword [ebp - 8]
je 0x422deb
push eax
call fcn.0041ca4e
cmp eax, ebx
pop ecx
je 0x422deb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43695c]
call fcn.0041ca4e
cmp eax, ebx
pop ecx
je 0x422e0b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422e0d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426f19
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x432b60]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00426eae
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.004155a0
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 0x426f68
cmp dword [ebp - 0x1c], 5
jb 0x426f80
jmp 0x426f7c
cmp dword [ebp - 0x10], 1
jne 0x426f80
cmp dword [ebp - 0x1c], 4
ja 0x426f7c
jne 0x426f80
cmp dword [ebp - 0x18], 0
jbe 0x426f80
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42c4bc
call fcn.00426d9f
test eax, eax
jge 0x426fa1
mov byte [0x436a38], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414015
add ebp, 0x78
leave
ret
Function at 0x401f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f1b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401f52
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401f4e
jmp 0x401f40
cmp esi, eax
jae 0x401f52
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401f40
cmp esi, eax
jb 0x401f59
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404a50
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x568a7c
push eax
mov esi, ecx
call fcn.00513df1
mov ebx, eax
xor eax, eax
add esp, 8
cmp ebx, eax
jne 0x404a90
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513700
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [ebp - 0x808], eax
push edi
jmp 0x404ac0
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 1
push eax
call fcn.00514052
mov edi, eax
add dword [ebp - 0x808], edi
lea ecx, [ebp - 0x804]
push ecx
mov ecx, edi
call fcn.004047f0
add esp, 0x14
cmp edi, 0x800
jge 0x404ac0
push ebx
call fcn.005140dc
add esp, 4
mov ecx, esi
call fcn.00404920
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x808]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00513700
mov esp, ebp
pop ebp
ret
Function at 0x404dd0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538a18
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx - 0xc], 0
jne 0x404e3b
mov dword [ebp - 4], 0xffffffff
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, 0x104
or eax, edx
jge 0x404e5f
push 0x104
lea ecx, [ebp + 8]
call fcn.004024d0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005138e8
add esp, 8
test eax, eax
js 0x404f03
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x404f03
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404eb2
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x404e10
mov ecx, dword [ebp + 8]
push 0x5c
push ecx
call fcn.005144c4
add esp, 8
test eax, eax
jne 0x404ec9
or eax, 0xffffffff
jmp 0x404ece
sub eax, dword [ebp + 8]
sar eax, 1
push ecx
mov edx, esp
mov dword [ebp - 0x10], esp
push eax
push edx
lea ecx, [ebp + 8]
call fcn.00405db0
mov ecx, esi
call fcn.00404dd0
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x404e10
push 0x80070057
call fcn.004026c0
int3
Function at 0x4081c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5393e3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0041d72d
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [esi], vtable.CMemDCk.0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], vtable.CBitmap.0
mov byte [ebp - 4], 1
lea edi, [esi + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov dword [esi + 0x30], eax
cmp eax, ecx
je 0x408296
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041dcff
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
lea ebx, [esi + 0x10]
push eax
mov ecx, ebx
call fcn.0041dfd3
test ebx, ebx
je 0x408275
mov ebx, dword [ebx + 4]
mov ecx, dword [esi + 4]
push ebx
push ecx
call fcn.0041e064
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.0041d8af
jmp 0x4082a8
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408ca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x58bc40]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x7c]
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
dec eax
mov dword [esp + 8], ecx
fild dword [esp + 8]
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 4]
fidiv dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [ebx]
push esi
push edi
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0xc]
xor edi, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], edi
fstp dword [esp + 0x10]
test eax, eax
jle 0x408df5
fld dword [esp + 0x10]
fild dword [esp + 0xc]
fmul st(1)
call fcn.00516980
lea edx, [edi + 1]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
mov esi, eax
add esi, dword [ebx]
fmul st(1)
mov dword [esp + 0x24], esi
call fcn.00516980
mov ecx, dword [esp + 0x14]
add eax, dword [ebx]
dec ecx
mov dword [esp + 0x2c], eax
cmp edi, ecx
jne 0x408d51
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp eax, ecx
jl 0x408de1
mov edx, dword [esp + 0x28]
fstp st(0)
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
cmp esi, ecx
jge 0x408d81
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 8]
cmp eax, ecx
jle 0x408d90
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0xc]
test edx, edx
js 0x408e09
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x7c]
cmp edx, eax
jge 0x408e09
test edi, edi
js 0x408e09
cmp edi, eax
jge 0x408e09
mov eax, dword [ecx + 0x78]
mov esi, dword [eax + edi*4 + 4]
mov eax, dword [eax + edi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x16c]
push esi
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push eax
call edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 8]
je 0x408df5
fld dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], edi
cmp edi, dword [esp + 0x14]
jl 0x408d16
fstp st(0)
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00513700
mov esp, ebp
pop ebp
ret 0xc
call fcn.0041467d
int3
Function at 0x40c050
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40c057
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40c12d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568618]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568618]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568618]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568618]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568618]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568618]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568618]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x568618]
add ecx, 8
sub edx, 8
dec esi
jne 0x40c070
pop edi
test edx, edx
je 0x40c14a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x568618]
inc ecx
dec edx
jne 0x40c131
not eax
pop esi
ret

Function at 0x40c8d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x40c906
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c8fc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x40c917
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00518b60
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret

Function at 0x40c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40c973
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c96e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40c99e
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40c985
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.00518b60
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40c9b3
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40c9ad
cmp byte [esi + 8], 0
je 0x40c9ad
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x40ca50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x40ca97
cmp byte [esi + 1], 0
je 0x40ca9f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x40cab1
cmp byte [esi + 1], 0
je 0x40caa5
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x40cab9
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x40ca71
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x40cab9
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x40cacb
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00514519
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40cae5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x40cbf9
jmp 0x40cb09
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x40cb18
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x40cb2f
mov ebx, 0x404
cmp byte [esi], 0
je 0x40cb54
cmp byte [esi + 1], 0
je 0x40cbf9
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40cb57
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x40cb80
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cb7b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x40cba9
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x40cb91
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.00518b60
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x40cbf9
lea eax, [ebx - 3]
test eax, eax
jle 0x40cbed
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x40cbdf
cmp byte [eax + ecx + 1], 0x4b
jne 0x40cbdf
cmp byte [eax + ecx + 2], 5
jne 0x40cbdf
cmp byte [eax + ecx + 3], 6
je 0x40cbe5
test eax, eax
jg 0x40cbc0
jmp 0x40cbed
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x40cbf9
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x40cb00
mov eax, dword [ebp - 0x10]
push eax
call fcn.00513b49
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40df30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x58bc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40e01c
movzx eax, word [edi]
test ax, ax
je 0x40e01c
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x40df70
cmp ax, 0x5c
jne 0x40df72
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x40df64
cmp esi, edi
je 0x40dfae
sub esi, edi
sar esi, 1
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.005145ad
lea edx, [ebp - 0x20c]
push edx
xor ecx, ecx
push ebx
mov word [ebp + esi*2 - 0x20c], cx
call fcn.0040df30
add esp, 0x14
lea edx, [ebp - 0x414]
mov eax, ebx
sub edx, ebx
jmp 0x40dfc0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40dfc0
mov eax, edi
mov edx, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dfd3
lea edi, [ebp - 0x414]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40dff0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00513700
mov esp, ebp
pop ebp
ret