joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c1f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100426f3
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov edi, dword [esp + 0xe4]
mov ebp, dword [esp + 0xe0]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x69], 0
mov ebx, ecx
jne 0x1000c254
mov ecx, dword [edi]
jmp 0x1000c240
cmp dword [eax + 0xc], ecx
jae 0x1000c24a
mov eax, dword [eax + 8]
jmp 0x1000c24e
mov ebx, eax
mov eax, dword [eax]
cmp byte [eax + 0x69], 0
je 0x1000c240
mov esi, dword [ebp]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
test esi, esi
je 0x1000c266
cmp esi, esi
je 0x1000c26b
call fcn.1002927e
cmp ebx, dword [esp + 0x18]
je 0x1000c27c
mov ecx, dword [edi]
cmp ecx, dword [ebx + 0xc]
jae 0x1000c377
lea ecx, [esp + 0x78]
call fcn.10008e40
mov dword [esp + 0xd8], 0
mov edx, dword [edi]
lea ecx, [esp + 0x20]
push ecx
mov edi, eax
mov dword [esp + 0x20], edx
call fcn.10008f10
push ebx
push esi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, ebp
mov byte [esp + 0xe8], 1
call fcn.1000ca30
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov edi, 0x10
cmp dword [esp + 0x64], edi
jb 0x1000c2da
mov ecx, dword [esp + 0x50]
push ecx
call fcn.1001e30d
add esp, 4
xor ebp, ebp
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebp
mov byte [esp + 0x50], 0
cmp dword [esp + 0x40], edi
jb 0x1000c300
mov edx, dword [esp + 0x2c]
push edx
call fcn.1001e30d
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0
cmp dword [esp + 0xbc], edi
jb 0x1000c32a
mov eax, dword [esp + 0xa8]
push eax
call fcn.1001e30d
add esp, 4
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], ebp
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x98], edi
jb 0x1000c35d
mov ecx, dword [esp + 0x84]
push ecx
call fcn.1001e30d
add esp, 4
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], ebp
mov byte [esp + 0x84], 0
test esi, esi
jne 0x1000c3a9
call fcn.1002927e
cmp ebx, dword [esi + 0x18]
jne 0x1000c38a
call fcn.1002927e
lea eax, [ebx + 0x10]
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret 8
mov esi, dword [esi]
jmp 0x1000c380
Function at 0x1000f050
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1004303f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov ebx, ecx
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.10013280
lea esi, [edi + 0x2a8]
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.10006b60
mov dword [edi + method.talk_base::MessageHandler.virtual_0], vtable.talk_base::MessageHandler.0
mov byte [esp + 0x20], 2
mov dword [edi], vtable.WC3ProxyClient.0
mov dword [esi], vtable.WC3ProxyClient.1.0
mov dword [edi + method.WC3ProxyClient.2.virtual_0], vtable.WC3ProxyClient.2.0
mov byte [edi + 0x2d0], 0
call fcn.10014550
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
mov dword [edi + 0x2d4], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x2d8], eax
mov dword [edi + 0x2f4], 0xf
mov dword [edi + 0x2f0], 0
mov byte [edi + 0x2e0], 0
lea esi, [edi + 0x108]
mov byte [esp + 0x20], 4
call fcn.10006c30
lea esi, [edi + 0x120]
call fcn.10006c30
mov esi, dword [edi + 0x2d4]
xor ecx, ecx
mov eax, 0x1000f4b0
push ecx
push eax
add esi, 0x28
call fcn.1000fe80
mov esi, dword [edi + 0x2d4]
xor ecx, ecx
mov eax, 0x1000fae0
push ecx
push eax
add esi, 0x88
call fcn.1000ff30
movzx ecx, byte [ebx]
mov byte [edi + 4], cl
mov edx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea ecx, [edi + 0xc]
mov dword [edi + 8], edx
call fcn.100155d0
lea ecx, [ebx + 0x2c]
push ecx
lea ecx, [edi + 0x30]
call fcn.100155d0
mov edx, dword [ebx + 0x50]
mov dword [edi + 0x54], edx
mov eax, dword [ebx + 0x54]
mov dword [edi + 0x58], eax
movzx ecx, byte [ebp]
mov byte [edi + 0x5c], cl
mov edx, dword [ebp + 4]
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x64]
mov dword [edi + 0x60], edx
call fcn.100155d0
lea ecx, [ebp + 0x2c]
push ecx
lea ecx, [edi + 0x88]
call fcn.100155d0
mov edx, dword [ebp + 0x50]
mov dword [edi + 0xac], edx
mov eax, dword [ebp + 0x54]
mov dword [edi + 0xb0], eax
xor ebx, ebx
push 1
lea ecx, [edi + 0x138]
mov dword [edi + 0x2a4], ebx
call fcn.10015dc0
lea esi, [edi + 0x1e8]
push 1
mov ecx, esi
call fcn.10016fc0
mov ecx, dword [edi + 0x2d8]
mov eax, dword [esp + 0x30]
mov edx, dword [edi + 0x60]
add ecx, 0x40
push ecx
push eax
mov word [edi + 0xba], ax
mov eax, dword [edi + 8]
push edx
push eax
mov ecx, esi
call fcn.100174b0
lea ecx, [edi + 0x108]
call fcn.10006cf0
lea ecx, [edi + 0x120]
call fcn.10006cf0
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0xd4]
mov dword [eax + 4], eax
mov dword [edi + 0xd8], ebx
cmp ecx, dword [edi + 0xd4]
je 0x1000f255
lea esp, [esp]
mov esi, dword [ecx]
push ecx
call fcn.1001e30d
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0xd4]
jne 0x1000f240
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x10010ca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1004f288
push 0x1002a5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100532d0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x10010ce5
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ebx, [eax - 2]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call edi
test eax, eax
jbe 0x10010d6b
cmp dword [ebp - 0x24], 0x1000
jne 0x10010d84
test dword [ebp - 0x20], 0x100
jne 0x10010d84
mov dword [ebp - 4], 0
mov ecx, 0x5a4d
cmp word [esi], cx
jne 0x10010d81
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x10010d81
mov dword [ebp - 4], ebx
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
lea esi, [eax + edx]
jmp 0x10010d05
Function at 0x10010da0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1004f268
push 0x1002a5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100532d0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp + 8], ecx
xor esi, esi
cmp eax, esi
jne 0x10010ded
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
mov ecx, eax
mov dword [ebp - 4], esi
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x10010e04
push 0xc1
jmp 0x10010ee1
mov edx, dword [ecx + 0x3c]
add edx, ecx
mov dword [ebp - 0x20], edx
cmp dword [edx], 0x4550
je 0x10010e1e
push 0xbf
jmp 0x10010ee1
movzx ecx, word [edx + 0x14]
cmp cx, si
je 0x10010edc
movzx ecx, cx
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 0x1c], esi
movzx edx, word [edx + 6]
cmp esi, edx
jae 0x10010edc
lea ecx, [esi + esi*4]
lea edi, [eax + ecx*8]
mov edx, str..detour
mov ecx, edi
mov edi, edi
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x10010e70
test bl, bl
je 0x10010e6c
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x10010e70
add ecx, 2
add edx, 2
test bl, bl
jne 0x10010e50
xor ecx, ecx
jmp 0x10010e75
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x10010eca
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10010edc
cmp dword [edi + 0x10], 0
je 0x10010edc
mov edx, dword [ebp + 8]
lea esi, [ecx + edx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x10010edc
cmp dword [esi + 4], 0x727444
jne 0x10010edc
cmp dword [esi + 8], 0
jne 0x10010ea5
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc esi
mov edx, dword [ebp - 0x20]
jmp 0x10010e32
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10011070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
cmp dword [ebx], 0x150
jne 0x10011152
cmp dword [esp + 0x10], 0x150
jb 0x10011152
mov ecx, dword [ebx + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
lea eax, [esp + 8]
push eax
push 0x40
push 0x40
push ecx
xor esi, esi
call ebp
test eax, eax
je 0x10011148
mov eax, dword [ebx + 8]
lea edx, [esp + 0xc]
push edx
push 0x40
push 0xf8
push eax
call ebp
test eax, eax
je 0x10011136
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100110db
lea ecx, [esp + 0x10]
push ecx
push 0x40
push 4
push eax
call ebp
test eax, eax
je 0x10011121
push edi
mov edi, dword [ebx + 4]
lea esi, [ebx + 0x14]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 8]
lea esi, [ebx + 0x54]
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0xc]
pop edi
test eax, eax
je 0x10011106
mov edx, dword [ebx + 0x14c]
mov dword [eax], edx
mov eax, dword [ebx + 0xc]
mov esi, 1
test eax, eax
je 0x10011121
mov edx, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
push 4
push eax
call ebp
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x18]
push eax
push ecx
push 0xf8
push edx
call ebp
mov ecx, dword [esp + 8]
mov edx, dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
push ecx
push 0x40
push edx
call ebp
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret 4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0xc
ret 4

Function at 0x100111c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1004f248
push 0x1002a5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100532d0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x10011262
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10011262
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x10011262
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x10011262
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10011300
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x100581a8]
test esi, esi
je 0x1001132a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x10011313
pop edi
pop esi
pop ecx
ret
Function at 0x10011710
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100581b4], eax
je 0x10011726
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x100581c4]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x100117a1
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x10011790
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x10011790
mov edx, eax
and edx, 0xffff0000
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x18], ecx
mov dword [edx + 8], eax
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.1001e30d
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x10011740
mov dword [0x100581c4], ebp
call fcn.10011330
mov esi, dword [0x100581c0]
cmp esi, ebp
je 0x100117d7
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.1001e30d
add esp, 4
mov esi, edi
cmp edi, ebp
jne 0x100117c0
pop edi
pop esi
mov dword [0x100581c0], ebp
mov dword [0x100581b4], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10011ac0
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [0x100581b8]
test eax, eax
jne 0x10011b35
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x10011ada
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.1001e2d3
mov esi, eax
add esp, 4
test esi, esi
jne 0x10011af0
lea edi, [eax + 8]
jmp 0x10011b0d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10011b22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1001e30d
add esp, 4
pop esi
mov dword [0x100581b8], edi
mov eax, edi
mov dword [0x100581bc], 0
pop edi
ret
mov eax, dword [0x100581c0]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x100581c0], esi
xor eax, eax
pop esi
pop edi
ret
Function at 0x10011d90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100581b4], eax
je 0x10011dac
mov eax, 0x10dd
pop ebp
ret 8
mov eax, dword [0x100581b8]
test eax, eax
jne 0x10011e9b
test ebp, ebp
jne 0x10011dc4
lea eax, [ebp + 6]
pop ebp
ret 8
cmp dword [ebp], 0
jne 0x10011dde
mov eax, 6
mov dword [0x100581bc], ebp
mov dword [0x100581b8], eax
pop ebp
ret 8
push ebx
push esi
push edi
push 0x18
call fcn.1001e2d3
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10011df9
lea esi, [eax + 8]
jmp 0x10011e7d
mov esi, dword [esp + 0x18]
mov edi, dword [ebp]
call fcn.10011670
movzx ecx, byte [edi + 0x17]
mov esi, dword [edi + 0x18]
sub esi, ecx
test ecx, ecx
je 0x10011e6f
cmp ecx, 0x17
ja 0x10011e6f
cmp dword [edi + 0x1c], eax
jne 0x10011e6f
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10011e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10011e7d
mov edx, dword [0x100581c4]
mov dword [ebx + 0x10], edi
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], esi
pop edi
mov dword [ebx + 4], 1
mov ecx, dword [esp + 0x10]
pop esi
mov dword [ebx + 0x14], ecx
mov dword [ebx], edx
mov dword [0x100581c4], ebx
pop ebx
xor eax, eax
pop ebp
ret 8
cmp dword [0x100581b0], 0
mov esi, 9
jne 0x10011e83
mov dword [0x100581b8], esi
test ebx, ebx
je 0x10011e90
push ebx
call fcn.1001e30d
add esp, 4
pop edi
mov eax, esi
pop esi
mov dword [0x100581bc], ebp
pop ebx
pop ebp
ret 8

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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov esi, ecx
cmp ebx, 0xffffffff
je 0x100145fd
call sub.KERNEL32.dll_GetTickCount
mov ebp, eax
add ebp, ebx
jmp 0x10014601
mov ebp, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov edi, ebx
call edx
test al, al
je 0x10014675
jmp 0x10014630
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
cmp ebx, 0xffffffff
je 0x10014650
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebp
jae 0x10014681
mov edi, ebp
sub edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call edx
test al, al
jne 0x10014630
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret 4
Function at 0x10014690
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x90], eax
je 0x100146a2
mov eax, 4
push 0
push eax
push esi
push 0x10014580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x98], eax
test eax, eax
je 0x100146e4
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x100146e4
cmp ecx, 1
jne 0x100146d7
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [esi + 0x94], 1
pop esi
ret

Function at 0x10014ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
mov dword [esi], vtable.talk_base::AutoThread.0
mov eax, dword [0x100554ac]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x10014ec8
mov ecx, dword [0x100554ac]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call fcn.10014ca0
test byte [esp + 8], 1
je 0x10014edf
push esi
call fcn.1001e30d
add esp, 4
mov eax, esi
pop esi
ret 4

Function at 0x10015050
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10040f41
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.10013180
lea eax, [esi + 0x1c]
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x9c
mov dword [0x100554ac], eax
call fcn.1001e2d3
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x18], 2
test eax, eax
je 0x100150c9
push 0
mov ecx, eax
call fcn.10014fd0
jmp 0x100150cb
xor eax, eax
push eax
mov dword [esi], eax
mov eax, dword [0x100554ac]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x10015600
Capabilities:
Get hostname

Disassembly:
sub esp, 0x108
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
mov esi, dword [esp + 0x114]
push pe_nt_image_headers32
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
test eax, eax
jne 0x10015661
lea eax, [esp + 0xc]
lea edx, [eax + 1]
jmp 0x10015650
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10015650
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x10015667
push ebx
push 0x10048f19
mov ecx, esi
call fcn.10003020
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.10028736
add esp, 0x108
ret

Function at 0x10015af0
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x10015b06
mov eax, dword [esi]
jmp 0x10015b08
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x10015b1f
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
pop edi
pop esi
pop ebx
ret
cmp byte [esp + 0x14], bl
je 0x10015b48
cmp dword [edi + 0x18], 0x10
jb 0x10015b2d
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10015b48
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x10015b50
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x10041028
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4c]
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0xc], ebp
jbe 0x10015b93
call fcn.1002927e
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x10015ba2
call fcn.1002927e
mov eax, dword [esi]
push ebp
push ebx
push edi
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.1001c240
lea ecx, [esp + 0x1c]
push ecx
call fcn.10015600
add esp, 4
xor edi, edi
mov dword [esp + 0x44], edi
cmp dword [esp + 0x30], edi
jne 0x10015bd4
cmp dword [esp + 0x34], 0x10
jmp 0x10015c53
mov eax, dword [esp + 0x20]
mov ebp, 0x10
cmp dword [esp + 0x34], ebp
jae 0x10015be7
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
cmp ebx, edi
je 0x10015c4f
mov eax, dword [ebx + 0xc]
cmp dword [eax], edi
je 0x10015c2a
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.10015960
mov edx, dword [ebx + 0xc]
inc edi
cmp dword [edx + edi*4], 0
lea eax, [edx + edi*4]
jne 0x10015c01
mov ebp, 0x10
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
test eax, 0xfffffffc
setne bl
cmp dword [esp + 0x34], ebp
jb 0x10015c4b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1001e30d
add esp, 4
mov al, bl
jmp 0x10015c64
cmp dword [esp + 0x34], ebp
jb 0x10015c62
mov edx, dword [esp + 0x20]
push edx
call fcn.1001e30d
add esp, 4
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10028736
add esp, 0x34
ret