joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100076e0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10007720
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [ebp + 0xc]
call fcn.10007bd0
add esp, 0xc
pop edi
pop ebx
pop ebp
ret
push dword [ebp + 0xc]
mov byte [edi + 0x156], 1
push ebx
call fcn.10007970
push dword [edi + 0x118]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x11c]
lea eax, [edi + 0xea]
mov ecx, 0x1006f514
push eax
push dword [edi + 0x98]
mov eax, 0x1006f9e4
cmovne eax, ecx
push eax
push 0x1006f9ec
push ebx
push dword [ebp + 0xc]
call fcn.10010850
push 1
push dword [edi + 0x98]
call fcn.10034220
add esp, 0x34
xor eax, eax
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
push 0
push dword [ebp + 0x10]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
mov dword [ebp - 0x108], eax
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007826
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x100077f1
mov dword [edi], 0x51
jmp 0x10007823
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.10043470
push eax
push 0x1006f6c0
push dword [ebx + 4]
call fcn.10010750
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8a8], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
mov eax, dword [ebp - 0x108]
push esi
push dword [eax + 0x98]
push dword [ebp + 0x10]
push 0x1006f6d4
push dword [ebx]
push dword [ebx + 4]
call fcn.10010850
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10052617
mov esp, ebp
pop ebp
ret
Function at 0x10007970
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x10007a9c
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x260]
test dword [eax + 0x48], 0x800
jne 0x10007a9c
push 0x80
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.10053b80
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10007a2d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
push esi
call fcn.10043470
push eax
push esi
push 0x1006f714
push ebx
call fcn.10010750
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.10009d10
add esp, 0x10
test al, al
jne 0x10007a9c
call fcn.10053d67
mov esi, eax
call fcn.10053d67
mov edi, eax
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
push dword [esi]
call fcn.10043470
push eax
push dword [edi]
push 0x1006f73c
push ebx
call fcn.10010750
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052617
mov esp, ebp
pop ebp
ret

Function at 0x10007cf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x694], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10007d3d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push 0x1006f540
jmp 0x10007da4
push dword [esi + 0x630]
mov dword [ebp - 0x10], 1
call fcn.1004fa40
push dword [esi + 0x634]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.1004fa40
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10007dad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push 0x1006f570
push esi
call fcn.10010810
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10052617
mov esp, ebp
pop ebp
ret
Function at 0x10007dc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10007e22
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10043470
push eax
push 0x1006f520
push esi
call fcn.10010810
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10052617
mov esp, ebp
pop ebp
ret
Function at 0x1000c920
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
add eax, esi
mov ecx, eax
sub ecx, esi
cmp esi, eax
push edi
cmova ecx, edx
mov edi, 0x1505
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x1000c969
mov al, byte [esi]
push eax
call fcn.10043120
movsx ecx, al
lea esi, [esi + 1]
mov eax, edi
inc ebx
shl eax, 5
add esp, 4
add eax, edi
xor ecx, eax
mov edi, ecx
cmp ebx, dword [ebp + 8]
jb 0x1000c947
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000d410
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 - 0x10], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x14]
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 - 8], eax
test eax, eax
jne 0x1000d5a7
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000d593
push edi
lea esp, [esp]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000d46e
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d460
sub eax, edx
lea ecx, [eax + 1]
jmp 0x1000d470
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x1000d482
mov eax, 0x10
jmp 0x1000d490
cmp eax, 0x17
jne 0x1000d535
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x1000d535
mov edx, dword [esi + 0x10]
test edx, edx
je 0x1000d535
cmp edx, eax
jb 0x1000d535
add eax, 0x20
add eax, ecx
push eax
call dword [0x1006c318]
mov edi, eax
add esp, 4
test edi, edi
je 0x1000d585
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.10053530
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x1000d523
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.10053530
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x1000d532
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1000d450
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x1000d552
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x1000d58f
test ebx, ebx
je 0x1000d576
lea ebx, [ebx]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x1006c31c]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x1000d560
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x1000d543
test ebx, ebx
jne 0x1000d59f
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 0x1000d7c0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1000d806
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push eax
push 2
call fcn.1000d6f0
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1000d838
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x17
call fcn.1000d6f0
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10052617
mov esp, ebp
pop ebp
ret

Function at 0x1000e430
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 0x1000e463
push 0x2e
push edi
call fcn.10053ef0
add esp, 8
test eax, eax
je 0x1000e461
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x1000e930
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, 0x24
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1000e9c8
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x18], xmm0
push edi
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.1000ea30
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.1000d900
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1000e9da
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10052617
mov esp, ebp
pop ebp
ret
Function at 0x10010630
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.10054c4f
add esp, 0x18
test eax, eax
je 0x10010652
cmp eax, 0xffffffff
jne 0x10010654
xor eax, eax
pop ebp
ret

Function at 0x100106c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x68a], 0
je 0x10010747
cmp dword [esi + 0x194], 0
je 0x10010711
push esi
call fcn.1002ffb0
push 1
push esi
mov byte [ebp + 8], al
call fcn.10030490
push dword [esi + 0x144]
mov eax, dword [esi + 0x194]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.10030490
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x10010747
push dword [esi + 0x140]
lea eax, [eax + eax*2]
push 1
add eax, 0x100706d0
push 2
push eax
call fcn.10054fd5
push dword [esi + 0x140]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10054fd5
add esp, 0x20
pop esi
pop ebp
ret

Function at 0x100134e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, eax
lea esp, [esp]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
call esi
sub eax, edi
cmp eax, 0x32
jb 0x10013500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10013c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1007fdac
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007fdb0]
test eax, eax
jne 0x10013c5d
push 0x1007fdac
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
dec eax
mov dword [0x1007fdb0], eax
jne 0x10013c44
call fcn.10039f10
push dword [0x1007fdb4]
call fcn.100442f0
add esp, 4
mov dword [0x1007fdb4], 0
push 0x1007fdac
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x42413656
push eax
mov dword [ebp - 0xc], 0x34414244
mov word [ebp - 8], 0x30
call fcn.10001220
add esp, 4
call fcn.100134e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
Function at 0x10016c20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x1a4]
push esi
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10016c96
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x88], eax
jmp 0x10016c9c
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x10016cc5
push 0x10072440
push edi
call fcn.10010750
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
push 0x10072464
push edi
call fcn.10010810
mov byte [ebx + 0x24d], 0
push 1
push dword [ebp - 0x88]
call fcn.10034220
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.10006ac0
mov esi, eax
add esp, 0x20
test esi, esi
je 0x10016d1c
push dword [ebp - 0x88]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x19c], 0
je 0x10016d74
push 1
push edi
call fcn.10030490
mov eax, dword [edi + 0x19c]
push 1
push dword [ebp - 0x88]
push dword [edi + 0x1a0]
call eax
push 0
push edi
mov esi, eax
call fcn.10030490
add esp, 0x1c
test esi, esi
je 0x10016d74
push ebx
push edi
call fcn.10017350
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052617
mov esp, ebp
pop ebp
ret

Function at 0x100198e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov esi, dword [ebp + 8]
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 2
je 0x1001991d
push 0x10072c20
push esi
call fcn.10010750
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x10019934
push ecx
push 0x10072c3c
push esi
call fcn.10010810
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x1001994c
push ebx
push esi
call fcn.100194f0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0x10019960
push esi
call fcn.100183d0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0x10019978
push 0xd
push 1
push esi
call fcn.10018fc0
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0x1001998b
push 0xe
push 1
push esi
call fcn.10018fc0
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001c5b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001c520

Function at 0x1001e0f0
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 [0x1006c318]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1001e11d
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 0x1001e164
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 dword [ebp + 0x10], ebx
jmp 0x1001e16a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
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 0x1001e1ca
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
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
dec dword [ebp + 0x10]
jne 0x1001e190
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x1001e1f7
nop
mov eax, dword [esi + 4]
push 1
push 0x100734d6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x100734d7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x1001e1d0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001e510
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1001e557
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x1001e557
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10052617
mov esp, ebp
pop ebp
ret

Function at 0x1001e570
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001e591
cmp dword [esi + 0x84], 0
je 0x1001e591
push 2
push 3
push esi
call fcn.1003e610
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1001d5d0
add esp, 4
test esi, esi
je 0x1001e5b4
cmp dword [esi + 0x84], 0
je 0x1001e5b4
push 3
push esi
call fcn.1003e650
add esp, 8
pop esi
pop ebp
ret
Function at 0x1001e6c0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001e703
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x10c], 0
jne 0x1001e6f1
push 0
call fcn.1001e6c0
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x10c], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0x10c], 2
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1001e720
xor esi, esi
xor eax, eax
test esi, esi
pop esi
setg al
pop ebp
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
pop esi
setg al
pop ebp
ret