joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002620
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x1003b064]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x1003b078]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x100026c3
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCR90.dll_memset
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 0x100026b7
mov dword [0x1003b078], 2
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.10031292
add esp, 0xac
ret
mov dword [0x1003b078], 1
jmp 0x100026c8
cmp eax, 2
je 0x10002712
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 0x100026f9
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x10002711
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.10031292
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5a0]
test esi, esi
je 0x1000279d
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1000279d
push 0x10002730
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x30]
push ecx
push edx
call fcn.10001cf0
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x100027a6
mov dword [edi + 0x5a0], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100027b0
mov dword [eax], esi
cmp dword [esi + 0x178], 0
mov edi, dword [esi + 0x150]
jne 0x1000279d
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1000279d
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x10002920
Capabilities:
Connect socket

Disassembly:
sub esp, 0xd8
mov eax, dword [0x1003b064]
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.10002840
add esp, 0x10
test eax, eax
je 0x1000298c
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.10031292
add esp, 0xd8
ret
push ebx
push esi
push edi
lea ebx, [esp + 0x20]
lea edi, [esp + 0xb4]
lea esi, [esp + 0x34]
call fcn.10002400
test eax, eax
jne 0x100029da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10025e30
push eax
mov eax, dword [esp + 0x20]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.10021a60
mov ecx, dword [esp + 0x34]
push ecx
push ebp
call fcn.100027e0
add esp, 0x20
jmp 0x10002b4c
mov esi, dword [esp + 0x14]
lea edx, [esp + 0xb4]
push edx
push str.__Trying__s..._n
push esi
call fcn.100219d0
mov ebx, dword [esp + 0x28]
add esp, 0xc
cmp dword [esi + 0x354], 0
je 0x10002a0a
mov edx, ebx
mov edi, ebp
call fcn.100025c0
push ebx
call fcn.10002620
add esp, 4
cmp dword [esi + 0x454], 0
je 0x10002a23
mov edi, ebx
call fcn.10001db0
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x10002a49
mov ecx, dword [esi + 0x1b4]
push 0
push ebx
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x10002a76
mov dword [esp + 0x18], 1
mov edx, dword [esp + 0x24]
push edx
push ebx
push ebp
call fcn.10001f30
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10002a8e
push ebx
push ebp
call fcn.100027e0
mov eax, edi
dec eax
add esp, 8
neg eax
sbb eax, eax
and eax, edi
jmp 0x10002b4e
test eax, eax
je 0x10002a49
push ebx
push ebp
call fcn.100027e0
add esp, 8
mov eax, 0x2a
jmp 0x10002b4e
push 1
push ebx
call fcn.1001c4a0
add esp, 8
call fcn.10029080
cmp dword [ebp + 0x234], 1
mov dword [ebp + 0x22c], eax
mov dword [ebp + 0x230], edx
jle 0x10002ac3
mov eax, dword [ebp + 0x238]
push eax
push esi
call fcn.1001a6a0
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x10002b46
cmp dword [ebp + 0x8c], 1
jne 0x10002b46
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 0x10002b3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x10002b3a
cmp edi, 0x2732
jle 0x10002b06
cmp edi, 0x2734
jle 0x10002b3a
push edi
push ebp
call fcn.10025e30
push eax
lea eax, [esp + 0xc0]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.100219d0
push ebx
push ebp
mov dword [esi + 0x85dc], edi
call fcn.100027e0
mov edi, 7
add esp, 0x20
mov eax, edi
jmp 0x10002b4e
xor edi, edi
mov ecx, dword [esp + 0x10]
mov dword [ecx], ebx
mov eax, edi
jmp 0x10002b4e
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.10031292
add esp, 0xd8
ret
Function at 0x100045b0
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 0x10004761
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x1000473f
push esi
jmp 0x10004600
cmp dword [edi + 4], 2
jne 0x100046b8
cmp dword [edi + 0x18], ebx
je 0x100046b8
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x100046b8
cmp eax, 0x10
jb 0x100046b8
push 0x20
call dword [0x1003b008]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x100046c5
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 [0x1003b008]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x100046cf
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 0x100046a5
push eax
call dword [0x1003b014]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x100046e3
cmp dword [esp + 0x10], ebx
jne 0x100046af
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x100046b6
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x10004600
jmp 0x100046ff
mov dword [esp + 0x14], 8
jmp 0x100046ff
push esi
mov dword [esp + 0x18], 8
call dword [0x1003b00c]
add esp, 4
jmp 0x100046ff
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x1003b00c]
push esi
call dword [0x1003b00c]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x1000470f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x10004739
mov eax, dword [esp + 0xc]
push eax
call fcn.10004560
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 0x10004752
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 0x10006410
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1003b064]
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 0x10006462
mov eax, dword [esp]
cmp al, 2
jne 0x1000645c
shr eax, 8
cmp al, 2
jne 0x1000645c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10031292
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.10031292
add esp, 0x194
ret

Function at 0x10008640
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x10008662
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10008656
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x10008694
cmp dword [esi + 8], 0
jne 0x10008686
mov ecx, dword [eax + 8]
push 0x10032e24
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10008686
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100086b7
mov eax, dword [esi + 8]
test eax, eax
je 0x100086b1
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
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 0x10008ec0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x1003b064]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x154]
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 0x10008f14
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.100027e0
add esp, 8
cmp edi, 0xffffffff
jne 0x10008f48
push str.Error_accept__ing_server_connect
push ebp
call fcn.10021a60
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10031292
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.100219d0
push 1
push edi
mov dword [esi + 0x154], edi
call fcn.1001c4a0
mov dword [esi + 0x164], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x10008fb6
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x10008fb6
push edi
push esi
call fcn.100027e0
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x154], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10031292
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10031292
add esp, 0x18
ret
Function at 0x1000c5f0
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 0x1000c626
push str.Couldnt_set_desired_mode
push ebx
call fcn.10021a60
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x1000c63d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.100219d0
add esp, 0xc
cmp ebp, 0x13
jne 0x1000c651
push edi
call fcn.1000c580
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x1000c665
push edi
call fcn.100098f0
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x1000c677
mov ecx, edi
call fcn.1000c5d0
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x1000c685
mov ecx, edi
call fcn.1000c5e0
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x1000e5b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1003b064]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x1000e616
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x1000e616
lea edx, [esp]
push edx
call dword [0x1003b014]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10031292
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.10031292
add esp, 0x108
ret
jmp 0x1000e5b0

Function at 0x1000e630
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1003b064]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x1000e616
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x1000e616
lea edx, [esp]
push edx
call dword [0x1003b014]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10031292
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.10031292
add esp, 0x108
ret
jmp 0x1000e5b0
Function at 0x10018f90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
add byte [eax - 0x78b5b], al
inc dword [eax]
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.1001741b
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.1001737c
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x10019383
Function at 0x1001bf30
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.10029080
mov ebx, eax
mov dword [esp + 0x18], edx
cmp dword [esp + 0x24], esi
je 0x1001bf8a
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 0x1001bf80
mov esi, dword [ebp + 4]
test esi, esi
je 0x1001bf80
lea esp, [esp]
push esi
push ebp
call fcn.1001acb0
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x1001bf70
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x28], 0xffffffff
je 0x1001c072
mov edx, dword [ebp + 0x28]
push 4
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.1000f0c0
add esp, 0xc
test eax, eax
je 0x1001c080
mov edi, dword [eax]
cmp dword [edi + 0x8794], 0xc0dedbad
je 0x1001bfcb
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 0x1001c006
test dl, 2
je 0x1001bfef
mov eax, dword [ecx + 0x284]
test eax, eax
je 0x1001bfef
cmp dword [eax], esi
je 0x1001bfef
mov eax, dword [eax]
mov edi, dword [eax]
jmp 0x1001c006
test dl, 1
je 0x1001c006
mov eax, dword [ecx + 0x288]
test eax, eax
je 0x1001c006
cmp dword [eax], esi
je 0x1001c006
mov ecx, dword [eax]
mov edi, dword [ecx]
mov eax, dword [edi + 8]
test eax, eax
je 0x1001c020
mov ecx, dword [eax + 0x23c]
test byte [ecx + 0x40], 8
jne 0x1001c020
mov dword [eax + 0x4c0], edx
nop
mov edx, dword [esp + 0x18]
push edx
push ebx
push ebp
mov esi, edi
call fcn.1001b0b0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1001c020
mov eax, dword [edi + 8]
test eax, eax
je 0x1001c055
mov ecx, dword [eax + 0x23c]
test byte [ecx + 0x40], 8
jne 0x1001c055
mov dword [eax + 0x4c0], 0
test esi, esi
jg 0x1001c063
push edi
push ebp
call fcn.1001acb0
add esp, 8
xor edi, edi
call fcn.10029080
mov ebx, eax
mov dword [esp + 0x18], edx
jmp 0x1001c080
xor eax, eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
lea ebx, [ebx]
test edi, edi
je 0x1001c0aa
mov edx, dword [esp + 0x18]
push edx
push ebx
push ebp
mov esi, edi
call fcn.1001b0b0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1001c084
test esi, esi
jg 0x1001c0aa
push edi
push ebp
call fcn.1001acb0
add esp, 8
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push ebx
call fcn.10025150
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x1001c0e5
mov edi, dword [eax + 0x14]
mov eax, dword [esp + 0x18]
push ebp
push eax
push ebx
call fcn.1001a290
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x1001c080
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
Function at 0x1001cc40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x1001cc59
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.10029080
push edx
push eax
call fcn.100290b0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x1001cca6
mov eax, dword [ebx + 0x144]
mov ecx, dword [ebx + 0x140]
push eax
push ecx
call fcn.10029080
push edx
push eax
call fcn.100290b0
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x1001cca8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x10020000
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x1002000f
jmp dword [ecx*4 + 0x10020064]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
Function at 0x10021710
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10021742
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x10021880
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
push ebp
mov ebp, dword [esp + 8]
test ecx, ecx
je 0x100218a1
mov edx, dword [esi + 0x134]
push edx
push ebx
push ebp
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
jl 0x100218d7
cmp eax, 2
jg 0x100218d7
mov ecx, dword [esi + 0x130]
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x100362d4]
push 2
push edx
call edi
mov eax, dword [esi + 0x130]
push eax
push 1
push ebx
push ebp
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x150]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x10021c5d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x10021c34
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.10025e30
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.10021a60
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x85dc], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0x150]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x100261d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10021a60
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.10026090
add esp, 4
pop esi
pop ecx
ret
Function at 0x10026f40
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [esp + 4], eax
jne 0x100270aa
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x10026f79
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10026f86
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10026f93
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10026fc7
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10026fd7
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10026fe3
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10026fef
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10026ffc
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10027009
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
sub ecx, 2
push ecx
lea edx, [ebx + 0x1cb2]
push edx
push 0x3e
mov dword [ebx + 0x1eb4], eax
mov dword [ebp], edi
call fcn.10026520
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x150]
push eax
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x10027069
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.10021a60
add esp, 0xc
lea edx, [ebx + 0x1cb3]
push 4
push edx
call fcn.10026dd0
mov eax, dword [edi + 0x150]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push eax
call ebp
test eax, eax
jge 0x100270a7
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.10021a60
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100288b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x10032814
push ecx
call fcn.100219d0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10027a40
test eax, eax
jne 0x100288e0
mov eax, esi
jmp fcn.10027ee0
ret
Function at 0x10031292
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003b064]
jne 0x1003129c
repz ret
jmp fcn.100319bf