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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x85a38a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 0x6c], ecx
lea eax, [ebp - 0x64]
push eax
push 0x139a91c
lea ecx, [ebp - 0x1c]
call fcn.007cd0f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00807920
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0xfffffff8
mov dword [ebp - 0x2c], 0x139a920
mov dword [ebp - 0x20], 1
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x802892
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0
push 0xff
push 0x64
push 0
lea ecx, [ebp - 0x44]
push ecx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x8031ac
jmp 0x8031d1
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA_1]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA_1]
mov ecx, 1
test ecx, ecx
jne 0x80318c
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle_1]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x3c]
call fcn.00807980
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.007cd120
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x80c950
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x13acafc]
xor edx, edx
cmp eax, edx
jne 0x80c976
xor eax, eax
mov byte [eax + 0x13ac9fc], al
inc eax
cmp eax, 0x100
jl 0x80c95e
mov dword [0x13acafc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x13ac9fc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x80ca07
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x80c9da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x80c9a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x80ca80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x80cad3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x80caba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x813450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x85a56e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00813d70
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x12daf54
call fcn.00844eb9
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x8134e3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00844eb9
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x8134dc
push 0
mov ecx, eax
call fcn.0080a580
mov dword [esi + 0xc], eax
jmp 0x8134e5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x8134e5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x847558
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x847590
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.008455d3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.008455ab
jmp 0x84759c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x848d5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x848d9d
call fcn.0084ef8d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x848d9d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x848d94
xor eax, eax
jmp 0x848da5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00848dab
pop edi
pop esi
pop ebx
ret 4
Function at 0x84f4bd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x84f4eb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x84f509
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0084f423
jmp 0x84f509
mov eax, dword [esi + 0x14]
test eax, eax
je 0x84f509
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0084f423
test edi, edi
mov eax, edi
jne 0x84f4f3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x4032d2
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 0x403318
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004028bc
mov edi, eax
mov dword [ebp - 0xc], esi
mov edx, edi
mov ecx, esi
call fcn.00402789
mov edx, 0x5ee718
mov byte [ebp - 8], al
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], edi
call fcn.00402fad
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40331f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x616fe8]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x6281f0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x403361
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x6281f4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0055d244
mov esp, ebp
pop ebp
ret

Function at 0x403517
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.00403424
mov byte [esi + ebx], al
inc esi
pop ecx
pop ecx
cmp esi, 8
jb 0x40352c
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 + 0x5ee2d8]
sub al, byte [esi + 0x5eded8]
add al, byte [esi + 0x5ed6d8]
xor al, byte [esi + 0x5edcd8]
add al, byte [esi + 0x5edad8]
xor al, byte [esi + 0x5ed4d0]
sub al, byte [esi + 0x5ed8d8]
sub al, byte [esi + 0x5ee0d8]
mov byte [edi + ebx], al
inc edi
cmp edi, 0x40
jl 0x403546
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4035ab
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 0x403624
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 + 0x5ee0d8]
add cl, byte [eax + 0x5ed8d8]
add cl, byte [esi + ebx]
xor cl, byte [eax + 0x5ed4d0]
sub cl, byte [eax + 0x5edad8]
xor cl, byte [eax + 0x5edcd8]
sub cl, byte [eax + 0x5ed6d8]
add cl, byte [eax + 0x5eded8]
xor cl, byte [eax + 0x5ee2d8]
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 0x4035cc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40380f
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 [0x629648], eax
inc ebx
mov dword [0x62964c], eax
mov dword [0x6282c8], edi
mov dword [0x6282cc], 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.0055de60
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, 0x138
mov dword [ebx*8 + 0x6282c8], edi
adc esi, edx
mov dword [ebx*8 + 0x6282cc], esi
inc ebx
cmp ebx, eax
jl 0x40383a
pop edi
pop esi
mov dword [0x6282c0], eax
mov eax, 0x6282c0
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x404fdf
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 0x40501c
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.005639e0
push 0x40
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.004045ff
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.005639e0
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.004045ff
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.005639e0
add esp, 0x1c
pop edi
pop esi
ret

Function at 0x4050ee
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x616fe8]
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.00404f50
pop ecx
lea edx, [esp + 8]
mov ecx, esi
call fcn.00404fdf
mov ecx, dword [esp + 0xa4]
pop esi
xor ecx, esp
call fcn.0055d244
mov esp, ebp
pop ebp
ret
Function at 0x405198
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push 0x2b8
mov eax, 0x59f98b
call fcn.0055d904
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.0056a657
add esp, 0x10
jmp 0x40523b
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x2b8]
call fcn.00404f50
push edi
push 0x200
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.0056a657
add esp, 0x14
test eax, eax
jne 0x405212
lea edx, [ebp - 0x2b8]
lea ecx, [ebp - 0x20]
call fcn.00404fdf
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x405261
mov eax, dword [esi]
jmp 0x405263
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.00405365
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.00405365
mov ebx, dword [ebp - 0x2bc]
inc ebx
mov dword [ebp - 0x2bc], ebx
cmp ebx, 0x10
jb 0x405272
mov eax, esi
call fcn.0055d8ae
ret
Function at 0x405d7d
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 0x405dba
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.005639e0
push 0x40
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.0040539d
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.005639e0
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.0040539d
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.005639e0
add esp, 0x1c
pop edi
pop esi
ret
Function at 0x40c661
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x5a02eb
call fcn.0055d904
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40c761
cmp byte [ebx + 0x3d], 0
je 0x40c761
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x40c69b
xor al, al
jmp 0x40c763
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.0040398e
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 0x40c6f9
sub eax, 1
je 0x40c6fd
dec eax
sub eax, 1
je 0x40c74f
xor bl, bl
jmp 0x40c751
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 0x40c735
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0056b1d1
add esp, 0x10
cmp esi, eax
jne 0x40c6f5
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3d], 0
je 0x40c74f
test esi, esi
jne 0x40c6bf
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00403e1e
jmp 0x40c6b9
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040390d
mov al, bl
jmp 0x40c763
mov al, 1
call fcn.0055d8ae
ret

Function at 0x40da16
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 0x628288
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x40da61
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40da77
push 0x402423
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 0x40da7d
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 0x40dae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ecx, esi
push 1
mov edi, eax
call dword [edx]
call fcn.004028bc
mov esi, eax
mov dword [ebp - 0x14], edi
mov edx, esi
mov ecx, edi
call fcn.00402789
mov edx, 0x5ef8b0
mov byte [ebp - 0x10], al
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], esi
call fcn.00402fad
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 0x40db35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ecx, esi
push 1
mov edi, eax
call dword [edx]
call fcn.004028bc
mov esi, eax
mov dword [ebp - 0x14], edi
mov edx, esi
mov ecx, edi
call fcn.00402789
mov edx, 0x5ef8e4
mov byte [ebp - 0x10], al
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], esi
call fcn.00402fad
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 0x40dbc7
push dword [ebp + 0xc]
push 0
call fcn.0056bb29
add esp, 0x18
mov dword [edi + 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40dbae
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 0x40db77
push ebx
call edi
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x40db85
push dword [eax + 8]
call edi
call fcn.004028bc
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, esi
mov dword [ebp - 0x14], eax
mov ecx, eax
call fcn.00402789
mov edx, 0x5ef8dc
mov byte [ebp - 0x10], al
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], esi
call fcn.00402fad
test ebx, ebx
je 0x40dbbe
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 0x40e553
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 0x40e62a
cmp byte [ebp + 8], 0
je 0x40e5a9
test byte [ebx], 8
je 0x40e5a9
xor eax, eax
and dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov byte [ebp - 0xc], al
call fcn.004028bc
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.0040e633
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.0040e503
test esi, esi
je 0x40e62a
push ecx
push 0x2733
lea ecx, [ebp - 0x10]
call fcn.0040f240
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.0040d6f6
test al, al
jne 0x40e5fd
push ecx
push 0x4d5
lea ecx, [ebp - 0x10]
call fcn.0040f240
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.0040d6f6
test al, al
je 0x40e62a
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.0040e503
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e633
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
or esi, 0xffffffff
cmp ecx, esi
jne 0x40e650
push 0x2719
mov ecx, dword [ebp + 0x18]
call fcn.0040f208
jmp 0x40e6d4
cmp dword [ebp + 8], 0xa5100000
mov eax, dword [ebp + 0xc]
jne 0x40e6a1
cmp eax, 2
jne 0x40e668
push 0x2726
jmp 0x40e643
cmp eax, 1
jne 0x40e6b4
cmp dword [ebp + 0x14], 4
jne 0x40e661
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x40e680
or byte [edx], 4
jmp 0x40e683
and byte [edx], 0xfb
push edi
mov edi, dword [ebp + 0x18]
xor ecx, ecx
mov esi, dword [edi + 8]
mov edx, esi
and dword [edi], 0
call fcn.00402789
mov byte [edi + 4], al
xor eax, eax
mov dword [edi + 8], esi
pop edi
jmp 0x40e6d6
cmp dword [ebp + 8], 0xffff
jne 0x40e6b4
cmp eax, 0x80
jne 0x40e6b4
or byte [edx], 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp + 0x18]
mov esi, eax
test esi, esi
setne dl
call fcn.0040e503
mov eax, esi
pop esi
pop ebp
ret