joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f6a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404f90
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404f90
xor al, al
jmp 0x404fb0
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0041cfe0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x405b70
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
mov eax, dword [esi]
and dword [esi + 4], 0
and byte [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
test edi, edi
jne 0x405b9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x405bd4
cmp edi, dword [esi + 8]
jl 0x405baa
push edi
mov ecx, esi
call fcn.00403341
mov eax, dword [esi]
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, esi
mov edi, eax
call fcn.00405ae7
test edi, edi
jne 0x405bd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
jmp 0x405bd4
mov al, 1
pop edi
pop esi
pop ebx
ret 4

Function at 0x405bda
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x41e050
call fcn.0041ce50
sub esp, 0x18
cmp byte [0x42692c], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x405c5b
mov esi, dword [ebp + 8]
mov eax, dword [esi]
and dword [esi + 4], 0
and word [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
je 0x405c4a
cmp edi, dword [esi + 8]
jl 0x405c1d
push edi
mov ecx, esi
call fcn.0040218d
mov eax, dword [esi]
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi]
xor ebx, ebx
xor edx, edx
cmp word [ecx], bx
je 0x405c3f
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x405c37
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
jne 0x405c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x405cac
mov al, 1
jmp 0x405cac
xor esi, esi
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00403341
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
mov dword [ebp - 4], esi
call fcn.00405b70
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.004042f7
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.00401d2c
push dword [ebp - 0x24]
call fcn.00403174
push dword [ebp - 0x18]
call fcn.00403174
pop ecx
mov al, bl
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40d1f2
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get number of processors

Disassembly:
mov eax, 0x41ece6
call fcn.0041ce50
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 3
xor ebx, ebx
or eax, 0xffffffff
lea ecx, [esi + 0x38]
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040218d
lea ecx, [esi + 0x44]
push edi
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040218d
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], 4
mov dword [esi + 0x50], 0x4203dc
lea ecx, [esi + 0x64]
push edi
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040218d
lea ecx, [esi + 0x70]
push edi
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040218d
lea ecx, [esi + 0x7c]
push edi
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040218d
lea ecx, [esi + 0x88]
push edi
mov byte [ebp - 4], 5
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040218d
lea ecx, [esi + 0x94]
call fcn.0041bd90
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x412cfc
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41f820
call fcn.0041ce50
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x42078c
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x420a00
push 4
mov ebx, 0x42080c
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.004017f8
mov dword [esi + 0x3c], 0x420aa0
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.004017f8
mov dword [edi], 0x420aa8
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.004117d3
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.00412304
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.004117d3
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.00412304
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.004117d3
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.00412304
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.004117d3
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.00412304
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.00412304
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41b470
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
ret
Function at 0x41bca0
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x41bcc8
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41bcd7
mov eax, 1
ret 4
Function at 0x4269b9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4269f8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4269f8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4269f8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4269f8
cmp dword [ecx + 0x74], 0xe
jbe 0x4269f8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x438da0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5b385c99
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x14757e17
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x3ce039ef
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x401267f
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x41d126
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]
cmp dword [esp + 0x10], 0
jne 0x41d154
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41d172
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041d08c
jmp 0x41d172
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41d172
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041d08c
test edi, edi
mov eax, edi
jne 0x41d15c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax]
sub esp, 0x1f0
push esi
mov dword [0x4377fc], ecx
call fcn.004022d0
lea edx, [esp + 0x1fc]
push edx
lea eax, [esp + 0x1fc]
push eax
push 0x421030
push 0x4211f0
call fcn.00404dd0
lea ecx, [esp + 0x20c]
push ecx
lea edx, [esp + 0x20c]
push edx
call fcn.00401250
mov eax, dword [esp + 0x210]
add esp, 0x18
xor esi, esi
test eax, eax
je 0x4010e5
mov ecx, dword [esp + 0x1fc]
mov edx, dword [ecx + eax*4 - 4]
push 0x4211e8
push edx
call fcn.00404d90
add esp, 8
test eax, eax
je 0x4010e5
mov eax, dword [esp + 0x1f8]
mov ecx, dword [esp + 0x1fc]
dec eax
mov dword [esp + 0x1f8], eax
mov esi, dword [ecx + eax*4]
cmp byte [esi], 0
mov eax, esi
je 0x4010bc
lea ecx, [ecx]
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x4010ac
mov byte [eax], 0x25
jmp 0x4010b4
cmp cl, 0x3f
jne 0x4010b4
mov byte [eax], 0x5f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4010a0
cmp dword [esp + 0x1f8], 2
jle 0x401104
mov eax, dword [0x4377fc]
push eax
push 0x4211d0
push 0x433c20
call fcn.0041156a
add esp, 0xc
push 1
call fcn.00411477
cmp dword [esp + 0x1f8], 3
jne 0x4010bc
mov edx, dword [esp + 0x1fc]
mov dword [esp + 0x1f8], 2
mov esi, dword [edx + 8]
lea ecx, [esp + 4]
push ecx
call fcn.00402cc0
mov al, byte [0x4377cd]
test al, al
je 0x401125
push 0
push 1
lea edx, [esp + 0xc]
push edx
call fcn.00404ba0
mov eax, dword [0x4377d8]
mov ecx, dword [0x4377d4]
mov edx, dword [esp + 0x1fc]
push 0
push eax
mov eax, dword [edx]
mov edx, dword [0x4377c8]
push ecx
mov ecx, dword [0x4377c4]
push eax
mov eax, dword [0x4377c0]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00402dd0
test eax, eax
jne 0x40118a
lea edx, [esp + 4]
push edx
call fcn.00404d80
push eax
mov eax, dword [0x4377fc]
push eax
push 0x4211c8
push 0x433c20
call fcn.0041156a
add esp, 0x10
push 1
call fcn.00411477
mov eax, dword [esp + 0x1f8]
sub eax, 0
je 0x401209
dec eax
mov al, byte [0x4377ce]
je 0x4011e1
test al, al
je 0x4011c3
test esi, esi
jne 0x4011c3
mov eax, dword [esp + 0x1fc]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0xc]
push eax
call fcn.00401bb0
add esp, 0xc
jmp 0x401217
mov eax, dword [esp + 0x1fc]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push esi
push ecx
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00401cf0
add esp, 0x10
jmp 0x401217
mov ecx, dword [esp + 0x1fc]
mov edx, dword [ecx]
push esi
test al, al
push edx
lea eax, [esp + 0xc]
push eax
je 0x4011ff
call fcn.00401bb0
add esp, 0xc
jmp 0x401217
call fcn.00401880
add esp, 0xc
jmp 0x401217
lea ecx, [esp + 4]
push esi
push ecx
call fcn.00401560
add esp, 8
lea edx, [esp + 4]
push edx
mov esi, eax
call fcn.00403bd0
mov eax, dword [0x4377c4]
test eax, eax
je 0x401235
push eax
call fcn.00402710
add esp, 4
push 0
call fcn.004023e0
xor eax, eax
add esp, 4
test esi, esi
setne al
push eax
call fcn.00411477
nop
nop
nop
nop
Function at 0x4022d0
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
mov al, byte [0x4377e1]
test al, al
jne 0x40236d
mov byte [0x4377e1], 1
call fcn.004074f0
mov eax, dword [0x4377f8]
test eax, eax
jne 0x402368
call fcn.00402480
push 0x421bc4
call fcn.00411a4a
add esp, 4
test eax, eax
mov dword [0x4377f8], eax
je 0x402320
push eax
push 0x437a00
call fcn.00407480
add esp, 8
mov dword [0x4377f8], eax
push 0x421bbc
call fcn.00411a4a
add esp, 4
test eax, eax
je 0x402344
push eax
call fcn.00402370
add esp, 4
or eax, 0x180
mov dword [0x422190], eax
push 0x421bb0
call fcn.00411a4a
add esp, 4
test eax, eax
je 0x402368
push eax
call fcn.00402370
add esp, 4
or eax, 0x1c0
mov dword [0x422194], eax
jmp 0x402590
ret
sub esp, 0x190
call fcn.004025f0
test al, al
je 0x4025df
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4025bb
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x4025cd
cmp word [esp], 2
je 0x4025d8
call sub.WSOCK32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4025df
mov byte [0x4377e0], 1
xor al, al
add esp, 0x190
ret

Function at 0x402480
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x4377dc
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.00411b5d
add esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x421bd0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402581
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
mov esi, 1
call edi
cmp eax, 0x103
je 0x402574
nop
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.00402460
lea eax, [esp + 0x520]
push eax
call fcn.0041baeb
lea ecx, [esp + 0x524]
push ecx
call fcn.0041ca76
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x118]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
mov eax, esi
push ecx
push eax
push edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x402500
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret
Function at 0x402680
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x40268f
mov edi, 1
push edi
call fcn.0041225b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4026e3
push esi
call fcn.00412249
mov esi, eax
call fcn.00407650
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x4026c6
mov edx, dword [fcn.00407890]
mov dword [fcn.00407890], edx
test al, 0x18
je 0x4026d7
push edi
push 0x24
push 5
call fcn.00407910
add esp, 0xc
test esi, esi
pop esi
je 0x4026fe
push 1
call fcn.00411477
test byte [esp + 0x10], 0x20
je 0x4026fe
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret

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

Disassembly:
mov al, byte [0x4377e4]
test al, al
jne 0x402dc1
mov byte [0x4377e4], 1
call fcn.004022d0
call fcn.00407aa0
mov eax, dword [0x4377e8]
test eax, eax
jne 0x402d97
push 0x421e20
push 0x421e18
mov dword [0x4377e8], 0xcea
call sub.WSOCK32.dll_getservbyname
test eax, eax
je 0x402d78
movzx eax, word [eax + 8]
push eax
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov dword [0x4377e8], eax
push 0x421e08
call fcn.00411a4a
add esp, 4
test eax, eax
je 0x402d97
push eax
call fcn.00411791
add esp, 4
mov dword [0x4377e8], eax
mov eax, dword [0x4377ec]
test eax, eax
jne 0x402dc0
push 0x421df8
mov dword [0x4377ec], 0x421214
call fcn.00411a4a
add esp, 4
test eax, eax
je 0x402dc0
mov dword [0x4377ec], eax
ret
jmp fcn.00407590
Function at 0x403700
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call sub.WSOCK32.dll_connect
ret
Function at 0x4056d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
push edi
push esi
call fcn.00409660
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
setne cl
push 0x422148
mov edi, ecx
call fcn.004117dd
push esi
call fcn.00409300
add esp, 0xc
test eax, eax
je 0x40571a
push 0x433c00
push esi
call fcn.004118c3
add esp, 8
jmp 0x405806
push 0x200
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test edi, edi
mov eax, 0x4377dc
jne 0x405738
mov eax, 0x421ef0
push ebp
push eax
push esi
lea eax, [esp + 0x14]
push eax
push 0x42213c
call fcn.0041179c
mov eax, dword [0x421e78]
add esp, 0x10
test eax, eax
mov ebp, 0x421e78
je 0x4057f8
mov ecx, dword [0x4377f0]
mov eax, dword [ebp]
cmp byte [eax], 0
je 0x405775
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x40577f
test ecx, ecx
je 0x4057ea
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00406c50
lea eax, [esp + 0x14]
add esp, 8
push eax
call fcn.00409380
mov al, byte [esp + 0x10]
add esp, 4
cmp al, 0x7e
jne 0x4057b2
or ecx, 0xffffffff
lea edi, [esp + 0xc]
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x421de8]
mov word [edi - 1], cx
push 0
push 0x422138
push 0x421ef8
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00408b80
add esp, 4
push eax
call fcn.00406ef0
lea eax, [esp + 0x20]
push 0x433c00
push eax
call fcn.004118c3
mov ecx, dword [0x4377f0]
add esp, 0x1c
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x405765
push 0x4377dc
call fcn.004117dd
add esp, 4
pop ebp
push 0x433c00
push 0x422118
call fcn.004118c3
mov esi, dword [esp + 0x218]
mov eax, dword [esi]
add esp, 8
test eax, eax
je 0x40584b
push 0x433c00
push 0x20
call fcn.004125de
mov ecx, dword [esi]
push 0x433c00
push ecx
call fcn.004118c3
mov eax, dword [esi + 4]
add esi, 4
add esp, 0x10
test eax, eax
jne 0x405825
push 0x421fd8
call fcn.004117dd
add esp, 4
pop edi
pop esi
add esp, 0x200
ret

Function at 0x4074f0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4402c0], eax
jne 0x407521
call fcn.00412249
mov eax, dword [eax]
push eax
push 0x422394
push 0x433c20
call fcn.0041156a
add esp, 0xc
push 1
call fcn.00411477
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4403c0
call esi
push 0x440360
call esi
push 0x4403e0
call esi
push 0x440380
call esi
push 0x440320
call esi
push 0x440340
call esi
push 0x440300
call esi
push 0x4402e0
call esi
push 0x4403a0
call esi
call fcn.00409a10
pop esi
jmp fcn.00407590
Function at 0x407590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push 0x440380
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4402c0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x407601
push 0x3c
push 1
call fcn.004130e5
mov esi, eax
add esp, 8
test esi, esi
jne 0x4075cd
push 0x440380
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop esi
ret
mov ecx, dword [0x4402c0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x43fcdc]
inc eax
lea edx, [esi + 0xc]
mov dword [0x43fcdc], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
add esi, 4
push esi
call fcn.00409a20
add esp, 8
push 0x440380
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret

Function at 0x407610
Capabilities:
Set thread local storage value

Disassembly:
push esi
call fcn.00407650
mov esi, eax
test esi, esi
je 0x40763b
lea eax, [esi + 4]
push eax
call fcn.00409a50
add esp, 4
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.00412395
add esp, 4
mov edx, dword [0x4402c0]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret

Function at 0x4083f0
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x408422
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40841d
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
ret

Function at 0x408440
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x408472
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40846d
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
ret

Function at 0x4084b0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 0x30]
xor eax, eax
cmp edx, 3
mov dword [esp], eax
je 0x4084e7
cmp byte [esp + 0xc], al
je 0x4084d1
mov dword [esp], 1
mov ecx, dword [ecx]
push 4
lea eax, [esp + 4]
push eax
push 8
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
pop ecx
ret