joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5137e0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bea86
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x7adbc4]
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 dword [ebp - 0x420], ecx
mov ebx, dword [ebp + 8]
mov ecx, 4
mov dword [ebp - 0x41c], ebx
mov ebx, 0x100
mov eax, ebx
mov dword [ebp - 0x414], 0
mul ecx
test edx, edx
ja 0x513a7b
jb 0x513848
cmp eax, 0xffffffff
ja 0x513a7b
cmp eax, 0x400
jbe 0x513863
push eax
lea ecx, [ebp - 0x414]
call fcn.00499ab0
mov eax, dword [ebp - 0x414]
jmp 0x51386f
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
lea ecx, [ebp - 0x418]
mov dword [ebp - 4], 0
push ecx
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x513a40
mov edi, dword [ebp - 0x418]
cmp edi, 0x400
jne 0x513989
mov eax, ebx
shr eax, 1
add ebx, eax
cmp ebx, 0x3fffffff
jae 0x513a85
mov eax, dword [ebp - 0x414]
lea esi, [ebx*4]
test eax, eax
jne 0x5138e0
cmp esi, 0x400
jbe 0x513953
push esi
lea ecx, [ebp - 0x414]
call fcn.00499ab0
jmp 0x51395f
lea ecx, [ebp - 0x410]
cmp esi, 0x400
jbe 0x513929
cmp eax, ecx
lea ecx, [ebp - 0x414]
push esi
jne 0x513922
call fcn.00499ab0
mov ecx, dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push 0x400
push eax
mov edx, esi
call fcn.004907c0
push eax
call fcn.004909a0
add esp, 0xc
jmp 0x51395f
call fcn.00513aa0
jmp 0x51395f
cmp eax, ecx
je 0x513953
push esi
push eax
mov edx, 0x400
lea ecx, [ebp - 0x410]
call fcn.004907c0
push eax
call fcn.004909a0
add esp, 0xc
lea ecx, [ebp - 0x414]
call fcn.00499860
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x418]
push eax
push esi
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x513a40
mov edi, dword [ebp - 0x418]
cmp edi, esi
je 0x5138a3
shr edi, 2
xor esi, esi
test edi, edi
je 0x513a39
nop word [eax + eax]
mov eax, dword [ebp - 0x414]
cmp dword [eax + esi*4], 0
je 0x513a30
lea ecx, [ebp - 0x458]
call fcn.00513280
push ecx
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x414]
push dword [eax + esi*4]
call fcn.00513530
test eax, eax
je 0x513a21
mov ecx, dword [ebp - 0x41c]
mov ebx, dword [ecx + 4]
cmp ebx, dword [ecx + 8]
jb 0x5139fe
lea eax, [ebx + 1]
push eax
call fcn.00513c00
test al, al
je 0x513a8f
lea ecx, [ebx*8]
sub ecx, ebx
mov ebx, dword [ebp - 0x41c]
mov eax, dword [ebx]
lea ecx, [eax + ecx*8]
lea eax, [ebp - 0x458]
push eax
call fcn.00513ad0
inc dword [ebx + 4]
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 0
call fcn.00512d20
inc esi
cmp esi, edi
jb 0x5139a0
mov esi, 1
jmp 0x513a42
xor esi, esi
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x513a5b
lea ecx, [ebp - 0x414]
call fcn.00499860
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.00669a8a
mov esp, ebp
pop ebp
ret 8
push 0x80070216
call fcn.00490960
push 0x80004005
call fcn.00490960
push 0x8007000e
call fcn.00490960
int3
Function at 0x513ad0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bebb3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov al, byte [esi + 0xc]
mov byte [edi + 0xc], al
mov ecx, dword [esi + 0x10]
sub ecx, 0x10
call fcn.004998f0
add eax, 0x10
mov dword [edi + 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.004998f0
add eax, 0x10
mov dword [edi + 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x18]
sub ecx, 0x10
call fcn.004998f0
add eax, 0x10
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x1c]
sub ecx, 0x10
call fcn.004998f0
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x20]
sub ecx, 0x10
call fcn.004998f0
add eax, 0x10
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x24]
sub ecx, 0x10
call fcn.004998f0
add eax, 0x10
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x28]
sub ecx, 0x10
call fcn.004998f0
add eax, 0x10
mov dword [edi + 0x28], eax
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x2c]
sub ecx, 0x10
call fcn.004998f0
add eax, 0x10
mov dword [edi + 0x2c], eax
mov byte [ebp - 4], 7
mov ecx, dword [esi + 0x30]
sub ecx, 0x10
call fcn.004998f0
add eax, 0x10
mov dword [edi + 0x30], eax
mov byte [ebp - 4], 8
mov ecx, dword [esi + 0x34]
sub ecx, 0x10
call fcn.004998f0
add eax, 0x10
mov dword [edi + 0x34], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5145e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6becce
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call fcn.00516e90
mov dword [ebp - 4], 0
lea edi, [ebx + 0xc]
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x1c]
mov dword [ebx], vtable.logog::Node.0
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005156f0
mov ecx, edi
mov dword [esi], eax
call fcn.00516590
mov dword [edi], vtable.logog::LockableNodesType.0
mov byte [ebp - 4], 1
lea edi, [ebx + 0x30]
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x1c]
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005156f0
mov ecx, edi
mov dword [esi], eax
call fcn.00516590
mov dword [edi], vtable.logog::LockableNodesType.0
mov byte [ebp - 4], 2
call fcn.005145a0
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ecx, [eax + 0x1c]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.005157f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x514d60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bed50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x30]
push eax
lea ecx, [ebp - 0x14]
call fcn.00516650
mov dword [ebp - 4], 0
lea ecx, [edi + 0x4c]
mov esi, dword [edi + 0x4c]
push dword [esi + 4]
call fcn.005154b0
mov eax, dword [edi + 0x4c]
lea ecx, [ebp - 0x14]
mov dword [eax + 4], esi
mov eax, dword [edi + 0x4c]
mov dword [eax], esi
mov eax, dword [edi + 0x4c]
mov dword [eax + 8], esi
mov dword [edi + 0x50], 0
call fcn.005166c0
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00516650
mov dword [ebp - 4], 1
lea ecx, [edi + 0x4c]
mov esi, dword [edi + 0x4c]
push dword [esi + 4]
call fcn.005154b0
mov eax, dword [edi + 0x4c]
lea ecx, [ebp - 0x14]
mov dword [eax + 4], esi
mov eax, dword [edi + 0x4c]
mov dword [eax], esi
mov eax, dword [edi + 0x4c]
mov dword [eax + 8], esi
mov dword [edi + 0x50], 0
call fcn.005166c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51c090
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x51c11c
push esi
call fcn.0052abf0
add esp, 4
test al, al
jne 0x51c11c
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x51c0b3
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00532200
add esp, 0xc
test eax, eax
je 0x51c0e7
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00532200
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x51c0e9
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x51c115
mov al, byte [esi]
push eax
call fcn.00530e60
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x51c0f7
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x520cc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push ebx
push esi
mov esi, 0x178
mov byte [esp + 0xb], 1
mov eax, dword [ecx]
mov ebx, 0x1b8
mov edx, dword [ecx + 8]
cmp eax, 0x6f6410
mov dword [esp + 0xc], edx
cmovne ebx, esi
mov esi, 0x3e4
add ebx, dword [ecx + 0xc]
cmp eax, 0x6f6410
mov eax, dword [esp + 0x24]
mov ecx, 0x44c
mov dword [esp + 0x14], ebx
cmovne ecx, esi
mov ebx, dword [esp + 0x20]
mov dword [eax], 0
add ecx, ebx
je 0x520e5d
cmp byte [ecx + 0x3c], 0
je 0x520e5d
cmp dword [ebx + 0x8f0], 0
je 0x520e5d
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x520d41
test byte [eax + 4], 0x10
je 0x520d41
add eax, 0x74
jmp 0x520d47
lea eax, [ebx + 0x8f4]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x4b4], edi
jbe 0x520e26
xor ebp, ebp
nop dword [eax]
mov esi, dword [ebx + 0x8f0]
add esi, ebp
cmp dword [esi + 0xc], 0
je 0x520e16
push dword [esi]
push dword [edx + 8]
call fcn.00530fa0
add esp, 8
test eax, eax
je 0x520e12
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 4]
cmp byte [ecx + 0x201], 0
jne 0x520da0
test eax, eax
je 0x520db4
jmp 0x520e12
test eax, eax
je 0x520e12
push eax
push dword [ecx + 0x6c]
call fcn.00530fa0
add esp, 8
test eax, eax
je 0x520e12
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
cmp byte [ecx + 0x202], 0
jne 0x520dce
cmp eax, 0xffffffff
je 0x520ddb
jmp 0x520e12
cmp eax, 0xffffffff
je 0x520e12
cmp dword [ecx + 0x4a8], eax
jne 0x520e12
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
cmp eax, dword [esi + 0x18]
jne 0x520e16
mov eax, dword [ecx + 0x238]
push dword [esi + 8]
push dword [eax]
call fcn.00530fa0
add esp, 8
test eax, eax
je 0x520e12
lea eax, [esi + 0x20]
push eax
push dword [esp + 0x20]
call fcn.005208f0
add esp, 8
test al, al
jne 0x520e32
mov edx, dword [esp + 0x14]
inc edi
add ebp, 0x60
cmp edi, dword [ebx + 0x4b4]
jb 0x520d60
mov al, byte [esp + 0x13]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x520e53
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret
Function at 0x522330
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6e7], 0
je 0x5223bc
cmp dword [esi + 0x1a8], 0
je 0x522383
push esi
call fcn.005191d0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.00519310
push dword [esi + 0x14c]
mov eax, dword [esi + 0x1a8]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.00519310
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x5223bc
push dword [esi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x6f66d0
push 2
push eax
call fcn.006843e1
push dword [esi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.006843e1
add esp, 0x20
pop esi
ret

Function at 0x522590
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x7adbc4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x120]
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0xc]
cmp esi, dword [edx + 0x128]
je 0x5225f7
cmp esi, dword [edx + 0x12c]
je 0x5225f7
pop esi
pop ebp
mov eax, 0x2b
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00669a8a
add esp, 0x10c
ret
xor eax, eax
cmp esi, dword [edx + 0x12c]
push edi
sete al
mov esi, 0x158
mov edi, 0x168
cmove esi, edi
add esi, edx
lea eax, [eax*4 + 0x128]
mov eax, dword [eax + edx]
mov edx, dword [esp + 0x12c]
cmp dword [esi], 0
mov dword [esp + 0x14], eax
je 0x522699
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jbe 0x52265c
sub eax, ecx
cmp edx, eax
cmovb eax, edx
mov edi, eax
mov eax, dword [esi]
push edi
add eax, ecx
push eax
push dword [esp + 0x18]
call fcn.0066c9a0
mov eax, dword [esi + 8]
add esp, 0xc
add dword [esi + 0xc], edi
mov ecx, dword [esi + 0xc]
jmp 0x52265e
xor edi, edi
cmp ecx, eax
jne 0x522688
push dword [esi]
call dword [0x7aa004]
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test edi, edi
jle 0x522692
xor eax, eax
mov dword [ebx], edi
jmp 0x5226ff
mov edx, dword [esp + 0x12c]
push 0
push edx
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x5226f2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x5226c8
lea eax, [edi + 0x52]
jmp 0x5226f2
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.005316f0
push eax
push str.Recv_failure:__s
push ebp
call fcn.005223c0
add esp, 0x18
mov dword [ebp + 0x938], esi
mov eax, 0x38
mov dword [ebx], edi
cmp edi, 0xffffffff
jne 0x5226ff
mov dword [ebx], 0
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00669a8a
add esp, 0x10c
ret
Function at 0x522aa0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x7adbc4]
xor eax, esp
mov dword [esp + 0x108], eax
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x118]
mov dword [esp + 0xc], eax
mov ecx, dword [edi + 0xc]
cmp edx, dword [ecx + 0x128]
je 0x522b05
cmp edx, dword [ecx + 0x12c]
je 0x522b05
pop edi
mov eax, 0x2b
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00669a8a
add esp, 0x10c
ret
xor eax, eax
cmp edx, dword [ecx + 0x12c]
push ebp
sete al
push esi
mov esi, 0x158
lea eax, [eax*4 + 0x128]
mov eax, dword [eax + ecx]
mov dword [esp + 0x10], eax
mov eax, 0x168
cmove esi, eax
mov eax, dword [ecx + 0x238]
add esi, ecx
mov ebp, dword [esi + 4]
sub ebp, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x522be6
xor eax, eax
cmp edx, dword [ecx + 0x12c]
sete al
lea eax, [eax*4 + 0x140]
cmp dword [eax + ecx], 0x52f3e0
jne 0x522be6
cmp dword [esi], 0
je 0x522b6d
test ebp, ebp
je 0x522be6
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00530b70
add esp, 0x14
cmp eax, 0xffffffff
je 0x522be6
test al, 1
je 0x522be6
mov eax, dword [esi]
test eax, eax
jne 0x522bcc
mov eax, dword [edi + 0x4c0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x522bc0
mov ebp, dword [esi + 4]
xor ecx, ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
jmp 0x522bcf
mov eax, 0x1b
xor ecx, ecx
jmp 0x522c4d
mov ecx, dword [esi + 8]
push 0
push ebp
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x522be6
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_send]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x522c4b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x522c1d
mov eax, 0x51
xor ecx, ecx
jmp 0x522c4d
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.005316f0
push eax
push str.Send_failure:__s
push edi
call fcn.005223c0
add esp, 0x18
mov dword [edi + 0x938], esi
mov eax, 0x37
xor ecx, ecx
jmp 0x522c4d
xor eax, eax
pop esi
pop ebp
mov dword [ebx], ecx
mov ecx, dword [esp + 0x110]
pop edi
pop ebx
xor ecx, esp
call fcn.00669a8a
add esp, 0x10c
ret
Function at 0x52ad30
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x52ad6e
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 0
jne 0x52ad62
push 0
call fcn.0052ad30
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xe8], cl
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 2
pop esi
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
jne 0x52ad83
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x5328d0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0052a1e0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.0068a060
push dword [esp + 0x40]
mov edi, eax
call fcn.0068a060
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x532965
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0052a1e0
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0052a290
add esp, 0x20
test edx, edx
ja 0x532989
jb 0x532957
cmp eax, 0x3e8
ja 0x532989
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x532920
test edi, edi
je 0x532972
push edi
call fcn.0067bcf9
add esp, 4
test esi, esi
je 0x53297f
push esi
call fcn.0067bcf9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x532996
push edi
call fcn.0067bcf9
add esp, 4
test esi, esi
je 0x5329a3
push esi
call fcn.0067bcf9
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x532af0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x7adbc4]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 1
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x532ce2
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x24], xmm0
mov word [esp + 0x1c], ax
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x532cd0
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
je 0x532cd0
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
je 0x532cd0
cmp dword [esp + 8], 0x10
jl 0x532cd0
push 1
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
je 0x532cd0
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x532cd0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
je 0x532cd0
push 1
push esi
call fcn.0054fe70
add esp, 8
test eax, eax
js 0x532cd0
push 0
push 0x2710
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.005307a0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WSOCK32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x532cd0
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
je 0x532cd0
cmp dword [esp + 8], 0x10
jl 0x532cd0
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_getpeername]
cmp eax, 0xffffffff
je 0x532cd0
cmp dword [esp + 8], 0x10
jl 0x532cd0
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x532cd0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x532cd0
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x532cd0
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00669a8a
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WSOCK32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00669a8a
add esp, 0x34
ret
Function at 0x5331e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x53328b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.00521110
add esp, 0xc
cmp eax, 4
jne 0x533246
cmp byte [0x7b47b4], 0
jne 0x533252
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x53328d
mov eax, dword [esp + 0x1c]
jmp 0x53326f
imul eax, dword [0x7b47b0], 0x41c64e6d
add eax, 0x3039
mov dword [0x7b47b0], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x533283
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x533273
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x533200
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x5332a0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x7adbc4]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, edx
push ebx
and eax, 0xfffffffe
lea ebx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x9c]
cmp eax, 0x100
jae 0x533409
test dl, 1
je 0x533409
push esi
dec edx
mov esi, ebx
push edi
mov edi, edx
mov dword [esp + 0xa8], edx
shr edi, 1
mov ecx, 0x2b
je 0x5333b3
nop word [eax + eax]
push 4
lea eax, [esp + 0x14]
mov ebx, 4
push eax
push dword [esp + 0x1c]
cmp edi, ebx
cmovb ebx, edi
call fcn.00521110
add esp, 0xc
cmp eax, 4
jne 0x533359
cmp byte [0x7b47b4], 0
jne 0x533369
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x5333f0
mov eax, dword [esp + 0x10]
jmp 0x533386
imul eax, dword [0x7b47b0], 0x41c64e6d
add eax, 0x3039
mov dword [0x7b47b0], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x5333a0
nop word [eax + eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x533390
mov dword [esp + 0x10], eax
test edi, edi
jne 0x533310
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x18]
mov eax, ecx
test eax, eax
jne 0x5333f0
test edx, edx
je 0x5333ea
nop dword [eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x6f9bb8]
mov byte [ebp], al
movzx eax, byte [ecx + 0x6f9bb8]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x5333c0
mov byte [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00669a8a
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov eax, 0x2b
pop ebp
pop ebx
xor ecx, esp
call fcn.00669a8a
add esp, 0x8c
ret