joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e01b247
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.2e015dc1
and dword [ebp - 4], 0
cmp dword [0x2e022c68], 0
mov ebx, eax
jne 0x2e01b2f8
push 0x2e002d40
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x2e01b3a9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2e002d34
push edi
call esi
test eax, eax
je 0x2e01b3a9
push eax
call fcn.2e015d4f
mov dword [esp], 0x2e002d24
push edi
mov dword [0x2e022c68], eax
call esi
push eax
call fcn.2e015d4f
mov dword [esp], 0x2e002d10
push edi
mov dword [0x2e022c6c], eax
call esi
push eax
call fcn.2e015d4f
mov dword [esp], 0x2e002cf4
push edi
mov dword [0x2e022c70], eax
call esi
push eax
call fcn.2e015d4f
pop ecx
mov dword [0x2e022c78], eax
test eax, eax
je 0x2e01b2f8
push 0x2e002cdc
push edi
call esi
push eax
call fcn.2e015d4f
pop ecx
mov dword [0x2e022c74], eax
mov eax, dword [0x2e022c74]
cmp eax, ebx
je 0x2e01b350
cmp dword [0x2e022c78], ebx
je 0x2e01b350
push eax
call fcn.2e015dca
push dword [0x2e022c78]
mov esi, eax
call fcn.2e015dca
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x2e01b350
test edi, edi
je 0x2e01b350
call esi
test eax, eax
je 0x2e01b347
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x2e01b347
test byte [ebp - 0xc], 1
jne 0x2e01b350
or dword [ebp + 0x10], 0x200000
jmp 0x2e01b389
mov eax, dword [0x2e022c6c]
cmp eax, ebx
je 0x2e01b389
push eax
call fcn.2e015dca
pop ecx
test eax, eax
je 0x2e01b389
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x2e01b389
mov eax, dword [0x2e022c70]
cmp eax, ebx
je 0x2e01b389
push eax
call fcn.2e015dca
pop ecx
test eax, eax
je 0x2e01b389
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2e022c68]
call fcn.2e015dca
pop ecx
test eax, eax
je 0x2e01b3a9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x2e01b3ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2e145000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
push ecx
push edx
push ebx
push ebp
push esi
push edi
call 0x2e14500c
pop ecx
sub ecx, 0x8d00c
mov edx, 0
push ecx
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
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.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
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 0x1003475d
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.1003af70
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]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10032240
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.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
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 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
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.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.10032240
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10032240
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x409b3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f3f8
cmp edx, dword [eax]
je 0x409b5f
add eax, 8
inc ecx
cmp eax, 0x40f488
jl 0x409b50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f3f8]
jne 0x409c8d
mov eax, dword [0x411fa8]
cmp eax, 1
je 0x409c67
test eax, eax
jne 0x409b90
cmp dword [0x40f328], 1
je 0x409c67
cmp edx, 0xfc
je 0x409c8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409bc7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a360
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a4e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409c0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a4e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5f8
push edi
call sym.__set_sbh_threshold
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a360
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a370
lea eax, [ebp - 0xa0]
push 0x40d5d8
push eax
call fcn.0040a370
push dword [esi + 0x40f3fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a370
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b914
add esp, 0x2c
pop edi
jmp 0x409c8d
lea eax, [ebp + 8]
lea esi, [esi + 0x40f3fc]
push 0
push eax
push dword [esi]
call fcn.0040a4e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40c2d0
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0x10
push esi
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [sym.LeadDown2]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov dword [eax + 0x1b9], ecx
mov edx, dword [sym.LeadDown2]
mov dword [edx + 0x80], 0x411e7e
mov eax, dword [sym.LeadDown2]
add eax, 0xb4
push eax
push esi
call fcn.0040c410
add esp, 8
push 0x40f92f
call sub.F1A0RN63.DLL_Ordinal_616
call sub.F1A0RN63.DLL_Ordinal_1412
mov ecx, dword [sym.LeadDown2]
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [ecx + 0x8c], esi
jne 0x40c353
push esi
call fcn.0040cc20
test eax, eax
jne 0x40c353
push 3
call sub.F1A0RN63.DLL_Ordinal_210
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x24]
lea edx, [esp + 4]
push edx
push eax
push esi
call sub.F1A0RN63.DLL_Ordinal_7
test eax, eax
jne 0x40c38b
mov ecx, dword [esp + 0xc]
and ecx, 0xffff
push ecx
call sub.F1A0RN63.DLL_Ordinal_203
push eax
call sub.F1A0RN63.DLL_Ordinal_210
call sub.F1A0RN63.DLL_Ordinal_647
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x40c470
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40c9f0
mov dword [0x4126a0], eax
call esi
call fcn.0040cb80
push 0
call sub.F1A0RN63.DLL_Ordinal_310
push 0
call esi
mov eax, dword [0x4126a0]
test eax, eax
je 0x40c3d3
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov edx, dword [sym.LeadDown2]
xor eax, eax
pop esi
mov ax, word [edx + 0x72]
add esp, 0x10
ret 0x10

Function at 0x40cc50
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push str.F1a0dflt
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], sym.Itaketa.exe__PbMainWndProc
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], eax
call esi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40cc9e
push 0x7f00
push eax
call esi
mov dword [esp + 0x18], eax
push 4
mov dword [esp + 0x20], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], str.F1A0CLASS
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push eax
call dword [sym._MultiByteToWideChar_24]
neg ax
sbb eax, eax
pop esi
neg eax
add esp, 0x28
ret 4
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401443
pop dword [ebp - 0x34]
mov eax, 0x401443
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x8d4a2c21
add dword [ebp - 0x44], 0xc108192a
mov dword [ebp - 0x40], 0x2423a30c
add dword [ebp - 0x40], 0xe0fa939
mov dword [ebp - 0x3c], 0xc3d348ee
add dword [ebp - 0x3c], 0x8878fb40
mov dword [ebp - 0x38], 0x5235cf5d
sub dword [ebp - 0x38], 0x5235cf5d
lea eax, [ebp - 0x44]
push eax
mov eax, 0x3ca87170
sub eax, 0x3c67f0f8
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x586f066f
sub dword [ebp - 0x44], 0xe3fc9d19
mov dword [ebp - 0x40], 0x9a4d9b00
sub dword [ebp - 0x40], 0x58e1398b
mov dword [ebp - 0x3c], 0xcb56c756
sub dword [ebp - 0x3c], 0x67e75aea
mov dword [ebp - 0x38], 0x399ebe07
add dword [ebp - 0x38], 0xc66141f9
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xd657b236
add eax, 0x29e8ce46
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3c729
push 0
call eax
mov ecx, 0x7cfc3fb3
add ecx, 0x83041896
mov esi, eax
mov edx, 0x451400
add edx, dword [ebp - 0x34]
mov ebx, 0xc8b28e5a
mov dword [ebp - 0x24], 0x6e810642
mov edi, dword [edx]
sub dword [ebp - 0x30], 0xd8b949ad
xor edi, ebx
mov dword [ebp - 0x14], 0x7c18e2b5
mov dword [esi], edi
xor dword [ebp - 0x1c], eax
add esi, 4
add edx, 0x60317d93
sub edx, 0x60317d8f
loop 0x401554
add eax, 0x153f7
mov ebx, eax
add eax, 0x791045c2
add eax, 0x86efba43
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x1003dee5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1003def4
pop dword [ebp - 8]
mov eax, 0x1003def4
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xdeca38a9
add dword [ebp - 0x18], 0x6f880ca2
mov dword [ebp - 0x14], 0x76bce27
add dword [ebp - 0x14], 0x2ac77e1e
mov dword [ebp - 0x10], 0xf880701d
sub dword [ebp - 0x10], 0xac342bef
mov dword [ebp - 0xc], 0x66cf1d3d
sub dword [ebp - 0xc], 0x66cf1d3d
lea eax, [ebp - 0x18]
push eax
mov eax, 0x89498b0e
sub eax, 0x7944bc2e
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x69ba0358
add dword [ebp - 0x18], 0xab865fe
mov dword [ebp - 0x14], 0x24311bec
sub dword [ebp - 0x14], 0xe2c4ba77
mov dword [ebp - 0x10], 0x732187bb
add dword [ebp - 0x10], 0xf04de4b1
mov dword [ebp - 0xc], 0x61139b06
sub dword [ebp - 0xc], 0x61139b06
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x40afc2da
add eax, 0xcf550baa
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x43428
push 0
call eax
mov ecx, 0x5618
xor edi, edi
add edi, eax
mov ebx, 0x6429a983
add ebx, 0xabdc0a7d
add ebx, dword [ebp - 8]
mov edx, 0xcc71c8e4
xor dword [ebp - 4], edi
mov esi, dword [ebx]
sub dword [ebp - 4], 0x67a408cf
add esi, edx
sub dword [ebp - 4], ebx
mov dword [edi], esi
xor dword [ebp - 4], ebx
add edi, 4
add ebx, 4
loop 0x1003e007
add eax, 0x14b33
xor ebx, ebx
add ebx, eax
add eax, 0x42c03b0
sub eax, 0x42c03ab
mov ecx, 0x645eb13
sub ecx, 0xf645eb13
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x403cb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x403cbb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x403d77
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
sub edi, 1
jne 0x403cd0
pop edi
test esi, esi
je 0x403d9a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f8e0]
sub esi, 1
jne 0x403d80
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x404520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 0xc], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x40457c
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404564
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004293f9
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
xor edx, edx
xor ecx, ebp
div dword [ebp - 0xc]
pop edi
pop esi
pop ebx
call fcn.004293f9
mov esp, ebp
pop ebp
ret
Function at 0x4045c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x404605
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404600
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x404632
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x404616
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call sub.VCRUNTIME140.dll_memcpy
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x404650
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004293f9
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40463d
cmp byte [esi + 8], 0
je 0x40463d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004293f9
mov esp, ebp
pop ebp
ret
Function at 0x405d30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x405dd1
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d70
sub ecx, edx
sar ecx, 1
je 0x405db0
movzx eax, word [ebp + ecx*2 - 0x20e]
cmp eax, 0x2f
je 0x405d93
cmp eax, 0x5c
jne 0x405db0
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x405ed6
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405dd1
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x405ec6
push esi
mov esi, edi
mov ecx, edi
mov edx, eax
cmp dx, 0x2f
je 0x405df0
cmp dx, 0x5c
jne 0x405df2
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x405de4
cmp esi, edi
je 0x405e3d
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp esi, 0x208
jae 0x405ed6
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, ebx
mov word [ebp + esi - 0x20c], ax
call fcn.00405d30
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
mov word [ebp - 0x414], ax
test ebx, ebx
je 0x405e62
push 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call esi
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x414]
mov word [ebp - 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e74
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
lea eax, [ebp - 0x414]
lea eax, [eax + ecx*2]
push edi
push eax
call esi
xor eax, eax
add esp, 0xc
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x405ec6
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004293f9
mov esp, ebp
pop ebp
ret
call fcn.00429530
int3
Function at 0x406240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ae32
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x439008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x10], ecx
push 0x44c
call fcn.0042960a
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push 0x44c
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0x238], 0xffffffff
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [edi], 0
jne 0x40637d
cmp dword [edi + 4], 0xffffffff
jne 0x40637d
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4062f0
sub esi, ecx
sar esi, 1
movzx eax, word [edi + esi*2 + 0x242]
cmp eax, 0x5c
je 0x40631c
cmp eax, 0x2f
je 0x40631c
mov dword [edi + esi*2 + 0x244], 0x2f
push 0x20
call fcn.0042960a
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.004048d0
mov dword [edi], eax
test eax, eax
jne 0x406379
push ecx
mov ecx, edi
mov dword [0x4399b8], 0x200
call fcn.004063d0
xor eax, 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
xor eax, eax
jmp 0x406382
mov eax, 0x1000000
mov dword [0x4399b8], eax
test eax, eax
je 0x4063a7
push ecx
mov ecx, edi
call fcn.004063d0
xor eax, 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
push 8
call fcn.0042960a
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret