joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42032c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov esi, dword [ebp + 8]
test byte [ecx + 3], 2
je 0x420370
mov eax, dword [ecx + 0x17c]
cmp eax, 0x1f4
ja 0x420370
add eax, esi
push edi
push 0xb
push 0x448ab8
push eax
call fcn.0042d568
add dword [ebx + 0x17c], 0xb
add esp, 0x10
inc byte [esi + 0xb]
and word [ebx + 2], 0xfdff
lea eax, [ebx + 0x18]
xor edi, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + edi*4 + 4]
cmp word [ebx + 0x180], 0
mov edx, esi
mov dword [ebp - 0x20], eax
je 0x4203a5
mov ecx, dword [ebx + 0x17c]
lea edx, [esi - 2]
mov eax, ecx
xchg al, ah
add ecx, 2
mov word [esi - 2], ax
mov dword [ebx + 0x17c], ecx
mov ax, word [ebx + edi*2 + 0xb4]
mov word [esi], ax
cmp word [ebx], 0
je 0x4203fe
mov eax, dword [ebp - 0x1c]
mov ecx, 0x10
cmp word [eax], 0x17
mov eax, 0x1c
cmovne eax, ecx
push ecx
inc edi
push ecx
push eax
push dword [ebp - 0x1c]
push 0
push dword [ebx + 0x17c]
push edx
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_sendto]
movzx eax, word [ebx]
pop edx
pop ecx
cmp eax, edi
jle 0x4203fe
add dword [ebp - 0x1c], 0x1c
cmp word [ebx + 0x180], 0
je 0x420378
cmp dword [ebx + 0xc0], 0
je 0x420440
sub esp, 0xc
push 0x46e348
call fcn.0040366a
add esp, 0xc
push dword [ebx + 0x17c]
push esi
push dword [ebx + 0xc0]
call fcn.0041f0fc
add esp, 0x10
mov dword [ebx + 0xc0], 0
mov dword [0x46e348], 0
mov ecx, ebx
call fcn.004202c0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x42190f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
imul eax, esi, 0xa
cmp dword [ebp + 0xc], 0
lea edi, [eax + 7]
je 0x42192a
lea edi, [eax + 8]
mov edx, dword [edi*4 + 0x46d660]
mov eax, 1
test edx, edx
jle 0x421ab2
imul ebx, esi, 0x1c
cmp word [ebx + 0x46e222], 0
je 0x421ab2
mov dword [edi*4 + 0x46d660], 0
sub esp, 0xc
push edx
call fcn.0040bf04
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
movsx edx, word [ebx + 0x46e220]
mov eax, dword [sym.imp.WS2_32.dll_socket]
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x42198c
push ebx
push 6
push 1
jmp 0x421991
push ecx
push 0x11
push 2
push edx
call eax
mov ebx, eax
pop eax
test ebx, ebx
jns 0x4219ce
mov edi, dword [0x46447c]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
sub esp, 0xc
push eax
call fcn.004037a9
mov ebx, eax
call esi
push ebx
push eax
push str.IP_socket_error__d__s
push edi
call fcn.0040423a
add esp, 0x20
or eax, 0xffffffff
jmp 0x421ab2
imul esi, esi, 0x1c
sub esp, 0xc
push 4
push 0x42e4a4
push 4
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esi + 0x46e220]
mov dword [ebp - 0x2c], eax
add esp, 0xc
mov edx, 0x1c
cmp word [esi + 0x46e220], 2
mov eax, 0x10
cmovne eax, edx
push edx
push eax
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.WS2_32.dll_bind]
pop ecx
test eax, eax
je 0x421a71
mov ecx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [0x46447c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
call ecx
sub esp, 0xc
push eax
call fcn.004037a9
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
call ecx
mov edx, dword [ebp - 0x34]
push edx
push eax
push str.Error._Could_not_bind_socket.___d__s
push dword [ebp - 0x30]
call fcn.0040423a
add esp, 0x20
call fcn.0040e453
test eax, eax
jne 0x4219f5
sub esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffffe
add esp, 0xc
jmp 0x421ab2
cmp dword [ebp + 0xc], 0
jne 0x421aa3
sub esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xf0
push 4
push eax
push 4
push 0
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
mov dword [edi*4 + 0x46d660], ebx
mov eax, 1
jmp 0x421ab2
push eax
push eax
push 3
push ebx
call dword [sym.imp.WS2_32.dll_listen]
pop edx
pop ecx
jmp 0x421a95
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4234f0
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, dword [0x47a760]
cmp dword [ecx + 0xc], eax
jg 0x42350b
cmp dword [ecx + 4], 0
je 0x42350e
cmp dword [ecx + 0x10], 0
je 0x42350e
jmp fcn.0041fbac
xor eax, eax
ret
mov eax, 1
ret
Function at 0x423e38
Capabilities:
Get file size

Disassembly:
push ebp
lea eax, [ecx + 0x68]
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x24
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.0040357d
pop edx
pop ecx
test eax, eax
js 0x423fd4
mov dword [ebp - 0x20], eax
push esi
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push eax
lea eax, [edi + 0x14]
add eax, eax
push eax
call fcn.0042d4e4
add esp, 0x10
mov esi, eax
test eax, eax
je 0x423fd4
mov ecx, dword [ebp - 0x20]
push eax
push edi
push esi
push ecx
call fcn.00403603
mov ecx, dword [ebp - 0x20]
push eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + edi], 0
lea eax, [esi + edi + 8]
push edx
push edx
lea edx, [edi + 1]
push edx
push esi
push eax
mov dword [ebp - 0x20], eax
call fcn.0042d568
add esp, 0x20
mov edx, esi
mov eax, 1
mov cl, byte [edx]
test cl, cl
je 0x423ecd
cmp cl, 0xa
jne 0x423eca
inc eax
inc edx
jmp 0x423ebe
add eax, 3
sub esp, 0xc
imul eax, eax, 0x18
add eax, 0x38
push eax
call fcn.0042d4e4
add esp, 0x10
mov edi, eax
test eax, eax
jne 0x423ef6
push ebx
push dword [ebp - 0x1c]
push str.DNS:_No_enought_memory_to_load__s_r_n
jmp 0x423fc6
push ecx
mov ecx, eax
push 0
push dword [ebp - 0x20]
push 0
call fcn.00420d50
add eax, 0x10
push edx
push edx
push eax
call fcn.0042d4e4
add esp, 0xc
mov ecx, edi
push 0
push esi
push eax
call fcn.00420d50
push ecx
push ecx
push esi
call fcn.0042d4c8
add esp, 0x10
cmp dword [edi + 0x24], 6
jne 0x423f9f
mov esi, dword [edi + 0x34]
sub esp, 0xc
push esi
call fcn.0042d5c4
lea esi, [esi + eax + 1]
mov dword [esp], esi
call fcn.0042d5c4
lea eax, [esi + eax + 1]
mov ecx, dword [eax]
mov dword [ebx + 0x10], ecx
pop edx
push dword [eax + 4]
call fcn.0042da0c
add esp, 0x10
cmp eax, 0x13
ja 0x423f6a
mov dword [ebx + 0x14], 0x14
jmp 0x423f7a
cmp eax, 0x15180
mov ecx, 0x15180
cmova eax, ecx
mov dword [ebx + 0x14], eax
mov dword [ebx + 4], edi
sub esp, 0xc
add ebx, 0x18
push dword [ebx - 4]
push dword [ebp - 0x1c]
push ebx
push str.DNS:_domain__s_loaded_from_file__s_refresh_set_to__u_r_n
push dword [0x46447c]
call fcn.0040423a
add esp, 0x20
jmp 0x423fd4
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x423fb2
sub esp, 0xc
push eax
call fcn.0042d4c8
add esp, 0x10
sub esp, 0xc
push edi
call fcn.0042d4c8
add esp, 0xc
push dword [ebp - 0x1c]
push str.DNS:_Bad_domain_file__s_r_n
push dword [0x46447c]
call fcn.0040423a
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x423fdc
Capabilities:
Get file size

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
cmp dword [ebp + 8], 0
je 0x4241d7
push esi
push esi
push 0
push dword [ebp + 8]
call fcn.0040357d
mov edi, eax
pop eax
pop edx
test edi, edi
jns 0x42401e
push 0x10
push dword [ebp + 8]
push str.Unable_to_open_hosts_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4241d7
push ecx
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [eax + 0x14]
push ebx
add eax, eax
push eax
call fcn.0042d4e4
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x424005
push ecx
push esi
push eax
push edi
call fcn.00403603
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebx + esi], 0
lea eax, [ebx + esi + 8]
inc esi
push edx
push edx
push esi
push ebx
push eax
mov dword [ebp - 0x20], eax
call fcn.0042d568
mov dword [ebp - 0x1c], 1
add esp, 0x20
mov eax, ebx
mov dl, byte [eax]
test dl, dl
je 0x424085
cmp dl, 0xa
jne 0x424082
inc dword [ebp - 0x1c]
inc eax
jmp 0x424074
mov eax, ebx
xor esi, esi
push edx
push edx
push str._IF_
push eax
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x4240a1
inc esi
inc eax
jmp 0x424089
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
add eax, esi
imul eax, eax, 0x18
add eax, 0xb0
push eax
call fcn.0042d4e4
add esp, 0x10
mov edi, eax
test esi, esi
je 0x4240d2
mov esi, dword [ebp - 0x1c]
add esi, 2
imul esi, esi, 0x18
lea eax, [eax + esi + 0x38]
mov dword [0x47a52c], eax
push edx
mov ecx, edi
push dword [0x47a52c]
push dword [ebp - 0x20]
push 0
mov dword [0x47a768], 0
mov dword [0x47a76c], 0
call fcn.00420d50
add eax, 0x10
push ecx
push ecx
push eax
call fcn.0042d4e4
add esp, 0xc
push dword [0x47a52c]
mov ecx, edi
push ebx
mov esi, eax
push eax
call fcn.00420d50
push eax
push eax
push 0x47a534
call fcn.0040366a
mov eax, dword [0x47a770]
add esp, 0x10
mov dword [0x47a770], edi
test eax, eax
je 0x424142
sub esp, 0xc
push eax
call fcn.0042d4c8
add esp, 0x10
mov eax, dword [0x47a538]
test eax, eax
je 0x424157
sub esp, 0xc
push eax
call fcn.0042d4c8
add esp, 0x10
sub esp, 0xc
mov dword [0x47a538], esi
push ebx
mov dword [0x47a534], 0
call fcn.0042d4c8
mov eax, dword [edi + 8]
add esp, 0x10
mov dword [0x46d89c], eax
mov eax, dword [0x47a768]
test eax, eax
je 0x4241a8
mov ecx, dword [0x47a76c]
mov ebx, dword [0x46447c]
mov edx, 0x44816a
test ecx, ecx
je 0x42419c
mov edx, dword [ecx + 0x14]
push edx
push dword [eax + 0x14]
push str.Provders_DNS:__s__s
push ebx
jmp 0x4241b5
push eax
push eax
push str.No_providers_servers...
push dword [0x46447c]
call fcn.0040423a
mov ebx, dword [0x47a54c]
add esp, 0x10
test ebx, ebx
je 0x4241d2
mov ecx, ebx
call fcn.00423e38
mov ebx, dword [ebx]
jmp 0x4241c3
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4241df
Capabilities:
Create thread

Disassembly:
cmp dword [0x46d89c], 0
je 0x424273
push ebp
mov ebp, esp
sub esp, 0x24
push dword [0x46d8c4]
call fcn.00423fdc
add esp, 0x10
test eax, eax
je 0x42425c
push eax
push dword [0x46d89c]
push str.DNS:_Load_host_definetion_file.__u_hosts_now_are_loaded
push dword [0x46447c]
call fcn.0040423a
add esp, 0x10
cmp dword [0x47a52c], 0
jne 0x424230
cmp dword [0x47a54c], 0
je 0x424271
cmp dword [0x46e340], 0
jne 0x424271
lea eax, [ebp - 0xc]
push edx
push edx
push eax
push 0
push 0
push 0x423c61
push 0x8000
push 0x42e458
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
pop eax
jmp 0x424271
push eax
push eax
push str.Error_loading_host_definetion_file.
push dword [0x46447c]
call fcn.0040423a
add esp, 0x10
leave
ret
ret

Function at 0x424472
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
push dword [0x438f60]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x47a78c], eax
add esp, 0xc
test eax, eax
jne 0x424499
xor esi, esi
jmp 0x4245b3
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SecAccept
push eax
call ebx
pop esi
pop edx
mov dword [0x47a7a4], eax
test eax, eax
je 0x424492
push esi
push esi
push str.SecRecv
push dword [0x47a78c]
call ebx
pop edx
pop ecx
mov dword [0x47a7a0], eax
test eax, eax
je 0x424492
push esi
push esi
push str.SecSend
push dword [0x47a78c]
call ebx
pop edx
pop ecx
mov dword [0x47a79c], eax
test eax, eax
je 0x424492
push esi
push esi
push str.SecClose
push dword [0x47a78c]
call ebx
pop edx
pop ecx
mov dword [0x47a798], eax
test eax, eax
je 0x424492
push esi
push esi
push str.InitLib
push dword [0x47a78c]
call ebx
pop edx
pop ecx
mov dword [0x47a7a8], eax
test eax, eax
je 0x424492
push esi
push esi
push str.SecConnect
push dword [0x47a78c]
call ebx
push str.SecUpdateCB
mov dword [0x47a794], eax
push dword [0x47a78c]
call ebx
cmp dword [0x47a794], 0
pop edx
pop ecx
mov dword [0x47a790], eax
jne 0x42455b
mov dword [0x47a794], 0x424319
test eax, eax
jne 0x424569
mov dword [0x47a790], 0x424336
mov eax, dword [0x46d4c0]
mov esi, 1
test eax, eax
je 0x4245b3
cmp byte [eax], 0
je 0x4245b3
push edx
push edx
push str.SetPriority
push dword [0x47a78c]
call ebx
pop ecx
pop ebx
test eax, eax
je 0x42459e
sub esp, 0xc
push dword [0x46d4c0]
call eax
jmp 0x4245b0
push eax
push eax
push str.SetPriority_is_abcent_in_the_library_n
push dword [0x464474]
call fcn.0040423a
add esp, 0x10
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
Function at 0x4246ed
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x47a7b8]
test eax, eax
jne 0x424824
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
push dword [0x438f70]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x47a7bc], eax
add esp, 0xc
test eax, eax
je 0x424802
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.deflateInit2_
push eax
call ebx
push str.inflateInit2_
mov dword [0x47a7d0], eax
push dword [0x47a7bc]
call ebx
cmp dword [0x47a7d0], 0
pop edx
pop ecx
mov dword [0x47a7c4], eax
je 0x424802
test eax, eax
je 0x424802
push eax
push eax
push str.deflate
push dword [0x47a7bc]
call ebx
pop edx
pop ecx
mov dword [0x47a7d8], eax
test eax, eax
je 0x424802
push eax
push eax
push str.inflate
push dword [0x47a7bc]
call ebx
pop edx
pop ecx
mov dword [0x47a7d4], eax
test eax, eax
je 0x424802
push eax
push eax
push str.deflateEnd
push dword [0x47a7bc]
call ebx
pop edx
pop ecx
mov dword [0x47a7cc], eax
test eax, eax
je 0x424802
push ecx
push ecx
push str.inflateEnd
push dword [0x47a7bc]
call ebx
pop edx
pop ecx
mov dword [0x47a7c8], eax
test eax, eax
je 0x424802
push ecx
push ecx
push str.crc32
push dword [0x47a7bc]
call ebx
pop ebx
pop edx
mov dword [0x47a7c0], eax
test eax, eax
je 0x424802
push edx
push edx
push str.External_Zlib_library_has_been_loaded...
push 0x4644a0
inc dword [0x47a7b8]
call fcn.0040423a
add esp, 0x10
mov eax, 1
jmp 0x42481f
push eax
push eax
push str.Error_loading_Zlib_library_n
push 0x4644a0
call fcn.0040423a
dec dword [0x47a7b8]
add esp, 0x10
or eax, 0xffffffff
mov ebx, dword [ebp - 4]
leave
ret
ret

Function at 0x425531
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
push 0
push dword [0x438f94]
call fcn.0040357d
pop edx
pop ecx
test eax, eax
jle 0x4255f1
mov ebx, eax
push ecx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
mov ecx, eax
pop edi
test eax, eax
jle 0x4255e4
mov esi, 0x64
xor edx, edx
div esi
mov edi, edx
mov esi, eax
test edx, edx
jne 0x4255e4
mov dword [ebp - 0x1c], ecx
push eax
push ecx
push 8
push dword [0x452048]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x1c]
mov dword [0x47a814], eax
push ecx
push eax
push ebx
mov dword [0x47a808], ecx
call fcn.00403603
mov dword [ebp - 0x1c], 0
pop edx
mov eax, dword [0x47a814]
lea ecx, [edi + 0x64]
cmp dword [ebp - 0x1c], esi
jge 0x4255c2
lea edx, [eax + ecx]
inc dword [ebp - 0x1c]
mov dword [eax + edi], edx
mov edi, ecx
jmp 0x4255a8
imul edx, esi, 0x64
mov dword [eax + edx - 0x64], 0
lea eax, [esi + 1]
imul eax, eax, 0x64
add eax, dword [0x47a814]
mov dword [0x47a7f4], esi
mov dword [0x47a810], eax
sub esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4255f9
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ecx, 0x10
xor eax, eax
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x28]
push ebx
mov edi, esi
sub esp, 0x30
test edi, edi
je 0x425617
jecxz 0x425617
cld
rep stosb byte es:[edi], al
push 0x11
mov word [ebp - 0x28], 2
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
pop ebx
cmp eax, 0xffffffff
jne 0x42564b
push ecx
push ecx
push str.could_not_get_socket
push dword [0x464484]
call fcn.0040423a
add esp, 0x10
xor edx, edx
jmp 0x42572f
sub esp, 0xc
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
push 4
push 0x42e4a4
push 4
push 0xffff
push eax
call edi
push 4
push 0x42e4a4
push 0x20
push 0xffff
push ebx
call edi
lea eax, [ebp + 0xc]
push eax
call fcn.00412680
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
xchg al, ah
mov word [ebp - 0x26], ax
add esp, 0x10
push ecx
push 0x10
push esi
push ebx
call dword [sym.imp.WS2_32.dll_bind]
pop edx
test eax, eax
je 0x425705
mov ecx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [0x464484]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
call ecx
sub esp, 0xc
push eax
call fcn.004037a9
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
call ecx
mov edx, dword [ebp - 0x30]
mov dword [esp], edx
push eax
push dword [ebp + 8]
push str.Error._Could_not_bind_socket_to_port__u.___d__s
push dword [ebp - 0x2c]
call fcn.0040423a
add esp, 0x20
call fcn.0040e453
test eax, eax
jne 0x425690
mov dword [ebp - 0x2c], eax
push eax
push eax
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 0x2c]
add esp, 0xc
jmp 0x42572f
sub esp, 0xc
push 4
push 0x42e4a4
push 4
push 0xffff
push ebx
call edi
push 4
push 0x42e4a4
push 0x20
push 0xffff
push ebx
call edi
mov edx, ebx
add esp, 0xc
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x426068
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x214
mov eax, dword [ecx]
push 0x4491bb
push dword [eax + 0x58]
call fcn.004152a2
add esp, 0x10
test eax, eax
je 0x4260e1
sub esp, 0xc
mov ebx, eax
push eax
call fcn.00408826
add esp, 0x10
test eax, eax
je 0x4260e1
lea edi, [ebp - 0x218]
push ebx
add esi, 4
push dword [esi + 0x10]
push 0x4491bd
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
pop eax
pop edx
push 0x42e458
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, str._b_Unable_to_create__.128s__b_
test eax, eax
mov eax, str._b_Created...__b_
mov dword [esp], ebx
cmove eax, edx
push eax
push esi
call fcn.0042ce14
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x426c6c
Capabilities:
Create directory
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x418]
push ebx
mov ebx, ecx
sub esp, 0x55c
push dword [ecx + 0xe0]
push dword [ecx + 0x14]
push str._.128smbox_.128s.msg
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop eax
lea eax, [ebp - 0x558]
pop edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x560], eax
inc eax
pop ecx
pop esi
je 0x426dff
mov dword [ebp - 0x55c], 0
sub esp, 0xc
lea eax, [ebp - 0x52c]
lea edi, [ebp - 0x418]
push eax
call fcn.00412537
mov edx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push eax
mov esi, eax
push str.dl_X
mov dword [ebp - 0x564], edx
push edi
call edx
pop ecx
pop eax
push edi
mov eax, dword [ebx]
push dword [eax + 0x58]
call fcn.00405368
add esp, 0x10
test eax, eax
je 0x426dce
sub esp, 0xc
mov edx, dword [ebp - 0x564]
push esi
push dword [ebx + 0xe0]
push dword [ebx + 0x14]
push 0x44943b
push edi
call edx
mov eax, dword [str.trash]
add esp, 0x20
test eax, eax
je 0x426d41
push edx
push edx
push eax
push dword [ebx + 0xe0]
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x426d7b
sub esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
jmp 0x426dce
push dword [0x43a704]
push dword [ebx + 0x14]
push str._.128smbox_.64s
push edi
call edx
pop eax
pop edx
push 0x42e458
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x55c], 1
pop ecx
pop edi
sub esp, 0xc
lea edi, [ebp - 0x218]
mov edx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push dword [0x43a704]
push dword [ebx + 0x14]
push str._.128smbox_.64s_8.8X.msg
push edi
mov dword [ebp - 0x564], edx
call edx
lea eax, [ebp - 0x418]
add esp, 0x18
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
pop edx
mov edx, dword [ebp - 0x564]
pop ecx
jne 0x426dce
cmp dword [ebp - 0x55c], 0
je 0x426d50
inc dword [ebp - 0x55c]
push eax
push eax
lea eax, [ebp - 0x558]
push eax
push dword [ebp - 0x560]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
pop edx
pop ecx
test eax, eax
jne 0x426cbe
sub esp, 0xc
push dword [ebp - 0x560]
call dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x426e08
Capabilities:
Create directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x434
mov eax, dword [ecx]
push 0x449484
push dword [eax + 0x58]
call fcn.00405368
add esp, 0x10
test eax, eax
je 0x426f06
sub esp, 0xc
lea edi, [ebp - 0x428]
push eax
call fcn.00412537
mov dword [esp], eax
push dword [ebx + 0xe0]
push dword [ebx + 0x14]
push str._smbox_.128s_8.8X.msg
push edi
mov dword [ebp - 0x42c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [str.trash]
add esp, 0x20
test eax, eax
je 0x426e7e
push esi
push esi
push eax
push dword [ebx + 0xe0]
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x426e8d
sub esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
jmp 0x426f06
xor edx, edx
sub esp, 0xc
lea esi, [ebp - 0x220]
push dword [ebp - 0x42c]
mov ecx, dword [sym.imp.USER32.dll_wsprintfA]
push dword [0x43a704]
push dword [ebx + 0x14]
push str._.128smbox_.64s_8.8X.msg
push esi
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x430], ecx
call ecx
add esp, 0x18
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edx
mov edx, dword [ebp - 0x434]
pop ecx
mov ecx, dword [ebp - 0x430]
or edx, eax
jne 0x426f06
push dword [0x43a704]
push dword [ebx + 0x14]
push str._.128smbox_.64s
push esi
call ecx
pop eax
pop edx
push 0x42e458
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 1
pop ecx
pop esi
jmp 0x426e8f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret