joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e80
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc30
mov eax, dword [0x40a0e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x401cf4
lea edi, [ebp - 0xc14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc28]
push eax
movsd dword es:[edi], dword [esi]
push 0x401c78
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x406f3d
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xc30]
push eax
push 0
push 0x401ccc
push dword [ebp - 0xc28]
mov dword [ebp - 0xc2c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406f3d
push 0x400
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll_wcstombs]
add esp, 0xc
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00404ce2
test eax, eax
jl 0x406f3d
lea esi, [ebp - 0xc24]
lea edi, [ebp - 0xc14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0xc28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
test edi, edi
jl 0x406f97
lea esi, [ebx + 0x10]
push esi
push 0x401eb8
push 5
push 0
lea eax, [ebp - 0xc14]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jl 0x406f97
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebx + 0x14]
push edx
push 0x401e98
push eax
call dword [ecx]
mov esi, dword [esi]
mov eax, dword [esi]
add ebx, 0x18
push ebx
push 0x401ea8
push esi
call dword [eax]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407ccc
leave
ret

Function at 0x407655
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x40a0e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.004075ea
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x4076c8
cmp dword [ebp - 0x94], 5
jb 0x4076e9
jmp 0x4076e5
cmp dword [ebp - 0x88], 1
jne 0x4076e9
cmp dword [ebp - 0x94], 4
ja 0x4076e5
jne 0x4076e9
cmp dword [ebp - 0x90], 0
jbe 0x4076e9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x401dd0
call fcn.00402210
test eax, eax
jge 0x40770a
mov byte [0x40a108], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00407ccc
leave
ret
Function at 0x408150
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x408163
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40815f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x408190
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4081cf
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4081c5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4081d1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4081b5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41f573
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f5b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f5b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f5b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f5b2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f5b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x431790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4317bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4317bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4011de
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x402018]
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x844]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x11
xor eax, eax
pop ecx
xor esi, esi
mov edx, 0x82
lea edi, [ebp - 0x888]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x210], si
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x41c], si
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
mov word [ebp - 0x830], si
mov ecx, 0x104
lea edi, [ebp - 0x82e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x105
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x888], 0x44
mov dword [ebp - 0x884], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x40130f
lea eax, [ebp + eax*2 - 0x212]
cmp word [eax], 0x5c
jne 0x401285
mov word [eax], si
mov edi, dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push 0x4010fc
push eax
call edi
add esp, 0xc
call fcn.004011a9
test eax, eax
je 0x4012ca
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf70]
lea ecx, [ebp - 0x41c]
mov dword [eax + 0x14c0], ecx
mov dword [eax + 0x14c4], esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x830]
push 0x4010d0
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x888]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x830]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40135c
push esi
push esi
lea eax, [ebp - 0x834]
push eax
push 0x400
mov dword [ebp - 0x834], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x401372
push 0x10
push 0x4010bc
push dword [ebp - 0x834]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401372
push dword [ebp - 0x844]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x840]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
call fcn.004013f8
leave
ret
Function at 0x171782c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1717836
pushal
call 0x171783c
pop ebp
sub ebp, 0x10
sub ebp, 0x131782c
jmp 0x1717852
mov eax, 0x131782c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ab
mov edx, 0x51028c51
xor byte [eax], dl
inc eax
dec ecx
jne 0x1717869
jmp 0x171787c
ficomp dword [edx + ebx*8 + 0x51516dd8]
push ecx
rcl byte [eax + 0x515151a9]
push edx
pushfd
jmp 0x52c2c9e6
Function at 0x100028e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10002941
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002902
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18
Function at 0x100042eb
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x1000435b
cmp ebx, 0x20
je 0x1000435b
cmp ebx, 0xffffffe0
je 0x1000435b
jne 0x10004364
add eax, 1
cmp esi, eax
je 0x10004371
jne 0x10004340
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x10004375
jne 0x1000433c
pop edx
mov eax, dword [edx + 0x18]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
cmp ebx, 0
je 0x100043ba
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x100043c0
add eax, 4
pop esi
dec esi
push esi
jne 0x100043a2
xor eax, eax
mov dword [ebp - 8], eax
nop
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
mov dword [ebp - 8], eax
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
mov esi, dword [esi]
mov esi, dword [esi + 4]
lea ecx, [esi - 1]
test ecx, ecx
jl 0x10004401
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea eax, [eax + ecx*4 + 8]
inc ecx
push dword [eax]
sub eax, 4
dec ecx
jne 0x100043f9
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10004417
lea eax, [esi*4]
add esp, eax
mov eax, dword [ebp - 0xc]
jmp 0x1000441f
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1000ed5e
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
jmp 0x1000ed77
nop
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x1000ed96
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x1000ed8d
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x1000ed85
mov eax, ebx
leave
ret

Function at 0x1000edd8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 4
mov esp, ebp
pop ebp
jmp 0x1000edfa
nop
pop edx
pop eax
pop ecx
push edx
pushal
mov ebx, eax
mov edi, ecx
xor al, al
scasb al, byte es:[edi]
jne 0x1000ee06
dec edi
sub edi, ecx
xchg ecx, edi
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + eax + 0x78]
lea esi, [esi + ebx + 0x18]
lodsd eax, dword [esi]
xchg edx, eax
lodsd eax, dword [esi]
push eax
lodsd eax, dword [esi]
xchg ebp, eax
lodsd eax, dword [esi]
xchg ebp, eax
add eax, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
dec edx
je 0x1000ee55
mov esi, dword [eax + edx*4]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x1000ee41
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x1000ee2b
shl edx, 1
add ebp, edx
movzx eax, word [ebp + ebx]
shl eax, 2
add eax, dword [esp]
mov eax, dword [ebx + eax]
add eax, ebx
pop ecx
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x10014a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a75d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1009cae0
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10015e00
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10014a74
jmp dword [ecx*4 + 0x10014bdc]
mov al, byte [esi]
test al, al
je 0x10014aa2
cmp al, 0x20
je 0x10014a8e
cmp al, 0xa1
jne 0x10014aa2
cmp byte [esi + 1], al
jne 0x10014aa2
test al, 0x80
je 0x10014a9a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10014aa2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10014a81
test ecx, ecx
je case.default.0x10014a74
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10014a74
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10014ae8
cmp dl, 0xa1
jne 0x10014adc
cmp byte [eax + 1], 0xa1
jne 0x10014adc
test ecx, ecx
jne 0x10014ad4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x10014afc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10014b16
jmp 0x10014afc
cmp dl, 0x20
jne 0x10014afa
test ecx, ecx
jne 0x10014af3
mov edi, eax
mov ecx, 1
jmp 0x10014afc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10014abc
cmp ecx, 1
jne case.default.0x10014a74
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10014a74
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10014a74
mov al, byte [esi]
test al, al
je 0x10014b6e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10014b54
mov cl, byte [esi + 1]
test cl, cl
je 0x10014b6e
cmp al, 0xa1
jne 0x10014b44
cmp cl, al
je 0x10014b51
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100160d0
inc esi
jmp 0x10014b66
cmp al, 0x20
je 0x10014b66
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10016110
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10014b2d
push 0
lea ecx, [esp + 0x14]
call fcn.10016110
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10023d00
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10014ba1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10581268
call fcn.10016000
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1009ca72
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1001c540
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a7ccb
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.1009c7e7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1001c5c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1009a4fd
mov eax, dword [eax]
push 0x105a4cdc
push eax
call fcn.1008ce14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1009ca72
test bl, bl
je 0x1001c5c2
push 0x105a4cdc
lea ecx, [esp + 0xc]
call fcn.1009ce02
push 0x105a4ce8
lea ecx, [esp + 0xc]
call fcn.1009ce02
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 0x1001c5fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1009ca72
jmp 0x1001c6c9
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 0x1001c682
lea edx, [esp + 0x7c]
push 0x105a4ce4
push edx
call fcn.1008ce14
add esp, 8
test eax, eax
je 0x1001c682
lea eax, [esp + 0x7c]
push 0x105a4ce0
push eax
call fcn.1008ce14
add esp, 8
test eax, eax
je 0x1001c682
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 0x1001c612
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.1009ca72
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 0x1001cec0
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 0x1001cf22
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 0x1001cf30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a7d4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x105b84a8]
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 0x1001d068
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1001cf96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1009ca72
xor eax, eax
jmp 0x1001d0df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1009cbaf
push esi
lea ecx, [esp + 0xc]
call fcn.1009ce3e
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x105a4d1c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1001d0bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.1001cec0
test eax, eax
jne 0x1001d0bd
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.1001cec0
test eax, eax
jne 0x1001d0bd
lea eax, [esp + 0x14]
push 0x105a4cf8
push eax
call fcn.1008de90
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001d09c
lea ecx, [esp + 0x14]
push 0x105a4cf4
push ecx
call fcn.1008de10
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001d09c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1001d09f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1009cb5f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1001cfae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1009ca72
xor eax, eax
jmp 0x1001d0df
mov byte [esi], 0
push 0x105a4cf0
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.1009ca72
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 0x1002fa50
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 0x1002fabe
cmp si, 0x69
ja 0x1002fabe
add esi, 0xffd0
cmp si, 0x11
je 0x1002fa8e
push 0x11
call edi
test ax, ax
jge 0x1002fa8e
or esi, 0x2000
cmp si, 0x10
je 0x1002faa3
push 0x10
call edi
test ax, ax
jge 0x1002faa3
or esi, 0x4000
cmp si, 0x12
je 0x1002fab8
push 0x12
call edi
test ax, ax
jge 0x1002fab8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1002facb
mov esi, 0xbd
jmp 0x1002fa7f
cmp si, 0x6e
jne 0x1002fad8
mov esi, 0xbe
jmp 0x1002fa7f
cmp si, 0x6f
jne 0x1002fa79
mov esi, 0xbf
jmp 0x1002fa7f

Function at 0x10031040
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a8e81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
mov ebp, dword [esp + 0x160]
push esi
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.1009bbbb
mov esi, dword [esp + 0x16c]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.1009be81
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0xc]
push eax
call fcn.1009cae0
lea ecx, [esp + 0xc]
push str..
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x16c], 0
call fcn.1009ccbb
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.1009ca72
test edi, edi
je 0x1003118e
mov edx, dword [0x105b84a8]
mov dword [esp + 0x10], edx
cmp edi, 0xffffffff
mov byte [esp + 0x160], 1
je 0x1003117d
cmp byte [esp + 0x44], 0x2e
je 0x10031162
lea eax, [esp + 0xc]
push 0x105a5754
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1009ccbb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 2
call fcn.1009cb5f
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.1009ca72
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.1009ce02
test byte [esp + 0x18], 0x10
mov eax, dword [esi + 8]
je 0x10031148
push 1
jmp 0x1003114a
push 0
push eax
mov ecx, esi
call fcn.1009bfc6
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.1009bd30
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100310ee
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.1009ca72
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.1009ca72
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret