joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x5181a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x5181a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x518dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00518f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00518f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00518eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00518f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00518ecb
push ecx
push dword [ebp + 8]
call fcn.00518f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00518f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00518ecb
push ecx
push dword [ebp + 8]
call fcn.00518f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00518f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00518ecb
push ecx
push dword [ebp + 8]
call fcn.00518f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00518f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00518ecb
cmp ecx, 0x2b
jne 0x518e0f
leave
ret 0xc

Function at 0x51a4b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x51a544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x8520
push 0
call dword [eax + 0x20]
test eax, eax
je 0x51a5d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x8520
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x8520
call fcn.0051a3fa
push 0x8520
push dword [ebp + 0xc]
call fcn.005181a8
test eax, eax
jne 0x51a5b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x8520
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.0051a5dd
test eax, eax
je 0x51a5d6
jmp 0x51a574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x51a5d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x51a60b
Capabilities:
Terminate process

Disassembly:
call fcn.0051a618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x1018c9e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x203]
push ebx
push eax
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov byte [ebp - 0x204], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x20019
push ebx
push 0x100ba70
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1018d98
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x100ba30
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x200
call esi
cmp eax, 2
je 0x1018d4d
push 0x100b980
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x100b944
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x200
call esi
cmp eax, 2
pop esi
je 0x1018d8c
push 0x100b880
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0101cfa4
leave
ret

Function at 0x101a27c
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 0x1fe
lea eax, [ebp - 0x202]
push edi
push eax
mov word [ebp - 0x204], di
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push ebx
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x210], 0xff
call fcn.010013e8
test eax, eax
je 0x101a2da
xor eax, eax
jmp 0x101a36b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov dword [ebp - 0x208], eax
jne 0x101a365
push dword [ebp - 0x20c]
and dword [ebp - 0x208], 0
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
push ebx
push 0
mov dword [esi], eax
mov dword [ebp - 0x210], 0xff
call edi
test eax, eax
jne 0x101a365
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101cfa4
leave
ret 8
Function at 0x101a427
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x11c]
push esi
push eax
mov dword [ebp - 0x120], 0x11c
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101a4a4
cmp dword [ebp - 0x11c], 5
jne 0x101a49f
xor eax, eax
inc eax
cmp dword [ebp - 0x118], eax
jb 0x101a49b
jne 0x101a48c
cmp word [ebp - 0xc], 2
jmp 0x101a499
cmp dword [ebp - 0x118], 2
jne 0x101a4a4
cmp word [ebp - 0xc], ax
jae 0x101a4a4
mov esi, eax
jmp 0x101a4a4
jae 0x101a4a4
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101cfa4
leave
ret

Function at 0x101a9d7
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x114
xor edi, edi
lea eax, [ebp - 0x118]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jne 0x101aa2d
cmp dword [ebp - 0x110], edi
jne 0x101aa2d
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0101cfa4
leave
ret

Function at 0x101bdd9
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0101bc3b
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x101be4c
cmp dword [ebp - 0x94], 5
jb 0x101be6d
jmp 0x101be69
cmp dword [ebp - 0x88], 1
jne 0x101be6d
cmp dword [ebp - 0x94], 4
ja 0x101be69
jne 0x101be6d
cmp dword [ebp - 0x90], 0
jbe 0x101be6d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100c39c
call fcn.01001505
test eax, eax
jge 0x101be8e
mov byte [0x10261c4], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101cfa4
leave
ret
Function at 0x101cece
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1021758
call fcn.0101cf1c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1026980
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101cc1f
cmp eax, esi
jne 0x101cc12
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x101cc22
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101cbf9
xor esi, esi
inc esi
mov eax, dword [0x1026970]
cmp eax, esi
jne 0x101cc35
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101cc64
mov eax, dword [0x1026970]
test eax, eax
jne 0x101cc5e
mov dword [0x1026970], esi
push 0x1009b44
push 0x1006b2c
call fcn.0101cb5b
pop ecx
pop ecx
test eax, eax
je 0x101cc64
jmp 0x101cd88
mov dword [0x1026630], esi
mov eax, dword [0x1026970]
cmp eax, esi
jne 0x101cc88
push 0x1005b24
push 0x1002190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1026970], 2
cmp dword [ebp - 0x20], ebx
jne 0x101cc95
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1026998], ebx
je 0x101ccb6
push 0x1026998
call fcn.0101d3cb
pop ecx
test eax, eax
je 0x101ccb6
push ebx
push 2
push ebx
call dword [0x1026998]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x101cd88
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x101cd20
cmp cx, bx
je 0x101ccdb
cmp dword [ebp - 0x1c], ebx
jne 0x101cd20
movzx ecx, word [eax]
cmp cx, bx
je 0x101ccf0
cmp cx, 0x20
ja 0x101ccf0
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x101ccdb
test byte [ebp - 0x40], 1
je 0x101ccfc
movzx ecx, word [ebp - 0x3c]
jmp 0x101ccff
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01001852
mov dword [0x102662c], eax
cmp dword [0x1026620], ebx
jne 0x101cd65
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x101cd31
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x101ccc5
cmp dword [0x1026630], ebx
jne 0x101cd73
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x102662c]
jmp 0x101cd94
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0101cf61
ret
call fcn.0101d54d
jmp 0x101cbbc

Function at 0x101d340
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x101d353
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101d34f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x101d380
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x101d3bf
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x101d3b5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x101d3c1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x101d3a5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403222
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push 1
lea eax, [ebp - 0x190]
pop ebx
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
movsx eax, word [ebp + 0xc]
dec eax
dec eax
jne 0x40324c
push 2
pop ebx
movsx eax, bx
push 6
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esi], eax
pop esi
setne cl
mov eax, ecx
pop ebx
leave
ret 0xc

Function at 0x40326c
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call fcn.0040330f
mov eax, dword [ebp + 0xc]
push pe_nt_image_headers32
mov byte [ebp - 0xc], al
mov al, byte [ebp + 0xe]
mov byte [ebp - 0xa], al
mov al, byte [ebp + 0xf]
mov byte [ebp - 0xb], ah
mov byte [ebp - 9], al
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
pop esi
je 0x4032c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
jmp 0x4032cb
push 1
pop eax
leave
ret 8

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

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

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

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x40330f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 1
xor esi, esi
pop ebx
mov dword [ebp - 8], ecx
push edi
mov dword [ebp - 4], esi
call fcn.00407840
test eax, eax
pop ecx
jle 0x40335c
mov al, byte [esi + edi]
cmp al, 0x2e
jne 0x40333c
inc dword [ebp - 4]
jmp 0x403346
cmp al, 0x30
jl 0x403344
cmp al, 0x39
jle 0x403346
xor ebx, ebx
push edi
inc esi
call fcn.00407840
cmp esi, eax
pop ecx
jl 0x403330
test ebx, ebx
je 0x40336e
cmp dword [ebp - 4], 3
je 0x403360
xor eax, eax
jmp 0x40339a
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push edi
call fcn.004033a1
jmp 0x403397
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
je 0x403397
xor eax, eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov cl, byte [ecx + eax]
mov byte [eax + edx], cl
inc eax
cmp eax, 4
jl 0x403383
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404691
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4046b5
xor eax, eax
jmp 0x40470c
lea eax, [ebp - 0x10c]
push 0x104
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4046fe
cmp dword [ebp + 0x10], eax
je 0x4046f7
and dword [ebp - 8], eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp + pe_nt_image_headers32]
add esp, 0x14
cmp dword [ebp - 8], 0
jne 0x4046fa
inc esi
jmp 0x4046b5
mov esi, eax
jmp 0x404701
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40470f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0xc]
mov esi, 0x400
xor ebx, ebx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40473f
xor eax, eax
jmp 0x4047b2
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 8], esi
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4047a4
cmp dword [ebp - 0x14], 1
jne 0x40479d
cmp dword [ebp + 0x10], eax
je 0x40479d
and dword [ebp - 0xc], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp + pe_nt_image_headers32]
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x4047a0
inc ebx
jmp 0x40473f
mov esi, eax
jmp 0x4047a7
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4047e2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004076f0
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop esi
and eax, dword [ebp - 0x10]
leave
ret
Function at 0x406dfd
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x2384
call fcn.00407f60
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x4935e4
push 0x20
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x20
push esi
mov dword [esp + 0x18], eax
call edi
cmp dword [esp + 0x10], ebx
je 0x406ea0
push 0x227a
lea eax, [esp + 0x11c]
push 0x40f0c0
push eax
call fcn.00407c00
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.00405705
push 0x15000
push esi
call fcn.00404fc5
push ebx
call fcn.004047b6
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x15200
push edx
push esi
call fcn.0040406e
add esp, 0x28
push esi
call fcn.00405522
pop ecx
push 0x27
push esi
call edi
cmp dword [0x4938f0], ebx
mov edi, 0x4933dc
je 0x406efe
push esi
push edi
push 0x4934e0
push closesocket
call fcn.0040464b
push 1
push 0x410b93
call fcn.0040347e
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push 0x410c93
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406ef7
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x406f08
xor eax, eax
jmp 0x406f7d
cmp dword [0x4938f0], ebx
je 0x406f1b
push ebx
push esi
call fcn.004047e2
pop ecx
pop ecx
jmp 0x406f7a
cmp dword [0x4938f8], ebx
jne 0x406f7a
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 2
push ebx
push ebx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 2
push 0x110
push ebx
push edi
push edi
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push 1
push ebx
push ebx
call ebp
mov ebp, eax
push pe_nt_image_headers32
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push ebp
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2384
ret
Function at 0x12bea92
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x3c]
add eax, edx
add eax, 4
add eax, 0x14
lea eax, [eax + 0x60]
add eax, 8
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x118], 0x49
mov byte [ebp - 0x117], 0x6d
mov byte [ebp - 0x116], 0x70
mov byte [ebp - 0x115], 0x6f
mov byte [ebp - 0x114], 0x72
mov byte [ebp - 0x113], 0x74
mov byte [ebp - 0x112], 0x20
mov byte [ebp - 0x111], 0x54
mov byte [ebp - 0x110], 0x61
mov byte [ebp - 0x10f], 0x62
mov byte [ebp - 0x10e], 0x6c
mov byte [ebp - 0x10d], 0x65
mov byte [ebp - 0x10c], 0x3a
mov byte [ebp - 0x10b], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x12beb67
lea esi, [ebp - 0x14]
mov ecx, 0x14
mov al, 0
mov byte [esi], al
inc esi
dec ecx
jne 0x12beb31
mov ebx, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
mov edi, ebx
mov ecx, 0x14
repe cmpsb byte [esi], byte es:[edi]
je 0x12beb5d
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.012beb71
test eax, eax
je 0x12beb67
add ebx, 0x14
jmp 0x12beb3a
popal
mov eax, 1
leave
ret 8
popal
mov eax, 0
leave
ret 8