joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4378e0
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
push edi
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x437917
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.create_socket_failed__errno___d
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
xor eax, eax
push str.127.0.0.1
mov dword [esp + 0x12], eax
mov word [esp + 0x10], 2
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xfd2
mov dword [esp + 0x14], eax
mov word [esi + 0x18], 0xfd2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x14]
mov edi, dword [sym.imp.WS2_32.dll_bind]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
call edi
cmp eax, 0xffffffff
jne 0x4379f3
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0xc]
push 0x10
push eax
push ecx
mov word [esp + 0x1a], 0
call edi
cmp eax, 0xffffffff
jne 0x4379a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CreateListenSock__bind_0_port_failed__errno_d
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [esi + 0x14]
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4379e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CreateListenSock__getsockname_failed__errno_d
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0xe]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi + 0x18], ax
xor eax, eax
mov ax, word [esi + 0x18]
push eax
push str.CreateListenSock__web_syner_port_is__d
call fcn.00411930
mov cx, word [esi + 0x18]
add esp, 8
push ecx
mov ecx, esi
call fcn.00435830
test eax, eax
jne 0x437a33
xor edx, edx
mov dx, word [esi + 0x18]
push edx
push str.SaveListenPort_failed__port_d
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
mov eax, dword [esi + 0x14]
push 5
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x437a60
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.listen_failed__errno___d
call fcn.00411930
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x40a0e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10df0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x30], ebx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
mov dword [ebp - 0x20], ecx
sub eax, 0x10
mov dword [ebp - 0x2c], esi
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x14], xmm0
je 0x40a140
lea ecx, [ebp - 0x15]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00409d00
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ecx + 0x10]
push eax
push ebx
call fcn.004151b0
mov eax, dword [edi + 4]
sub esi, ebx
mov edx, dword [edi]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x20], esi
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp esi, ecx
jae 0x40a168
lea eax, [edx + esi]
jmp 0x40a199
jbe 0x40a19c
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x40a181
lea eax, [ebp - 0x15]
mov ecx, edi
push eax
push esi
call fcn.00409bd0
jmp 0x40a19c
sub esi, ecx
push esi
push 0
push dword [ebp - 0x1c]
call fcn.00415730
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x20]
mov dword [edi + 4], eax
add esi, 0xffffffff
js 0x40a1be
mov eax, esi
lea ecx, [ebp - 0x14]
and eax, 0xf
add ecx, eax
mov al, byte [ebx + esi]
mov dl, byte [ecx]
xor al, dl
mov byte [ecx], al
mov eax, dword [edi]
mov byte [esi + eax], dl
sub esi, 1
jns 0x40a1a1
test ebx, ebx
je 0x40a1eb
mov ecx, dword [ebp - 0x24]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x40a1e1
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a258
push ecx
push ebx
call fcn.0041407c
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
je 0x40a247
cmp byte [ecx], 0x4d
jne 0x40a247
cmp byte [ecx + 1], 0x5a
jne 0x40a247
sub esp, 0x18
mov esi, esp
push 0xd
push 0x10cf5d8
push esi
mov dword [esi], 0
mov dword [esi + 0x10], 0xd
mov dword [esi + 0x14], 0xf
call fcn.004151b0
add esp, 0xc
mov byte [esi + 0xd], 0
call fcn.0040f680
mov ecx, dword [edi]
mov eax, dword [edi + 4]
push 0x10a9f60
sub eax, ecx
push eax
push ecx
call fcn.004010f2
add esp, 0x24
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041408a
mov esp, ebp
pop ebp
ret
call fcn.00418e0f
int3

Function at 0x4113a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x414d61
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x10cf0bc]
test eax, eax
je 0x414da0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414da0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414da0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x414da0
cmp dword [ecx + 0x74], 0xe
jbe 0x414da0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42d7e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d80d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d80d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4033c0
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x40bcb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
push str.192.168.58.65
lea ecx, [esp + 0x10]
mov dword [esi + 0x98], eax
call sub.MFC42.DLL_CString::CString_1
push str.CCM_SW
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_1
push str.ofilmsw
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push 0
push 0x8000000
push 1
push eax
mov eax, dword [esi + 0x98]
push ecx
push 0x15
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x9c], eax
jne 0x4034a6
push 0x411290
push esi
call fcn.00402390
add esp, 8
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.0040b184
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.0040b184
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040b184
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push 0x411278
push esi
call fcn.00402390
add esp, 8
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.0040b184
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.0040b184
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040b184
mov ecx, dword [esp + 0x10]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x405790
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, dword [sym.imp.WININET.dll_FtpGetFileA]
push 0
push 0x802
mov eax, dword [esi + 0x94]
push 2
push 0
push eax
mov eax, dword [esi + 0x9c]
push str.Settting.ini
push eax
call edi
test eax, eax
jne 0x40580b
mov eax, dword [esi + 0x9c]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x4057d2
push eax
call ebx
mov eax, dword [esi + 0x98]
test eax, eax
je 0x4057df
push eax
call ebx
mov ecx, esi
call fcn.004033c0
test eax, eax
pop ebx
je 0x405835
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x9c]
push 0
push 0x802
push 2
push 0
push ecx
push str.Settting.ini
push edx
call edi
mov eax, dword [esi + 0x94]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push 0x200
push ecx
push 0
push edx
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
mov al, 1
pop esi
ret 8
pop edi
xor al, al
pop esi
ret 8
Function at 0x407c90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x407c9b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x407d9e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x40f004]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40f004]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40f004]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40f004]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40f004]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40f004]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40f004]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40f004]
xor eax, edx
inc ecx
dec edi
jne 0x407cb6
pop edi
test esi, esi
je 0x407dc0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40f004]
xor eax, edx
inc ecx
dec esi
jne 0x407da2
pop esi
pop ebx
not eax
ret

Function at 0x407dd0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x40f004]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x40f004]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x4087f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x408831
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408826
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x408844
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret
Function at 0x409360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp edi, ebx
jne 0x40937e
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x409390
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x40939e
push edi
call fcn.004097d0
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push edi
call fcn.00409160
add esp, 0x10
test eax, eax
je 0x4093c7
pop edi
pop esi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0x84
call ebp
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4093ea
pop edi
pop esi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call ebp
mov dword [esi], eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x409422
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x409470
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00408080
add esp, 4
test eax, eax
jne 0x409470
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x40949d
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x4094a9
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
mov ebp, dword [esp + 0x20]
neg cl
sbb ecx, ecx
lea ebx, [esi + 0x70]
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x78], 0x34567890
je 0x4094e9
mov al, byte [ebp]
test al, al
je 0x4094e9
push eax
push ebx
call fcn.00407dd0
add esp, 8
inc ebp
jne 0x4094d5
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x409920
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x409a02
cmp dword [ebp + 4], 0xffffffff
jne 0x409a02
push ebx
lea ebx, [ebp + 0x140]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + ebp + 0x13f]
cmp cl, 0x5c
je 0x409992
cmp cl, 0x2f
je 0x409992
mov edi, 0x4111b4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, 1
pop ebx
jne 0x4099be
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4099be
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call fcn.004085a0
add esp, 0x10
test eax, eax
jne 0x4099e1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00408ac0
add esp, 4
mov dword [ebp], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc
Function at 0x409f60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
push ebp
je 0x409f88
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409f88
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x218]
mov cl, byte [ebp]
test cl, cl
je 0x40a062
mov eax, ebp
mov edx, ebp
cmp cl, 0x2f
je 0x409fa8
cmp cl, 0x5c
jne 0x409faa
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x409f9e
push esi
cmp eax, ebp
push edi
je 0x409fec
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.00409f60
add esp, 8
test ebx, ebx
mov byte [esp + 0x10], 0
je 0x40a018
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x40a062
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x40a7a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40c07e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
push ebp
push esi
push edi
mov eax, dword [esp + 0x364]
mov dword [esp + 0x35c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a7f5
lea ecx, [esp + 0x364]
mov dword [esp + 0x35c], 0xffffffff
call fcn.0040b184
xor eax, eax
jmp 0x40a9a3
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x364]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x100]
push str._s.
push edx
mov byte [esp + 0x368], 1
call ebp
add esp, 0xc
lea eax, [esp + 0xfc]
lea ecx, [esp + 0x14]
push 0
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40a93b
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40a92f
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x360], 2
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x35c], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.0040b184
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x40]
test eax, eax
je 0x40a902
mov ecx, dword [esp + 0x364]
lea eax, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x1cc]
push str._s_s
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x1c8]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.0040a7a0
add esp, 4
jmp 0x40a92f
mov edx, dword [esp + 0x364]
lea ecx, [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x294]
push str._s_s
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x28c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40a841
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [esp + 0x364]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov byte [esp + 0x35c], 0
lea ecx, [esp + 0x14]
jne 0x40a982
call fcn.0040b3be
lea ecx, [esp + 0x364]
mov dword [esp + 0x35c], 0xffffffff
call fcn.0040b184
xor eax, eax
jmp 0x40a9a3
call fcn.0040b3be
lea ecx, [esp + 0x364]
mov dword [esp + 0x35c], 0xffffffff
call fcn.0040b184
mov eax, 1
mov ecx, dword [esp + 0x354]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x354
ret

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

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a9e7
test al, 0x10
je 0x40a9e7
lea ecx, [esp + 8]
mov esi, 1
call fcn.0040b184
mov eax, esi
pop esi
ret
lea ecx, [esp + 8]
xor esi, esi
call fcn.0040b184
mov eax, esi
pop esi
ret
Function at 0x40ad30
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40c120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov eax, dword [ecx - 8]
cmp eax, 2
jl 0x40af03
mov cl, byte [eax + ecx - 1]
cmp cl, 0x5c
jne 0x40ad9c
dec eax
lea ecx, [esp + 0x2c]
push eax
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.0040b184
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 8]
cmp eax, ebx
jle 0x40af03
push ecx
cmp eax, 3
mov ecx, esp
jg 0x40adf1
lea edx, [esp + 0x30]
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.0040a9c0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
je 0x40af0f
call fcn.0040b184
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x20
ret
lea eax, [esp + 0x30]
mov dword [esp + 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.0040a9c0
add esp, 4
cmp eax, ebx
je 0x40ae32
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040b184
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x20
ret
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.0040b184
mov edx, dword [esp + 8]
cmp dword [edx - 8], ebx
jle 0x40aef6
push ecx
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.0040ad30
add esp, 4
cmp eax, ebx
je 0x40aef6
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
lea ecx, [esp + 8]
dec esi
mov byte [esp + 0x24], bl
neg esi
sbb esi, esi
inc esi
call fcn.0040b184
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040b184
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x20
ret
lea ecx, [esp + 8]
mov byte [esp + 0x24], bl
call fcn.0040b184
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.0040b184
mov ecx, dword [esp + 0x1c]
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret