joyce8/EMBER2024-capa huggingface dataset:
Function at 0x539030
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a70
mov eax, dword [ebp - 8]
call fcn.00406a70
xor eax, eax
push ebp
push 0x539161
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x53912a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404814
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov eax, dword [0x54d040]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00413b08
mov eax, dword [ebp - 0x4c]
call fcn.00406b14
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
call fcn.00406b14
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00413acc
mov eax, dword [ebp - 0x50]
call fcn.00406b14
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x53911d
mov eax, dword [0x54d040]
mov eax, dword [eax]
call fcn.004beb18
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0xc], 0x103
jne 0x53911d
mov eax, dword [0x54d040]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
je 0x5390eb
mov ebx, dword [ebp - 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x539139
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539168
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00406a80
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406a80
ret

Function at 0x539174
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a70
mov eax, dword [ebp - 8]
call fcn.00406a70
xor eax, eax
push ebp
push 0x539200
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5391db
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
mov eax, dword [ebp - 8]
call fcn.00406b14
push eax
mov eax, dword [ebp - 4]
call fcn.00406b14
push eax
push 0x539210
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5391e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539207
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406a80
ret
Function at 0x539320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a70
xor eax, eax
push ebp
push 0x53939f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x53937f
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406b14
push eax
push 0x5393ac
mov eax, dword [0x54d040]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x539389
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5393a6
lea eax, [ebp - 4]
call fcn.00406a78
ret

Function at 0x53a328
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd74
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x278], edx
lea eax, [ebp - 0x270]
mov edx, dword [0x40d5c4]
call fcn.00407728
xor eax, eax
push ebp
push 0x53a529
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x53a4e0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x278]
xor eax, eax
call fcn.004045bc
mov eax, dword [ebp - 0x278]
lea edx, [ebp - 0x274]
call fcn.00413acc
lea eax, [ebp - 0x274]
mov edx, 0x53a544
call fcn.00406eac
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x270]
mov edx, 0x1ff
call fcn.00413960
xor edx, edx
push ebp
push 0x53a438
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x280]
xor eax, eax
call fcn.004045bc
mov eax, dword [ebp - 0x280]
lea edx, [ebp - 0x27c]
call fcn.00413acc
lea eax, [ebp - 0x27c]
mov edx, dword [ebp - 0x25c]
call fcn.00406eac
mov ebx, dword [ebp - 0x27c]
mov dword [ebp - 0x284], ebx
mov eax, dword [ebp - 0x284]
call fcn.00406b14
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a4b8
xor eax, eax
push ebp
push 0x53a4ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28c]
xor eax, eax
call fcn.004045bc
mov eax, dword [ebp - 0x28c]
lea edx, [ebp - 0x288]
call fcn.00413acc
lea eax, [ebp - 0x288]
mov edx, dword [ebp - 0x25c]
call fcn.00406eac
mov esi, dword [ebp - 0x288]
mov dword [ebp - 0x284], esi
mov eax, dword [ebp - 0x284]
call fcn.00406b14
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a4b8
lea eax, [ebp - 0x270]
call fcn.004139b0
test eax, eax
je 0x53a444
lea eax, [ebp - 0x270]
call fcn.004139d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a4ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a530
lea eax, [ebp - 0x28c]
mov edx, 2
call fcn.00406a80
lea eax, [ebp - 0x280]
mov edx, 4
call fcn.00406a80
lea eax, [ebp - 0x270]
mov edx, dword [0x40d5c4]
call fcn.00407800
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x19291e7d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x232a2ebc
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1804b00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xfa2000]
push edi
jmp 0x1804b1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1804b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1804b10
mov eax, 1
add ebx, ebx
jne 0x1804b33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1804b44
jne 0x1804b63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1804b63
dec eax
add ebx, ebx
jne 0x1804b50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1804b28
add ebx, ebx
jne 0x1804b5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1804bb5
xor ecx, ecx
sub eax, 3
jb 0x1804b7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1804bea
sar eax, 1
mov ebp, eax
jmp 0x1804b86
add ebx, ebx
jne 0x1804b86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1804b54
inc ecx
add ebx, ebx
jne 0x1804b94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1804b54
add ebx, ebx
jne 0x1804ba1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1804b96
jne 0x1804bb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1804b96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1804bd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1804bc6
jmp 0x1804b16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1804bd4
add edi, ecx
jmp 0x1804b16
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1804bf2
cmp byte [edi], 0x11
jne 0x1804bf2
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 0x1804bf7
lea edi, [esi + 0x13fd000]
mov eax, dword [edi]
or eax, eax
je 0x1804c6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22aa804]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22aa980]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1804c24
mov ecx, edi
jns 0x1804c53
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 + 0x22aa984]
or eax, eax
je 0x1804c69
mov dword [ebx], eax
add ebx, 4
jmp 0x1804c41
call dword [esi + 0x22aa994]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1804ca0
cmp al, 0xef
ja 0x1804c93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1804c75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1804c82
mov ebp, dword [esi + 0x22aa988]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x1804cd4
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x40de38
nop
nop
mov ecx, 0x3e5f6c7f
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x746f5a46
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x406200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp dword [ecx - 0x46], 1
push eax
in al, dx
or byte [eax], bh
add byte [ebp + 0x34], ah
pop eax
or al, 0x8b
inc ebp
invalid

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and al, 0x8b
pop ebp
or byte [ebx], dh
push edi
mov eax, dword [ebx + 4]
cmpsb byte [esi], byte es:[edi]
clc
dec dword [edi]
test byte [esi + edx*8 + 0x4b8b0000], dl
adc byte [ebp - 0x7663f037], al
add dword [edi], ecx
add byte [ebx - 0x1074f38b], cl
adc al, 0x8d
push esi
sub byte [ebp - 0x1d], al
push eax
call dword [sym.imp.WSOCK32.dll_connect]
inc ebx
clc
dec dword [edi]
test dword [edi], esi
add dword [eax], eax
add byte [ebx + 0x2903d835], cl
retf 0xd6ff
Function at 0x4016e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x49c404]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
mov dword [ebp - 0x10c], 0
call fcn.00459eb0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x108], 0
jne 0x401749
xor ecx, ecx
jmp 0x40175b
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401752
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.00404920
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004582c7
mov esp, ebp
pop ebp
ret
Function at 0x401a80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473a38
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x49c404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x22c
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00459eb0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401ae8
xor al, al
jmp 0x401be6
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401bdd
nop dword [eax + eax]
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x28]
call fcn.00401d40
mov ecx, dword [ebp - 0x258]
lea esi, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
cmovae esi, dword [ebp - 0x28]
call fcn.00404100
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401b8a
mov eax, dword [ebp - 0x24c]
mov ecx, ebx
mov esi, dword [ebx]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
push dword [esi + 4]
push esi
call fcn.00403630
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebx + 4]
sub ecx, eax
cmp ecx, 1
jb 0x401c02
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x401bc7
mov eax, dword [ebp - 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x401bbe
test al, 0x1f
jne 0x401c0c
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x401c0c
sub eax, ecx
cmp eax, 4
jb 0x401c0c
cmp eax, 0x23
ja 0x401c0c
mov eax, ecx
push eax
call fcn.0042ef8f
add esp, 4
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401b10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004582c7
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0040dae6
call fcn.004614be
int3

Function at 0x402110
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x402136
cmp ax, 6
je 0x402136
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x402140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473b18
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x49c404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x40220f
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x4021ac
xor ecx, ecx
jmp 0x4021ba
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4021b1
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00404920
push 0x491f24
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00403220
push edi
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.00403220
add esp, 0x18
lea ecx, [ebp - 0x28]
push eax
call fcn.00402cb0
lea ecx, [ebp - 0x58]
call fcn.00404390
lea ecx, [ebp - 0x70]
call fcn.00404390
lea ecx, [ebp - 0x40]
call fcn.00404390
jmp 0x402233
cmp byte [edi], 0
jne 0x402218
xor ecx, ecx
jmp 0x402229
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402220
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00404920
push dword [ebp + 0x14]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40229b
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x402292
test cl, 0x1f
je 0x40226e
call fcn.004614be
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40227a
call fcn.004614be
sub ecx, eax
cmp ecx, 4
jae 0x402286
call fcn.004614be
cmp ecx, 0x23
jbe 0x402290
call fcn.004614be
mov ecx, eax
push ecx
call fcn.0042ef8f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004582c7
mov esp, ebp
pop ebp
ret
Function at 0x4022c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473b48
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x49c404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0xf
cmp byte [esi], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x40230f
xor ecx, ecx
jmp 0x40231d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402314
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00404920
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp byte [eax + ecx - 1], 0x5c
je 0x40234d
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.00402bc0
cmp byte [edi], 0
jne 0x402356
xor ecx, ecx
jmp 0x402369
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402360
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00404230
push 0x38
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.00459eb0
add esp, 0xc
mov dword [ebp - 0x64], 0x3c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], 0x440
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x402420
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x402417
test cl, 0x1f
je 0x4023f3
call fcn.004614be
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4023ff
call fcn.004614be
sub ecx, eax
cmp ecx, 4
jae 0x40240b
call fcn.004614be
cmp ecx, 0x23
jbe 0x402415
call fcn.004614be
mov ecx, eax
push ecx
call fcn.0042ef8f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004582c7
mov esp, ebp
pop ebp
ret
Function at 0x402440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473b78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49c404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push edx
push dword [ebp + 0x1c]
mov dword [ebp - 0x2c], 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402509
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x4024d3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x4024e0
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403a40
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp + 0x18]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [esi + 0x14], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x40252e
xor ecx, ecx
jmp 0x40253c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402533
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00404920
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40258f
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x402586
test cl, 0x1f
je 0x402562
call fcn.004614be
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40256e
call fcn.004614be
sub ecx, eax
cmp ecx, 4
jae 0x40257a
call fcn.004614be
cmp ecx, 0x23
jbe 0x402584
call fcn.004614be
mov ecx, eax
push ecx
call fcn.0042ef8f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004582c7
mov esp, ebp
pop ebp
ret

Function at 0x4025b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025fd
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4025e2
mov eax, dword [eax]
push ecx
push eax
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x402635
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x402660
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40268b
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esp, ebp
pop ebp
ret
Function at 0x4029e0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49c404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x402a24
push 0x10020
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402a36
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004582c7
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004582c7
mov esp, ebp
pop ebp
ret