joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4664
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4d4688
cmp dword [edi + 0x54], 0
jne 0x4d4688
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004deacf
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004d4625
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4d9deb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4d9e32
call fcn.004deacf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4d9e32
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4d9e4e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004d9965
mov esi, eax
test edi, edi
je 0x4d9e4c
test ebx, ebx
je 0x4d9e4c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4da647
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x511adc
call fcn.004fa4d4
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4da66c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4da6b2
lea ecx, [ebp - 0x10]
call fcn.00404433
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004d33da
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401874
mov eax, esi
call fcn.004fa5ac
ret 8
Function at 0x4f0bcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4f0c14
call fcn.004deacf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4f0c14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4f0c57
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4f0c40
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4f0c40
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4f0c54
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4f4e9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x597790]
jne 0x4f4ea6
repz ret
jmp fcn.004fd46c
Function at 0x50acb5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00500817
and dword [ebp - 4], 0
cmp dword [0x59e9c8], 0
mov ebx, eax
jne 0x50ad66
push 0x53d734
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x50ae17
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53d728
push edi
call esi
test eax, eax
je 0x50ae17
push eax
call fcn.005007a5
mov dword [esp], 0x53d718
push edi
mov dword [0x59e9c8], eax
call esi
push eax
call fcn.005007a5
mov dword [esp], 0x53d704
push edi
mov dword [0x59e9cc], eax
call esi
push eax
call fcn.005007a5
mov dword [esp], 0x53d6e8
push edi
mov dword [0x59e9d0], eax
call esi
push eax
call fcn.005007a5
pop ecx
mov dword [0x59e9d8], eax
test eax, eax
je 0x50ad66
push 0x53d6d0
push edi
call esi
push eax
call fcn.005007a5
pop ecx
mov dword [0x59e9d4], eax
mov eax, dword [0x59e9d4]
cmp eax, ebx
je 0x50adbe
cmp dword [0x59e9d8], ebx
je 0x50adbe
push eax
call fcn.00500820
push dword [0x59e9d8]
mov esi, eax
call fcn.00500820
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x50adbe
test edi, edi
je 0x50adbe
call esi
test eax, eax
je 0x50adb5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x50adb5
test byte [ebp - 0xc], 1
jne 0x50adbe
or dword [ebp + 0x10], 0x200000
jmp 0x50adf7
mov eax, dword [0x59e9cc]
cmp eax, ebx
je 0x50adf7
push eax
call fcn.00500820
pop ecx
test eax, eax
je 0x50adf7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x50adf7
mov eax, dword [0x59e9d0]
cmp eax, ebx
je 0x50adf7
push eax
call fcn.00500820
pop ecx
test eax, eax
je 0x50adf7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x59e9c8]
call fcn.00500820
pop ecx
test eax, eax
je 0x50ae17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x50ae19
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x40333a
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403380
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040286e
mov edi, eax
mov dword [ebp - 0xc], esi
mov edx, edi
mov ecx, esi
call fcn.00402727
mov edx, 0x6062b4
mov byte [ebp - 8], al
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], edi
call fcn.00403015
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403387
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x630fe8]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x642808
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4033c9
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x64280c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0055b830
mov esp, ebp
pop ebp
ret

Function at 0x40357f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], ecx
mov esi, edi
push edi
push 0xff
call fcn.0040348c
mov byte [esi + ebx], al
inc esi
pop ecx
pop ecx
cmp esi, 8
jb 0x403594
mov ebx, dword [esp + 0xc]
xor byte [edi + ebx], 0x40
mov edx, edi
mov ecx, dword [ebp + 8]
and edx, 7
mov eax, dword [ebp + 8]
mov esi, edi
and esi, 0x1ff
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov byte [edi + ebx], cl
mov al, byte [edx + eax]
add al, cl
xor al, byte [esi + 0x605ee0]
sub al, byte [esi + 0x605ae0]
add al, byte [esi + 0x6052e0]
xor al, byte [esi + 0x6058e0]
add al, byte [esi + 0x6056e0]
xor al, byte [esi + 0x6050d8]
sub al, byte [esi + 0x6054e0]
sub al, byte [esi + 0x605ce0]
mov byte [edi + ebx], al
inc edi
cmp edi, 0x40
jl 0x4035ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403613
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x40368c
mov eax, edi
mov ecx, 0xfe
cdq
idiv ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
mov eax, esi
and eax, 0x1ff
mov cl, byte [eax + 0x605ce0]
add cl, byte [eax + 0x6054e0]
add cl, byte [esi + ebx]
xor cl, byte [eax + 0x6050d8]
sub cl, byte [eax + 0x6056e0]
xor cl, byte [eax + 0x6058e0]
sub cl, byte [eax + 0x6052e0]
add cl, byte [eax + 0x605ae0]
xor cl, byte [eax + 0x605ee0]
mov eax, esi
and eax, 7
mov byte [esi + ebx], cl
sub cl, byte [eax + edx]
mov byte [esi + ebx], cl
mov al, byte [eax + edx]
xor al, cl
xor al, byte [ebp - 4]
mov byte [esi + ebx], al
inc esi
cmp esi, edi
jl 0x403634
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403877
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0x55555555
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [0x643c48], eax
inc ebx
mov dword [0x643c4c], eax
mov dword [0x6428c8], edi
mov dword [0x6428cc], esi
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.0055c430
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, 0x138
mov dword [ebx*8 + 0x6428c8], edi
adc esi, edx
mov dword [ebx*8 + 0x6428cc], esi
inc ebx
cmp ebx, eax
jl 0x4038a2
pop edi
pop esi
mov dword [0x6428c0], eax
mov eax, 0x6428c0
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x4050b2
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, edx
push edi
push 0x40
pop eax
mov edx, dword [esi]
mov edi, ecx
and edx, 0x3f
mov byte [edx + esi + 0x18], 0x80
inc edx
sub eax, edx
cmp eax, 8
jae 0x4050ef
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00577630
push 0x40
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.004046d2
add esp, 0x10
xor edx, edx
push 0x40
pop eax
add eax, 0xfffffff8
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00577630
shl dword [esi], 3
lea edx, [esi + 0x18]
mov al, byte [esi]
mov ecx, esi
mov byte [esi + 0x50], al
mov eax, dword [esi]
shr eax, 8
mov byte [esi + 0x51], al
mov al, byte [esi + 2]
mov byte [esi + 0x52], al
mov al, byte [esi + 3]
mov byte [esi + 0x53], al
mov al, byte [esi + 4]
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
shr eax, 8
mov byte [esi + 0x55], al
mov al, byte [esi + 6]
mov byte [esi + 0x56], al
mov al, byte [esi + 7]
push 0x40
mov byte [esi + 0x57], al
call fcn.004046d2
mov al, byte [esi + 8]
mov byte [edi], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [edi + 1], al
mov al, byte [esi + 0xa]
mov byte [edi + 2], al
mov al, byte [esi + 0xb]
mov byte [edi + 3], al
mov al, byte [esi + 0xc]
mov byte [edi + 4], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [edi + 5], al
mov al, byte [esi + 0xe]
mov byte [edi + 6], al
mov al, byte [esi + 0xf]
mov byte [edi + 7], al
mov al, byte [esi + 0x10]
mov byte [edi + 8], al
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [edi + 9], al
mov al, byte [esi + 0x12]
mov byte [edi + 0xa], al
mov al, byte [esi + 0x13]
mov byte [edi + 0xb], al
mov al, byte [esi + 0x14]
mov byte [edi + 0xc], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [edi + 0xd], al
mov al, byte [esi + 0x16]
push 0x98
mov byte [edi + 0xe], al
mov al, byte [esi + 0x17]
push 0
push esi
mov byte [edi + 0xf], al
call fcn.00577630
add esp, 0x1c
pop edi
pop esi
ret

Function at 0x4051c1
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x630fe8]
xor eax, esp
mov dword [esp + 0xa0], eax
and dword [esp + 4], 0
and dword [esp + 8], 0
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0x14], 0x67452301
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00405023
pop ecx
lea edx, [esp + 8]
mov ecx, esi
call fcn.004050b2
mov ecx, dword [esp + 0xa4]
pop esi
xor ecx, esp
call fcn.0055b830
mov esp, ebp
pop ebp
ret
Function at 0x40526b
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push 0x2b8
mov eax, 0x5b63cc
call fcn.0055bed3
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2bc], esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2c0], ebx
lea eax, [ebp - 0x220]
push 0x200
push 1
push eax
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b0], 0x67452301
mov dword [ebp - 0x2ac], 0xefcdab89
mov dword [ebp - 0x2a8], 0x98badcfe
mov dword [ebp - 0x2a4], 0x10325476
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b4], ebx
call fcn.0057e2be
add esp, 0x10
jmp 0x40530e
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x2b8]
call fcn.00405023
push edi
push 0x200
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.0057e2be
add esp, 0x14
test eax, eax
jne 0x4052e5
lea edx, [ebp - 0x2b8]
lea ecx, [ebp - 0x20]
call fcn.004050b2
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x405334
mov eax, dword [esi]
jmp 0x405336
mov eax, esi
mov byte [eax], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c0], 1
mov bl, byte [ebp + ebx - 0x20]
mov cl, bl
shr cl, 4
cmp cl, 0xa
sbb al, al
add cl, 0x57
and al, 0xd9
add al, cl
mov ecx, esi
movzx eax, al
push eax
call fcn.00405438
and bl, 0xf
cmp bl, 0xa
sbb cl, cl
add bl, 0x57
and cl, 0xd9
add cl, bl
movzx ecx, cl
push ecx
mov ecx, esi
call fcn.00405438
mov ebx, dword [ebp - 0x2bc]
inc ebx
mov dword [ebp - 0x2bc], ebx
cmp ebx, 0x10
jb 0x405345
mov eax, esi
call fcn.0055be7d
ret
Function at 0x405e50
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, edx
push edi
push 0x40
pop eax
mov edx, dword [esi]
mov edi, ecx
and edx, 0x3f
mov byte [edx + esi + 0x18], 0x80
inc edx
sub eax, edx
cmp eax, 8
jae 0x405e8d
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00577630
push 0x40
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.00405470
add esp, 0x10
xor edx, edx
push 0x40
pop eax
add eax, 0xfffffff8
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00577630
shl dword [esi], 3
lea edx, [esi + 0x18]
mov al, byte [esi]
mov ecx, esi
mov byte [esi + 0x50], al
mov eax, dword [esi]
shr eax, 8
mov byte [esi + 0x51], al
mov al, byte [esi + 2]
mov byte [esi + 0x52], al
mov al, byte [esi + 3]
mov byte [esi + 0x53], al
mov al, byte [esi + 4]
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
shr eax, 8
mov byte [esi + 0x55], al
mov al, byte [esi + 6]
mov byte [esi + 0x56], al
mov al, byte [esi + 7]
push 0x40
mov byte [esi + 0x57], al
call fcn.00405470
mov al, byte [esi + 8]
mov byte [edi], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [edi + 1], al
mov al, byte [esi + 0xa]
mov byte [edi + 2], al
mov al, byte [esi + 0xb]
mov byte [edi + 3], al
mov al, byte [esi + 0xc]
mov byte [edi + 4], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [edi + 5], al
mov al, byte [esi + 0xe]
mov byte [edi + 6], al
mov al, byte [esi + 0xf]
mov byte [edi + 7], al
mov al, byte [esi + 0x10]
mov byte [edi + 8], al
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [edi + 9], al
mov al, byte [esi + 0x12]
mov byte [edi + 0xa], al
mov al, byte [esi + 0x13]
mov byte [edi + 0xb], al
mov al, byte [esi + 0x14]
mov byte [edi + 0xc], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [edi + 0xd], al
mov al, byte [esi + 0x16]
push 0x98
mov byte [edi + 0xe], al
mov al, byte [esi + 0x17]
push 0
push esi
mov byte [edi + 0xf], al
call fcn.00577630
add esp, 0x1c
pop edi
pop esi
ret
Function at 0x40c745
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x5b6d0b
call fcn.0055bed3
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40c845
cmp byte [ebx + 0x3d], 0
je 0x40c845
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x40c77f
xor al, al
jmp 0x40c847
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.00403a34
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40c7dd
sub eax, 1
je 0x40c7e1
dec eax
sub eax, 1
je 0x40c833
xor bl, bl
jmp 0x40c835
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, edx
sub esi, eax
je 0x40c819
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0057ee38
add esp, 0x10
cmp esi, eax
jne 0x40c7d9
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3d], 0
je 0x40c833
test esi, esi
jne 0x40c7a3
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00403ee6
jmp 0x40c79d
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004039b3
mov al, bl
jmp 0x40c847
mov al, 1
call fcn.0055be7d
ret

Function at 0x40db51
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
push 0xffffffffffffffff
xor edi, edi
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push edi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x64288c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x40db9c
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40dbb2
push fcn.004023b3
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40dbb8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push eax
push eax
push 1
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [ebp + 8]
mov ebx, eax
mov dword [esi + 4], ebx
test ebx, ebx
jne 0x40dc1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ecx, esi
push 1
mov edi, eax
call dword [edx]
call fcn.0040286e
mov esi, eax
mov dword [ebp - 0x14], edi
mov edx, esi
mov ecx, edi
call fcn.00402727
mov edx, 0x60749c
mov byte [ebp - 0x10], al
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], esi
call fcn.00403015
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
mov dword [esi + 8], eax
cmp dword [edi + 8], 0
jne 0x40dc70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ecx, esi
push 1
mov edi, eax
call dword [edx]
call fcn.0040286e
mov esi, eax
mov dword [ebp - 0x14], edi
mov edx, esi
mov ecx, edi
call fcn.00402727
mov edx, 0x607488
mov byte [ebp - 0x10], al
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], esi
call fcn.00403015
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x40dd02
push dword [ebp + 0xc]
push 0
call fcn.0057f790
add esp, 0x18
mov dword [edi + 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40dce9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ecx, esi
push 1
mov dword [ebp + 8], eax
call dword [edx]
test ebx, ebx
je 0x40dcb2
push ebx
call edi
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x40dcc0
push dword [eax + 8]
call edi
call fcn.0040286e
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, esi
mov dword [ebp - 0x14], eax
mov ecx, eax
call fcn.00402727
mov edx, 0x6074b0
mov byte [ebp - 0x10], al
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], esi
call fcn.00403015
test ebx, ebx
je 0x40dcf9
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f7e3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
sub eax, 0
je 0x40f43f
sub eax, 1
jne 0x40f465
sub esp, 0x14
mov dword [edi + 0xc], 2
mov esi, esp
lea eax, [ebp - 8]
add edi, 0x10
push edi
push eax
call fcn.0055eb9b
lea eax, [ebp - 8]
mov dword [esi], 0x5f5060
and dword [esi + 4], 0
and dword [esi + 8], 0
push eax
lea eax, [esi + 0xc]
mov dword [esi], 0x607814
push eax
call fcn.0055eb9b
lea eax, [ebp - 8]
push eax
call fcn.0055ec28
add esp, 0x14
lea ecx, [ebp - 0x10]
call fcn.00412220
push eax
push edi
call fcn.0055eb8b
lea eax, [ebp - 0x10]
push eax
call fcn.0055ec28
add esp, 0x20
jmp 0x40f465
lea eax, [ebp - 0x10]
mov dword [edi + 0xc], 1
push eax
call fcn.0040f2fa
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0055eb8b
lea eax, [ebp - 0x10]
push eax
call fcn.0055ec28
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [0x643c54]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x40f804
cmp dword [eax], esi
je 0x40f814
mov eax, dword [eax + 8]
test eax, eax
jne 0x40f7fd
xor ecx, ecx
pop esi
test ecx, ecx
jne 0x40f3c1
ret
mov ecx, dword [eax + 4]
jmp 0x40f80a

Function at 0x40fb91
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ebx, edx
cmp edi, 0xffffffff
je 0x40fc68
cmp byte [ebp + 8], 0
je 0x40fbe7
test byte [ebx], 8
je 0x40fbe7
xor eax, eax
and dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov byte [ebp - 0xc], al
call fcn.0040286e
mov dword [ebp - 8], eax
mov edx, ebx
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
call fcn.0040fcfc
add esp, 0x14
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.0040fa4c
test esi, esi
je 0x40fc68
push ecx
push 0x2733
lea ecx, [ebp - 0x10]
call fcn.004122e6
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.0040f32e
test al, al
jne 0x40fc3b
push ecx
push 0x4d5
lea ecx, [ebp - 0x10]
call fcn.004122e6
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.0040f32e
test al, al
je 0x40fc68
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebx], 0xfc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.0040fa4c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret