joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x30
mov byte [ebp - 0x40], 0x5d
mov byte [ebp - 0x3f], 0xc3
mov byte [ebp - 0x3e], 1
mov byte [ebp - 0x3d], 0x4f
mov byte [ebp - 0x3c], 0x72
mov byte [ebp - 0x3b], 0x3b
mov byte [ebp - 0x3a], 0x2e
mov byte [ebp - 0x39], 0x2e
mov byte [ebp - 0x38], 0x46
mov byte [ebp - 0x37], 0xc0
mov byte [ebp - 0x36], 0x10
mov byte [ebp - 0x35], 0x5a
mov byte [ebp - 0x34], 0x75
mov byte [ebp - 0x33], 0x60
mov byte [ebp - 0x32], 0x71
mov byte [ebp - 0x31], 0x71
mov byte [ebp - 0x30], 0x1b
mov byte [ebp - 0x2f], 0xc7
mov byte [ebp - 0x2e], 0x14
mov byte [ebp - 0x2d], 0x58
mov byte [ebp - 0x2c], 0x64
mov byte [ebp - 0x2b], 0x2e
mov byte [ebp - 0x2a], 0x74
mov byte [ebp - 0x29], 0x72
mov byte [ebp - 0x28], 0x50
mov byte [ebp - 0x27], 0xc5
mov byte [ebp - 0x26], 0x1c
mov byte [ebp - 0x25], 0x51
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x6e
mov byte [ebp - 0x22], 0x2e
mov byte [ebp - 0x21], 0x74
mov byte [ebp - 0x20], 0x46
mov byte [ebp - 0x1f], 0xd2
mov byte [ebp - 0x1e], 7
mov byte [ebp - 0x1d], 0x5e
mov byte [ebp - 0x1c], 0x62
mov byte [ebp - 0x1b], 0x62
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x5b
mov byte [ebp - 0x17], 0xc3
mov byte [ebp - 0x16], 0x5b
mov byte [ebp - 0x15], 0x5e
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x71
mov byte [ebp - 0x12], 0x79
mov byte [ebp - 0x11], 1
mov eax, dword [0x10382324]
and eax, 1
jne 0x100045e8
mov ecx, dword [0x10382324]
or ecx, 1
mov dword [0x10382324], ecx
mov byte [0x10382320], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
jmp 0x10004592
mov edx, dword [ebp - 0x10]
add edx, 1
mov eax, dword [ebp - 0xc]
adc eax, 0
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
ja 0x100045db
jb 0x100045a0
cmp dword [ebp - 0x10], 0x30
jae 0x100045db
push 0
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10023240
mov esi, eax
mov eax, 1
imul ecx, eax, 0
lea edi, [ebp + ecx - 0x40]
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10023240
mov cl, byte [edi + esi]
mov byte [eax + 0x103822f0], cl
jmp 0x10004580
push 0x10034e50
call fcn.10023220
add esp, 4
mov eax, 0x103822f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100046e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x30
mov byte [ebp - 0x40], 0x39
mov byte [ebp - 0x3f], 0xfb
mov byte [ebp - 0x3e], 5
mov byte [ebp - 0x3d], 0x4f
mov byte [ebp - 0x3c], 0x72
mov byte [ebp - 0x3b], 0x3b
mov byte [ebp - 0x3a], 0x2e
mov byte [ebp - 0x39], 0x2e
mov byte [ebp - 0x38], 0x22
mov byte [ebp - 0x37], 0xf8
mov byte [ebp - 0x36], 0x14
mov byte [ebp - 0x35], 0x5a
mov byte [ebp - 0x34], 0x75
mov byte [ebp - 0x33], 0x60
mov byte [ebp - 0x32], 0x71
mov byte [ebp - 0x31], 0x71
mov byte [ebp - 0x30], 0x7f
mov byte [ebp - 0x2f], 0xff
mov byte [ebp - 0x2e], 0x10
mov byte [ebp - 0x2d], 0x58
mov byte [ebp - 0x2c], 0x64
mov byte [ebp - 0x2b], 0x2e
mov byte [ebp - 0x2a], 0x74
mov byte [ebp - 0x29], 0x72
mov byte [ebp - 0x28], 0x34
mov byte [ebp - 0x27], 0xfd
mov byte [ebp - 0x26], 0x18
mov byte [ebp - 0x25], 0x51
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x6e
mov byte [ebp - 0x22], 0x2e
mov byte [ebp - 0x21], 0x74
mov byte [ebp - 0x20], 0x22
mov byte [ebp - 0x1f], 0xea
mov byte [ebp - 0x1e], 3
mov byte [ebp - 0x1d], 0x5e
mov byte [ebp - 0x1c], 0x62
mov byte [ebp - 0x1b], 0x62
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x3f
mov byte [ebp - 0x17], 0xfb
mov byte [ebp - 0x16], 0x5f
mov byte [ebp - 0x15], 0x5e
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x71
mov byte [ebp - 0x12], 0x79
mov byte [ebp - 0x11], 1
mov eax, dword [0x1038235c]
and eax, 1
jne 0x10004848
mov ecx, dword [0x1038235c]
or ecx, 1
mov dword [0x1038235c], ecx
mov byte [0x10382358], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
jmp 0x100047f2
mov edx, dword [ebp - 0x10]
add edx, 1
mov eax, dword [ebp - 0xc]
adc eax, 0
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
ja 0x1000483b
jb 0x10004800
cmp dword [ebp - 0x10], 0x30
jae 0x1000483b
push 0
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10023240
mov esi, eax
mov eax, 1
imul ecx, eax, 0
lea edi, [ebp + ecx - 0x40]
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10023240
mov cl, byte [edi + esi]
mov byte [eax + 0x10382328], cl
jmp 0x100047e0
push 0x10034ef0
call fcn.10023220
add esp, 4
mov eax, 0x10382328
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007810
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10007831
xor eax, eax
jmp 0x1000794f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0x4550
je 0x1000784f
xor eax, eax
jmp 0x1000794f
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x14]
cmp ecx, 0x60
jl 0x10007864
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x74], 0
jne 0x1000786b
xor eax, eax
jmp 0x1000794f
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1000788a
xor eax, eax
jmp 0x1000794f
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], 0
jmp 0x100078c9
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x18]
jae 0x1000794d
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
push 0x811c9dc5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1001de80
cmp eax, dword [ebp + 0xc]
je 0x100078fe
jmp 0x100078c0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x10]
add eax, edx
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x10]
sub eax, edx
mov word [ebp - 8], ax
mov dword [ebp - 0x20], 0
movzx eax, word [ebp - 8]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
jmp 0x1000794f
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10014920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0x4550
je 0x10014950
xor eax, eax
jmp 0x100149db
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], 0
jmp 0x1001499b
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x14]
jae 0x100149d9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, dword [edx + ecx*4]
push eax
call fcn.1001df10
test eax, eax
jne 0x100149d7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x100149db
jmp 0x10014992
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1001de30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
pop ebp
ret

Function at 0x1001de80
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x1001de9f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x1001decc
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp + 0xc]
imul eax, edx, 0x1000193
push eax
mov ecx, 1
shl ecx, 0
add ecx, dword [ebp + 8]
push ecx
call fcn.1001de80
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x1002c6e0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002c77d
push ebx
push esi
call fcn.1002c6a9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002c5f2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002c72a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c77c
push edi
push eax
call fcn.100296dc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002c74a
call fcn.100296a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c77b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002c5f2
add esp, 0x20
test eax, eax
jne 0x1002c769
push edi
call fcn.100296a2
jmp 0x1002c771
push ebx
call fcn.100296a2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002c97b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100370f0
push 0x100370e8
push str.FlsAlloc
push 0x1e
call fcn.1002c899
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002c9af
push dword [ebp + 8]
mov ecx, esi
call dword [0x10035130]
call esi
jmp 0x1002c9b5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002c9f9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10037100
push 0x100370f8
push str.FlsGetValue
push 0x20
call fcn.1002c899
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002ca30
push dword [ebp + 8]
mov ecx, esi
call dword [0x10035130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10033f90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10033fbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10033fbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4b8e70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76000]
push edi
jmp 0x4b8e8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b8e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8e80
mov eax, 1
add ebx, ebx
jne 0x4b8ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b8eb4
jne 0x4b8ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ed3
dec eax
add ebx, ebx
jne 0x4b8ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b8e98
add ebx, ebx
jne 0x4b8ecf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b8f25
xor ecx, ecx
sub eax, 3
jb 0x4b8eeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b8f5a
sar eax, 1
mov ebp, eax
jmp 0x4b8ef6
add ebx, ebx
jne 0x4b8ef6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ec4
inc ecx
add ebx, ebx
jne 0x4b8f04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ec4
add ebx, ebx
jne 0x4b8f11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b8f06
jne 0x4b8f22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b8f06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b8f44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b8f36
jmp 0x4b8e86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b8f44
add edi, ecx
jmp 0x4b8e86
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b8f62
cmp byte [edi], 0x13
jne 0x4b8f62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b8f67
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b8fdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc0038]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc018c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b8f94
mov ecx, edi
jns 0x4b8fc3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc0190]
or eax, eax
je 0x4b8fd9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b8fb1
call dword [esi + 0xc01a0]
mov ebp, dword [esi + 0xc0194]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b9013
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x401fe0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4330e4]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402061
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x43526c]
cmp ecx, dword [edx + 4]
jle 0x402051
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], esi
jne 0x402051
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x4339b0
test edi, edi
jne 0x402074
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040e039
mov esp, ebp
pop ebp
ret
mov edx, 0x42ed28
lea ecx, [esp + 0xc]
call fcn.00401f10
int3

Function at 0x4024c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x4330e4]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 1
lock xadd dword [0x435278], eax
inc eax
mov ebx, 0x43527c
cmp eax, 1
jne 0x402506
lea eax, [esp + 0x18]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [ebx], eax
cmp byte [ebp + 8], 0
je 0x402516
xor esi, esi
lock xadd dword [ebx], esi
test esi, esi
jne 0x40252f
mov ecx, dword [esp + 0x1ac]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e039
mov esp, ebp
pop ebp
ret 4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x43526c]
cmp eax, dword [ecx + 4]
jle 0x402574
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x402574
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov edx, str.winsock
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0x4339b0
call fcn.00401f10
int3

Function at 0x402cc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x43529c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x402cea
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
push ecx
push dword [ebp - 4]
call fcn.0040a090
add esp, 8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xor ecx, ecx
push ecx
push dword [ebp - 4]
call fcn.0040a090
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x402d00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x43529c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x402d18
mov ecx, dword [eax + 4]
jmp 0x402d1a
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 0x3fc
ja 0x402d3f
test ecx, ecx
je 0x402d3f
xor eax, eax
nop dword [eax]
cmp dword [ecx + eax*4], 0
lea edx, [ecx + eax*4]
je 0x402d4d
inc eax
cmp eax, 2
jl 0x402d30
push dword [ebp + 8]
call fcn.0040e4ad
add esp, 4
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov al, byte [ecx + esi]
mov byte [ecx], al
mov dword [edx], ecx
pop esi
pop ebp
ret
Function at 0x4031f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4330e4]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push 0
push 1
push 0
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x403297
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x43526c]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x40327f
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x40327f
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x4339b0
test eax, eax
jne 0x4033f7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov dword [edi + 8], eax
cmp dword [ebx + 8], 0
jne 0x403321
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x43526c]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x403309
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x403309
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x4339b0
test eax, eax
jne 0x403405
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push edi
push 0x403430
push 0
push 0
call fcn.0041261d
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4033d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
test esi, esi
je 0x40336c
push esi
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x40337a
push eax
call ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x43526c]
cmp eax, dword [ecx + 4]
jle 0x4033bf
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x4033bf
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x4339b0
test eax, eax
jne 0x403413
test esi, esi
je 0x4033e3
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e039
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.00401f10
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.00401f10
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.00401f10
int3
Function at 0x4034f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426f7e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x4330e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [edi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.00402e20
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x403649
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x43526c]
cmp eax, dword [ecx + 4]
jle 0x403634
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x403634
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x4339b0
test edi, edi
jne 0x4036e7
lea edi, [esi + 0x18]
cmp byte [ebx + 0x10], 0
je 0x4036c5
lock inc dword [edi]
push 0xc
call fcn.0040e22c
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0040e22c
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
push eax
mov ecx, edi
movups xmmword [eax], xmm0
mov dword [eax], vtable.asio::detail::win_thread::func_struct_asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], esi
call fcn.004031f0
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4036c2
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x20]
call fcn.0040e4b2
add esp, 8
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e039
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.00401f10
int3