joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a9a3
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x46a618
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0043ca2d
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x43aa40
lea eax, [esi + 1]
mov dword [esp], eax
call fcn.004047df
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], eax
test edi, edi
je 0x43aa0b
mov dword [esp + 0xc], 0
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__lseeki64
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x1c], 0
mov dword [esp + 8], esi
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__read
test eax, eax
jg 0x43aa47
mov dword [esp], ebx
call fcn.0043a7b1
mov eax, 0
jmp 0x43aa4c
mov eax, 0
jmp 0x43aa4c
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret

Function at 0x43b098
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x43b0ce
mov ecx, 0
mov eax, ecx
mov edx, 0
div dword [esp + 0x24]
mov al, byte [esi + edx]
xor al, byte [ebx + ecx]
mov byte [edi + ecx], al
inc ecx
cmp ecx, ebp
jne 0x43b0b5
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x43cc5d
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x40
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0043c9f3
mov ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0043a15f
test eax, eax
jne 0x43ccf7
mov esi, dword [esp + 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x46a6df
mov dword [esp], ebx
call fcn.0043ca2d
mov ebx, eax
cmp eax, 0xffffffff
je 0x43ccfe
lea eax, [esi + 1]
mov dword [esp], eax
call fcn.004047df
mov dword [edi], eax
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
jne 0x43cced
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll__close
mov dword [edi], 0
mov esi, 0xffffffff
jmp 0x43cd03
mov dword [esp], ebx
call sub.msvcrt.dll__close
jmp 0x43cd03
mov esi, 0xffffffff
jmp 0x43cd03
mov esi, 0xffffffff
mov eax, esi
add esp, 0x40
pop ebx
pop esi
pop edi
ret

Function at 0x4400a4
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_ioctlsocket
sub esp, 0xc
add esp, 0x2c
ret
Function at 0x4400d2
Capabilities:
Resolve dns

Disassembly:
push edi
push esi
push ebx
sub esp, 0x40
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x44015b
cmp byte [ebx], 0
je 0x44015b
lea edx, [esp + 0x20]
mov ecx, 0x20
mov al, 0
mov edi, edx
rep stosb byte es:[edi], al
cmp dword [0x464444], 0x17
jne 0x440104
mov eax, 0x17
jmp 0x440109
mov eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.WS2_32.dll_getaddrinfo
sub esp, 0x10
mov ebx, eax
test eax, eax
jne 0x440172
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x18]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp + 0x50]
rep movsb byte es:[edi], byte [esi]
mov dword [esp], eax
call sub.WS2_32.dll_freeaddrinfo
sub esp, 4
jmp 0x440172
mov esi, dword [0x47ca38]
mov ecx, dword [0x47ef18]
mov edi, dword [esp + 0x50]
rep movsb byte es:[edi], byte [esi]
mov ebx, 0
mov eax, ebx
add esp, 0x40
pop ebx
pop esi
pop edi
ret

Function at 0x440287
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [esp], edi
call fcn.0043ff78
mov edx, eax
cmp eax, 0x17
je 0x44034f
mov dword [ebp - 0x1c], 0x10
mov eax, 0x20
call fcn.00456dc0
sub esp, eax
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov byte [esi], 0
cmp edx, 1
jne 0x4402de
mov dword [esi], 0x61636f6c
mov word [esi + 4], 0x6c
mov eax, 0
jmp 0x440347
cmp dword [ebp + 0xc], 0
jne 0x440301
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.WS2_32.dll_getsockname
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x44031c
jmp 0x44033b
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.WS2_32.dll_getpeername
sub esp, 0xc
cmp eax, 0xffffffff
je 0x440342
mov dword [esp + 8], 0x28
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0043ffcf
mov dword [esp], ebx
call fcn.0044000b
cwde
jmp 0x440347
mov eax, 0xffffffff
jmp 0x440347
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], 0x1c
mov eax, 0x30
call fcn.00456dc0
sub esp, eax
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov byte [esi], 0
jmp 0x4402de
Function at 0x440371
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [0x464444]
mov dword [esp], eax
call sub.WS2_32.dll_socket
sub esp, 0xc
mov ebx, eax
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x4403b8
mov dword [0x47ca3c], 1
jmp 0x440544
cmp dword [0x464444], 0x17
jne 0x4403ca
mov dword [ebp - 0x2c], 0x1c
jmp 0x4403d1
mov dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x2c]
add eax, 0x1e
and eax, 0x30
call fcn.00456dc0
sub esp, eax
lea esi, [esp + 0x23]
and esi, 0xfffffff0
mov al, 0
mov edi, esi
mov ecx, dword [ebp - 0x2c]
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004400d2
test eax, eax
jne 0x44053d
movsx eax, word [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00440025
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call sub.WS2_32.dll_setsockopt
sub esp, 0x14
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.WS2_32.dll_bind
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x440485
mov dword [esp], ebx
call sub.WS2_32.dll_closesocket
sub esp, 4
mov dword [0x47ca3c], 0xa
mov dword [ebp - 0x30], 0xffffffff
jmp 0x440544
cmp dword [ebp + 0x14], 0
je 0x4404e4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.WS2_32.dll_inet_addr
sub esp, 4
mov dword [ebp - 0x24], eax
cmp dword [0x464444], 2
jne 0x4404ba
mov dword [ebp - 0x20], 0
mov dword [esp + 0x10], 8
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.WS2_32.dll_setsockopt
sub esp, 0x14
cmp dword [ebp + 0xc], 1
jne 0x440520
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], ebx
call sub.WS2_32.dll_listen
sub esp, 8
cmp eax, 0xffffffff
jne 0x440520
mov dword [esp], ebx
call sub.WS2_32.dll_closesocket
sub esp, 4
mov dword [0x47ca3c], 0xc
mov dword [ebp - 0x30], 0xffffffff
jmp 0x440544
mov eax, dword [0x464444]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0043fe84
mov dword [0x47ca3c], 0
jmp 0x440544
mov dword [ebp - 0x30], 0xffffffff
mov eax, dword [ebp - 0x30]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4406cb
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
test esi, esi
jle 0x440716
mov ebx, 0
mov dword [esp + 0xc], 0
mov eax, esi
sub eax, ebx
mov dword [esp + 8], eax
lea eax, [edi + ebx]
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.WS2_32.dll_send
sub esp, 0x10
cmp eax, 0xffffffff
je 0x44071d
add ebx, eax
cmp esi, ebx
jg 0x4406e7
jmp 0x440722
mov ebx, 0
jmp 0x440722
mov ebx, 0xffffffff
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x440ae7
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00405578
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00405073
mov dword [esp + 0xc], 1
lea edx, [ebp - 0x24]
mov dword [esp + 8], edx
lea edx, [ebp - 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004055bb
mov esi, eax
cmp dword [0x464444], 0x17
jne 0x440b4b
mov ebx, 0x1c
jmp 0x440b50
mov ebx, 0x10
lea eax, [ebx + 0x1e]
and eax, 0x30
call fcn.00456dc0
sub esp, eax
lea eax, [esp + 0x27]
and eax, 0xfffffff0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
je 0x440bae
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004400d2
test eax, eax
je 0x440b9b
mov dword [esp], 2
call fcn.0044072c
jmp 0x440cdd
movsx eax, word [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00440025
test edi, edi
jne 0x440c26
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov eax, dword [0x464444]
mov dword [esp], eax
call sub.WS2_32.dll_socket
sub esp, 0xc
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x440beb
mov dword [esp], 1
call fcn.0044072c
jmp 0x440cdd
mov dword [esp], esi
call fcn.00405022
test eax, eax
je 0x440c35
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0xffff
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_setsockopt
sub esp, 0x14
jmp 0x440c35
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00405073
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
jne 0x440c75
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_sendto
sub esp, 0x18
mov ebx, eax
jmp 0x440ca6
mov dword [esp + 0x14], ebx
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_sendto
sub esp, 0x18
mov ebx, eax
test edi, edi
jne 0x440cb8
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
sub esp, 4
cmp ebx, 0xffffffff
jne 0x440ccb
mov dword [esp], 9
call fcn.0044072c
jmp 0x440cdd
mov dword [0x47ca3c], 0
mov dword [esp], ebx
call fcn.0040497f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x440dc9
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov esi, dword [ebp + 0xc]
lea eax, [esi + 1]
mov dword [esp], eax
call fcn.004046e3
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043ff78
cmp eax, 0x17
jne 0x440dfa
mov ecx, 0x1c
jmp 0x440dff
mov ecx, 0x10
mov dword [ebp - 0x44], ecx
lea eax, [ecx + 0x1e]
and eax, 0x30
call fcn.00456dc0
sub esp, eax
lea ebx, [esp + 0x27]
and ebx, 0xfffffff0
mov al, 0
mov edi, ebx
rep stosb byte es:[edi], al
lea eax, [ebp - 0x44]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.dll_recvfrom
sub esp, 0x18
mov edi, eax
cmp eax, 0xffffffff
jne 0x440e78
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043fecc
mov dword [esp], 8
call fcn.0044072c
mov ebx, eax
jmp 0x440f07
mov dword [esp + 8], 0x28
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0043ffcf
mov dword [esp], ebx
call fcn.0044000b
mov esi, eax
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.00404a4f
mov dword [esp + 4], eax
mov dword [esp], 0x30b
call fcn.00404bd1
mov ebx, eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.00404a0c
mov edi, eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xc], edi
movsx esi, si
mov dword [esp], esi
call fcn.0040497f
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_free
cmp dword [ebp + 0x10], 0
je 0x440efd
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0043fecc
mov dword [0x47ca3c], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4417c3
Capabilities:
Get socket status

Disassembly:
push esi
push ebx
sub esp, 0x134
mov esi, dword [esp + 0x140]
mov ebx, dword [esp + 0x144]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 1
mov dword [esp + 8], 0xf4240
mov dword [esp + 0xc], 0
mov dword [esp], ebx
mov eax, dword [esp + 0x148]
mov dword [esp + 4], eax
call fcn.00456f5c
mov dword [esp + 0x128], eax
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 6
sub ebx, eax
mov dword [esp + 0x12c], ebx
cmp dword [esp + 0x14c], 0
jne 0x441868
lea eax, [esp + 0x128]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
inc esi
mov dword [esp], esi
call sub.WS2_32.dll_select
sub esp, 0x14
jmp 0x441897
lea eax, [esp + 0x128]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
inc esi
mov dword [esp], esi
call sub.WS2_32.dll_select
sub esp, 0x14
add esp, 0x134
pop ebx
pop esi
ret
Function at 0x44295b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
cmp dword [0x47c0b8], 0
jne 0x4429de
mov dword [esp + 8], esi
mov eax, dword [esp + 0x44]
dec eax
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fgets
mov edi, eax
jmp 0x4429f6
mov ebx, 0
lea ebp, [esp + 0x1f]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
test eax, eax
jg 0x4429d0
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
sub esp, 4
mov edi, 0
jmp 0x4429f6
mov al, byte [esp + 0x1f]
mov byte [edi + ebx], al
inc ebx
cmp al, 0xa
jne 0x4429ec
jmp 0x4429f2
cmp dword [esp + 0x44], 0
jg 0x44298c
mov ebx, 0
jmp 0x4429f2
cmp ebx, dword [esp + 0x44]
jne 0x442995
mov byte [edi + ebx], 0
mov eax, edi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x442a8e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, dword [esp + 0x30]
lea esi, [esp + 0x18]
jmp 0x442af9
cmp dword [0x47ca4c], 0
je 0x442af9
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004571a8
mov eax, dword [0x47ef20]
mov edx, dword [0x47ef24]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0043e480
cmp eax, dword [0x47ca4c]
jle 0x442af9
mov dword [esp + 4], 1
mov dword [esp], 0x47ef40
call sub.msvcrt.dll_longjmp
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x3e8
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.004417c3
test eax, eax
jle 0x442a9d
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea eax, [esp + 0x17]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.WS2_32.dll_recv
sub esp, 0x10
test eax, eax
jle 0x442b4b
movzx eax, byte [esp + 0x17]
jmp 0x442b50
mov eax, 0xffffffff
add esp, 0x24
pop ebx
pop esi
ret

Function at 0x442c39
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov dword [esp], ebp
call fcn.00442ba4
mov al, 0
mov edi, dword [esp + 0x30]
mov ecx, ebx
rep stosb byte es:[edi], al
test ebx, ebx
je 0x442cd0
mov esi, 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x30]
add eax, esi
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.WS2_32.dll_recv
sub esp, 0x10
test eax, eax
jle 0x442cd5
add esi, eax
sub ebx, eax
cmp dword [esp + 0x3c], 0
je 0x442cc2
mov edx, dword [0x47e10c]
cmp dword [0x47d6e0], edx
je 0x442cc2
mov dword [esp], eax
call fcn.0040497f
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x47d6e0]
mov dword [esp], eax
call fcn.0041580d
mov dword [esp], ebp
call fcn.00442ba4
test ebx, ebx
jne 0x442c63
jmp 0x442cd5
mov esi, 0
mov eax, esi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x442cdf
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
sub esp, 0x28
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.0043ecd3
mov edx, dword [esp + 0x1c]
mov edi, edx
mov al, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov edi, eax
cmp dword [esp + 0x34], 0
je 0x442d55
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x46ac20
mov dword [esp], 2
call fcn.00415e4a
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, edi
add esp, 0x28
pop edi
ret
Function at 0x444cd3
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
test esi, esi
jle 0x444dd6
mov dword [esp + 0x1c], 0
mov edi, 0
mov edx, esi
cmp esi, 0x400
jle 0x444d06
mov edx, 0x400
mov eax, dword [0x47e388]
test eax, eax
je 0x444d3e
cmp dword [0x47c0b8], 0
je 0x444d3e
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [ebp + edi]
mov dword [esp + 4], edx
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
mov ebx, eax
jmp 0x444d57
mov dword [esp + 8], edx
lea edx, [ebp + edi]
mov dword [esp + 4], edx
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebx, eax
test ebx, ebx
jg 0x444d7e
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Problem_reading_data
mov dword [esp], 0x1f4
call fcn.0044499e
mov eax, 0xffffffff
jmp 0x444de2
cmp dword [esp + 0x48], 0
je 0x444dc4
mov dword [esp + 8], ebx
lea eax, [ebp + edi]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll__write
cmp eax, ebx
je 0x444dc6
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Cannot_create_file
mov dword [esp], 0x1f4
call fcn.0044499e
mov eax, 0xffffffff
jmp 0x444de2
add edi, ebx
add dword [esp + 0x1c], ebx
sub esi, ebx
test esi, esi
jg 0x444cf7
jmp 0x444dde
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x444dea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
call fcn.0043e458
mov dword [esp], eax
call sub.msvcrt.dll_srand
mov dword [esp], ebx
call fcn.0043bf23
test eax, eax
je 0x444e33
mov dword [esp + 8], ebx
mov dword [esp + 4], str.File_or_Directory_not_found
mov dword [esp], 0x194
call fcn.0044499e
jmp 0x444faa
mov dword [esp], str._tmp
call fcn.0043bf23
test eax, eax
je 0x444e60
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Need__tmp_directory_on_current_drive
mov dword [esp], 0x1f4
call fcn.0044499e
jmp 0x444faa
mov edi, ebx
mov al, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, ecx
not esi
lea eax, [esi + 0x3f]
mov dword [ebp - 0x50], eax
lea eax, [esi + 0x5d]
and eax, 0xfffffff0
call fcn.00456dc0
sub esp, eax
lea eax, [esp + 0x27]
and eax, 0xfffffff0
mov dword [ebp - 0x4c], eax
call sub.msvcrt.dll_rand
mov edi, eax
call sub.msvcrt.dll_rand
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._tmp_nl_02x_08x_08x
mov dword [esp + 4], 0x1e
lea edi, [ebp - 0x3c]
mov dword [esp], edi
call fcn.0045717c
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.TeaScript___s_____s
add esi, 0x3e
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.0045717c
mov dword [esp + 4], 0x46ac45
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll__popen
mov edi, eax
test eax, eax
jne 0x444f1a
mov dword [esp + 8], ebx
mov dword [esp + 4], str.failed_creating_pipe
mov dword [esp], 0x1f4
call fcn.0044499e
jmp 0x444faa
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
call sub.msvcrt.dll_fflush
mov dword [esp], edi
call sub.msvcrt.dll__pclose
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.0043cc5d
cmp eax, 0xffffffff
jne 0x444f79
mov dword [esp + 8], ebx
mov dword [esp + 4], str.cannot_read_output_of
mov dword [esp], 0x1f4
call fcn.0044499e
jmp 0x444f90
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00444825
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.0043a28f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x444faa
mov dword [esp], eax
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x456840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp + 8], esi
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x45688c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
test ecx, ecx
jne 0x4568a8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x3c], ecx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x3c]
je 0x456958
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
je 0x45694c
cmp eax, 4
je 0x45694c
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x40
mov edx, dword [ebp - 0x40]
je 0x45689d
cmp eax, 4
je 0x45689d
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00456840