joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x4081fe
cmp eax, 3
jb 0x408056
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x408093
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x408093
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x40807d
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.00407cb0
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x40817e
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.004077d0
mov ecx, dword [esi + 0x6af90]
add esp, 4
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x408148
cmp ecx, 3
jb 0x408148
dec edi
nop word [eax + eax]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x4080e0
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [ebp - 4]
jmp 0x4081a5
mov edx, dword [esi + 0x6af84]
add edx, edi
xor edi, edi
mov dword [esi + 0x6af84], edx
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 4]
jmp 0x4081a5
movzx eax, byte [ecx + esi + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.004077d0
dec dword [esi + 0x6af90]
add esp, 4
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
test eax, eax
je 0x4081dc
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x4081bd
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x4081bf
xor ecx, ecx
sub edx, eax
push 0
push edx
mov edx, ecx
mov ecx, esi
call fcn.00407320
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x4081f6
mov ecx, esi
call fcn.00407e80
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x408005
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x408212
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x408214
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.00407320
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x408e2b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x408ee7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40c448]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40c448]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40c448]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40c448]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40c448]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40c448]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40c448]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40c448]
sub edi, 1
jne 0x408e40
pop edi
test esi, esi
je 0x408f0a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40c448]
sub esi, 1
jne 0x408ef0
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4091c0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x409297
mov ecx, dword [esi + 0x3c]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x4091f8
cmp dword [esi + 0x40], ebx
jae 0x4091f8
push ecx
call fcn.0040a68f
add esp, 4
mov dword [esi + 0x3c], 0
xor eax, eax
test eax, eax
jne 0x40920e
lea eax, [ebx + ebx]
push eax
call fcn.0040a694
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x409294
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x40c448]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x40c448]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x409222
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4092d5
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x4092bc
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x4092f7
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4094e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x409543
mov ecx, dword [edi + 0x8c]
mov ebx, dword [edi + 0x88]
cmp ecx, ebx
jae 0x40958b
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x78]
mov edx, esi
add dword [edi + 0x8c], ebx
add dword [edi + 0x74], ebx
push ebx
call fcn.00408e20
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x409584
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40958b
mov esi, dword [ebp - 4]
mov edx, ebx
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.00408e20
add esp, 4
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x40103b
mov esi, dword [esp + 0x114]
push 0x41e898
mov ecx, esi
call fcn.0040f8d1
mov eax, esi
pop esi
add esp, 0x10c
ret
mov edx, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x40107b
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [esp + 0x114]
push 0x41e898
mov ecx, esi
call fcn.0040f8d1
mov eax, esi
pop esi
add esp, 0x10c
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
mov eax, dword [esp + 4]
jne 0x4010b6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x114]
push 0x41e898
mov ecx, esi
call fcn.0040f8d1
mov eax, esi
pop esi
add esp, 0x10c
ret
mov ecx, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [esp + 0x114]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0040f8d1
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x4010f0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40119a
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0x34
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x40118a
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401177
mov eax, dword [esp + 0x14]
mov esi, 3
cmp eax, 1
jne 0x40115d
push edi
mov esi, 2
call ebp
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp eax, 4
jne 0x40117a
push edi
mov esi, 1
call ebp
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
or esi, 0xffffffff
push edi
call ebp
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebx
or esi, 0xffffffff
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret

Function at 0x4011b0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.004010f0
add esp, 4
cmp eax, 2
je 0x4011ff
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4011ff
push 0x34
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x4011f8
lea ecx, [esp + 8]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x401210
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x20
push ebp
push 0xf003f
push 0
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4012b0
mov eax, dword [esp + 0x28]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4012a8
lea ecx, [esp + 0xc]
push edi
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40128d
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
je 0x40128d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], 3
jne 0x40128c
push 0x64
call ebx
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
jne 0x401275
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop edi
je 0x4012a1
mov dword [esp + 8], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
lea ecx, [esp + 0x28]
call fcn.0040f863
mov eax, dword [esp + 4]
pop ebp
add esp, 0x20
ret

Function at 0x401380
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4013ec
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push esi
push esi
lea edx, [esp + 0x10]
push 0x10
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x401440
Capabilities:
Delete registry key
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40147c
mov ecx, dword [esp]
push str.Desktop_W
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x401f30
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x4154bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebp
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [esp + 0x150], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
lea ecx, [esp + 0x150]
lea edx, [esp + 0x10]
push ecx
push 0x41b3a0
push edx
mov esi, eax
call fcn.0040fa79
push 0x41b3a0
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x150], 1
push eax
call fcn.0040fa05
push eax
lea ecx, [esp + 0x154]
mov byte [esp + 0x14c], 2
call fcn.0040f950
lea ecx, [esp + 0xc]
mov byte [esp + 0x148], 1
call fcn.0040f863
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 0
call fcn.0040f863
lea ecx, [esp + 0x150]
call fcn.0040fc37
cmp esi, edi
je 0x4020ce
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040f8d1
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0x41b3a0
push eax
mov byte [esp + 0x158], 3
call fcn.0040fa79
push 0x41b3a0
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x158], 4
call fcn.0040fa05
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 5
call fcn.0040f950
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 4
call fcn.0040f863
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 3
call fcn.0040f863
lea ecx, [esp + 0x10]
call fcn.0040fc37
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x154]
push edx
call fcn.0040ecfa
test eax, eax
jl 0x4020a7
mov eax, dword [esp + 0x24]
push eax
push 0
push 0x1f0fff
call ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 1
lea ecx, [esp + 0x1c]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x14c], 0
call fcn.0040f863
test esi, esi
jne 0x401ff7
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x150]
mov dword [esp + 0x148], 0xffffffff
call fcn.0040f863
mov ecx, dword [esp + 0x140]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x140
ret
Function at 0x402110
Capabilities:
Delete file
Extract resource via kernel32 functions
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41550c
push eax
mov eax, 0x12874
mov dword fs:[0], esp
call fcn.00404380
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x12880], 1
call fcn.0040fcf4
mov eax, dword [0x41b420]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x12890]
mov ecx, dword [esp + 0x12888]
push eax
push ecx
lea edx, [esp + 0xc]
push str._s_s.Z
push edx
mov byte [esp + 0x12890], 4
call fcn.0040f080
mov eax, dword [esp + 0x14]
add esp, 0x10
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 4]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x18]
call fcn.0040fe06
test eax, eax
je 0x402264
mov ecx, dword [esp + 0x1288c]
mov esi, dword [0x41e894]
push ebp
push edi
and ecx, 0xffff
push 0x41b3b0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040ff5d
lea ecx, [esp + 0x14]
call fcn.00410021
mov edx, dword [esp + 0x12898]
mov eax, dword [esp + 0x12890]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s_s.exe
push ecx
call fcn.0040f080
add esp, 0x10
lea ecx, [esp + 0x24]
call fcn.004023f0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12890], 5
call fcn.00402d60
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x12888], 4
call fcn.004024a0
pop edi
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x12880], 3
call fcn.0040f863
lea ecx, [esp + 4]
mov byte [esp + 0x12880], 2
call fcn.0040f863
lea ecx, [esp + 0xc]
mov byte [esp + 0x12880], 1
call fcn.0040fd49
lea ecx, [esp + 0x12888]
mov byte [esp + 0x12880], 0
call fcn.0040f863
lea ecx, [esp + 0x12890]
mov dword [esp + 0x12880], 0xffffffff
call fcn.0040f863
mov ecx, dword [esp + 0x12878]
pop esi
mov dword fs:[0], ecx
add esp, 0x12880
ret
Function at 0x408df0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46467b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00459498
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408e72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004573e7
mov eax, dword [eax]
push 0x5401c0
push eax
call fcn.0044a304
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00459723
test bl, bl
je 0x408e72
push 0x5401c0
lea ecx, [esp + 0xc]
call fcn.00459ab3
push 0x543d20
lea ecx, [esp + 0xc]
call fcn.00459ab3
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x408eae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00459723
jmp 0x408f79
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408f32
lea edx, [esp + 0x7c]
push 0x543d1c
push edx
call fcn.0044a304
add esp, 8
test eax, eax
je 0x408f32
lea eax, [esp + 0x7c]
push 0x543d18
push eax
call fcn.0044a304
add esp, 8
test eax, eax
je 0x408f32
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408ec2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00459723
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a1f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a252
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40a260
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4647db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x54a230]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40a398
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a2c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459723
xor eax, eax
jmp 0x40a40f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00459860
push esi
lea ecx, [esp + 0xc]
call fcn.00459aef
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40a3ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040a1f0
test eax, eax
jne 0x40a3ed
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040a1f0
test eax, eax
jne 0x40a3ed
lea eax, [esp + 0x14]
push 0x543d34
push eax
call fcn.0044b340
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a3cc
lea ecx, [esp + 0x14]
push 0x543d30
push ecx
call fcn.0044b2c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a3cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a3cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00459810
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a2de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459723
xor eax, eax
jmp 0x40a40f
mov byte [esi], 0
push 0x543d2c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00459723
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4