joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x40c0b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x407910
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x40c0b4]
movzx eax, al
bt eax, esi
jae 0x407970
mov ecx, dword [0x40c0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x407815
test byte [0x408028], 8
jne 0x4078b0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x408038], 8
jne 0x407860
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4077e4
cmp esi, 3
jbe 0x407820
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x40ae98]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x4077e4
mov ecx, dword [0x40c0b4]
test ecx, ecx
je 0x407950
mov dword [esp], 0x408038
call dword [0x40c0b4]
test al, 8
je 0x4077bb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x4077bb
mov ebx, dword [0x40c0b4]
test ebx, ebx
je 0x407930
mov dword [esp], 0x408028
call dword [0x40c0b4]
test al, 8
je 0x4077a6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x4077ae
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40c0b4
call sym._load_func.part.0
jmp 0x40776d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40c0b4
call sym._load_func.part.0
jmp 0x4078ba
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40c0b4
call sym._load_func.part.0
jmp 0x40786e
mov eax, 0xffffffff
jmp 0x407815
Function at 0x407ae0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x10001e70
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x45c], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10001eae
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10022190
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x460]
push edx
mov dword [esp + 0xc], 1
call fcn.10031980
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x464]
push eax
call fcn.10031980
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10001f27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.10022190
add esp, 0x10
add esp, 0x14
ret
Function at 0x10002510
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10051060]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x10002675
cmp dword [ebp + 0x1d0], 0
push ebx
push esi
jne 0x1000266a
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10002599
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.10026580
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.10022220
add esp, 0x18
jmp 0x10002673
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100025d9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.10026580
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.10022220
add esp, 0x18
jmp 0x10002673
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x18]
call fcn.100024d0
test eax, eax
jne 0x10002617
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10026580
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.10022220
add esp, 0x18
jmp 0x10002673
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x98]
call fcn.100024d0
test eax, eax
jne 0x1000266a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10026580
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.10022220
add esp, 0x18
jmp 0x10002673
push ebp
call fcn.10002470
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.10031d7a
add esp, 0x10c
ret

Function at 0x10002690
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x35c]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x100026d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10026580
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10022190
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10022190
add esp, 8
pop esi
pop ecx
ret
Function at 0x100026f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x10051060]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x10052420]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x10002793
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10031d00
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x1c], 0x9c
mov dword [esp + 0x20], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x10002787
mov dword [0x10052420], 2
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10031d7a
add esp, 0xac
ret
mov dword [0x10052420], 1
jmp 0x10002798
cmp eax, 2
je 0x100027e2
push esi
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100027c9
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x100027e1
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10031d7a
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5b8]
test esi, esi
je 0x1000286d
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1000286d
push 0x10002800
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x34]
push ecx
push edx
call fcn.10001da0
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x10002876
mov dword [edi + 0x5b8], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10002880
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x1000286d
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1000286d
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x100029f0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xd8
mov eax, dword [0x10051060]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xe0]
push ebp
mov ebp, dword [esp + 0xe0]
mov edx, dword [ebp]
mov dword [esp + 4], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0xc], edx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
mov dword [esp + 0x1c], 0
call fcn.10002910
add esp, 0x10
test eax, eax
je 0x10002a5c
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.10031d7a
add esp, 0xd8
ret
push ebx
push esi
push edi
lea ebx, [esp + 0x20]
lea edi, [esp + 0xb4]
lea esi, [esp + 0x34]
call fcn.100024d0
test eax, eax
jne 0x10002aaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10026580
push eax
mov eax, dword [esp + 0x20]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.10022220
mov ecx, dword [esp + 0x34]
push ecx
push ebp
call fcn.100028b0
add esp, 0x20
jmp 0x10002c1c
mov esi, dword [esp + 0x14]
lea edx, [esp + 0xb4]
push edx
push str.__Trying__s..._n
push esi
call fcn.10022190
mov ebx, dword [esp + 0x28]
add esp, 0xc
cmp dword [esi + 0x35c], 0
je 0x10002ada
mov edx, ebx
mov edi, ebp
call fcn.10002690
push ebx
call fcn.100026f0
add esp, 4
cmp dword [esi + 0x45c], 0
je 0x10002af3
mov edi, ebx
call fcn.10001e70
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x10002b19
mov ecx, dword [esi + 0x1b4]
push 0
push ebx
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x10002b46
mov dword [esp + 0x18], 1
mov edx, dword [esp + 0x24]
push edx
push ebx
push ebp
call fcn.10002000
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10002b5e
push ebx
push ebp
call fcn.100028b0
mov eax, edi
dec eax
add esp, 8
neg eax
sbb eax, eax
and eax, edi
jmp 0x10002c1e
test eax, eax
je 0x10002b19
push ebx
push ebp
call fcn.100028b0
add esp, 8
mov eax, 0x2a
jmp 0x10002c1e
push 1
push ebx
call fcn.1001cc00
add esp, 8
call fcn.100297e0
cmp dword [ebp + 0x238], 1
mov dword [ebp + 0x230], eax
mov dword [ebp + 0x234], edx
jle 0x10002b93
mov eax, dword [ebp + 0x23c]
push eax
push esi
call fcn.1001ae10
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x10002c16
cmp dword [ebp + 0x8c], 1
jne 0x10002c16
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10002c0c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x10002c0a
cmp edi, 0x2732
jle 0x10002bd6
cmp edi, 0x2734
jle 0x10002c0a
push edi
push ebp
call fcn.10026580
push eax
lea eax, [esp + 0xc0]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.10022190
push ebx
push ebp
mov dword [esi + 0x85f4], edi
call fcn.100028b0
mov edi, 7
add esp, 0x20
mov eax, edi
jmp 0x10002c1e
xor edi, edi
mov ecx, dword [esp + 0x10]
mov dword [ecx], ebx
mov eax, edi
jmp 0x10002c1e
mov edx, dword [esp + 0x10]
mov dword [edx], ebx
xor eax, eax
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.10031d7a
add esp, 0xd8
ret
Function at 0x10004710
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x100048c1
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x1000489f
push esi
jmp 0x10004760
cmp dword [edi + 4], 2
jne 0x10004818
cmp dword [edi + 0x18], ebx
je 0x10004818
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x10004818
cmp eax, 0x10
jb 0x10004818
push 0x20
call dword [0x10051008]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10004825
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x10051008]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x1000482f
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x10004805
push eax
call dword [0x10051014]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x10004843
cmp dword [esp + 0x10], ebx
jne 0x1000480f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x10004816
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x10004760
jmp 0x1000485f
mov dword [esp + 0x14], 8
jmp 0x1000485f
push esi
mov dword [esp + 0x18], 8
call dword [0x1005100c]
add esp, 4
jmp 0x1000485f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x1005100c]
push esi
call dword [0x1005100c]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x1000486f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x10004899
mov eax, dword [esp + 0xc]
push eax
call fcn.100046c0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x100048b2
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x100060e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.100339f7
add esp, 0x18
test eax, eax
je 0x10006103
cmp eax, 0xffffffff
jne 0x10006105
xor eax, eax
ret
Function at 0x10006700
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10051060]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10006752
mov eax, dword [esp]
cmp al, 2
jne 0x1000674c
shr eax, 8
cmp al, 2
jne 0x1000674c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10031d7a
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.10031d7a
add esp, 0x194
ret

Function at 0x10008950
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x10008972
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10008966
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x100089a2
cmp dword [esi + 8], 0
jne 0x10008995
mov ecx, dword [eax + 8]
push 0x10046e8c
push ecx
call fcn.10032de1
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10008995
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.10034ddb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100089c4
mov eax, dword [esi + 8]
test eax, eax
je 0x100089be
push eax
call fcn.10032b59
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x100091b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x10051060]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x158]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10009204
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.100028b0
add esp, 8
cmp edi, 0xffffffff
jne 0x10009238
push str.Error_accept__ing_server_connect
push ebp
call fcn.10022220
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10031d7a
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.10022190
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.1001cc00
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x100092a6
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x100092a6
push edi
push esi
call fcn.100028b0
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10031d7a
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10031d7a
add esp, 0x18
ret
Function at 0x1000c900
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x1000c936
push str.Couldnt_set_desired_mode
push ebx
call fcn.10022220
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x1000c94d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.10022190
add esp, 0xc
cmp ebp, 0x13
jne 0x1000c961
push edi
call fcn.1000c890
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x1000c975
push edi
call fcn.10009c20
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x1000c987
mov ecx, edi
call fcn.1000c8e0
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x1000c995
mov ecx, edi
call fcn.1000c8f0
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x1000e890
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x10051060]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.10034fab
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x1000e8f5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x1000e8f5
lea edx, [esp]
push edx
call dword [0x10051014]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10031d7a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.10031d7a
add esp, 0x108
ret
jmp 0x1000e890

Function at 0x1000e910
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x10051060]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.10034fab
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x1000e8f5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x1000e8f5
lea edx, [esp]
push edx
call dword [0x10051014]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10031d7a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.10031d7a
add esp, 0x108
ret
jmp 0x1000e890
Function at 0x10018be0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10018c11
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
ret

Function at 0x10018c20
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
ret
Function at 0x1001c670
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor esi, esi
xor edi, edi
call fcn.100297e0
mov ebx, eax
mov dword [esp + 0x18], edx
cmp dword [esp + 0x24], esi
je 0x1001c6ca
mov eax, dword [esp + 0x30]
push eax
push ebp
call sym.libcurl.dll_curl_multi_perform
mov edi, eax
add esp, 8
cmp edi, 1
je 0x1001c6c0
mov esi, dword [ebp + 4]
test esi, esi
je 0x1001c6c0
lea esp, [esp]
push esi
push ebp
call fcn.1001b340
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x1001c6b0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x28], 0xffffffff
je 0x1001c7b2
mov edx, dword [ebp + 0x2c]
push 4
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.1000f3a0
add esp, 0xc
test eax, eax
je 0x1001c7c0
mov edi, dword [eax]
cmp dword [edi + 0x87b4], 0xc0dedbad
je 0x1001c70b
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0xc
ret
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x2c]
test ecx, ecx
je 0x1001c746
test dl, 2
je 0x1001c72f
mov eax, dword [ecx + 0x288]
test eax, eax
je 0x1001c72f
cmp dword [eax], esi
je 0x1001c72f
mov eax, dword [eax]
mov edi, dword [eax]
jmp 0x1001c746
test dl, 1
je 0x1001c746
mov eax, dword [ecx + 0x28c]
test eax, eax
je 0x1001c746
cmp dword [eax], esi
je 0x1001c746
mov ecx, dword [eax]
mov edi, dword [ecx]
mov eax, dword [edi + 8]
test eax, eax
je 0x1001c760
mov ecx, dword [eax + 0x240]
test byte [ecx + 0x40], 8
jne 0x1001c760
mov dword [eax + 0x4d0], edx
nop
mov edx, dword [esp + 0x18]
push edx
push ebx
push ebp
mov esi, edi
call fcn.1001b750
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1001c760
mov eax, dword [edi + 8]
test eax, eax
je 0x1001c795
mov ecx, dword [eax + 0x240]
test byte [ecx + 0x40], 8
jne 0x1001c795
mov dword [eax + 0x4d0], 0
test esi, esi
jg 0x1001c7a3
push edi
push ebp
call fcn.1001b340
add esp, 8
xor edi, edi
call fcn.100297e0
mov ebx, eax
mov dword [esp + 0x18], edx
jmp 0x1001c7c0
xor eax, eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
lea ebx, [ebx]
test edi, edi
je 0x1001c7ea
mov edx, dword [esp + 0x18]
push edx
push ebx
push ebp
mov esi, edi
call fcn.1001b750
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1001c7c4
test esi, esi
jg 0x1001c7ea
push edi
push ebp
call fcn.1001b340
add esp, 8
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push ebx
call fcn.100258e0
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x1001c825
mov edi, dword [eax + 0x14]
mov eax, dword [esp + 0x18]
push ebp
push eax
push ebx
call fcn.1001a860
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x1001c7c0
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret