joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c210
Capabilities:
Encode data using xor

Disassembly:
pop es
pop es
dec edx
inc esp
dec ecx
inc esp
push eax
cmp ecx, dword [eax + 0x54]
mov cl, bl
or ecx, dword [eax + 0x70afeed]
pop es
or al, 0x4a
dec esp
dec ebx
inc ecx
dec ecx
push ss
mov esi, 0x6062f8c
push es
mov edi, es
jl 0x45c225
push ss
mov esi, 0x6053394
push es
push ss
mov esi, 0x6062f9c
das
push es
push es
push es
xor dl, cl
nop
xchg esp, eax
jg 0x45c20c
push es
push es
push 0x16
mov esi, 0x605338c
push es
push ss
mov esi, 0x6062f94
push es
inc edx
enter 0xffffffffffff8b16, 0x10
push es
push es
push es
push ss
mov esi, 0x605339c
push es
mov bh, cl
daa
push ss
mov esi, 0x6062f8c
push es
inc edx
xlatb
push ss
mov esi, edi
add eax, 0xbe160606
xchg esp, eax
xor eax, dword [0xbe160606]
pushfd
das
push es
push es
push es
inc edx
rol dword [ebx + edx - 0xd7c7332], 1
push es
push es
push es
push es
push es
push es
adc esi, ecx
mov word [ebx + 0x80606f2], es
pop es
pop es
pop es
xchg edx, eax
mov word [ebx - 0x6ff9f90e], es
invalid

Function at 0x4619c0
Capabilities:
Encode data using xor

Disassembly:
push es
push es
push ss
mov esi, 0x605038c
push es
push es
push es
xor dl, bh
nop
pushfd
jae 0x4619b9
push es
push es
push 0x16
mov esi, 0x6040394
push es
push ss
mov esi, 0x605039c
push es
inc edx
rcl dword [esi]
mov edx, dword [eax]
push es
push es
push es
push ss
mov esi, 0x604038c
push es
mov dh, bh
daa
push ss
mov esi, 0x6050394
push es
inc edx
enter 0xffffffffffff8b16, 0xfffffffffffffff7
add eax, 0xbe160606
pushfd
add eax, dword [esi + eax]
push es
push ss
mov esi, 0x605038c
push es
inc edx
xlatb
test byte [ebx], dl
into
invalid
Function at 0x475690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov byte [ebp - 1], 1
push esi
mov ecx, dword [ebx + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x4756ec
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [ebx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
shr ecx, 2
test cl, 1
je 0x475723
push edi
mov edi, dword [ebx + 4]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [ebx + 4]
movzx esi, ax
call dword [sym.imp.USER32.dll_GetParent]
push edi
push esi
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
push dword [ebx + 0x28]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta cl
mov byte [ebp - 1], cl
jbe 0x47575e
or byte [ebx + 0x58], 2
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4768f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67dd60
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x78a6d4]
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 ebx, ecx
mov edi, dword [ebx + 4]
mov eax, dword [ebp + 8]
or edi, 0x2001f
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push ecx
push edi
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x21c]
test esi, esi
jne 0x476a72
test eax, eax
je 0x47698a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x224]
and edi, 0x300
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], edi
test esi, esi
jne 0x476a72
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0x100
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x476a2b
nop dword [eax + eax]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004768f0
mov esi, eax
test esi, esi
jne 0x476a6c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4769e0
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x476a46
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], 0
push dword [ebp - 0x228]
mov ecx, ebx
mov dword [ebp - 0x218], 0
call fcn.004767a0
mov ecx, dword [ebp - 0x21c]
mov esi, eax
test ecx, ecx
je 0x476a7d
push ecx
jmp 0x476a77
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x476a7d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0058a893
mov esp, ebp
pop ebp
ret 4
Function at 0x476f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67de1b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x78a6d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x476fa8
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], eax
test esi, esi
jne 0x476fa8
call fcn.00476530
mov edi, eax
jmp 0x4770c2
push dword [ebp - 0x41c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x476fc6
call fcn.00476530
jmp 0x4770b5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x476fe4
call fcn.00476530
jmp 0x4770b5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x477005
mov edi, 0x8007000e
jmp 0x4770b7
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4770fb
jb 0x477023
cmp eax, 0xffffffff
ja 0x4770fb
cmp eax, 0x400
jbe 0x477038
push eax
lea ecx, [ebp - 0x418]
call fcn.004793b0
jmp 0x47705e
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x47705e
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x477075
mov edi, 0x8007000e
jmp 0x4770b7
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x477095
call fcn.00476530
jmp 0x4770b5
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00477ce0
mov edi, eax
test esi, esi
je 0x4770c2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4770db
lea ecx, [ebp - 0x418]
call fcn.004793a0
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 - 0x14]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00453590
int3
Function at 0x47e2f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov edx, 0x811c9dc5
lea esi, [eax + eax]
test esi, esi
je 0x47e322
push edi
mov edi, dword [ebp + 8]
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x47e310
pop edi
mov eax, edx
pop esi
pop ebp
ret

Function at 0x47ed10
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67e4ad
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x78a6d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0047f050
mov esi, dword [ebp - 0x18]
cmp byte [esi + 0xd], 0
jne 0x47ed60
lea edx, [esi + 0x10]
mov ecx, ebx
call fcn.00447ab0
test al, al
je 0x47ee41
cmp dword [0x795ec0], 0x18f9c18
je 0x47ee58
mov ebx, dword [0x795ebc]
mov dword [ebp - 0x14], 0x795ebc
mov dword [ebp - 4], 0
push 0xa4
mov dword [ebp - 0x10], 0
call fcn.0058a8a1
add esp, 4
mov edi, eax
lea esi, [edi + 0x10]
mov dword [esi], 0
mov dword [esi + 0x10], 0
push 0x18
push dword [ebp + 8]
mov dword [esi + 0x14], 0
push esi
call fcn.0058c9c0
mov eax, dword [ebp + 8]
xor ecx, ecx
add esp, 0xc
mov word [eax], cx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov dword [esi + 0x18], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x78], ecx
mov dword [esi + 0x88], ecx
mov byte [esi + 0x90], cl
mov dword [esi + 0x2c], 7
mov dword [esi + 0x44], 7
mov dword [esi + 0x5c], 7
mov dword [esi + 0x74], 7
mov dword [esi + 0x8c], 7
push edi
push dword [ebp - 0x1c]
mov dword [edi], ebx
push dword [ebp - 0x20]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov word [edi + 0xc], cx
mov ecx, 0x795ebc
call fcn.00447680
mov esi, eax
lea eax, [esi + 0x28]
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
call fcn.00446fb0
int3
Function at 0x489890
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.0058b400
mov eax, dword [esp + 0x14]
push ebx
test byte [eax + 0x10], 4
mov ecx, dword [eax + 4]
lea ebx, [ecx - 1]
je 0x489937
mov ecx, dword [eax + 8]
xor edx, edx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x489921
mov ecx, dword [eax]
push esi
mov dword [esp + 0x14], ecx
push edi
push dword [ecx]
mov eax, ebp
xor eax, ebx
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
mov esi, edi
or esi, dword [esp + 0x18]
call fcn.00489960
mov ecx, dword [esp + 0x1c]
mov edx, esi
not edx
mov dword [esp + 0x18], esi
and edx, 0x20
and eax, edi
add edx, dword [esp + 0x14]
inc ebp
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
cmp ebp, dword [esp + 0x1c]
jl 0x4898d3
pop edi
pop esi
mov eax, ebx
shr ebx, 0x1f
not eax
dec eax
shr eax, 0x1f
and eax, ebx
dec eax
pop ebp
and eax, edx
pop ebx
add esp, 0x10
ret
test ecx, ecx
jne 0x489942
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [eax]
push dword [eax + ebx*4]
call fcn.00489960
add esp, 4
shl ebx, 5
add eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x4b1af0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.0058b400
push ebx
push esi
mov esi, dword [esp + 0x48]
mov ebx, 1
push edi
push dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov ecx, esi
push dword [esp + 0x40]
shl ebx, cl
call fcn.0048a030
add esp, 8
test eax, eax
jne 0x4b1b29
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
push ebp
cmp esi, 3
jg 0x4b1b92
xor ebp, ebp
cmp dword [esp + 0x44], ebp
jle 0x4b1ce8
nop dword [eax + eax]
xor esi, esi
xor eax, eax
test ebx, ebx
jle 0x4b1b74
nop dword [eax + eax]
mov ecx, eax
xor ecx, dword [esp + 0x4c]
lea edx, [ecx - 1]
not ecx
shr edx, 0x1f
shr ecx, 0x1f
and edx, ecx
neg edx
and edx, 1
neg edx
and edx, dword [edi + eax*4]
inc eax
or esi, edx
cmp eax, ebx
jl 0x4b1b50
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [eax + ebp*4], esi
lea eax, [ebx*4]
inc ebp
add edi, eax
cmp ebp, dword [esp + 0x44]
jl 0x4b1b40
jmp 0x4b1ce8
mov ebp, dword [esp + 0x4c]
lea ecx, [esi - 2]
mov esi, 1
mov edx, ebp
shl esi, cl
sar edx, cl
mov dword [esp + 0x34], esi
lea eax, [esi - 1]
and ebp, eax
lea ecx, [edx - 1]
shr ecx, 0x1f
mov eax, edx
not eax
mov dword [esp + 0x20], ebp
shr eax, 0x1f
and ecx, eax
mov eax, edx
neg ecx
xor eax, 1
and ecx, 1
neg ecx
mov dword [esp + 0x30], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
mov eax, edx
neg ecx
xor eax, 2
and ecx, 1
xor edx, 3
neg ecx
mov dword [esp + 0x2c], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx - 1]
shr eax, 0x1f
not edx
shr edx, 0x1f
neg ecx
and eax, edx
and ecx, 1
neg eax
neg ecx
and eax, 1
mov dword [esp + 0x28], ecx
neg eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x44], eax
jle 0x4b1ce8
shl ebx, 2
mov dword [esp + 0x38], ebx
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x10], edx
test esi, esi
jle 0x4b1ccc
lea eax, [esi + esi*2]
lea ecx, [edi + esi*8]
lea eax, [edi + eax*4]
mov dword [esp + 0x18], ecx
lea ebp, [edi + esi*4]
mov dword [esp + 0x14], eax
nop dword [eax + eax]
mov eax, dword [eax]
lea ebp, [ebp + 4]
mov ecx, dword [ecx]
mov esi, ebx
and ecx, dword [esp + 0x28]
and eax, dword [esp + 0x24]
xor esi, dword [esp + 0x20]
or ecx, eax
mov edx, dword [ebp - 4]
and edx, dword [esp + 0x2c]
mov eax, dword [edi + ebx*4]
or edx, ecx
and eax, dword [esp + 0x30]
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
or eax, edx
mov edx, dword [esp + 0x10]
and ecx, esi
mov esi, dword [esp + 0x34]
neg ecx
and ecx, 1
inc ebx
neg ecx
and ecx, eax
mov eax, dword [esp + 0x14]
or edx, ecx
add eax, 4
mov ecx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp ebx, esi
jl 0x4b1c60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add edi, dword [esp + 0x38]
mov ecx, dword [ecx]
mov dword [ecx + eax*4], edx
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x44]
jl 0x4b1c37
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
pop ebp
mov dword [eax + 4], edi
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x5677d0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x6e1], 0
je 0x567865
cmp dword [edi + 0x1b0], 0
je 0x56782c
push esi
push 1
push edi
call fcn.00557d40
mov esi, dword [edi + 0x1b0]
add esp, 8
mov ecx, esi
push dword [edi + 0x14c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
call dword [0x6926b4]
call esi
push 0
push edi
mov esi, eax
call fcn.00557d40
add esp, 0x1c
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x567865
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x6ee010
push 2
push eax
call fcn.005a0d10
push dword [edi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.005a0d10
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x567c70
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x78a6d4]
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 ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
lea edi, [edx + 0x17]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
shl edi, 4
add edi, ecx
mov eax, dword [ecx + edx*4 + 0x148]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x288]
mov esi, dword [edi + 4]
sub esi, dword [edi + 8]
test byte [eax + 0x40], 3
je 0x567d7f
cmp dword [ecx + edx*4 + 0x160], 0x567b10
jne 0x567d7f
cmp dword [edi], 0
je 0x567cf2
test esi, esi
je 0x567d7f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00577bb0
add esp, 0x14
cmp eax, 0xffffffff
je 0x567d7f
test al, 1
je 0x567d7f
mov ecx, dword [edi]
test ecx, ecx
jne 0x567d51
mov eax, dword [ebp + 0x4c8]
add eax, eax
mov dword [edi + 4], eax
mov esi, dword [fcn.005a79f0]
mov ecx, esi
push eax
call dword [0x6926b4]
call esi
mov ecx, eax
add esp, 4
mov dword [edi], ecx
test ecx, ecx
je 0x567d6d
mov esi, dword [edi + 4]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
test ecx, ecx
je 0x567d78
mov eax, dword [edi + 8]
push 0
push esi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x567d7f
add dword [edi + 8], eax
jmp 0x567d7f
mov dword [ebx], 0x1b
or eax, 0xffffffff
jmp 0x567dea
mov dword [edi + 4], 0
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x567de8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x567dbd
xor esi, esi
mov dword [ebx], 0x51
jmp 0x567de8
push 0x100
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00553d20
push eax
push str.Send_failure:__s
push ebp
call fcn.00567870
mov dword [ebp + 0x92c], edi
add esp, 0x18
mov dword [ebx], 0x37
mov eax, esi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058a893
add esp, 0x10c
ret
Function at 0x569f40
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push 0x6ee464
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x569f5a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push 0x6ee470
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esp + 0x18]
mov ebx, eax
push 0x6ee480
push edi
call fcn.005aa470
add esp, 8
test eax, eax
je 0x569faa
test ebx, ebx
je 0x569f9b
push 8
push 0
push edi
mov ecx, ebx
call dword [0x6926b4]
call ebx
pop edi
pop ebx
mov ebp, eax
pop esi
pop ebp
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
mov ebp, eax
pop esi
pop ebp
pop ecx
ret
test ebx, ebx
je 0x569fd8
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x569fd8
push 0x800
push 0
push edi
mov ecx, ebx
call dword [0x6926b4]
call ebx
pop edi
pop ebx
mov ebp, eax
pop esi
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x56a094
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x569ff5
sub ecx, esi
lea eax, [edx + 1]
mov esi, dword [fcn.005a79f0]
add eax, ecx
push eax
mov ecx, esi
call dword [0x6926b4]
call esi
mov esi, eax
add esp, 4
test esi, esi
je 0x56a080
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x56a080
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x56a031
sub ecx, edx
mov eax, 0x5c
mov word [ecx + esi], ax
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x56a048
sub ecx, edx
sub ecx, edi
add ecx, esi
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx + edi - 1], al
test al, al
jne 0x56a055
test ebx, ebx
je 0x56a077
push 8
push 0
push esi
mov ecx, ebx
call dword [0x6926b4]
call ebx
jmp 0x56a07e
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
mov esi, dword [fcn.0059a280]
mov ecx, esi
call dword [0x6926b4]
call esi
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x570380
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x570392
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe7]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x5703a6
xor al, al
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
ret

Function at 0x5703b0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 8]
cmp byte [eax + 0x100], 2
jne 0x5703fd
mov eax, dword [esp + 4]
test eax, eax
je 0x5703cf
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe7]
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x5703ea
xor esi, esi
test esi, esi
pop esi
setne al
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
pop esi
setne al
ret
mov al, 1
ret
Function at 0x5762c0
Capabilities:
Set socket configuration

Disassembly:
push ecx
xor eax, eax
cmp dword [esp + 0xc], eax
setne al
mov dword [esp], eax
lea eax, [esp]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ecx
ret

Function at 0x5b4b12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b4988

Function at 0x5b8aff
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b8652
Function at 0x5c0530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.0058b400
mov eax, dword [0x78a6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
mov edi, str.RANDFILE
mov dword [ebp - 8], 1
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x5c05aa
push eax
push eax
mov edi, str.HOME
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x5c05aa
push eax
push eax
mov edi, str.USERPROFILE
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x5c05aa
push eax
push eax
mov edi, str.SYSTEMROOT
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x5c06d1
lea eax, [esi + esi]
call fcn.0058b710
mov ebx, esp
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jae 0x5c06d1
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x5c06d1
call fcn.0058b710
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x5c06d1
test esi, esi
je 0x5c06d1
cmp byte [esi], 0
je 0x5c06d1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5c0622
sub ecx, edx
cmp dword [ebp - 8], 0
je 0x5c0667
lea eax, [ecx + 1]
cmp eax, dword [ebp + 0xc]
jae 0x5c06d1
mov ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5c0644
mov eax, ebx
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, dword [ebp + 0xc]
jae 0x5c06d1
mov ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5c0676
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x5c0686
mov ax, word [0x7528c4]
lea edx, [ebx - 1]
mov word [edi], ax
nop dword [eax]
mov al, byte [edx + 1]
lea edx, [edx + 1]
test al, al
jne 0x5c06a0
mov ecx, dword [str..rnd]
mov eax, ebx
mov dword [edx], ecx
mov cl, byte [0x701960]
mov byte [edx + 4], cl
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret