joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42176d
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 0x421788
lea edi, [eax + 8]
mov edx, dword [edi*4 + 0x46c660]
mov eax, 1
test edx, edx
jle 0x421910
imul ebx, esi, 0x1c
cmp word [ebx + 0x46d222], 0
je 0x421910
mov dword [edi*4 + 0x46c660], 0
sub esp, 0xc
push edx
call fcn.0040be6c
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
movsx edx, word [ebx + 0x46d220]
mov eax, dword [sym.imp.WS2_32.dll_socket]
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x4217ea
push ebx
push 6
push 1
jmp 0x4217ef
push ecx
push 0x11
push 2
push edx
call eax
mov ebx, eax
pop eax
test ebx, ebx
jns 0x42182c
mov edi, dword [0x46347c]
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 0x421910
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 + 0x46d220]
mov dword [ebp - 0x2c], eax
add esp, 0xc
mov edx, 0x1c
cmp word [esi + 0x46d220], 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 0x4218cf
mov ecx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [0x46347c]
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.0040e3c0
test eax, eax
jne 0x421853
sub esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffffe
add esp, 0xc
jmp 0x421910
cmp dword [ebp + 0xc], 0
jne 0x421901
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 + 0x46c660], ebx
mov eax, 1
jmp 0x421910
push eax
push eax
push 3
push ebx
call dword [sym.imp.WS2_32.dll_listen]
pop edx
pop ecx
jmp 0x4218f3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42334e
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, dword [0x479760]
cmp dword [ecx + 0xc], eax
jg 0x423369
cmp dword [ecx + 4], 0
je 0x42336c
cmp dword [ecx + 0x10], 0
je 0x42336c
jmp fcn.0041fa4e
xor eax, eax
ret
mov eax, 1
ret
Function at 0x423c96
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 0x423e32
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.0042d128
add esp, 0x10
mov esi, eax
test eax, eax
je 0x423e32
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.0042d1ac
add esp, 0x20
mov edx, esi
mov eax, 1
mov cl, byte [edx]
test cl, cl
je 0x423d2b
cmp cl, 0xa
jne 0x423d28
inc eax
inc edx
jmp 0x423d1c
add eax, 3
sub esp, 0xc
imul eax, eax, 0x18
add eax, 0x38
push eax
call fcn.0042d128
add esp, 0x10
mov edi, eax
test eax, eax
jne 0x423d54
push ebx
push dword [ebp - 0x1c]
push str.DNS:_No_enought_memory_to_load__s_r_n
jmp 0x423e24
push ecx
mov ecx, eax
push 0
push dword [ebp - 0x20]
push 0
call fcn.00420bae
add eax, 0x10
push edx
push edx
push eax
call fcn.0042d128
add esp, 0xc
mov ecx, edi
push 0
push esi
push eax
call fcn.00420bae
push ecx
push ecx
push esi
call fcn.0042d10c
add esp, 0x10
cmp dword [edi + 0x24], 6
jne 0x423dfd
mov esi, dword [edi + 0x34]
sub esp, 0xc
push esi
call fcn.0042d208
lea esi, [esi + eax + 1]
mov dword [esp], esi
call fcn.0042d208
lea eax, [esi + eax + 1]
mov ecx, dword [eax]
mov dword [ebx + 0x10], ecx
pop edx
push dword [eax + 4]
call fcn.0042d650
add esp, 0x10
cmp eax, 0x13
ja 0x423dc8
mov dword [ebx + 0x14], 0x14
jmp 0x423dd8
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 [0x46347c]
call fcn.0040423a
add esp, 0x20
jmp 0x423e32
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x423e10
sub esp, 0xc
push eax
call fcn.0042d10c
add esp, 0x10
sub esp, 0xc
push edi
call fcn.0042d10c
add esp, 0xc
push dword [ebp - 0x1c]
push str.DNS:_Bad_domain_file__s_r_n
push dword [0x46347c]
call fcn.0040423a
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x423e3a
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 0x424035
push esi
push esi
push 0
push dword [ebp + 8]
call fcn.0040357d
mov edi, eax
pop eax
pop edx
test edi, edi
jns 0x423e7c
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 0x424035
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.0042d128
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x423e63
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.0042d1ac
mov dword [ebp - 0x1c], 1
add esp, 0x20
mov eax, ebx
mov dl, byte [eax]
test dl, dl
je 0x423ee3
cmp dl, 0xa
jne 0x423ee0
inc dword [ebp - 0x1c]
inc eax
jmp 0x423ed2
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 0x423eff
inc esi
inc eax
jmp 0x423ee7
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
add eax, esi
imul eax, eax, 0x18
add eax, 0xb0
push eax
call fcn.0042d128
add esp, 0x10
mov edi, eax
test esi, esi
je 0x423f30
mov esi, dword [ebp - 0x1c]
add esi, 2
imul esi, esi, 0x18
lea eax, [eax + esi + 0x38]
mov dword [0x47952c], eax
push edx
mov ecx, edi
push dword [0x47952c]
push dword [ebp - 0x20]
push 0
mov dword [0x479768], 0
mov dword [0x47976c], 0
call fcn.00420bae
add eax, 0x10
push ecx
push ecx
push eax
call fcn.0042d128
add esp, 0xc
push dword [0x47952c]
mov ecx, edi
push ebx
mov esi, eax
push eax
call fcn.00420bae
push eax
push eax
push 0x479534
call fcn.0040366a
mov eax, dword [0x479770]
add esp, 0x10
mov dword [0x479770], edi
test eax, eax
je 0x423fa0
sub esp, 0xc
push eax
call fcn.0042d10c
add esp, 0x10
mov eax, dword [0x479538]
test eax, eax
je 0x423fb5
sub esp, 0xc
push eax
call fcn.0042d10c
add esp, 0x10
sub esp, 0xc
mov dword [0x479538], esi
push ebx
mov dword [0x479534], 0
call fcn.0042d10c
mov eax, dword [edi + 8]
add esp, 0x10
mov dword [0x46c89c], eax
mov eax, dword [0x479768]
test eax, eax
je 0x424006
mov ecx, dword [0x47976c]
mov ebx, dword [0x46347c]
mov edx, 0x44712a
test ecx, ecx
je 0x423ffa
mov edx, dword [ecx + 0x14]
push edx
push dword [eax + 0x14]
push str.Provders_DNS:__s__s
push ebx
jmp 0x424013
push eax
push eax
push str.No_providers_servers...
push dword [0x46347c]
call fcn.0040423a
mov ebx, dword [0x47954c]
add esp, 0x10
test ebx, ebx
je 0x424030
mov ecx, ebx
call fcn.00423c96
mov ebx, dword [ebx]
jmp 0x424021
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42403d
Capabilities:
Create thread

Disassembly:
cmp dword [0x46c89c], 0
je 0x4240d1
push ebp
mov ebp, esp
sub esp, 0x24
push dword [0x46c8c4]
call fcn.00423e3a
add esp, 0x10
test eax, eax
je 0x4240ba
push eax
push dword [0x46c89c]
push str.DNS:_Load_host_definetion_file.__u_hosts_now_are_loaded
push dword [0x46347c]
call fcn.0040423a
add esp, 0x10
cmp dword [0x47952c], 0
jne 0x42408e
cmp dword [0x47954c], 0
je 0x4240cf
cmp dword [0x46d344], 0
jne 0x4240cf
lea eax, [ebp - 0xc]
push edx
push edx
push eax
push 0
push 0
push 0x423abf
push 0x8000
push 0x42e458
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
pop eax
jmp 0x4240cf
push eax
push eax
push str.Error_loading_host_definetion_file.
push dword [0x46347c]
call fcn.0040423a
add esp, 0x10
leave
ret
ret

Function at 0x4242d2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
push dword [0x438e20]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x47978c], eax
add esp, 0xc
test eax, eax
jne 0x4242f9
xor esi, esi
jmp 0x424413
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 [0x4797a4], eax
test eax, eax
je 0x4242f2
push esi
push esi
push str.SecRecv
push dword [0x47978c]
call ebx
pop edx
pop ecx
mov dword [0x4797a0], eax
test eax, eax
je 0x4242f2
push esi
push esi
push str.SecSend
push dword [0x47978c]
call ebx
pop edx
pop ecx
mov dword [0x47979c], eax
test eax, eax
je 0x4242f2
push esi
push esi
push str.SecClose
push dword [0x47978c]
call ebx
pop edx
pop ecx
mov dword [0x479798], eax
test eax, eax
je 0x4242f2
push esi
push esi
push str.InitLib
push dword [0x47978c]
call ebx
pop edx
pop ecx
mov dword [0x4797a8], eax
test eax, eax
je 0x4242f2
push esi
push esi
push str.SecConnect
push dword [0x47978c]
call ebx
push str.SecUpdateCB
mov dword [0x479794], eax
push dword [0x47978c]
call ebx
cmp dword [0x479794], 0
pop edx
pop ecx
mov dword [0x479790], eax
jne 0x4243bb
mov dword [0x479794], 0x424179
test eax, eax
jne 0x4243c9
mov dword [0x479790], 0x424196
mov eax, dword [0x46c4c0]
mov esi, 1
test eax, eax
je 0x424413
cmp byte [eax], 0
je 0x424413
push edx
push edx
push str.SetPriority
push dword [0x47978c]
call ebx
pop ecx
pop ebx
test eax, eax
je 0x4243fe
sub esp, 0xc
push dword [0x46c4c0]
call eax
jmp 0x424410
push eax
push eax
push str.SetPriority_is_abcent_in_the_library_n
push dword [0x463474]
call fcn.0040423a
add esp, 0x10
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
Function at 0x42454d
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4797b8]
test eax, eax
jne 0x424684
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
push dword [0x438e30]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4797bc], eax
add esp, 0xc
test eax, eax
je 0x424662
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.deflateInit2_
push eax
call ebx
push str.inflateInit2_
mov dword [0x4797d0], eax
push dword [0x4797bc]
call ebx
cmp dword [0x4797d0], 0
pop edx
pop ecx
mov dword [0x4797c4], eax
je 0x424662
test eax, eax
je 0x424662
push eax
push eax
push str.deflate
push dword [0x4797bc]
call ebx
pop edx
pop ecx
mov dword [0x4797d8], eax
test eax, eax
je 0x424662
push eax
push eax
push str.inflate
push dword [0x4797bc]
call ebx
pop edx
pop ecx
mov dword [0x4797d4], eax
test eax, eax
je 0x424662
push eax
push eax
push str.deflateEnd
push dword [0x4797bc]
call ebx
pop edx
pop ecx
mov dword [0x4797cc], eax
test eax, eax
je 0x424662
push ecx
push ecx
push str.inflateEnd
push dword [0x4797bc]
call ebx
pop edx
pop ecx
mov dword [0x4797c8], eax
test eax, eax
je 0x424662
push ecx
push ecx
push str.crc32
push dword [0x4797bc]
call ebx
pop ebx
pop edx
mov dword [0x4797c0], eax
test eax, eax
je 0x424662
push edx
push edx
push str.External_Zlib_library_has_been_loaded...
push 0x4634a0
inc dword [0x4797b8]
call fcn.0040423a
add esp, 0x10
mov eax, 1
jmp 0x42467f
push eax
push eax
push str.Error_loading_Zlib_library_n
push 0x4634a0
call fcn.0040423a
dec dword [0x4797b8]
add esp, 0x10
or eax, 0xffffffff
mov ebx, dword [ebp - 4]
leave
ret
ret

Function at 0x425391
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
push 0
push dword [0x438e54]
call fcn.0040357d
pop edx
pop ecx
test eax, eax
jle 0x425451
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 0x425444
mov esi, 0x64
xor edx, edx
div esi
mov edi, edx
mov esi, eax
test edx, edx
jne 0x425444
mov dword [ebp - 0x1c], ecx
push eax
push ecx
push 8
push dword [0x451048]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x1c]
mov dword [0x479814], eax
push ecx
push eax
push ebx
mov dword [0x479808], ecx
call fcn.00403603
mov dword [ebp - 0x1c], 0
pop edx
mov eax, dword [0x479814]
lea ecx, [edi + 0x64]
cmp dword [ebp - 0x1c], esi
jge 0x425422
lea edx, [eax + ecx]
inc dword [ebp - 0x1c]
mov dword [eax + edi], edx
mov edi, ecx
jmp 0x425408
imul edx, esi, 0x64
mov dword [eax + edx - 0x64], 0
lea eax, [esi + 1]
imul eax, eax, 0x64
add eax, dword [0x479814]
mov dword [0x4797f4], esi
mov dword [0x479810], 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 0x425459
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 0x425477
jecxz 0x425477
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 0x4254ab
push ecx
push ecx
push str.could_not_get_socket
push dword [0x463484]
call fcn.0040423a
add esp, 0x10
xor edx, edx
jmp 0x42558f
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.004125ec
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 0x425565
mov ecx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [0x463484]
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.0040e3c0
test eax, eax
jne 0x4254f0
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 0x42558f
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 0x425ec8
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 0x44817b
push dword [eax + 0x58]
call fcn.0041520e
add esp, 0x10
test eax, eax
je 0x425f41
sub esp, 0xc
mov ebx, eax
push eax
call fcn.00408826
add esp, 0x10
test eax, eax
je 0x425f41
lea edi, [ebp - 0x218]
push ebx
add esi, 4
push dword [esi + 0x10]
push 0x44817d
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.0042ca58
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x426acc
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 0x426c5f
mov dword [ebp - 0x55c], 0
sub esp, 0xc
lea eax, [ebp - 0x52c]
lea edi, [ebp - 0x418]
push eax
call fcn.004124a3
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 0x426c2e
sub esp, 0xc
mov edx, dword [ebp - 0x564]
push esi
push dword [ebx + 0xe0]
push dword [ebx + 0x14]
push 0x4483fb
push edi
call edx
mov eax, dword [str.trash]
add esp, 0x20
test eax, eax
je 0x426ba1
push edx
push edx
push eax
push dword [ebx + 0xe0]
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x426bdb
sub esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
jmp 0x426c2e
push dword [0x43a5c4]
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 [0x43a5c4]
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 0x426c2e
cmp dword [ebp - 0x55c], 0
je 0x426bb0
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 0x426b1e
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 0x426c68
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 0x448444
push dword [eax + 0x58]
call fcn.00405368
add esp, 0x10
test eax, eax
je 0x426d66
sub esp, 0xc
lea edi, [ebp - 0x428]
push eax
call fcn.004124a3
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 0x426cde
push esi
push esi
push eax
push dword [ebx + 0xe0]
call fcn.004034b9
add esp, 0x10
test eax, eax
je 0x426ced
sub esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
jmp 0x426d66
xor edx, edx
sub esp, 0xc
lea esi, [ebp - 0x220]
push dword [ebp - 0x42c]
mov ecx, dword [sym.imp.USER32.dll_wsprintfA]
push dword [0x43a5c4]
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 0x426d66
push dword [0x43a5c4]
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 0x426cef
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x427592
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0xf34
mov eax, dword [ecx]
push 0x448444
push dword [eax + 0x58]
call fcn.00405368
add esp, 0x10
test eax, eax
jne 0x4275be
or eax, 0xffffffff
jmp 0x427667
sub esp, 0xc
lea edi, [ebp - 0xf1c]
push eax
call fcn.004124a3
mov dword [esp], eax
push dword [ebx + 0xe0]
push dword [ebx + 0x14]
push str._smbox_.128s_8.8X.msg
push edi
mov dword [ebx + 0xdc], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push edi
call fcn.0040357d
mov esi, eax
pop eax
pop edx
test esi, esi
js 0x4275b6
push ecx
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edx
pop ecx
test eax, eax
je 0x427658
lea ecx, [ebx + 4]
push edx
push eax
push str.HTTP_1.0_200_Ok_r_nContent_type:_application_octet_stream_r_nContent_Length:__u_r_n_r_n
push ecx
mov dword [ebp - 0xf2c], ecx
call fcn.0042ca58
mov ecx, dword [ebp - 0xf2c]
call fcn.00425c90
add esp, 0x10
push eax
push 0xf00
push edi
push esi
call fcn.00403603
pop edx
test eax, eax
je 0x427658
mov edx, dword [ebx]
push ecx
push eax
push edi
push edx
call dword [edx + 4]
add esp, 0x10
cmp eax, 0xf00
je 0x427633
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x427f2a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
lea ebx, [ebp - 0x418]
sub esp, 0x420
push dword [ecx + 0x14]
push str._swmail.cfg
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], 0x479824
call fcn.0040366a
pop edi
pop eax
push 0
push ebx
call fcn.0040357d
pop edx
pop ecx
test eax, eax
js 0x427ffd
mov edi, eax
push eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add eax, 0x10008
push edx
push eax
call fcn.0042d128
add esp, 0xc
mov ebx, eax
lea eax, [eax + 0x10000]
push 0x1000
push eax
push edi
mov dword [ebp - 0x41c], eax
call fcn.00403603
mov byte [ebx + eax + 0x10000], 0
push ecx
push ecx
push edi
mov edi, 0x438f40
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
add esp, 0xc
cmp dword [edx], 0
je 0x427ff6
push eax
mov ecx, edx
push eax
push esi
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], edx
call fcn.00427e5c
mov edx, dword [ebp - 0x420]
pop ecx
pop eax
add edx, 0x18
jmp 0x427fbe
cmp dword [edi + 8], 0
jne 0x427ff3
mov ecx, edi
call fcn.00427edc
add edi, 0x18
cmp dword [edi], 0
jne 0x427fe6
jmp 0x42802c
sub esp, 0xc
push 0x10000
call fcn.0042d128
add esp, 0x10
mov ebx, eax
mov eax, 0x438f40
add eax, 0x18
cmp dword [eax - 0x18], 0
je 0x42802c
mov edx, dword [eax - 8]
mov ecx, dword [eax - 0xc]
add edx, esi
mov dword [eax - 4], edx
mov dword [edx], ecx
jmp 0x428014
mov eax, dword [esi + 0x108]
cmp byte [eax], 0
jne 0x428040
lea eax, [esi + 0x1c]
mov dword [esi + 0x108], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 4