joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cf5b
Capabilities:
Access peb ldr_data

Disassembly:
inc esp
add eax, 0x244c8d00
adc byte [eax + 0xf8249c], cl
add byte [eax], al
call 0x4abee7
mov eax, dword [esi + 0x60]
pop ebp
test eax, eax
pop ebx
je 0x44cf7f
push str.MIME_Version:_1.0_r_nContent_type:_multipart_mixed__boundary_BOUNDARY__r_n
jmp 0x44cfa8
push str.MIME_Version:_1.0_r_nContent_type:_text_plain__charset_
lea ecx, [esp + 0x10]
call 0x4ac295
mov esi, dword [esi + 0x10]
push esi
call 0x498031
add esp, 4
lea ecx, [esp + 0xc]
push eax
call 0x4ac2ab
push str.__r_nContent_Transfer_Encoding:_base64_r_n
lea ecx, [esp + 0x10]
call 0x4ac2b9
push 0x48b294
lea ecx, [esp + 0x10]
call 0x4ac2c7
mov esi, dword [esp + 0xf8]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call 0x4abcbf
mov dword [esp + 0x34], 1

Function at 0x468046
Capabilities:
Execute syscall

Disassembly:
syscall
add byte [ecx + 0x56], dl
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x475cc0
and dword [ebp - 4], 0
call 0x4c91fc
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call 0x4c904a
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404770
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4047d6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403b14
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004029a0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4047c0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047dd
lea eax, [ebp - 0x10]
call fcn.004038b0
ret

Function at 0x407448
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x407ab0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x407585
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
test dword [ebp - 0x68000008], edx
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
mov byte [ebp - 0x760], 0xbd
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
mov byte [ebp - 0x750], 0x88
mov byte [ebp - 0x74f], 0x89
mov byte [ebp - 0x74e], 0x8d
mov byte [ebp - 0x74d], 0xd5
mov byte [ebp - 0x74c], 0x9f
mov byte [ebp - 0x74b], 0x97
mov byte [ebp - 0x74a], 0x97
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.00405a1a
pop ecx
invalid
test esp, edx
Function at 0x4017e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x408008]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x406214
push eax
lea eax, [esp + 0x10]
xor esi, esi
push eax
mov edi, ecx
mov dword [esp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x40189e
mov eax, dword [esp + 8]
test eax, eax
je 0x40189e
push eax
push 1
lea eax, [esp + 0x14]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x401891
mov eax, dword [esp + 0xc]
cmp eax, dword [edi]
jne 0x401891
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 4]
jne 0x401891
mov edi, dword [esp + 0x14]
add edi, 0xffffffe0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x401891
push dword [esp + 8]
push edi
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
jne 0x401886
lea eax, [esp + 0x10]
push eax
call fcn.00401760
jmp 0x401891
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor esi, esi
push dword [esp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004040f4
mov esp, ebp
pop ebp
ret 8
Function at 0x403ed0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40514d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x408008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
push 0x44
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x1c], 0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x403f6f
push 0x403080
lea esi, [eax - 4]
mov dword [ebp - 4], 0
push dword [esi]
push 0xc
push eax
call fcn.00404182
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.00404174
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov dword [edi + 0x30], 0
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0x34]
mov dword [edi + 0x34], esi
test esi, esi
jle 0x404089
xor ecx, ecx
mov dword [ebp - 0x20], esi
mov eax, esi
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0040416b
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x403fd8
push 0x403080
push 0x402fc0
push esi
mov dword [eax], esi
add eax, 4
push 0xc
push eax
mov dword [ebp - 0x14], eax
call fcn.00404297
mov eax, dword [ebp - 0x14]
jmp 0x403fda
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x34], 0
mov dword [edi + 0x30], eax
mov dword [ebp - 0x10], 0
jle 0x404089
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop word [eax + eax]
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0x30]
mov dword [ebp - 0x1c], edx
mov esi, dword [eax + 0x30]
add esi, ecx
mov dword [ecx + edx], 0
mov dword [ebp - 0x20], esi
mov al, byte [esi + 4]
mov byte [ecx + edx + 4], al
cmp byte [esi + 4], 0
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
je 0x40402f
mov dword [ecx + edx], eax
jmp 0x40406c
test eax, eax
je 0x40406c
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x404038
sub edi, ecx
lea eax, [edi + 1]
push eax
call fcn.0040416b
mov esi, eax
push edi
push dword [ebp - 0x18]
push esi
mov byte [esi + edi], 0
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov dword [ecx + edx], esi
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 5]
mov dword [ecx + edx + 5], eax
add ecx, 0xc
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp eax, dword [edi + 0x34]
jl 0x404000
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x38]
call fcn.004038d0
mov dword [edi + 0x38], eax
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 0x1001cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100df320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001cf80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1001cfb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1001cfb0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1001d0ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001cfd9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001d00d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1001d06c
sub eax, 1
je 0x1001d06c
sub eax, 2
jne 0x1001d0ab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10089af0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d08a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001d0ab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1001d0ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x402c00
pop dword [ebp - 0x30]
mov eax, 0x402c00
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xcaefca57
add dword [ebp - 0x40], 0x83627af4
mov dword [ebp - 0x3c], 0x1db8ccc8
add dword [ebp - 0x3c], 0x147a7f7d
mov dword [ebp - 0x38], 0xe849d16b
add dword [ebp - 0x38], 0x640272c3
mov dword [ebp - 0x34], 0x10dddcf2
sub dword [ebp - 0x34], 0x10dddcf2
lea eax, [ebp - 0x40]
push eax
mov eax, 0xfdab7fa8
sub eax, 0xfd6b0f44
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x3a729b74
add dword [ebp - 0x40], 0x39ffcde2
mov dword [ebp - 0x3c], 0x90df6fb6
sub dword [ebp - 0x3c], 0x4f730e41
mov dword [ebp - 0x38], 0x98a7ff8
add dword [ebp - 0x38], 0x59e4ec74
mov dword [ebp - 0x34], 0x617d54fa
sub dword [ebp - 0x34], 0x617d54fa
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x6c404985
sub eax, 0x6bffd8dd
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x32a9e
push 0
call eax
mov ecx, 0x9195cde2
sub ecx, 0x919595fc
mov edi, eax
mov ebx, 0xa8bbc688
add ebx, 0x57853978
add ebx, dword [ebp - 0x30]
mov esi, 0x4f82e32a
add esi, 0x1ab54b91
sub dword [ebp - 0x14], 0x577cc80
mov edx, dword [ebx]
xor edx, esi
mov dword [edi], edx
xor dword [ebp - 0x28], 0xd3b83aaa
add edi, 4
add ebx, 0xf7d43a57
add ebx, 0x82bc5ad
loop 0x402d1d
add eax, 0xdd35dbf
add eax, 0xf22d74ac
mov ebx, eax
add eax, 0x34752ea8
sub eax, 0x34752ea3
mov ecx, 0xb41a5f
add ecx, 0xff8be5a1
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x406010
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b5e1
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x49a0f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
push 0x23
lea eax, [ebp - 0x10]
push eax
call fcn.004184e0
add esp, 8
mov dword [ebp - 4], 1
push str.ASR8Settings
lea ecx, [ebp - 0x10]
call fcn.00406970
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x40609b
lea ecx, [ebp - 0x10]
call fcn.00401e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40609b
push 0
lea ecx, [ebp - 0x10]
call fcn.00401e10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.00401e10
push eax
call fcn.00406170
add esp, 4
push 0x491ce4
lea ecx, [ebp - 0x10]
call fcn.00406970
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x4060e5
lea ecx, [ebp - 0x10]
call fcn.00401e10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4060e5
push 0
lea ecx, [ebp - 0x10]
call fcn.00401e10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.00401e10
push eax
call fcn.00406170
add esp, 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401e80
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401f60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ca00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x40ca22
xor eax, eax
jmp 0x40cb17
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x40ca7d
cmp dword [ebp - 0x14], 0
jle 0x40ca7d
cmp dword [ebp - 0x14], 0x10000000
jae 0x40ca7d
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
jne 0x40ca7d
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40ca8c
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
add edx, 0x14
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x107
je 0x40caf4
cmp dword [ebp - 0x18], 0x10b
je 0x40cab2
cmp dword [ebp - 0x18], 0x20b
je 0x40cad3
jmp 0x40cb15
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
movzx edx, word [ebp + 0x10]
push edx
movzx eax, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c810
jmp 0x40cb17
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
movzx edx, word [ebp + 0x10]
push edx
movzx eax, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c880
jmp 0x40cb17
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
movzx edx, word [ebp + 0x10]
push edx
push 0x107
mov eax, dword [ebp + 8]
push eax
call fcn.0040c8f0
jmp 0x40cb17
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40cb20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
jne 0x40cb33
xor eax, eax
jmp 0x40cbbc
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x40cb47
xor eax, eax
jmp 0x40cbbc
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x14]
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
jmp 0x40cb72
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jae 0x40cbba
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x28
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x40cbb8
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x14]
cmp dword [ebp + 0x10], ecx
jae 0x40cbb8
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x28
add eax, dword [ebp - 8]
jmp 0x40cbbc
jmp 0x40cb69
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cd90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
add ecx, 0x10
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x415da0
Capabilities:
Check if file exists
Create directory
Get file attributes
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x48c8ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4ad128], eax
push str.RtlNtStatusToDosError
mov eax, dword [0x4ad128]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ad12c], eax
push str.ZwQueryInformationFile
mov ecx, dword [0x4ad128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ad13c], eax
push str.ZwCreateFile
mov edx, dword [0x4ad128]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ad134], eax
push str.RtlInitUnicodeString
mov eax, dword [0x4ad128]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ad130], eax
push str.ZwSetInformationFile
mov ecx, dword [0x4ad128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ad138], eax
mov edx, dword [ebp + 8]
push edx
push 0x208
push 0x4acf20
call fcn.00415bd0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x415e50
xor eax, eax
mov word [0x4acf20], ax
mov eax, 0x57
jmp 0x415e7b
push 0x4acf20
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415e79
push 0
push 0x4acf20
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415e79
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415e7b
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x417b00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47adb9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x49a0f4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
mov ecx, esi
mov dword [esp + 8], 0
call fcn.00406e10
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x417bab
push edi
mov ecx, esi
call fcn.00411a90
push 0
lea eax, [esp + 0x34]
push eax
push edi
push 0
mov ecx, esi
mov dword [esp + 0x40], edi
call fcn.00402530
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417ba2
cmp dword [esp + 0x30], edi
je 0x417bab
push 0
mov ecx, esi
call fcn.00411a90
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret
Function at 0x417d40
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x47b1f1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x49a0f4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x34]
xor edi, edi
mov dword [esp + 0x2c], edi
mov ecx, esi
mov dword [esp + 0x10], edi
call fcn.00406e10
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x417ddf
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
je 0x417ddf
push edi
push edi
lea edx, [esp + 0x1c]
push edx
mov edi, eax
call fcn.00417b00
add esp, 0xc
mov dword [esp + 0x2c], 1
push eax
mov ecx, esi
call fcn.00406eb0
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x14]
call fcn.004024d0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x4184e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47b651
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x49a0f4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov ecx, esi
mov dword [esp + 0x10], ebx
call fcn.00401e20
mov dword [esp + 0x1c], ebx
push 0x400
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 1
call fcn.00407480
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x28]
push 1
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00407550
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41856b
push ebx
lea ecx, [esp + 0x10]
call fcn.00407550
push eax
mov ecx, esi
call fcn.00401fd0
mov byte [esp + 0x1c], bl
lea ecx, [esp + 0xc]
call fcn.00407510
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret