joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006d60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10006edd
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x10006ec9
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10006dbe
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006db0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10006dc0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
cmp eax, 2
jne 0x10006dd2
mov eax, 0x10
jmp 0x10006de0
cmp eax, 0x17
jne 0x10006e85
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x10006e85
mov edx, dword [esi + 0x10]
test edx, edx
je 0x10006e85
cmp edx, eax
jb 0x10006e85
add ecx, 0x20
add eax, ecx
push eax
call dword [0x100c2008]
mov edi, eax
add esp, 4
test edi, edi
je 0x10006ebe
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.100540f0
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
je 0x10006e73
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.100540f0
add esp, 0xc
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x10006e82
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10006da0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
test eax, eax
je 0x10006ea2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x10006ec5
push ebx
call fcn.10006d30
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0x10006e93
test ebx, ebx
jne 0x10006ed5
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x100073bd
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
and dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x10007382
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10007ca0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x10007cd3
push 0x2e
push edi
call fcn.100547d0
add esp, 8
test eax, eax
je 0x10007cd1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x100083a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10008422
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 0x208
push eax
push dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0x6601
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0x18], 8
call fcn.10008470
lea eax, [ebp - 0x14]
push 8
push eax
call fcn.10007370
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x10008428
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp - 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
lea eax, [ebp - 8]
push eax
push edx
push 0
push 0
push 0
push dword [ebp - 0xc]
mov dword [edx], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x100092e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.1005e32d
add esp, 0x18
test eax, eax
je 0x10009302
cmp eax, 0xffffffff
jne 0x10009304
xor eax, eax
pop ebp
ret
Function at 0x1001d210
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x84]
or esi, 0xffffffff
push ecx
mov ebx, dword [edi + 0xc]
mov eax, dword [ebx + 0x154]
push eax
mov dword [ebp - 4], eax
mov dword [ebp + 8], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1001d268
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 4]
push ebx
push edi
call fcn.100031e0
add esp, 0xc
cmp esi, 0xffffffff
jne 0x1001d294
push str.Error_accept__ing_server_connect
push edi
call fcn.1003bde0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.1003be80
push 1
push esi
mov byte [ebx + 0x259], 0
mov dword [ebx + 0x154], esi
call fcn.10037650
add esp, 0x10
mov byte [ebx + 0x26c], 1
cmp dword [edi + 0x1b0], 0
je 0x1001d307
push 1
push edi
call fcn.10033fa0
mov eax, dword [edi + 0x1b0]
push 1
push esi
push dword [edi + 0x1b4]
call eax
push 0
push edi
mov esi, eax
call fcn.10033fa0
add esp, 0x1c
test esi, esi
je 0x1001d307
push ebx
push edi
call fcn.1001d740
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001f660
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x1001f692
push str.Couldnt_set_desired_mode
push esi
call fcn.1003bde0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x1001f6a9
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.1003be80
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x1001f6c2
push ebx
push esi
call fcn.1001f370
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x1001f6d7
push esi
call fcn.1001e440
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x1001f6ec
push esi
call fcn.1001f350
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x1001f6fc
push esi
call fcn.1001f540
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10022040
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10021fb0

Function at 0x10023a90
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100c2008]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10023abd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x10023b07
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x10023b0d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10023b6b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x10023b30
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x10023b97
mov eax, dword [esi + 4]
push 1
push str.6:_u
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x100b172f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x10023b70
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10023e20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10023e48
cmp dword [esi + 0x78], 0
je 0x10023e48
push 2
push 3
push esi
call fcn.1003f780
push dword [ebp + 0xc]
call fcn.10023050
add esp, 0x10
jmp 0x10023e57
push dword [ebp + 0xc]
call fcn.10023050
add esp, 4
test esi, esi
je 0x10023e68
cmp dword [esi + 0x78], 0
je 0x10023e68
push 3
push esi
call fcn.1003f7c0
add esp, 8
pop esi
pop ebp
ret

Function at 0x10023f10
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10023f25
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10023f3a
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop ebp
ret
Function at 0x1002f630
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1002f66f
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0x1002f6a0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1002f6df
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1002f6e7
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x1b
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1003aa30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.10048130
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.10007d80
push dword [ebp + 0xc]
mov edi, eax
call fcn.10007d80
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x1003aab7
lea eax, [ebp - 0x20]
push eax
call fcn.10048130
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.100481e0
add esp, 0x20
test edx, edx
ja 0x1003aada
jb 0x1003aaa5
cmp eax, 0x3e8
ja 0x1003aada
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x1003aa70
test edi, edi
je 0x1003aac4
push edi
call fcn.1005e1ab
add esp, 4
test esi, esi
je 0x1003aad1
push esi
call fcn.1005e1ab
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1003aae7
push edi
call fcn.1005e1ab
add esp, 4
test esi, esi
je 0x1003aaf4
push esi
call fcn.1005e1ab
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003bca0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1003bcbb
cmp dword [edi], 0
jne 0x1003bccd
test esi, esi
je 0x1003bcc4
cmp dword [esi], 0
jne 0x1003bccd
test ebx, ebx
je 0x1003bd16
cmp dword [ebx], 0
je 0x1003bd16
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.10048010
add esp, 0xc
test ebx, ebx
je 0x1003bce8
cmp dword [ebx], 0
jne 0x1003bcea
xor ebx, ebx
test esi, esi
je 0x1003bcf3
cmp dword [esi], 0
jne 0x1003bcf5
xor esi, esi
test edi, edi
je 0x1003bcfe
cmp dword [edi], 0
jne 0x1003bd00
xor edi, edi
push eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.1003bc50
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003bd40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f9], 0
je 0x1003bdd4
cmp dword [edi + 0x1a8], 0
je 0x1003bd91
push esi
push 1
push edi
call fcn.10033fa0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1a8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.10033fa0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x1003bda5
sub ecx, 1
je 0x1003bda5
sub ecx, 1
jne 0x1003bdd4
push dword [edi + 0x148]
lea eax, [edx*2 + 0x100b4a18]
push 1
add eax, edx
push 2
push eax
call fcn.10060be4
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10060be4
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret
Function at 0x1003c0a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
push eax
mov ecx, dword [esi + 0xc]
push ecx
push esi
mov edi, dword [ecx + eax*4 + 0x150]
call fcn.1003c540
add esp, 0xc
test eax, eax
je 0x1003c0dc
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0x1b
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp edi, 0xffffffff
jne 0x1003c151
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x1003c120
mov eax, dword [ebp + 0x18]
xor edi, edi
pop ebx
mov dword [eax], 0x51
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x100]
push eax
push ebx
call fcn.10043f90
push eax
push str.Send_failure:__s
push esi
call fcn.1003bde0
mov eax, dword [ebp + 0x18]
add esp, 0x18
mov dword [esi + 0x948], ebx
mov dword [eax], 0x37
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x178]
add esi, eax
mov eax, dword [ecx + 0x298]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x1003c600
cmp dword [ecx + edx*4 + 0x168], 0x1003bfe0
jne 0x1003c600
cmp dword [esi], 0
je 0x1003c589
test edi, edi
je 0x1003c600
mov ebx, dword [ecx + edx*4 + 0x150]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.1003bb40
add esp, 0x14
cmp eax, 0xffffffff
je 0x1003c600
test al, 1
je 0x1003c600
mov ecx, dword [esi]
test ecx, ecx
jne 0x1003c5e9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x100c2008]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x1003c5d8
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1003c600
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1003f690
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1003f6c2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10042590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 6
push 1
push 2
mov dword [ebp - 4], 0x10
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100425bf
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [ebp - 0x18], xmm0
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
xor eax, eax
push 4
mov word [ebp - 0x1e], ax
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1004273e
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1004273e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1004273e
cmp dword [ebp - 4], 0x10
jl 0x1004273e
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1004273e
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x1004273e
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1004273e
push 1
push esi
call fcn.10037650
add esp, 8
test eax, eax
js 0x1004273e
push 0
push 0x2710
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push 1
push eax
mov dword [ebp - 0xc], 0x300
call fcn.1003b8a0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x1004273e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1004273e
cmp dword [ebp - 4], 0x10
jl 0x1004273e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x1004273e
cmp dword [ebp - 4], 0x10
jl 0x1004273e
mov ax, word [ebp - 0x20]
cmp ax, word [ebp - 0x30]
jne 0x1004273e
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jne 0x1004273e
mov ax, word [ebp - 0x1e]
cmp ax, word [ebp - 0x2e]
jne 0x1004273e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10044c80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10044ca0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x100b6f10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x100b6f20
push esi
mov dword [ebp - 8], ebx
call fcn.10060f55
add esp, 8
test eax, eax
je 0x10044cec
test ebx, ebx
je 0x10044cdc
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10044d15
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10044d15
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x10044dd8
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10044d31
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x100c2008]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10044dce
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10044dce
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10044d70
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10044d90
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x10044da5
mov eax, dword [ebp - 8]
test eax, eax
je 0x10044dc5
push 8
push 0
push ebx
call eax
jmp 0x10044dcc
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x100c200c]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10044e30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
test byte [ebp + 8], 2
je 0x10044e75
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10044e6c
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x10044e66
shr eax, 8
cmp al, 2
je 0x10044e75
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.10044c80
add esp, 4
mov dword [0x100c3ee4], eax
test eax, eax
je 0x10044ea8
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x100c3ee0]
test eax, eax
cmovne ecx, eax
mov dword [0x100c3ee0], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.10050c50
add esp, 0x14
test al, al
setne byte [0x100c4b1c]
push 0x100c4b20
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov esp, ebp
pop ebp
ret