joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002916f
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x1009bb78
call fcn.1005f4f5
mov esi, ecx
push 8
call fcn.1005ea7a
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov edx, dword [edx]
mov dword [eax], edx
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x100291d0
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.10084bce
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x100291c0
mov eax, esi
call fcn.1005f4be
ret 8
push 6
mov dword [edi], ebx
call fcn.1005cd30
int3
Function at 0x10039616
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.1003928e
push eax
push esi
push dword [ebp + 8]
call fcn.10039243
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1003928e
push eax
push esi
push dword [ebp + 8]
call fcn.10039243
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1003928e
push eax
push esi
push dword [ebp + 8]
jne 0x100396f1
call fcn.10039243
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1003927e
jge 0x100396fc
mov bl, 0xcd
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.1003927e
push edi
jae 0x100396e7
inc eax
lea eax, [ebp - 0x84]
push eax
call fcn.1003928e
push eax
push esi
push dword [ebp + 8]
call fcn.10039243
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x10039a77
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.100391ef
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x100397ee
invalid
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.100391ef
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x100397bb
call fcn.1003927e
jge 0x100397a5
ret 0x7e8b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10047136
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, edx
mov dword [ebp - 0x10], eax
push edi
mov edi, ecx
mov dword [ebp - 8], edi
test eax, eax
jle 0x10047227
push ebx
push esi
mov ecx, dword [edi + 8]
mov ebx, dword [edi]
mov eax, dword [edi + 0xc]
add ebx, ecx
mov esi, dword [edi + 4]
mov edi, eax
adc esi, eax
shr edi, 0x13
shld eax, ecx, 0xd
xor edx, edx
mov dword [ebp - 4], esi
shl ecx, 0xd
or edx, eax
or edi, ecx
xor edx, esi
xor edi, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 8]
mov ecx, dword [edi + 0x18]
mov edx, ecx
add edx, dword [edi + 0x10]
mov eax, dword [edi + 0x1c]
mov esi, eax
adc esi, dword [edi + 0x14]
mov edi, eax
shld eax, ecx, 0x10
shr edi, 0x10
shl ecx, 0x10
or edi, ecx
mov dword [ebp - 0xc], esi
xor edi, edx
mov dword [ebp - 0x18], edx
xor esi, esi
xor edx, edx
or esi, eax
or edx, ebx
xor esi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, esi
mov ebx, dword [ebp - 8]
add eax, edi
mov dword [ebp - 4], eax
adc edx, esi
shr ecx, 0xb
shld esi, edi, 0x15
mov dword [ebx], eax
xor eax, eax
or eax, esi
shl edi, 0x15
or ecx, edi
mov dword [ebx + 4], edx
xor ecx, dword [ebp - 4]
xor eax, edx
mov edi, dword [ebp - 0x1c]
mov edx, edi
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], ecx
mov ecx, edi
mov ebx, dword [ebp - 0x14]
mov esi, ebx
add esi, dword [ebp - 0x18]
adc edx, dword [ebp - 0xc]
xor eax, eax
shld edi, ebx, 0x11
shr ecx, 0xf
or eax, edi
shl ebx, 0x11
mov edi, dword [ebp - 8]
xor eax, edx
or ecx, ebx
xor ecx, esi
mov dword [edi + 0xc], eax
xor eax, eax
or eax, esi
mov dword [edi + 8], ecx
sub dword [ebp - 0x10], 1
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
jne 0x10047151
pop esi
pop ebx
pop edi
leave
ret
Function at 0x1005a390
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xe4
mov eax, 0x1009be7e
call fcn.1005f597
mov esi, ecx
push dword [esi + 4]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], esi
call fcn.1000d8d5
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 4]
cmp dword [eax + 0x30], ebx
je 0x1005a3c8
mov dword [ebp - 4], 1
jmp 0x1005a531
add eax, 0x3c
push eax
push 4
push esi
push 0x1005a170
push ebx
push ebx
call fcn.10084bce
mov ecx, dword [esi + 4]
add esp, 0x18
mov dword [ecx + 0x30], eax
mov eax, dword [esi + 4]
cmp dword [eax + 0x30], ebx
je 0x1005a52a
push ebx
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x1005a475
push ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf0]
push dword [0x100cd440]
push ebx
call fcn.100184c5
lea edi, [eax + 0x10]
mov byte [ebp - 4], 3
mov edx, str.SetThreadPriority_failed:
mov ecx, edi
call fcn.10018d60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.1001eb2d
mov byte [ebp - 4], 4
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ecx, edi
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
call fcn.1001d490
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.1000196a
lea ecx, [ebp - 0xf0]
call fcn.10018441
jmp 0x1005a472
mov dword [ebp - 4], ebx
mov eax, dword [esi + 4]
push dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1005a4fc
push ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf0]
push dword [0x100cd440]
push ebx
call fcn.100184c5
lea esi, [eax + 0x10]
mov byte [ebp - 4], 7
mov edx, str.ResumeThread_failed:
mov ecx, esi
call fcn.10018d60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.1001eb2d
mov byte [ebp - 4], 8
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ecx, esi
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
call fcn.1001d490
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.1000196a
lea ecx, [ebp - 0xf0]
call fcn.10018441
mov dword [ebp - 4], 0xa
jmp 0x1005a531
mov eax, dword [esi + 4]
mov byte [eax + 0x38], 1
mov eax, dword [esi + 4]
mov byte [eax + 0x39], bl
mov dword [ebp - 4], 0xb
cmp byte [ebp - 0x30], 0
je 0x1005a526
push dword [ebp - 0x34]
call fcn.1005d20a
push eax
call fcn.10006d88
pop ecx
pop ecx
mov al, 1
jmp 0x1005a549
mov dword [ebp - 4], 0xc
cmp byte [ebp - 0x30], 0
je 0x1005a547
push dword [ebp - 0x34]
call fcn.1005d20a
push eax
call fcn.10006d88
pop ecx
pop ecx
xor al, al
call fcn.1005f4e4
ret 4
Function at 0x1005a6d7
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.1005abf4
mov byte [edi + 0x18], al
test al, al
je 0x1005a728
or dword [edi + 0x5c], 0xffffffff
lea esi, [edi + 0x1c]
xor ebx, ebx
push 0x10
push ebx
push esi
mov byte [edi + 0x19], bl
mov dword [edi + 8], ebx
call fcn.10077e00
add esp, 0xc
mov dword [edi + 0x20], ebx
push 2
pop eax
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x10
mov dword [edi + 0x64], eax
lea eax, [edi + 0x2c]
push ebx
push eax
call fcn.10077e00
add esp, 0xc
pop edi
pop esi
pop ebx
ret
call fcn.1001e827
mov ecx, eax
call fcn.100180d7
mov edi, eax
push str.Couldnt_initialize_sockets.
push 1
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x1009e2c4]
mov ecx, edi
call esi
push 0xffffffffffffffff
call fcn.10085e7e
int3

Function at 0x1005a804
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x100c906c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x1005a82a
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1005a862
cmp dword [esi + 0x14], 0x10
jb 0x1005a840
mov esi, dword [esi]
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.100193ce
push eax
lea ecx, [edi + 0x3c]
call fcn.10003c8c
lea ecx, [esp + 0xc]
call fcn.1000196a
mov dword [edi + 0x20], ebx
jmp 0x1005a8ab
cmp dword [esi + 0x14], 0x10
jb 0x1005a86a
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
jne 0x1005a884
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x58], eax
xor al, al
jmp 0x1005a8ad
mov edx, dword [esi]
lea ecx, [esp + 0xc]
call fcn.100193ce
push eax
lea ecx, [edi + 0x3c]
call fcn.10003c8c
lea ecx, [esp + 0xc]
call fcn.1000196a
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [edi + 0x20], eax
mov al, 1
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005e791
mov esp, ebp
pop ebp
ret 4
Function at 0x1005a974
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c906c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
or edi, 0xffffffff
mov eax, dword [ebx + 0x5c]
cmp eax, edi
jne 0x1005a9bf
mov eax, dword [ebx + 0x54]
xor ecx, ecx
sub eax, 1
je 0x1005a9a9
sub eax, 1
jne 0x1005a9ac
push 0x11
jmp 0x1005a9ab
push 6
pop ecx
push ecx
push dword [ebx + 0x54]
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x5c], eax
cmp eax, edi
je 0x1005a9e6
cmp byte [ebx + 0x60], 0
je 0x1005a9cf
mov ecx, ebx
call fcn.1005a8f9
mov eax, dword [ebx + 0x5c]
push 0x10
push esi
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
jne 0x1005a9f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x58], eax
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e791
leave
ret 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x5c]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, edi
je 0x1005a9e6
cmp dword [ebx + 0x54], 2
lea edi, [ebx + 0x1c]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x1005aa29
mov byte [ebx + 0x19], 1
mov al, 1
jmp 0x1005a9e8
Function at 0x1005aa2d
Capabilities:
Connect socket
Resolve dns

Disassembly:
push 0xe4
mov eax, 0x1009bf13
call fcn.1005f529
mov esi, ecx
cmp byte [esi + 0x18], 0
mov edi, dword [ebp + 8]
jne 0x1005aa4e
xor al, al
jmp 0x1005ab4b
cmp dword [esi + 0x5c], 0xffffffff
push 2
pop eax
jne 0x1005aa65
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x5c], eax
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1005aaf8
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1005aaf1
push ecx
push dword [0x100cd440]
lea ecx, [ebp - 0xf0]
push 2
pop eax
push eax
call fcn.100184c5
and dword [ebp - 4], 0
lea esi, [eax + 0x10]
mov edx, str.updtSocket::Connect:_Unknown_hostname_
mov ecx, esi
call fcn.10018d60
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.100193ce
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x1005aac4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.1001d490
pop ecx
push 0x27
pop edx
mov ecx, esi
call fcn.10018140
lea ecx, [ebp - 0x38]
call fcn.1000196a
lea ecx, [ebp - 0xf0]
call fcn.10018441
jmp 0x1005aa47
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.10077e00
add esp, 0xc
mov dword [ebp - 0x1c], ebx
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [esi + 0x5c]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1005ab45
push dword [esi + 0x5c]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 0x5c], 0xffffffff
jmp 0x1005aa47
mov byte [esi + 0x19], 1
mov al, 1
call fcn.1005f4d3
ret 8

Function at 0x1005abf4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x100c906c]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [0x100cdf00]
test eax, eax
jne 0x1005ac41
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1005ac2e
xor al, al
jmp 0x1005ac49
mov eax, dword [esp]
cmp al, 2
jne 0x1005ac5b
shr eax, 8
cmp al, 2
jne 0x1005ac5b
mov eax, dword [0x100cdf00]
inc eax
mov dword [0x100cdf00], eax
mov al, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.1005e791
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1005ac2a
Function at 0x1005ac63
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100c906c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push edi
mov ebx, 0xfc
mov edi, ecx
push ebx
push 0
push eax
call fcn.10077e00
push ebx
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.10077e00
mov eax, dword [edi + 0x5c]
mov ecx, 0x3e8
mov dword [ebp - 0x104], eax
add esp, 0x18
mov dword [ebp - 0x208], eax
xor ebx, ebx
mov eax, esi
inc ebx
cdq
idiv ecx
xor ecx, ecx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x214], eax
imul eax, edx, 0x3e8
test esi, esi
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x214]
cmovs eax, ecx
mov cl, byte [ebp + 8]
push eax
xor edx, edx
lea eax, [ebp - 0x20c]
push eax
test cl, cl
lea eax, [ebp - 0x108]
cmove eax, edx
test cl, cl
push eax
lea eax, [ebp - 0x108]
cmovne eax, edx
push eax
push edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x1005ad4f
cmp eax, 0xffffffff
je 0x1005ad4c
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x5c]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1005ad48
lea ecx, [ebp - 0x108]
push ecx
push dword [edi + 0x5c]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1005ad4c
mov eax, ebx
jmp 0x1005ad4f
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e791
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], ecx
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], 1
jmp 0x1005adff
jle 0x1005ad9a
add edi, eax
sub esi, eax
add ebx, eax
jmp 0x1005ada7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1005ae20
test esi, esi
je 0x1005ae17
cmp byte [ebp - 1], 0
mov eax, dword [ebp + 0x10]
mov ecx, eax
jne 0x1005ade7
test eax, eax
js 0x1005ade7
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
sbb eax, dword [ebp - 0x10]
push 0
push 0x2710
push eax
push ecx
call fcn.10096790
mov ecx, dword [ebp + 0x10]
sub ecx, eax
test ecx, ecx
jle 0x1005ae17
push ecx
mov ecx, dword [ebp - 8]
push 1
call fcn.1005ac63
mov byte [ebp - 1], 0
test eax, eax
js 0x1005ae20
je 0x1005ae17
lfence
mov eax, dword [ebp - 8]
push 0
push esi
push ebx
push dword [eax + 0x5c]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x1005ad90
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
or eax, 0xffffffff
jmp 0x1005ae19
Function at 0x1005ae7a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x100c906c]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1005aebf
mov eax, dword [esp]
cmp al, 2
jne 0x1005aeb9
shr eax, 8
cmp al, 2
jne 0x1005aeb9
dec al
jmp 0x1005aec1
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.1005e791
mov esp, ebp
pop ebp
ret

Function at 0x1005aed3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c906c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
or ebx, 0xffffffff
cmp dword [esi + 8], ebx
je 0x1005aef7
push 6
pop eax
jmp 0x1005afac
push 2
pop eax
cmp dword [esi + 4], eax
jne 0x1005af05
push 6
push 1
jmp 0x1005af12
cmp dword [esi + 4], 1
jne 0x1005afa9
push 0x11
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x1005af24
push 0xa
jmp 0x1005aef1
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.10077e00
add esp, 0xc
push 2
pop eax
push 0x7f000001
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
je 0x1005af8a
cmp dword [esi + 4], 1
jne 0x1005af93
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x8004667e
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x1005afa1
mov ecx, esi
call fcn.1005afbc
jmp 0x1005af20
push closesocket
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, ebx
je 0x1005af8a
xor eax, eax
jmp 0x1005afac
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e791
leave
ret 4

Function at 0x10061741
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10021234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10021243
pop dword [ebp - 0x4c]
mov eax, 0xe2dd108c
add eax, 0x2d2501b7
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xfd4d3f30
add dword [ebp - 0x5c], 0x5105061b
mov dword [ebp - 0x58], 0xf018e6f9
add dword [ebp - 0x58], 0x421a654c
mov dword [ebp - 0x54], 0x386bb6ea
sub dword [ebp - 0x54], 0xec1f72bc
mov dword [ebp - 0x50], 0x1a0cf71c
add dword [ebp - 0x50], 0xe5f308e4
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xa9d9252a
add eax, 0x6629cc66
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xcb83b49f
sub dword [ebp - 0x5c], 0x57114b49
mov dword [ebp - 0x58], 0x61c58548
add dword [ebp - 0x58], 0xdfa6dc2d
mov dword [ebp - 0x54], 0x1088326e
sub dword [ebp - 0x54], 0xad18c602
mov dword [ebp - 0x50], 0x444bcf88
sub dword [ebp - 0x50], 0x444bcf88
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x440b0
push 0
call eax
mov ecx, 0xf1318230
sub ecx, 0xf1313d01
xor edi, edi
add edi, eax
mov ebx, 0x10046400
add ebx, dword [ebp - 0x4c]
mov edx, 0x1c5ba436
sub edx, 0x277e813e
add dword [ebp - 0x40], 0x5c87cbe
mov esi, dword [ebx]
sub esi, edx
xor dword [ebp - 0x28], eax
mov dword [edi], esi
xor dword [ebp - 0x20], 0x660dc6cd
add edi, 0x67a24dec
sub edi, 0x67a24de8
add ebx, 0xaca5b644
add ebx, 0x535a49c0
loop 0x1002135c
add eax, 0x1078f
xor ebx, ebx
add ebx, eax
add eax, 0x1d5843d8
add eax, 0xe2a7bc2d
mov ecx, 0x6c895f6
sub ecx, 0xf6c895f6
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10020313
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10020322
pop dword [ebp - 0x18]
mov eax, 0xf29c47b3
add eax, 0x1d65bb6f
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xb90399fd
sub dword [ebp - 0x28], 0x6ab154b2
mov dword [ebp - 0x24], 0x7001b3f9
sub dword [ebp - 0x24], 0x3dce67b4
mov dword [ebp - 0x20], 0xbef9173a
add dword [ebp - 0x20], 0x8d532cf4
mov dword [ebp - 0x1c], 0x10df04ed
add dword [ebp - 0x1c], 0xef20fb13
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xd2da179b
add dword [ebp - 0x28], 0xa19851bb
mov dword [ebp - 0x24], 0xa303af8f
add dword [ebp - 0x24], 0x9e68b1e6
mov dword [ebp - 0x20], 0xd9920c49
add dword [ebp - 0x20], 0x89dd6023
mov dword [ebp - 0x1c], 0x2914d2a0
add dword [ebp - 0x1c], 0xd6eb2d60
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x835e3261
sub eax, 0x735c1221
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x37000
push 0
call eax
mov ecx, 0xd7993d98
sub ecx, 0xd798fa44
mov ebx, eax
mov edi, 0xbcdb9219
add edi, 0x532789e7
add edi, dword [ebp - 0x18]
mov edx, 0xb9776516
sub edx, 0x7dfff48b
mov dword [ebp - 0x14], 0xc34fc6e2
mov esi, dword [edi]
sub dword [ebp - 0xc], ecx
xor esi, edx
add dword [ebp - 0x14], edx
mov dword [ebx], esi
add dword [ebp - 8], 0xb06a04af
add ebx, 4
add edi, 0x908a913e
add edi, 0x6f756ec6
loop 0x1002043f
add eax, 0x10023
mov ebx, eax
add eax, 5
mov ecx, 0x5522b6a1
sub ecx, 0x4522b6a1
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x408fba
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408ff9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408ff9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408ff9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408ff9
cmp dword [ecx + 0x74], 0xe
jbe 0x408ff9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40eec6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4716a8
push 0x4716a0
push str.FlsAlloc
push 0x1f
call fcn.0040ed85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eefa
push dword [ebp + 8]
mov ecx, esi
call dword [0x427130]
call esi
jmp 0x40ef00
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ef44
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4716b8
push 0x4716b0
push str.FlsGetValue
push 0x21
call fcn.0040ed85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ef7b
push dword [ebp + 8]
mov ecx, esi
call dword [0x427130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ef83
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4716c0
push 0x4716b8
push str.FlsSetValue
push 0x22
call fcn.0040ed85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40efbd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x427130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]