joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a823dad
Capabilities:
Encode data using base64

Disassembly:
push 8
mov eax, 0x2a8cf87b
call fcn.2a801426
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], 0x10
jb 0x2a823dce
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
jmp 0x2a823dd1
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ecx
mov byte [edi], cl
push ecx
mov eax, ebx
shl eax, 2
push 3
mov dword [ebp - 4], ecx
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x14], 1
add eax, ecx
push eax
mov ecx, edi
call fcn.2a83ed5f
cmp dword [edi + 0x14], 0x10
jb 0x2a823e0d
mov esi, dword [edi]
jmp 0x2a823e0f
mov esi, edi
xor eax, eax
test ebx, ebx
jle 0x2a823eb1
mov edx, dword [ebp - 0x10]
movzx ecx, byte [eax + edx]
shr ecx, 2
mov cl, byte [ecx + 0x2a8d3d90]
mov byte [esi], cl
mov cl, byte [eax + edx]
and cl, 3
shl cl, 4
inc eax
cmp eax, ebx
jge 0x2a823e44
mov dl, byte [eax + edx]
shr dl, 4
or cl, dl
mov edx, dword [ebp - 0x10]
movzx ecx, cl
mov cl, byte [ecx + 0x2a8d3d90]
mov byte [esi + 1], cl
cmp eax, ebx
jge 0x2a823e86
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
jb 0x2a823e5f
mov ecx, dword [ecx]
mov cl, byte [ecx + eax]
and cl, 0xf
shl cl, 2
inc eax
cmp eax, ebx
jge 0x2a823e78
mov dl, byte [eax + edx]
shr dl, 6
or cl, dl
mov edx, dword [ebp - 0x10]
movzx ecx, cl
mov cl, byte [ecx + 0x2a8d3d90]
mov byte [esi + 2], cl
jmp 0x2a823e8a
mov byte [esi + 2], 0x3d
add esi, 3
cmp eax, ebx
jge 0x2a823ea4
mov cl, byte [eax + edx]
and cl, 0x3f
movzx ecx, cl
mov cl, byte [ecx + 0x2a8d3d90]
mov byte [esi], cl
jmp 0x2a823ea7
mov byte [esi], 0x3d
inc esi
inc eax
cmp eax, ebx
jl 0x2a823e19
cmp dword [edi + 0x14], 0x10
jb 0x2a823ebb
mov eax, dword [edi]
jmp 0x2a823ebd
mov eax, edi
push 0
sub esi, eax
push esi
mov ecx, edi
call fcn.2a83ed5f
mov eax, edi
call fcn.2a801635
ret

Function at 0x2a827011
Capabilities:
Get hostname

Disassembly:
push 0x45c
mov eax, 0x2a8cfea0
call fcn.2a85a9c0
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
mov dword [ebp - 0x464], ebx
push eax
mov byte [ebp - 0x410], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x2a8270ae
push 0x8f
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], ebx
call fcn.2a83ed5f
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], ebx
call fcn.2a81bf9d
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.2a81bb58
push 0x2a90d9a8
lea eax, [ebp - 0x43c]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x45d]
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call fcn.2a83ed5f
mov eax, esi
call fcn.2a85aa2f
ret
Function at 0x2a82c0a7
Capabilities:
Connect socket
Resolve dns

Disassembly:
push 0xc0
mov eax, 0x2a8d0c81
call fcn.2a85a9c0
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp dword [ebx + 0x10004], 0xffffffff
mov dword [ebp - 0xc4], eax
je 0x2a82c0d3
call fcn.2a82c03c
push 0x10
xor edi, edi
lea eax, [ebp - 0x20]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 2
pop eax
push dword [ebp - 0xc4]
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x14], 0x10
mov word [ebp - 0x1e], ax
jb 0x2a82c105
mov eax, dword [esi]
jmp 0x2a82c107
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x2a82c192
cmp dword [esi + 0x14], 0x10
jb 0x2a82c11e
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
jne 0x2a82c17c
push 0x8c
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], edi
call fcn.2a83ed5f
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.2a81bf9d
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.2a81bb58
mov dword [ebp - 0x4c], vtable.Exceptions::SocketException.0
push 0x2a91016c
lea eax, [ebp - 0x4c]
push eax
call sub.MSVCR100.dll__CxxThrowException
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push edi
push 1
push 2
pop esi
push esi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x10004], eax
cmp eax, 0xffffffff
jne 0x2a82c1e4
push 0x8d
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], edi
call fcn.2a83ed5f
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], esi
call fcn.2a81bf9d
mov byte [ebp - 4], 3
jmp 0x2a82c15e
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x2a82c2a0
mov ecx, ebx
call fcn.2a82c03c
push 0x8e
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], edi
call fcn.2a83ed5f
movzx eax, word [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 4
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], edi
call fcn.2a83ed5f
lea eax, [ebp - 0xc0]
push eax
push str._port_
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 5
call fcn.2a83ed5f
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.2a80afb1
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xcc]
call fcn.2a81bf9d
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.2a81bb58
mov dword [ebp - 0x78], vtable.Exceptions::SocketException.0
push 0x2a91016c
lea eax, [ebp - 0x78]
jmp 0x2a82c176
call fcn.2a85aa2f
ret 8
Function at 0x2a83ed5f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x2a83ed6e
pop dword [ebp - 0xc]
mov eax, 0x51333b28
add eax, 0xd950b246
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x1d99bb64
add dword [ebp - 0x1c], 0x30b889e7
mov dword [ebp - 0x18], 0xdf3b9d1d
add dword [ebp - 0x18], 0x52f7af28
mov dword [ebp - 0x14], 0x678587e7
add dword [ebp - 0x14], 0xe4c6bc47
mov dword [ebp - 0x10], 0x517a27c6
sub dword [ebp - 0x10], 0x517a27c6
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xe07cf24e
add eax, 0x4a103f12
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xa8368566
sub dword [ebp - 0x1c], 0x33c41c10
mov dword [ebp - 0x18], 0x6092631a
add dword [ebp - 0x18], 0xe0d9fe5b
mov dword [ebp - 0x14], 0xa0caf15
add dword [ebp - 0x14], 0x5962bd57
mov dword [ebp - 0x10], 0x898a3fa3
sub dword [ebp - 0x10], 0x898a3fa3
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x47ac1
push 0
call eax
mov ecx, 0x49b7
mov ebx, eax
mov esi, 0x2a943600
add esi, dword [ebp - 0xc]
mov edi, 0xf545ef05
add edi, 0xe35ba922
xor dword [ebp - 4], 0xc14d5981
mov edx, dword [esi]
sub dword [ebp - 4], ebx
add edx, edi
add dword [ebp - 8], edx
mov dword [ebx], edx
sub dword [ebp - 4], 0x11d3056f
add ebx, 4
add esi, 4
loop 0x2a83ee7f
add eax, 0x2f51d765
add eax, 0xd0af424a
mov ebx, eax
add eax, 0x4835ce88
add eax, 0xb7ca317d
mov ecx, 0x428b2c70
sub ecx, 0x180b2c70
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x2a85a834
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x2a8d2de7
call fcn.2a801426
mov edi, ecx
push 0x44
pop ebx
push ebx
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call sub.MSVCR100.dll_memset
push 0x10
mov dword [ebp - 0x54], ebx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x2a85a87b
push 0x10
push esi
push ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, ebx
jmp 0x2a85a87d
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [edi + 0x28], eax
call fcn.2a858f47
push dword [edi + 0x28]
lea ecx, [ebp - 0x54]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.kernel32.dll_CreateProcessW]
call fcn.2a801635
ret

Function at 0x2a85cf60
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.2a85add0
mov eax, dword [0x2a919eec]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
test eax, eax
je 0x2a85cfc5
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x2a85cfc5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_vfprintf
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.2a801bd0
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call sub.MSVCR100.dll__vsnprintf
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.kernel32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x2a85d054
call fcn.2a83ed5f
test eax, eax
jle 0x2a85d054
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.2a801bd0
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.2a801bd0
add esp, 0x108
ret

Function at 0x2a85d0b0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x2a85d0d2
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x2a85d0c6
pop esi
movzx eax, cl
pop edi
ret
Function at 0x10069281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10069290
pop dword [ebp - 0x34]
mov eax, 0x1c65d389
sub eax, 0xc5f40f9
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x37ff6
push 0
mov eax, 0x1f3a939b
add eax, 0xf0cceb8d
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xcdd10edf
sub ecx, 0xcdd0c37c
mov ebx, eax
mov edx, 0xbfc88953
add edx, 0x503fa4ad
add edx, dword [ebp - 0x34]
mov edi, 0xa4d1fb05
add edi, 0xb167aad1
sub dword [ebp - 0x1c], ecx
mov esi, dword [edx]
xor dword [ebp - 4], ecx
sub esi, edi
mov dword [ebx], esi
sub dword [ebp - 0x14], 0x33018cff
add ebx, 0xc2be907a
sub ebx, 0xc2be9076
add edx, 4
loop 0x100692ef
add eax, 0xbf5964fd
sub eax, 0xbf58449e
xor ebx, ebx
add ebx, eax
add eax, 0xa54104d3
add eax, 0x5abefb32
mov ecx, 0x1ad3ab0e
sub ecx, 0xad3ab0e
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x405a69
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
mov esi, ecx
push dword [esi + 0x6c]
push 4
pop ebx
push ebx
push 0
push dword [esi + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
je 0x405a8f
xor al, al
jmp 0x405b0c
sub esp, 0x28
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_94705684943314e091474c52c41fcebe___void___.0
mov dword [eax + 4], esi
mov dword [eax + 0x24], eax
push dword [esi + 0x6c]
mov ecx, dword [esi]
call fcn.0041883c
and dword [ebp - 4], 0
lea eax, [esi + 0x48]
cmp dword [eax + 0x14], 8
jb 0x405ab9
mov eax, dword [eax]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [esi + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405b0a
cmp dword [ebp - 0xc], ebx
jne 0x405b0a
test eax, eax
jne 0x405b0a
mov eax, dword [ebp - 4]
cmp eax, 0x64
ja 0x405b0a
cmp eax, dword [esi + 0x74]
je 0x405b0a
cmp byte [esi + 0x70], 0
mov dword [esi + 0x74], eax
je 0x405b0a
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x405b12
mov edx, dword [ecx]
lea esi, [ebp - 0xc]
push esi
call dword [edx + 8]
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042014d
int3

Function at 0x40628b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x47b06c]
xor eax, esp
mov dword [esp + 0x20], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4062e3
lea ecx, [esp + 0xc]
call fcn.00415afb
and dword [esp + 8], 0
lea ecx, [esp + 8]
cmp dword [esp + 0x20], 0x10
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push ecx
push dword [esp + 0x24]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0xc]
call fcn.004052b7
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.00421f43
mov esp, ebp
pop ebp
ret 4
Function at 0x40b5da
Capabilities:
Copy file
Delete directory
Delete file

Disassembly:
push 0xa4
mov eax, 0x457e17
call fcn.0042298b
mov dword [ebp - 0xb0], ecx
push 6
pop ecx
mov esi, str.loader_ldir_
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
push 7
xor eax, eax
xor ecx, ecx
pop edx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov word [ebp - 0x60], cx
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov word [ebp - 0x48], ax
mov dl, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.004149c9
push 8
pop edi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], edi
cmovae eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x90]
call fcn.004025b4
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xa8]
call fcn.004025b4
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa8]
call fcn.00412378
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
mov bl, al
call fcn.0040279a
test bl, bl
jne 0x40b68f
xor ebx, ebx
jmp 0x40b76f
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040253a
mov esi, 0x46a854
push esi
call fcn.0043e0fa
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00402815
cmp dword [ebp - 0x7c], edi
lea ecx, [ebp - 0x90]
push dword [ebp - 0x80]
cmovae ecx, dword [ebp - 0x90]
push ecx
mov ecx, eax
call fcn.00402815
cmp dword [ebp - 0x34], edi
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x78]
cmovae ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x64], edi
cmovae eax, dword [ebp - 0x78]
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b74d
mov dword [ebp - 0xac], ebx
mov edx, dword [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 5
call fcn.0040e8b8
pop ecx
push eax
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xac]
call fcn.0041458c
pop ecx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 5
mov bl, al
call fcn.0040279a
mov esi, dword [ebp - 0xac]
test bl, bl
je 0x40b742
mov ecx, esi
call fcn.00414669
test esi, esi
je 0x40b74d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], edi
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x4c], edi
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x90]
call fcn.0040279a
lea ecx, [ebp - 0x78]
call fcn.0040279a
lea ecx, [ebp - 0x48]
call fcn.0040279a
lea ecx, [ebp - 0x60]
call fcn.0040279a
mov al, bl
call fcn.00422935
ret
Function at 0x40c1f9
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x47b06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
je 0x40c235
mov ecx, dword [edi]
push 0x1c
call fcn.0040a97f
movzx eax, ax
mov edx, eax
add edx, dword [edi]
test ax, ax
je 0x40c235
mov ecx, edx
call fcn.0040e7c7
lea esi, [edx + eax]
jmp 0x40c237
mov esi, ebx
mov ecx, dword [edi + 4]
push 0x1c
call fcn.0040a97f
movzx eax, ax
mov edx, eax
add edx, dword [edi + 4]
test ax, ax
je 0x40c25a
mov ecx, edx
call fcn.0040e7c7
lea edi, [edx + eax]
jmp 0x40c25c
mov edi, ebx
test esi, esi
je 0x40c28c
push ecx
push ecx
mov ecx, esi
call fcn.0040e7ce
test al, al
jne 0x40c28c
push 4
mov ecx, esi
call fcn.0040a97f
movzx eax, ax
test ax, ax
je 0x40c2a2
lea ecx, [esi + eax]
call fcn.0040eba0
mov edi, eax
mov eax, edx
jmp 0x40c2b0
push 4
mov ecx, edi
call fcn.0040a97f
movzx eax, ax
test ax, ax
je 0x40c2a2
lea ecx, [edi + eax]
jmp 0x40c281
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jg 0x40c2c1
jl 0x40c2bd
cmp edi, ebx
ja 0x40c2c1
mov al, 1
jmp 0x40c30e
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00414c33
cmp dword [eax + 0x14], 8
jb 0x40c2d7
mov eax, dword [eax]
push ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0040279a
test esi, esi
je 0x40c2bd
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
shrd ecx, eax, 0x14
shr eax, 0x14
cmp dword [ebp - 0x2c], eax
jb 0x40c30a
ja 0x40c30c
cmp edi, ecx
ja 0x40c30c
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421f43
mov esp, ebp
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x412272
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412284
shr eax, 4
and al, 1
ret
xor al, al
ret
Function at 0x412287
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x456c08
call fcn.0042298b
mov esi, ecx
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x41229f
mov edi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4122b2
shr al, 4
and al, 1
jmp 0x412328
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00414b6c
pop ecx
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x4122cd
mov ecx, dword [esi]
push dword [esi + 0x10]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
push eax
call fcn.00403165
add esp, 0x10
test al, al
jne 0x41231e
lea ecx, [ebp - 0x28]
call fcn.00412287
test al, al
je 0x41231e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41231c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41231e
mov ecx, esi
call fcn.0041226a
test al, al
je 0x41231e
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.0040279a
mov al, bl
call fcn.00422935
ret
Function at 0x4123c3
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x27c
mov eax, 0x458956
call fcn.0042298b
mov ebx, edx
mov dword [ebp - 0x284], ebx
mov esi, ecx
mov dword [ebp - 0x288], esi
and dword [ebp - 0x258], 0
xor eax, eax
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
and dword [ebp - 4], eax
mov edi, 0x105
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x412548
cmp eax, edi
jae 0x412548
push 0x200
lea ecx, [ebp - 0x268]
call fcn.004030bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
lea eax, [ebp - 0x250]
push eax
call fcn.0043e0fa
pop ecx
push eax
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x268]
call fcn.004027c7
push 0x46a854
call fcn.0043e0fa
pop ecx
push eax
push 0x46a854
lea ecx, [ebp - 0x268]
call fcn.00402815
push ebx
call fcn.0043e0fa
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x268]
call fcn.00402815
lea ecx, [ebp - 0x12]
mov ebx, edi
mov eax, ebx
xor edx, edx
push 0xa
pop ebx
div ebx
sub ecx, 2
mov ebx, eax
lea eax, [edx + 0x30]
mov word [ecx], ax
test ebx, ebx
jne 0x41248f
push ecx
lea eax, [ebp - 0x12]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.004053fb
mov byte [ebp - 4], 1
lea eax, [ebp - 0x280]
cmp dword [ebp - 0x26c], 8
lea ecx, [ebp - 0x268]
push dword [ebp - 0x270]
cmovae eax, dword [ebp - 0x280]
push eax
call fcn.00402815
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], bl
call fcn.0040279a
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
push ebx
cmovae eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41253a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x412529
mov ebx, dword [ebp - 0x284]
inc edi
jmp 0x41243a
xor eax, eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x41256a
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [ebp - 0x284], bl
jmp 0x412556
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [ebp - 0x284], al
push dword [ebp - 0x284]
lea eax, [ebp - 0x268]
mov ecx, esi
push eax
call fcn.00402935
lea ecx, [ebp - 0x268]
call fcn.0040279a
mov eax, esi
call fcn.00422935
ret

Function at 0x41257d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ecx + 0x14], 8
push edi
mov edi, edx
jb 0x412590
mov ecx, dword [ecx]
push 0x46b77c
push ecx
lea eax, [ebp - 4]
push eax
call fcn.00441045
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4125b1
call fcn.0044062d
mov eax, dword [eax]
jmp 0x412604
push esi
push 2
push 0
push dword [ebp - 4]
call fcn.00441462
push dword [ebp - 4]
call fcn.00440c65
add esp, 0x10
mov esi, eax
push dword [ebp - 4]
test esi, esi
jne 0x4125da
call fcn.0044110d
pop ecx
jmp 0x412601
call fcn.0044174d
pop ecx
push edi
push esi
mov ecx, edi
call fcn.00413dcd
push dword [ebp - 4]
push esi
push 1
push dword [edi]
call fcn.004420b8
push dword [ebp - 4]
call fcn.0044110d
add esp, 0x14
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x412d9c
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x458a54
call fcn.0042298b
mov esi, ecx
mov dword [ebp - 0x30], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x412dbc
xor eax, eax
jmp 0x412f1c
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x412dea
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x412dea
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x412f1c
cmp dword [esi + 0x4c], 0
je 0x412f1a
mov ecx, esi
call fcn.004137a8
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x412e1e
push dword [esi + 0x4c]
movsx eax, al
push eax
call fcn.00440c99
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x412f1a
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x29], al
mov dword [ebp - 0x14], 0xf
call fcn.0041368a
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x412f12
cmp eax, 1
jg 0x412ef5
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x412ec6
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.00441a53
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x412f12
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x29]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x412ef0
test edx, edx
jne 0x412e46
cmp dword [ebp - 0x18], 0x20
jae 0x412f12
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.00411753
jmp 0x412e43
mov ebx, dword [ebp + 8]
jmp 0x412f12
cmp eax, 3
jne 0x412f12
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call fcn.00440c99
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004052b7
mov eax, ebx
call fcn.00422935
ret 4