joyce8/EMBER2024-capa huggingface dataset:
Function at 0x540630
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580980
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603f98]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x540680
cmp dword [eax], esi
je 0x54069a
mov eax, dword [eax + 8]
test eax, eax
jne 0x540675
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
mov esi, dword [edi + 0x78]
cmp byte [esi + 0x400], bl
jne 0x5406c7
mov byte [esi + 0x400], 1
jmp 0x5406d6
cmp dword [eax + 4], ebx
je 0x540680
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d5c0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xf8
call fcn.00535f9b
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x540710
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f820
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.00546160
jmp 0x540712
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x540722
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d960
lea ecx, [ebp - 0x28]
call fcn.00570400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x540760
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5809e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push dword [0x603f98]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5407b0
cmp dword [eax], esi
je 0x540803
mov eax, dword [eax + 8]
test eax, eax
jne 0x5407a5
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
lea eax, [edi + 0x30]
push eax
push 0x80
call fcn.00556400
mov esi, eax
mov dword [ebp - 0x20], ebx
add esp, 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov dword [ebp + 0xc], esi
test esi, esi
je 0x540830
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x14]
call fcn.0055f820
push eax
mov ebx, 1
mov byte [ebp - 4], 3
push edi
mov ecx, esi
mov dword [ebp - 0x14], ebx
call fcn.005461c0
jmp 0x540832
cmp dword [eax + 4], ebx
je 0x5407b0
mov eax, dword [ebp + 0xc]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0053d5f0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 4], 1
test bl, 1
je 0x540842
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0055d960
lea ecx, [ebp - 0x28]
call fcn.005704b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x540950
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580a08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
jne 0x5409b3
push dword [0x603f80]
and eax, 0xfffffffc
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x5409b3
cmp dword [eax], esi
je 0x5409d1
mov eax, dword [eax + 8]
test eax, eax
jne 0x5409a8
push dword [0x603f80]
lea eax, [edi + 1]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], eax
call ebx
test eax, eax
je 0x540a3b
mov eax, dword [eax + 4]
jmp 0x540a3d
cmp dword [eax + 4], 0
je 0x5409b3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], fcn.0053d700
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.0053d700
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push 1
push 0x2c
push eax
push dword [ebp + 8]
call fcn.0053ca20
mov edx, eax
add esp, 0x10
test edx, edx
je 0x540a99
mov eax, dword [ebp + 8]
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x55c7d0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], fcn.0053d700
mov dword [edx + 0x24], eax
jmp 0x540a9b
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, ecx
shr eax, 1
and ecx, 0xfffffffc
and al, 1
movzx eax, al
push eax
mov ecx, dword [ecx + 8]
push edx
call fcn.0056ae00
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.00570530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x541140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580aac
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
jne 0x5411a3
push dword [0x603f80]
and eax, 0xfffffffc
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call ebx
test eax, eax
je 0x5411a3
cmp dword [eax], esi
je 0x5411b8
mov eax, dword [eax + 8]
test eax, eax
jne 0x541198
push dword [0x603f80]
call ebx
test eax, eax
je 0x541234
mov eax, dword [eax + 4]
jmp 0x541236
cmp dword [eax + 4], 0
je 0x5411a3
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov dword [ecx], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.0053d6e0
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
test eax, eax
je 0x5412bb
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push 1
push 0x28
push eax
push dword [ebp + 8]
call fcn.0053ca20
mov edx, eax
add esp, 0x10
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x541296
mov ecx, dword [ebp + 8]
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x55c6e0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x1c], 0
mov eax, dword [ecx]
mov dword [edx + 0x20], eax
mov dword [ecx], 0
jmp 0x541298
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, ecx
and eax, 3
and ecx, 0xfffffffc
shr eax, 1
and al, 1
movzx eax, al
mov ecx, dword [ecx + 8]
push eax
push edx
call fcn.0056ae00
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5490e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581a8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [ecx], eax
mov eax, dword [edi + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x30]
add edi, 0x38
mov dword [ebp + 8], ecx
add ecx, 8
mov dword [ebp + 8], ecx
push edi
mov dword [ebp - 4], 0
lea esi, [ecx + 8]
mov dword [ecx], eax
mov ecx, esi
mov dword [ebp + 8], esi
call fcn.005481e0
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, ebx
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5491e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581a5b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edi, [ebx + 8]
mov esi, dword [ebp + 0xc]
mov ecx, edi
push esi
mov dword [ebx + 4], eax
mov dword [ebp + 8], edi
call fcn.00548740
mov dword [edi + 0x10], 0
xor edx, edx
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov ecx, dword [esi + 4]
mov eax, dword [esi]
cmp eax, ecx
je 0x54924e
add edx, dword [eax + 4]
add eax, 8
cmp eax, ecx
jne 0x549244
mov dword [edi + 0xc], edx
mov edx, dword [ebp + 0x14]
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x24], 0
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [edx]
lea edi, [edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
add ecx, 8
mov eax, dword [edx + 8]
mov dword [ebp + 8], ecx
push edi
lea esi, [ecx + 8]
mov dword [ecx], eax
mov ecx, esi
mov dword [ebp + 8], esi
call fcn.005481e0
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, ebx
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5492c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581a8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [ecx], eax
mov eax, dword [edi + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x30]
mov dword [ebp + 8], ecx
add ecx, 8
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 0
mov dword [ecx], eax
add ecx, 8
mov eax, dword [edi + 0x38]
add edi, 0x40
mov dword [ebp + 8], ecx
push edi
lea esi, [ecx + 8]
mov dword [ecx], eax
mov ecx, esi
mov dword [ebp + 8], esi
call fcn.00548280
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, ebx
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5493c0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581a5b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edi, [ebx + 8]
mov esi, dword [ebp + 0xc]
mov ecx, edi
push esi
mov dword [ebx + 4], eax
mov dword [ebp + 8], edi
call fcn.00548740
mov dword [edi + 0x10], 0
xor edx, edx
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov ecx, dword [esi + 4]
mov eax, dword [esi]
cmp eax, ecx
je 0x54942e
add edx, dword [eax + 4]
add eax, 8
cmp eax, ecx
jne 0x549424
mov dword [edi + 0xc], edx
mov edi, dword [ebp + 0x14]
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x24], 0
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
add ecx, 8
mov eax, dword [edi + 8]
mov dword [ebp + 8], ecx
mov dword [ecx], eax
add ecx, 8
mov eax, dword [edi + 0x10]
add edi, 0x18
mov dword [ebp + 8], ecx
push edi
lea esi, [ecx + 8]
mov dword [ecx], eax
mov ecx, esi
mov dword [ebp + 8], esi
call fcn.00548280
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, ebx
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x549fd0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581ce6
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x1b0], esi
call fcn.00549dd0
mov dword [ebp - 4], 0
mov eax, 1
lock xadd dword [0x603f8c], eax
inc eax
mov ebx, 0x603f90
cmp eax, 1
jne 0x54a041
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [ebx], eax
xor edi, edi
lock xadd dword [ebx], edi
test edi, edi
je 0x54a06d
call fcn.00574eb0
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a8]
push str.winsock
push eax
mov dword [ebp - 0x1a8], edi
call fcn.0055e1e0
push 0x64
mov byte [ebp - 4], 1
call fcn.00535f9b
add esp, 4
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x54a099
push 0
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.0054b680
mov edi, eax
jmp 0x54a09b
xor edi, edi
mov dword [ebp - 0x1ac], edi
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 3
push 0
push eax
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
call fcn.00542410
mov ecx, dword [esi]
lea eax, [ebp - 0x1a8]
add esp, 8
push edi
push eax
call fcn.0055b270
mov dword [esi + 8], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053649e
mov esp, ebp
pop ebp
ret
Function at 0x54b680
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5820d1
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x130], edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x138], edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], vtable.asio::detail::win_iocp_io_context.0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
push 0x11c
lea eax, [ebp - 0x12c]
mov dword [edi + 0x18], 0
push 0
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
mov dword [ebp - 0x128], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
and eax, 0xfffffe0b
add eax, 0x1f4
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 3
mov dword [edi + 0x34], 0
call fcn.0055db30
mov esi, eax
call fcn.00574eb0
test esi, esi
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], esi
setne al
test al, al
je 0x54b7b2
push str.mutex
lea eax, [ebp - 0x134]
push eax
call fcn.0055e1e0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x60], 0
or eax, 0xffffffff
mov byte [ebp - 4], 6
test ebx, ebx
cmovns eax, ebx
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x54b824
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00574eb0
test esi, esi
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], esi
setne al
test al, al
je 0x54b824
push str.iocp
lea eax, [ebp - 0x134]
push eax
call fcn.0055e1e0
cmp byte [ebp + 0x10], 0
je 0x54b876
lea eax, [edi + 0x18]
lock inc dword [eax]
push 0xc
call fcn.00535f9b
add esp, 4
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x54b856
push 0
push edi
mov ecx, eax
call fcn.00537ef0
mov ebx, eax
jmp 0x54b858
xor ebx, ebx
mov esi, dword [edi + 0x60]
test esi, esi
je 0x54b873
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push esi
call fcn.00535fd3
add esp, 8
mov dword [edi + 0x60], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053649e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x556400
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x556419
mov eax, dword [eax + 4]
jmp 0x55641b
xor eax, eax
push 1
push dword [ebp + 8]
push eax
push dword [ebp - 4]
call fcn.0053ca20
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x556430
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x603f80]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x556449
mov esi, dword [eax + 4]
jmp 0x55644b
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x55646c
test esi, esi
je 0x55646c
xor edx, edx
nop dword [eax + eax]
cmp dword [esi + edx*4], 0
je 0x55647a
inc edx
cmp edx, 2
jl 0x556460
push dword [ebp + 8]
call fcn.00535fce
add esp, 4
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [esi + edx*4], ecx
pop esi
pop ebp
ret
Function at 0x557cf0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x160], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x67452301
mov dword [ebp - 0x14], 0xefcdab89
mov dword [ebp - 0x10], 0x98badcfe
mov dword [ebp - 0xc], 0x10325476
mov dword [ebp - 8], 0xc3d2e1f0
push edi
cmp eax, 0x40
jb 0x557daf
lea ebx, [eax - 0x40]
mov dword [ebp - 0x15c], ebx
lea edi, [esi + 0x40]
cmp esi, edi
jae 0x557d95
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x158]
nop word [eax + eax]
movzx ecx, byte [ebx + esi]
lea edx, [edx + 4]
movzx eax, byte [ebx + esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + esi + 3]
shl ecx, 8
add esi, 4
or ecx, eax
mov dword [edx - 4], ecx
cmp esi, edi
jb 0x557d60
mov ebx, dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00566a80
add esp, 8
cmp esi, ebx
jbe 0x557d45
mov eax, dword [ebp + 0xc]
mov ebx, eax
mov eax, 0xf
sub ebx, esi
nop dword [eax + eax]
mov dword [ebp + eax*4 - 0x158], 0
sub eax, 1
jns 0x557dc0
xor edi, edi
lea ecx, [edi + 3]
test ebx, ebx
je 0x557e0a
add esi, dword [ebp + 8]
nop dword [eax]
mov eax, edi
lea edx, [ebp - 0x158]
shr eax, 2
lea edx, [edx + eax*4]
mov eax, edi
and eax, 3
sub ecx, eax
movzx eax, byte [esi + edi]
shl ecx, 3
inc edi
shl eax, cl
mov ecx, 3
or dword [edx], eax
cmp edi, ebx
jb 0x557de0
mov eax, edi
lea edx, [ebp - 0x158]
shr eax, 2
and edi, 3
lea edx, [edx + eax*4]
sub ecx, edi
shl ecx, 3
mov eax, 0x80
shl eax, cl
or dword [edx], eax
cmp ebx, 0x38
jb 0x557e60
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00566a80
add esp, 8
mov eax, 0xf
nop word [eax + eax]
mov dword [ebp + eax*4 - 0x158], 0
sub eax, 1
jns 0x557e50
mov eax, dword [ebp + 0xc]
shl eax, 3
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00566a80
mov esi, dword [ebp - 0x160]
add esp, 8
mov edx, 0x13
nop word [eax + eax]
mov eax, edx
mov ecx, edx
sar eax, 2
not ecx
and ecx, 3
shl ecx, 3
mov eax, dword [ebp + eax*4 - 0x18]
shr eax, cl
mov byte [esi + edx], al
sub edx, 1
jns 0x557e90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053649e
mov esp, ebp
pop ebp
ret
Function at 0x558100
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582f68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
xor bl, bl
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 8]
lea esi, [eax + 0x3c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 4
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x558180
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
lea edx, [eax + edx*8]
mov eax, dword [edx]
cmp eax, ecx
je 0x558182
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x558180
cmp dword [eax + 8], edi
je 0x55819c
mov eax, dword [eax]
cmp eax, ecx
jne 0x558175
mov ecx, dword [esi]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push ecx
lea ecx, [esi - 4]
call fcn.00557ff0
test al, al
jne 0x5581a0
test bl, bl
jne 0x5581a0
jmp 0x5581a2
mov ecx, eax
jmp 0x558182
mov bl, 1
add esi, 0x1c
sub dword [ebp - 0x10], 1
jne 0x558151
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [esi + 0x14]
call fcn.0056acd0
test bl, bl
je 0x55826c
mov ecx, dword [0x603b78]
lea eax, [ebp + 0xb]
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x2c]
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x18], 1
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x603fc4]
cmp eax, dword [ecx + 4]
jle 0x558230
push 0x603fc4
call fcn.0053639a
add esp, 4
cmp dword [0x603fc4], 0xffffffff
jne 0x558230
push 0x586b50
mov dword [0x603fbc], 0x5e0018
mov dword [0x603fc0], 7
call fcn.00536234
push 0x603fc4
call fcn.0053635b
add esp, 8
push 0
push 0
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x34]
call dword [sym.imp.WS2_32.dll_WSASend]
call fcn.00574eb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x558267
cmp eax, 0x4d2
jne 0x55826c
call fcn.00574eb0
lea ecx, [ebp - 0x20]
call fcn.0054ced0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5584c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x603f80]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5584eb
nop dword [eax]
cmp dword [eax], esi
je 0x5584ed
mov eax, dword [eax + 8]
test eax, eax
jne 0x5584e0
pop esi
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5584eb
pop esi
jmp fcn.00558410