joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47853c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x478544
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x478736
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x47874c
mov eax, esi
call fcn.004762cc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004045a4
lea ecx, [ebp - 0x10]
mov edx, 0x478760
mov eax, esi
call fcn.004762cc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004045a4
lea ecx, [ebp - 0x14]
mov edx, 0x478778
mov eax, esi
call fcn.004762cc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004045a4
lea ecx, [ebp - 0x18]
mov edx, 0x478794
mov eax, esi
call fcn.004762cc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004045a4
lea ecx, [ebp - 0x1c]
mov edx, 0x4787b0
mov eax, esi
call fcn.004762cc
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004045a4
lea ecx, [ebp - 0x24]
mov edx, 0x4787c8
mov eax, esi
call fcn.004762cc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004085e0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004089c0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4787e0
mov eax, esi
call fcn.004762cc
mov eax, dword [ebp - 0x28]
call fcn.004753e4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4787f0
mov eax, esi
call fcn.004762cc
mov eax, dword [ebp - 0x2c]
call fcn.004753e4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x478808
mov eax, esi
call fcn.004762cc
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004089c0
inc eax
je 0x4786d9
lea ecx, [ebp - 0x34]
mov edx, 0x478808
mov eax, esi
call fcn.004762cc
mov eax, dword [ebp - 0x34]
call fcn.00408984
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a03c
fstp qword [ebp - 0x3c]
wait
call fcn.0040a3a0
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4786f4
lea ecx, [ebp - 0x40]
mov edx, 0x478808
mov eax, esi
call fcn.004762cc
mov eax, dword [ebp - 0x40]
call fcn.004753e4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x478818
mov eax, esi
call fcn.004762cc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004045a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47873d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404574
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404574
ret
Function at 0x4849d4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x484a2e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004849c4
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00473f54
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00473b54
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484a35
lea eax, [ebp - 4]
call fcn.00404550
ret

Function at 0x4888ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
xor edx, edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x488964
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.004047c0
lea eax, [ebp - 0x114]
mov edx, 0x488978
call fcn.00404818
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
call fcn.00404da4
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 4]
call fcn.004047d8
mov eax, dword [ebp - 0x118]
call fcn.00408e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48896b
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.00404574
lea eax, [ebp - 4]
call fcn.00404c58
ret
Function at 0x488988
Capabilities:
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x488990
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x488b4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00408d40
test al, al
jne 0x4889eb
push 0x488b68
push dword [ebp - 8]
push 0x488b88
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004048d0
mov eax, dword [ebp - 0x14]
call fcn.00404a10
push eax
call sub.kernel32.dll_OutputDebugStringA
mov byte [ebp - 9], 0
jmp 0x488b32
mov dl, 1
mov eax, dword [0x413264]
call fcn.0040374c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x488b2b
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004895c0
mov eax, dword [0x49079c]
mov eax, dword [eax]
call fcn.00453dd0
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov edx, 0x488ba8
call fcn.0040485c
mov eax, dword [ebp - 0x18]
call fcn.00404a10
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x488ace
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [0x49079c]
mov eax, dword [eax]
call fcn.0045458c
mov edx, dword [ebp - 0x20]
pop eax
call fcn.0040495c
je 0x488aca
mov eax, dword [0x49079c]
mov eax, dword [eax]
call fcn.00453dd0
mov eax, dword [0x49079c]
mov eax, dword [eax]
call fcn.00453dd0
push 0x80
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.00404a10
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.00408e58
inc ebx
dec esi
jne 0x488a52
lea eax, [ebp - 0x2c]
mov ecx, 0x488bc0
mov edx, dword [ebp - 8]
call fcn.0040485c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00488be8
push 0x488bcc
push dword [ebp - 8]
push 0x488be0
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004048d0
mov eax, dword [ebp - 0x30]
call fcn.00404a10
push eax
call sub.kernel32.dll_OutputDebugStringA
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488b32
mov eax, dword [ebp - 0x10]
call fcn.0040377c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488b54
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.00404574
ret
Function at 0x488be8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a00
xor eax, eax
push ebp
push 0x488cae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408d40
test al, al
je 0x488c90
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.004070c8
xor eax, eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], 3
lea eax, [ebp - 0x28]
mov ecx, 0x488cc4
mov edx, dword [ebp - 4]
call fcn.0040485c
mov eax, dword [ebp - 0x28]
call fcn.00404a10
mov dword [ebp - 0x1a], eax
xor eax, eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], 0x414
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, 0x488cc8
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
je 0x488c83
cmp dword [ebp - 0x10], 1
sbb eax, eax
inc eax
test al, al
jne 0x488c90
lea eax, [ebp - 0x22]
mov edx, 0x1e
call fcn.004070d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488cb5
lea eax, [ebp - 0x28]
call fcn.00404550
lea eax, [ebp - 4]
call fcn.00404550
ret

Function at 0x488d28
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x488e7d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402a44
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00408ef0
push 0
push 0
push 0x488e90
push dword [ebp - 8]
push 0x488e9c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004048d0
mov eax, dword [ebp - 0x10]
call fcn.00404a10
push eax
push 0x488eb4
push 0x488ec0
push 0
call sub.shell32.dll_ShellExecuteA
push 0x7d0
call sub.kernel32.dll_Sleep_1
mov dl, 1
mov eax, dword [0x42c324]
call fcn.0042c460
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x488e5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.0042c53c
mov cl, 1
mov edx, 0x488ed0
mov eax, dword [ebp - 4]
call fcn.0042c5a4
test al, al
je 0x488de8
mov edx, 0x488f08
mov eax, dword [ebp - 4]
call fcn.0042c840
mov eax, dword [ebp - 4]
call fcn.0042c50c
mov cl, 1
mov edx, 0x488f18
mov eax, dword [ebp - 4]
call fcn.0042c5a4
test al, al
je 0x488e10
mov edx, 0x488f2c
mov eax, dword [ebp - 4]
call fcn.0042c6c8
mov eax, dword [ebp - 4]
call fcn.0042c50c
mov edx, 0x80000000
mov eax, dword [ebp - 4]
call fcn.0042c53c
mov cl, 1
mov edx, 0x488f3c
mov eax, dword [ebp - 4]
call fcn.0042c5a4
test al, al
je 0x488e45
mov edx, 0x488f48
mov eax, dword [ebp - 4]
call fcn.0042c6c8
mov eax, dword [ebp - 4]
call fcn.0042c50c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488e62
mov eax, dword [ebp - 4]
call fcn.0040377c
ret
Function at 0x488f50
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
xor edx, edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x489167
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x228]
xor eax, eax
call fcn.00402a44
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 4]
mov ecx, 0x48917c
call fcn.0040485c
lea eax, [ebp - 0x22c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404a70
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 4]
mov ecx, 0x489194
call fcn.0040485c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402ddc
lea eax, [ebp - 0x1d0]
call fcn.00402b78
call fcn.00402884
mov edx, 0x4891b0
lea eax, [ebp - 0x1d0]
call fcn.00404c00
call fcn.00403214
call fcn.00402884
push 0x4891c0
lea edx, [ebp - 0x234]
xor eax, eax
call fcn.00402a44
push dword [ebp - 0x234]
push 0x4891d0
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.004048d0
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x1d0]
call fcn.00404c00
call fcn.00403214
call fcn.00402884
push 0x4891dc
lea edx, [ebp - 0x23c]
xor eax, eax
call fcn.00402a44
push dword [ebp - 0x23c]
push 0x4891d0
push 0x4891f0
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.004048d0
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1d0]
call fcn.00404c00
call fcn.00403214
call fcn.00402884
mov edx, 0x489204
lea eax, [ebp - 0x1d0]
call fcn.00404c00
call fcn.00403214
call fcn.00402884
lea eax, [ebp - 0x1d0]
call fcn.00402ea4
call fcn.00402884
lea eax, [ebp - 0x224]
xor ecx, ecx
mov edx, 0x44
call fcn.0040300c
mov dword [ebp - 0x1f8], 1
mov word [ebp - 0x1f4], 0
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x48920c
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404a10
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x489141
mov eax, dword [ebp - 0x1dc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1e0]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48916e
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00404574
lea eax, [ebp - 4]
call fcn.00404550
ret
Function at 0x489740
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4897fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42c324]
call fcn.0042c460
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4897de
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.0042c53c
mov cl, 1
mov edx, 0x489810
mov eax, dword [ebp - 4]
call fcn.0042c5a4
test al, al
je 0x4897b1
lea ecx, [ebp - 8]
mov edx, 0x48985c
mov eax, dword [ebp - 4]
call fcn.0042c940
mov eax, dword [ebp - 4]
call fcn.0042c50c
lea eax, [ebp - 8]
mov edx, 0x489870
call fcn.00404818
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004045a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4897e5
mov eax, dword [ebp - 4]
call fcn.0040377c
ret

Function at 0x4898a8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a00
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x489a16
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.0046fc4c
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0046fc6c
jmp 0x4899e2
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004047c0
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408f24
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408390
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408390
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.0040495c
je 0x4899c2
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004047c0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408390
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408390
mov edx, dword [ebp - 0x148]
pop eax
call fcn.0040495c
jne 0x4899d9
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.0046fc8c
test eax, eax
jne 0x489923
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489a1d
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404574
lea eax, [ebp - 4]
call fcn.00404550
ret
Function at 0x406300
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x478eeb
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.0046ddfa
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406382
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046bce0
mov eax, dword [eax]
push 0xfa6c58
push eax
call fcn.0045e9e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046e085
test bl, bl
je 0x406382
push 0xfa6c58
lea ecx, [esp + 0xc]
call fcn.0046e415
push 0xfa6c64
lea ecx, [esp + 0xc]
call fcn.0046e415
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 0x4063be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046e085
jmp 0x406489
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 0x406442
lea edx, [esp + 0x7c]
push 0xfa6c60
push edx
call fcn.0045e9e4
add esp, 8
test eax, eax
je 0x406442
lea eax, [esp + 0x7c]
push 0xfa6c5c
push eax
call fcn.0045e9e4
add esp, 8
test eax, eax
je 0x406442
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 0x4063d2
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.0046e085
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 0x406c80
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 0x406ce2
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 0x406cf0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x478f6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xfb059c]
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 0x406e28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406d56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046e085
xor eax, eax
jmp 0x406e9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046e1c2
push esi
lea ecx, [esp + 0xc]
call fcn.0046e451
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 0x406e7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00406c80
test eax, eax
jne 0x406e7d
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 closesocket
mov ecx, edi
call fcn.00406c80
test eax, eax
jne 0x406e7d
lea eax, [esp + 0x14]
push 0xfa6c74
push eax
call fcn.0045fa80
mov esi, eax
add esp, 8
test esi, esi
jne 0x406e5c
lea ecx, [esp + 0x14]
push 0xfa6c70
push ecx
call fcn.0045fa00
mov esi, eax
add esp, 8
test esi, esi
jne 0x406e5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x406e5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046e172
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406d6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046e085
xor eax, eax
jmp 0x406e9f
mov byte [esi], 0
push 0xfa6c6c
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.0046e085
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
Function at 0x417780
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4177ee
cmp si, 0x69
ja 0x4177ee
add esi, 0xffd0
cmp si, 0x11
je 0x4177be
push 0x11
call edi
test ax, ax
jge 0x4177be
or esi, 0x2000
cmp si, 0x10
je 0x4177d3
push 0x10
call edi
test ax, ax
jge 0x4177d3
or esi, 0x4000
cmp si, 0x12
je 0x4177e8
push 0x12
call edi
test ax, ax
jge 0x4177e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4177fb
mov esi, 0xbd
jmp 0x4177af
cmp si, 0x6e
jne 0x417808
mov esi, 0xbe
jmp 0x4177af
cmp si, 0x6f
jne 0x4177a9
mov esi, 0xbf
jmp 0x4177af

Function at 0x419330
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xfc0ce8]
xor edx, edx
cmp eax, edx
jne 0x419356
xor eax, eax
mov byte [eax + 0xfc0be8], al
inc eax
cmp eax, 0x100
jl 0x41933e
mov dword [0xfc0ce8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xfc0be8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4193e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4193ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x419388
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x419460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4194b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41949a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret