joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a3a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xca
jne 0x42a3e3
mov ecx, dword [ebp + 8]
push ecx
call fcn.00431abb
add esp, 4
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x40]
test eax, eax
je 0x42a3d9
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0xcf
mov al, 1
jmp 0x42a4fa
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xcb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcb
jne 0x42a4ba
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x190]
xor eax, eax
mov al, byte [edx + 0x10]
test eax, eax
je 0x42a4a9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x42a421
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
call dword [ecx]
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
call dword [ecx]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42a443
xor al, al
jmp 0x42a4fa
cmp dword [ebp - 4], 2
jne 0x42a44b
jmp 0x42a4a9
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x42a4a4
cmp dword [ebp - 4], 3
je 0x42a460
cmp dword [ebp - 4], 1
jne 0x42a4a4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 8]
jl 0x42a4a4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x11c]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov dword [ecx + 8], eax
jmp 0x42a409
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
mov dword [edx + 0x84], ecx
jmp 0x42a4ee
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0xcc
je 0x42a4ee
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x14
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
call dword [edx]
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.0042a4fe
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x42a4fe
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x42a534
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x180]
call dword [eax]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xcc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
xor edx, edx
mov dl, byte [ecx + 8]
test edx, edx
je 0x42a5fa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x78]
cmp edx, dword [ecx + 0x60]
jae 0x42a5c6
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x42a58e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [edx + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call dword [edx]
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 4], ecx
push 0
mov edx, dword [ebp + 8]
add edx, 0x78
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x184]
call dword [edx + 4]
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebp - 4]
jne 0x42a5c4
xor al, al
jmp 0x42a616
jmp 0x42a54a
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
call dword [ecx + 4]
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
call dword [ecx]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
jmp 0x42a534
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x41]
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 0xcd
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4300f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
xor ecx, ecx
test ecx, ecx
je 0x430120
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x14], 2
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
call dword [eax]
add esp, 4
mov dword [ebp - 0x10], 0x3b9aca00
cmp dword [ebp - 0x10], 0x3b9aca00
jne 0x430136
xor ecx, ecx
test ecx, ecx
je 0x430150
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [eax + 0x14], 3
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
call dword [eax]
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043312b
add esp, 4
mov dword [ebp - 0xc], eax
push 0x54
mov edx, dword [ebp + 8]
push edx
call fcn.004330c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4301a8
mov eax, dword [ebp + 8]
push eax
call fcn.00433132
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + 0x14], 0x36
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx]
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx], fcn.004302ed
mov eax, dword [ebp - 8]
mov dword [eax + 4], fcn.004304dd
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], fcn.004305cf
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], fcn.004306d0
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 0x4307e5
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], 0x430884
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], 0x430923
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], 0x430bf2
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x20], 0x430f49
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], fcn.004312a6
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], 0x43145c
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x30], 0x3b9aca00
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x2c], eax
mov dword [ebp - 4], 1
jmp 0x43023a
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jl 0x43025e
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [eax + edx*4 + 0x34], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 0x3c], 0
jmp 0x430231
mov eax, dword [ebp - 8]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x4c], 0x54
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
push str.JPEGMEM
call sub.MSVCRT.dll_getenv
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4302e9
mov byte [ebp - 0x18], 0x78
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xc]
push eax
push str._ld_c
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x4302e9
movsx edx, byte [ebp - 0x18]
cmp edx, 0x6d
je 0x4302ce
movsx eax, byte [ebp - 0x18]
cmp eax, 0x4d
jne 0x4302da
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x3e8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x3e8
mov eax, dword [ebp - 8]
mov dword [eax + 0x2c], edx
mov esp, ebp
pop ebp
ret
Function at 0x446351
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x44637b
test ecx, ecx
jne 0x446385
test edx, edx
jne 0x446385
mov eax, edi
jmp 0x4463f1
cmp eax, 0xffffffff
jne 0x446385
push 0xfffffffffffffffe
pop eax
jmp 0x4463f1
mov edx, dword [esi + 0x24]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x4463f1
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x4463b6
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x4463d5
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x44644c
push eax
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
add eax, dword [esi + 0x30]
push eax
push ecx
call fcn.00446451
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x446438
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x44644c
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x44635d
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x449760
Capabilities:
Hash data using crc32b

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 8
shl eax, 0x18
test eax, 0x80000000
je 0x44977c
add eax, eax
xor eax, 0x4c11db7
jmp 0x44977e
shl eax, 1
dec ecx
jne 0x44976c
ret

Function at 0x449860
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor eax, eax
xor ecx, ecx
mov esi, dword [edi + 4]
test esi, esi
jle 0x449892
mov ebp, dword [edi]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x467e94]
xor eax, edx
inc ecx
cmp ecx, esi
jl 0x449875
mov esi, dword [edi + 0xc]
xor ecx, ecx
test esi, esi
jle 0x4498bb
mov ebp, dword [edi + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x467e94]
xor eax, edx
inc ecx
cmp ecx, esi
jl 0x44989e
mov ecx, dword [edi]
mov edx, eax
shr edx, 8
mov byte [ecx + 0x16], al
mov ecx, dword [edi]
mov byte [ecx + 0x17], dl
mov ecx, dword [edi]
mov edx, eax
shr edx, 0x10
mov byte [ecx + 0x18], dl
mov edx, dword [edi]
pop edi
pop esi
shr eax, 0x18
pop ebp
mov byte [edx + 0x19], al
pop ebx
ret
Function at 0x403ff0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x405dc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x438], 0
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftPowerShell
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405e16
push 0x41121c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f3a0
add esp, 8
jmp 0x405fb2
mov edx, 1
test edx, edx
je 0x405e90
mov dword [ebp - 0x434], 0x104
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405e69
jmp 0x405e90
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.0040f3a0
add esp, 8
mov ecx, dword [ebp - 0x438]
add ecx, 1
mov dword [ebp - 0x438], ecx
jmp 0x405e16
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SOFTWAREMicrosoftPowerShell_
lea eax, [ebp - 0x108]
push eax
call fcn.0040f3a0
add esp, 8
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040f6e0
add esp, 8
push str.ShellIdsMicrosoft.PowerShell
lea eax, [ebp - 0x108]
push eax
call fcn.0040f6e0
add esp, 8
lea ecx, [ebp - 0x118]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x108]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405f20
push 0x41126c
mov eax, dword [ebp + 8]
push eax
call fcn.0040f3a0
add esp, 8
jmp 0x405fb2
mov dword [ebp - 0x224], 0x208
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x430]
push edx
push 0
push 0
push 0x41127c
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x114], 0
je 0x405f7d
push str.powershell.exe
mov edx, dword [ebp + 8]
push edx
call fcn.0040f3a0
add esp, 8
jmp 0x405fb2
push 0x411294
mov eax, dword [ebp + 8]
push eax
call fcn.0040f3a0
add esp, 8
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040f6e0
add esp, 8
push 0x411298
mov eax, dword [ebp + 8]
push eax
call fcn.0040f6e0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x40ba40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40ba7c
xor eax, eax
jmp 0x40bb5f
mov dword [ebp - 0x214], 0x200
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], 0
je 0x40bacc
xor eax, eax
jmp 0x40bb5f
push str.ScriptEngine
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x210]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40bb11
xor eax, eax
jmp 0x40bb5f
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x214], ecx
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], 0
jne 0x40bb5d
mov eax, 1
jmp 0x40bb5f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40f0b0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 4], 0
jmp 0x40f0cb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jge 0x40f111
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
call fcn.00405410
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x411638
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40f0c2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 8]
sub edx, 1
mov dword [ebp - 4], edx
jmp 0x40f12b
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40f169
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
call fcn.00405410
push eax
mov eax, dword [ebp + 0xc]
push eax
push str._s_s
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40f122
mov esp, ebp
pop ebp
ret

Function at 0x40f170
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x40f1dd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x40f1c4
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x40f1b9
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40f1c4
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x40f199
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x40f1d8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40f208
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x40f205
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x40f1fa
mov eax, dword [ebp - 4]
add eax, 1
jmp 0x40f208
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x40f1dd
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401390
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edi, edi
cmp ecx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
jle 0x40140c
push ebp
mov eax, dword [esp + 0x1c]
push esi
movsx ebp, byte [edi + eax]
call fcn.00401430
imul eax, ebp
mov ecx, dword [esp + 0x14]
push ebx
xor ecx, eax
mov dword [esp + 0x18], ecx
call fcn.00401430
imul eax, ebp
mov edx, dword [esp + 0x18]
mov ecx, 0x13
xor edx, eax
lea eax, [esi + 7]
mov dword [esp + 0x18], edx
add esp, 8
cdq
idiv ecx
lea eax, [ebx + 0xd]
mov ecx, 0x17
mov esi, edx
cdq
idiv ecx
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
mov ebx, edx
jl 0x4013b7
pop ebp
mov eax, dword [esp + 0xc]
mov ecx, 0x188b9
xor eax, 0x18901
pop edi
cdq
idiv ecx
pop esi
pop ebx
mov eax, edx
add esp, 8
ret

Function at 0x401450
Capabilities:
Modify service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x401480
push eax
push str.OpenSCManager_Error
call fcn.00406100
add esp, 8
xor eax, eax
pop ebp
pop ebx
add esp, 0x1c
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebp, eax
test ebp, ebp
jne 0x4014aa
push eax
push str.the_database_is_locked_by_another_process
call fcn.00406100
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
push esi
push edi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
xor esi, esi
test edi, edi
je 0x401514
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4014e8
push eax
push str.ControlService_Error
call fcn.00406100
add esp, 8
mov eax, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov esi, eax
test esi, esi
jne 0x401523
push eax
push str.ChangeServiceConfig_Error
jmp 0x40151b
push 0
push str.OpenService_Error
call fcn.00406100
add esp, 8
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x401540
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x41bc80]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
je 0x401551
mov dword [eax + 0x18], ebx
mov cl, byte [0x41b2e1]
mov al, 8
test al, cl
jne 0x401563
mov byte [0x41b553], bl
mov ecx, dword [0x41b250]
mov dword [ecx + 0x18], ebx
mov ecx, dword [0x41bc88]
cmp ecx, 2
mov dword [0x41b624], ebx
mov dword [0x41b504], ebx
jne 0x4015b0
mov dword [0x41bc88], 3
call fcn.00406920
lea edx, [esp + 8]
push edx
push ebx
push 1
push 0x408ff0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [0x41bc84], eax
pop ebx
pop ecx
ret
mov ecx, dword [0x41bc8c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp ecx, ebx
je 0x4015d4
test byte [0x41bc38], al
je 0x4015d4
mov eax, dword [0x41b648]
push ebx
push ebx
push 2
push eax
call edi
cmp dword [0x41bc7c], ebx
jne 0x401645
mov ecx, dword [0x41b62c]
push esi
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push 0x13e
push ecx
call esi
mov edx, dword [0x41b62c]
push ebx
push 0x131
push edx
call esi
mov eax, dword [0x41b62c]
push ebx
push 0x143
push eax
call esi
mov ecx, dword [0x41b62c]
push ebx
push 0x130
push ecx
call esi
mov edx, dword [0x41b62c]
push ebx
push 0x12f
push edx
call esi
push 0x4b
call fcn.004036d0
push eax
call fcn.00403ee0
push 4
call fcn.0040a500
add esp, 0xc
pop esi
push ebx
call dword [sym.imp.USER32.dll_MessageBeep]
cmp byte [0x41bc7a], bl
je 0x40166d
mov eax, dword [0x41b2dc]
push ebx
push 0x12f
push 0x111
push eax
mov byte [0x41bc7a], bl
call edi
pop edi
pop ebx
pop ecx
ret

Function at 0x4016b0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
push edi
push 0x419450
push 0x20019
push 0
push str.SOFTWAREClasseshttp_shellopencommand
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4016fa
mov edi, str._C:PROGRA1Plus_MICROS1iexplore.exe_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4192c0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
mov ecx, dword [0x419450]
push 0x4192bc
push 0x4192c0
push 0
push ecx
mov dword [0x4192bc], 0x18e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x401756
mov edx, dword [0x419450]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str._C:PROGRA1Plus_MICROS1iexplore.exe_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4192c0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
mov ecx, dword [0x419450]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str..exe
push 0x4192c0
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x401794
mov dl, byte [0x4192c0]
mov cl, 0x22
cmp dl, cl
jne 0x401790
pop edi
mov byte [eax + 4], cl
mov byte [eax + 5], 0
pop esi
ret
mov byte [eax + 4], 0
pop edi
pop esi
ret