joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c4d0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10044060]
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 0x1001c525
mov eax, dword [esp]
cmp al, 2
jne 0x1001c51f
shr eax, 8
cmp al, 2
jne 0x1001c51f
call fcn.10029d20
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100377f0
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.100377f0
add esp, 0x194
ret

Function at 0x1001ecf0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x474], 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 0x1001ed2e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1000a240
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x478]
push edx
mov dword [esp + 0xc], 1
call fcn.1002f810
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x47c]
push eax
call fcn.1002f810
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 0x1001eda7
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.1000a240
add esp, 0x10
add esp, 0x14
ret
Function at 0x1001f490
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10044060]
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 0x1001f605
cmp dword [ebp + 0x254], 0
push ebx
push esi
jne 0x1001f5fa
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1001f51c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.10024630
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.1000a2d0
add esp, 0x18
jmp 0x1001f603
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1001f569
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.10024630
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.1000a2d0
add esp, 0x18
jmp 0x1001f603
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.1001f420
test eax, eax
jne 0x1001f5aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10024630
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.1000a2d0
add esp, 0x18
jmp 0x1001f603
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 + 0x18]
call fcn.1001f420
test eax, eax
jne 0x1001f5fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.10024630
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.1000a2d0
add esp, 0x18
jmp 0x1001f603
push ebp
call fcn.1001f3c0
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.100377f0
add esp, 0x10c
ret

Function at 0x1001f620
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
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 0x1001f663
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10024630
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1000a240
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.1000a240
add esp, 8
pop esi
pop ecx
ret
Function at 0x1001f680
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x100441b8]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x1001f723
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 0x1001f717
mov dword [0x100441b8], 2
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100377f0
add esp, 0xac
ret
mov dword [0x100441b8], 1
jmp 0x1001f728
cmp eax, 2
je 0x1001f772
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 0x1001f759
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x1001f771
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.100377f0
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5d0]
test esi, esi
je 0x1001f7fd
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1001f7fd
push 0x1001f790
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.10032b00
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x1001f806
mov dword [edi + 0x5d0], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001f810
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x1001f835
push esi
call fcn.10035fa0
add esp, 4
test eax, eax
jne 0x1001f849
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1001f7fd
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x10022f20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
call fcn.10001900
mov edi, edx
mov ebx, eax
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x28], esi
je 0x10022f7a
mov eax, dword [esp + 0x34]
push eax
push ebp
call sym.libcurl.dll_curl_multi_perform
mov edi, eax
add esp, 8
cmp edi, 1
je 0x10022f70
mov esi, dword [ebp + 4]
test esi, esi
je 0x10022f70
push esi
push ebp
call fcn.10021b60
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x10022f60
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esp + 0x2c], 0xffffffff
je 0x100230c7
mov edx, dword [ebp + 0x2c]
push 4
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.100207f0
add esp, 0xc
test eax, eax
je 0x1002305c
mov esi, dword [eax]
cmp dword [esi + 0x8814], 0xc0dedbad
je 0x10022fbb
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x30]
test ecx, ecx
je 0x10022ff8
test dl, 2
je 0x10022fe0
mov eax, dword [ecx + 0x33c]
test eax, eax
je 0x10022fe0
cmp dword [eax], 0
je 0x10022fe0
mov eax, dword [eax]
mov esi, dword [eax]
jmp 0x10022ff8
test dl, 1
je 0x10022ff8
mov eax, dword [ecx + 0x340]
test eax, eax
je 0x10022ff8
cmp dword [eax], 0
je 0x10022ff8
mov ecx, dword [eax]
mov esi, dword [ecx]
mov eax, dword [esi + 8]
test eax, eax
je 0x10023011
mov ecx, dword [eax + 0x2c4]
test byte [ecx + 0x40], 8
jne 0x10023011
mov dword [eax + 0x5a0], edx
push edi
push ebx
push ebp
call fcn.10021fe0
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x1002303d
mov edx, dword [ecx + 0x2c4]
test byte [edx + 0x40], 8
jne 0x1002303d
mov dword [ecx + 0x5a0], 0
test eax, eax
jg 0x1002304b
push esi
push ebp
call fcn.10021b60
add esp, 8
xor esi, esi
call fcn.10001900
mov ebx, eax
mov dword [esp + 0x1c], edx
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x1002307d
push edi
push ebx
push ebp
call fcn.10021fe0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jg 0x1002307d
push esi
push ebp
call fcn.10021b60
add esp, 8
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
push ebx
call fcn.100279b0
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x100230b2
mov esi, dword [eax + 0x14]
push ebp
push edi
push ebx
mov edi, esi
call fcn.10021080
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x10023058
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov eax, dword [esp + 4]
pop ebx
add esp, 0x10
ret
xor eax, eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
jmp 0x1002305c

Function at 0x10024ef0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2cc], 2
jne 0x10024f02
jmp fcn.10024e90
mov eax, 1
ret
Function at 0x10026fa0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x10039a68
push ecx
call fcn.1000a240
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10026130
test eax, eax
jne 0x10026fd0
mov eax, esi
jmp fcn.10026570
ret
Function at 0x100273f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [ebp + 0x500]
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x10027479
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call sub.MSVCR90.dll_memcpy
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov ecx, dword [esi + 0x14c]
cmp ecx, 4
jge 0x100274b4
push str.Received_too_short_packet
push edi
call fcn.1000a2d0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100377f0
add esp, 0x88
ret
mov edx, dword [esi + 0x15c]
movzx ax, byte [edx]
movzx edx, byte [edx + 1]
shl ax, 8
movzx eax, ax
or eax, edx
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x100274da
jmp dword [eax*4 + 0x100275f4]
cmp ecx, 4
jle case.0x100274da.4
mov eax, dword [esi + 0x15c]
movzx dx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl dx, 8
movzx edx, dx
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x100274da.4
add ecx, 0xfffffffc
push ecx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
push 1
push ebp
call fcn.1000a790
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10027546
mov ecx, 5
mov eax, esi
call fcn.10027370
mov eax, ebx
jmp 0x1002749b
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
mov eax, dword [edi + 0x70]
adc dword [edi + 0x74], edx
mov edx, dword [edi + 0x74]
push edx
push eax
push edi
call fcn.100029f0
jmp 0x100275c8
mov eax, dword [esi + 0x15c]
movzx cx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl cx, 8
movzx edx, cx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
or edx, eax
push 0x10039a68
push edi
mov dword [esi + 8], edx
call fcn.1000a240
jmp 0x100275c8
mov edx, dword [esi + 0x15c]
add ecx, 0xfffffffe
push ecx
add edx, 2
push edx
push esi
call fcn.10026310
add esp, 0xc
test eax, eax
je case.0x100274da.4
jmp 0x1002749b
push str.Internal_error:_Unexpected_packet
push 0x1003a628
push edi
call fcn.1000a2d0
add esp, 0xc
push ebp
call fcn.10002ad0
add esp, 4
test eax, eax
je 0x10027499
mov ecx, 5
mov eax, esi
call fcn.10027370
mov eax, 0x2a
jmp 0x1002749b
Function at 0x100288e0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x100288ef
jmp dword [ecx*4 + 0x10028944]
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 0x10028b20
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ebp
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebp
jne 0x10028cd1
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebp
je 0x10028caf
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x10028b7d
lea ebx, [eax + 0xe]
jmp 0x10028b89
cmp eax, 0x17
jne 0x10028c28
lea ebx, [eax + 5]
cmp dword [edi + 0x18], ebp
je 0x10028c28
mov eax, dword [edi + 0x10]
cmp eax, ebp
jbe 0x10028c28
cmp eax, ebx
jb 0x10028c28
push 0x20
call dword [0x10044038]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x10028c35
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 ebx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [0x10044038]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebp
je 0x10028c3f
mov ecx, dword [edi + 0x18]
push ebx
push ecx
push eax
call sub.MSVCR90.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebp
je 0x10028c0f
push eax
call dword [0x10044044]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebp
je 0x10028c53
cmp dword [esp + 0x10], ebp
jne 0x10028c19
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x10028c24
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebp
jne 0x10028b70
jmp 0x10028c6f
mov dword [esp + 0x14], 8
jmp 0x10028c6f
push esi
mov dword [esp + 0x18], 8
call dword [0x1004403c]
add esp, 4
jmp 0x10028c6f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x1004403c]
push esi
call dword [0x1004403c]
add esp, 8
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
cmp eax, ebp
je 0x10028c80
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebp
je 0x10028ca9
mov eax, dword [esp + 8]
push eax
call fcn.10028ad0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, ebp
pop edi
mov dword [esp + 4], ebp
mov dword [edx], ecx
pop ebp
add esp, 0x10
ret
cmp dword [esp + 8], ebp
jne 0x10028cc2
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
pop edi
pop ebp
add esp, 0x10
ret
Function at 0x1002e290
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 0x1002e2a9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.10001900
push edx
push eax
call fcn.10001930
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x1002e2f6
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.10001900
push edx
push eax
call fcn.10001930
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x1002e2f8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x1002f780
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 dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x1002f7a4
cmp eax, 0xffffffff
jne 0x1002f7a6
xor eax, eax
ret

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

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x10044038]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1002f865
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x1002f8ac
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x1002f8b0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x1002f90e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x1002f8d3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x1002f951
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x10041333
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x10041334
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x1002f920
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x1002f9b0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x1002f9e3
push 0x2e
push esi
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x1002f9e1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x10031700
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100317aa
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov byte [esp + 0x14], 8
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.10031670
mov ecx, esi
push 8
push ecx
call fcn.10035760
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x100317bc
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100377f0
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.100377f0
add esp, 0x24
ret
Function at 0x10031910
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10031920
sub eax, edx
mov edi, eax
lea ebx, [edi + edi]
push ebx
call dword [0x10044038]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10031949
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
test edi, edi
jbe 0x10031960
nop
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x10031950
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x100319df
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100319d2
mov edx, dword [esp + 0x10]
push 0
push ebx
push esi
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [edi + 0x10], eax
push esi
mov byte [edi + 0x14], al
call dword [0x1004403c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x10037550
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10037598
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x1003759f
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ecx
ret

Function at 0x100377f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10044060]
jne 0x100377fa
repz ret
jmp fcn.10037f38