joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409440
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x15c
mov dword [esp + 4], esi
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
test eax, eax
mov edi, eax
je 0x409544
lea eax, [ebp - 0x148]
mov ebx, 0x128
mov dword [ebp - 0x148], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
je 0x409539
lea esi, [ebp - 0x124]
lea esi, [esi]
mov dword [ebp - 0x14c], esp
mov ecx, esi
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x4094b0
and edx, 0x8080
jne 0x4094d6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + 0x1e]
and eax, 0xfffffff0
call fcn.004f1df0
mov dword [esp + 4], esi
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
mov dword [esp], ebx
call fcn.00409400
mov edx, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x40954c
mov dword [esp], edi
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
mov esp, dword [ebp - 0x14c]
jne 0x4094a0
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x140]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 8], ebx
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
test eax, eax
je 0x409516
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
jmp 0x409516

Function at 0x409640
Capabilities:
Set registry value

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push ebx
xor eax, eax
sub esp, 0x34
mov dword [esp + 0x20], ecx
lea edx, [ebp - 8]
mov ecx, 0x2001f
mov dword [esp + 0x1c], edx
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov edx, dword [ebp - 8]
sub esp, 0x24
test edx, edx
jne 0x4096a0
movzx eax, bl
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x4096d3
mov bl, 1
mov edx, dword [ebp - 8]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
movzx eax, bl
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40a680
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov edx, 0x506140
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40a7a2
mov dword [esp], ebx
xor esi, esi
mov edi, 2
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [esp], eax
mov edi, eax
call fcn.004efcc0
mov dword [esp], ebx
xor ecx, ecx
mov esi, eax
mov dword [esp + 4], ecx
xor eax, eax
mov dword [esp + 8], eax
call sub.msvcrt.dll_fseek
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], edi
jge 0x40a730
test byte [ebx + 0xc], 0x10
jne 0x40a730
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x10]
mov ecx, 1
mov dword [esp + 8], ecx
mov eax, 1
mov dword [esp + 4], eax
lea ecx, [esi + edx]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x40a6f4
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_fclose
xor ecx, ecx
jmp 0x40a75c
xor edx, edx
cmp ebx, dword [ebp + 0x14]
setl dl
neg edx
and edx, ebx
mov ebx, dword [ebp + 0x10]
movzx eax, byte [edx + ebx]
lea ebx, [edx + 1]
neg al
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x40a740
mov ecx, dword [ebp + 0xc]
mov edx, 0x506143
mov dword [esp + 4], edx
mov dword [esp], ecx
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40a7a2
mov dword [esp + 8], edi
mov edi, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40d204
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x24
mov esi, dword [esp + 0x30]
mov dword [esi + 4], 0
mov dword [esp], esi
call fcn.0040df88
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x54
mov dword [esp], esi
call fcn.0040df2c
mov ebx, eax
test eax, eax
je 0x40d33c
mov dword [ebx], fcn.0040c648
mov dword [ebx + 4], fcn.0040cd74
mov dword [ebx + 8], fcn.0040cf18
mov dword [ebx + 0xc], fcn.0040ce38
mov dword [ebx + 0x10], 0x40c838
mov dword [ebx + 0x14], 0x40c7bc
mov dword [ebx + 0x18], 0x40cff4
mov dword [ebx + 0x1c], 0x40cbd4
mov dword [ebx + 0x20], 0x40ca34
mov dword [ebx + 0x24], fcn.0040c8b4
mov dword [ebx + 0x28], 0x40c9e0
mov dword [ebx + 0x30], 0x3b9aca00
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0x54
mov dword [esi + 4], ebx
mov dword [esp], 0x507fc0
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40d320
mov byte [esp + 0x1f], 0x78
lea edx, [esp + 0x1f]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], str._ld_c
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
test eax, eax
jle 0x40d320
mov al, byte [esp + 0x1f]
cmp al, 0x6d
je 0x40d328
cmp al, 0x4d
je 0x40d328
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebx + 0x2c], eax
add esp, 0x24
pop ebx
pop esi
ret
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x40d311
mov dword [esp], esi
call fcn.0040df8c
mov eax, dword [esi]
mov dword [eax + 0x14], 0x38
mov dword [eax + 0x18], 0
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
jmp 0x40d23a
Function at 0x41eda0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push ebx
sub esp, 0x1a4
mov eax, dword [0x536190]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x41ee08
mov eax, sub.msvcrt.dll_malloc
mov ecx, 0x4f30d0
mov edx, 0x4f3920
mov dword [sub.msvcrt.dll_malloc], eax
mov eax, sub.msvcrt.dll_free
test bl, 1
mov dword [sub.msvcrt.dll_free], eax
mov eax, 0x4f3930
mov dword [0x4f50a8], eax
mov dword [0x4f50a4], ecx
mov dword [0x4f50a0], edx
jne 0x41ee10
test bl, 2
jne 0x41ee30
mov dword [0x5361a0], ebx
mov eax, 1
xor edx, edx
mov dword [0x536190], eax
mov ebx, dword [ebp - 4]
mov eax, edx
leave
ret
call fcn.00429aa0
test eax, eax
mov edx, 2
je 0x41ee08
test bl, 2
je 0x41edf6
lea esi, [esi]
lea edi, [edi]
mov dword [esp], 0x101
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
call sub.WSOCK32.DLL_WSAStartup
sub esp, 8
test eax, eax
jne 0x41ee60
mov eax, dword [ebp - 0x198]
cmp al, 1
je 0x41ee6c
call sub.WSOCK32.DLL_WSACleanup
lea esi, [esi]
mov ebx, dword [ebp - 4]
mov edx, 2
mov eax, edx
leave
ret
shr eax, 8
dec al
je 0x41edf6
call sub.WSOCK32.DLL_WSACleanup
jmp 0x41ee60
Function at 0x4219f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 0
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x421a0d
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x421a16
xor eax, eax
add esp, 0x30
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], esi
mov dword [esp], 0x508664
call sym.fortis.exe_curl_strequal
test eax, eax
je 0x421b19
mov byte [ebp - 9], 1
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esi, 0x20
test ebx, ebx
je 0x421b40
mov dword [esp + 0xc], esi
mov eax, 0x91
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], str._Netscape_HTTP_Cookie_File_n_http:__www.netscape.com_newsref_std_cookie_spec.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n_n
call sub.msvcrt.dll_fwrite
jmp 0x421a95
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x421b0f
cmp byte [eax], 0x2e
mov edx, 0x50870e
je 0x421b0f
mov dword [esp + 8], edx
mov eax, str._s_s_t_s_t_s_t_s_t_u_t_s_t_s_n
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
mov ebx, dword [ebx]
test ebx, ebx
je 0x421b40
mov eax, dword [ebx + 8]
test eax, eax
jne 0x421aab
mov eax, 0x5085d9
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x1c], eax
mov eax, 0x5085bc
cmp byte [ebx + 0x28], 0
jne 0x421acd
mov eax, 0x5085c1
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x421add
mov eax, 0x5085c7
mov dword [esp + 0x14], eax
mov eax, 0x5085bc
cmp byte [ebx + 0x1c], 0
jne 0x421af1
mov eax, 0x5085c1
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x421b01
mov eax, 0x508728
mov dword [esp + 0xc], eax
cmp byte [ebx + 0x1c], 0
jne 0x421a67
mov edx, 0x5085d9
jmp 0x421a80
mov dword [esp], esi
mov eax, 0x508730
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test esi, esi
mov eax, 1
jne 0x421a3b
jmp 0x421a0f
cmp byte [ebp - 9], 0
jne 0x421a0d
mov dword [esp], esi
call sub.msvcrt.dll_fclose
jmp 0x421a0d
Function at 0x421fb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x83a8
mov ebp, esp
sub esp, 0x18
mov dword [esp + 4], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], edi
mov dword [esp], 1
call dword [0x4f50a0]
mov ebx, eax
test ebx, ebx
mov eax, 0x1b
je 0x422019
mov dword [esp], 0x100
call dword [0x4f50b0]
mov dword [ebx + 0x2dc], eax
test eax, eax
jne 0x422026
mov eax, dword [ebx + 0x2dc]
test eax, eax
jne 0x422170
mov dword [esp], ebx
xor ebx, ebx
call dword [0x4f50ac]
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, 0x100
mov ecx, sub.msvcrt.dll_fread
mov edx, 0xffffffff
mov dword [ebx + 0x2e0], edi
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor edi, edi
add eax, 0x20
mov dword [ebx + 0x24], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebx + 0x28], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
or dword [ebx + 0x208], 0x10
mov dword [ebx + 0x80], ecx
add eax, 0x40
mov ecx, 5
mov dword [ebx + 0x10], eax
mov eax, 0xffffffff
mov dword [ebx + 0xac], eax
mov eax, 0xffffffff
mov dword [ebx + 0x82e8], eax
mov eax, 0xffffffff
mov dword [ebx + 0x82ec], eax
mov eax, 1
mov dword [ebx + 0x114], eax
mov eax, 0x3c
mov dword [ebx + 0x15c], eax
mov eax, 5
mov dword [ebx + 0xa8], edx
mov dword [ebx + 0x78], sub.msvcrt.dll_fwrite
mov dword [ebx + 0x68], 0xffffffff
mov dword [ebx + 0x6c], 0xffffffff
mov byte [ebx + 0x1a1], 1
mov byte [ebx + 0x1a2], 1
mov byte [ebx + 0x1a3], 1
mov byte [ebx + 0x188], 1
mov dword [ebx + 0x14c], eax
mov dword [ebx + 0x20], 0x438
mov dword [ebx + 0x158], edi
mov dword [ebx + 0x40], 1
mov dword [ebx + 0x44], 1
mov dword [ebx + 0x2d8], ecx
mov dword [esp], 0x14
call dword [0x4f50b0]
mov dword [ebx + 0x2d4], eax
test eax, eax
mov edx, eax
jne 0x422180
mov esi, 0x1b
mov edx, 1
mov eax, 2
mov dword [ebx + 0x130], edx
mov dword [ebx + 0x134], eax
mov dword [esp], str.CURL_CA_BUNDLE
call sub.msvcrt.dll_getenv
mov dword [ebx + 0x13c], eax
test esi, esi
je 0x422012
mov eax, dword [ebx + 0x2dc]
test eax, eax
je 0x422007
lea esi, [esi]
lea edi, [edi]
mov dword [esp], eax
call dword [0x4f50ac]
jmp 0x422007
mov eax, dword [ebx + 0x2d8]
mov edi, edx
shl eax, 2
cmp eax, 7
jbe 0x4221b0
test dl, 4
je 0x4221b0
mov dword [edx], 0
add edi, 4
sub eax, 4
jmp 0x4221b0
cld
mov ecx, eax
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x422125
Function at 0x4293e0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push ebx
lea ebx, [eax + edx]
mov edx, 0x1505
jmp 0x4293fd
mov eax, edx
shl eax, 5
add edx, eax
movsx eax, byte [ecx]
inc ecx
xor edx, eax
cmp ecx, ebx
jb 0x4293f0
pop ebx
mov eax, edx
pop ebp
ret

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

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
cmp dword [ecx + 0x9c], edi
mov dword [esi], 0
sete dl
mov eax, edx
shl eax, 4
cmp byte [ecx + eax + 0xa8], 0
jne 0x42c0f0
mov dword [esi], 0
mov ebx, 0xffffffff
mov edx, dword [ecx + 0x178]
test edx, edx
je 0x42c0c1
call fcn.00438d40
cmp eax, 0x2733
mov edx, 0xffffffff
je 0x42c0b2
mov dword [esi], ebx
xor edx, edx
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], edi
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
call sub.WSOCK32.DLL_recv
sub esp, 0x10
cmp eax, 0xffffffff
mov ebx, eax
jne 0x42c0ae
jmp 0x42c09d
mov dword [esp + 4], edx
mov eax, dword [ebp + 0x14]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
call fcn.00429e30
mov ebx, eax
mov edx, 0xffffffff
cmp eax, 0xffffffff
jmp 0x42c0ac

Function at 0x42c120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov ecx, dword [eax + 0x88]
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x42c1a0
cmp edx, 2
jbe 0x42c155
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
mov eax, 2
mov dword [esp + 4], eax
mov eax, dword [edx*4 + 0x509e70]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x10]
mov ecx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
jmp 0x42c146
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 4], edx
call ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x42c4d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
cmp dword [esi + 0x9c], ecx
sete dl
mov eax, edx
shl eax, 4
cmp byte [esi + eax + 0xa8], 0
jne 0x42c586
mov eax, dword [esi + 0x178]
mov ebx, 0xffffffff
test eax, eax
je 0x42c545
call fcn.00438d40
cmp eax, 0x2733
jne 0x42c5c0
mov eax, dword [ebp + 0x18]
xor ebx, ebx
mov dword [eax], ebx
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
dec eax
pop ebp
and eax, 0x37
ret
mov dword [esp + 8], edi
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.WSOCK32.DLL_send
sub esp, 0x10
cmp eax, 0xffffffff
mov ebx, eax
je 0x42c515
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
dec eax
pop ebp
and eax, 0x37
ret
mov dword [esp + 0xc], edi
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00429e20
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
dec eax
pop ebp
and eax, 0x37
ret
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0043fc80
mov dword [esp + 8], eax
mov eax, str.Send_failure:__s
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0042c310
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
dec eax
pop ebp
and eax, 0x37
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], edi
mov edi, eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 3
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x98]
mov dword [ebp - 8], esi
mov esi, edx
mov byte [ebp - 0x27], dl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x28], 0xff
mov dword [esp], eax
call sub.WSOCK32.DLL_send
mov eax, dword [edi]
sub esp, 0x10
mov edx, str.SENT
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0042f4f0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x430ed0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax]
mov edi, dword [ecx + 0x9c]
mov dword [ebp - 0x34], eax
call fcn.0043a030
mov ebx, eax
mov esi, edx
call fcn.0043a030
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp], eax
call fcn.0043a070
mov edx, 0x10624dd3
mov ecx, eax
imul edx
mov eax, ecx
mov ecx, dword [ebp - 0x34]
sar eax, 0x1f
sar edx, 6
sub edx, eax
mov eax, dword [ecx + 0x9c]
test eax, eax
jne 0x430f3b
mov eax, dword [ecx + 0x98]
mov ecx, 0xea60
test eax, eax
je 0x430f4b
sub eax, edx
test eax, eax
jle 0x431021
imul ecx, eax, 0x3e8
mov dword [esp + 8], ecx
mov eax, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0043a120
cmp eax, 0xffffffff
je 0x431016
test eax, eax
je 0x430fea
mov dword [ebp - 0x2c], 0x10
lea ebx, [ebp - 0x28]
lea esi, [ebp - 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp], edi
call sub.WS2_32.DLL_getsockname
sub esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp], edi
call sub.WSOCK32.DLL_accept
sub esp, 0xc
mov ebx, eax
mov dword [esp], edi
call sub.WSOCK32.DLL_closesocket
sub esp, 4
cmp ebx, 0xffffffff
je 0x431005
mov eax, dword [ebp - 0x34]
mov esi, str.Connection_accepted_from_server_n
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0042c6f0
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x9c], ebx
mov ecx, 1
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.00438d50
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.Timeout_while_waiting_for_server_connect
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.0042c310
mov eax, 0x1e
jmp 0x430fe2
mov edi, str.Error_accept__ing_server_connect
mov dword [esp + 4], edi
mov ecx, dword [ebp - 0x34]
mov dword [esp], ecx
jmp 0x430ff9
mov eax, str.Error_while_waiting_for_server_connect
mov dword [esp + 4], eax
jmp 0x43100e
mov eax, str.Timed_out_before_server_could_connect_to_us
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.0042c310
mov eax, 0x1c
jmp 0x430fe2
Function at 0x439ab0
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [edi + 0x37c]
mov ebx, dword [eax + 0x9c]
mov dword [ebp - 0x10], eax
test ebx, ebx
jne 0x439ae0
mov ebx, dword [eax + 0x98]
test ebx, ebx
je 0x439be0
nop
call sub.KERNEL32.dll_GetTickCount
imul eax, ebx, 0x3e8
mov dword [esp + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
mov ebx, eax
mov eax, dword [esi + 0x14]
sub esp, 8
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [esi + 0x14]
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x18]
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov dword [esi + 0x18], 0
sub esp, 4
test ebx, ebx
je 0x439bf0
mov byte [edi + 0x374], 1
mov dword [esi + 8], 0xffffffff
mov eax, dword [esi]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp + 0xc]
sub esp, 4
test eax, eax
je 0x439b6c
mov eax, dword [edi + 0x370]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [edi + 0x370]
xor ebx, ebx
test eax, eax
jne 0x439bb0
mov eax, dword [esi + 8]
cmp eax, 0x1b
je 0x439c70
inc eax
je 0x439ca0
mov eax, dword [edi + 0x378]
cmp eax, 0x2afc
je 0x439ca0
cmp byte [edi + 0x374], 0
mov ebx, 0x1c
jne 0x439c3b
mov esi, esi
lea eax, [edi + 0x368]
mov dword [esp], eax
call fcn.00439a10
mov eax, dword [edi + 0x370]
test eax, eax
jne 0x439bcf
mov byte [edi + 0xf8], 1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 0x12c
jmp 0x439ae0
mov ecx, 0x1388
mov dword [esp + 4], ecx
mov eax, dword [esi]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
cmp eax, 0x102
je 0x439cc5
mov eax, dword [edi + 0x378]
mov dword [esp], eax
call sub.WS2_32.DLL_WSASetLastError
sub esp, 4
lea eax, [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeThread
sub esp, 8
jmp 0x439b4d
mov dword [esp + 4], eax
mov ebx, 6
mov dword [esp], edi
call fcn.0043fc80
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 8], eax
mov eax, str.Could_not_resolve_host:__s___s
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042c310
jmp 0x439bb0
mov dword [esp], 0x1b
call sym.fortis.exe_curl_easy_strerror
mov dword [esp + 8], eax
mov eax, str.Could_not_resolve_host:__s
mov ebx, 0x1b
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042c310
jmp 0x439bb0
mov eax, dword [edi + 0x30]
mov ebx, 0x1c
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, str.Resolving_host_timed_out:__s
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042c310
jmp 0x439bb0
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [esi]
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
jmp 0x439b3f