joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422a07
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46c180]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x422a52
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00422ba6
test al, al
jne 0x422a4c
sub edx, 2
cmp edx, edi
jne 0x422a32
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x422a74
lea eax, [edi + 2]
cmp edx, eax
je 0x422a74
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00422953
add esp, 0x10
jmp 0x422b6e
push esi
lea ecx, [ebp - 0x255]
call fcn.00422ba6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x422ab7
push dword [ebp - 0x25c]
jmp 0x422a64
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x422af4
cmp word [ebp - 0x226], 0
je 0x422b15
cmp word [ebp - 0x226], ax
jne 0x422af4
cmp word [ebp - 0x224], 0
je 0x422b15
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00422953
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x422b61
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x422ace
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x422b49
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x422b6e
push 0x422783
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00429900
add esp, 0x10
jmp 0x422b3e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b577
leave
ret
Function at 0x42a7f5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a771
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42a96d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42a96d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42a91c
jg 0x42a84e
test eax, eax
je 0x42a912
push 1
push 0x1000
call fcn.0041c63f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42a874
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42a909
push 0x8000
push ebx
call fcn.0041980d
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42a8a0
jg 0x42a89b
cmp ecx, 0x1000
jb 0x42a8a0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041e07a
add esp, 0x10
cmp eax, 0xffffffff
je 0x42a8e5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42a89b
jl 0x42a8cc
test ecx, ecx
jne 0x42a88d
push dword [ebp - 0xc]
push ebx
call fcn.0041980d
push esi
call fcn.0041c69c
add esp, 0xc
xor edi, edi
jmp 0x42a97e
cmp byte [edi + 0x24], 0
je 0x42a8fc
cmp dword [edi + 0x20], 5
jne 0x42a8fc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42a907
mov edi, dword [edi + 0x18]
jmp 0x42a909
xor edi, edi
push esi
call fcn.0041c69c
pop ecx
jmp 0x42a97e
test ecx, ecx
jg 0x42a8de
jl 0x42a91c
test eax, eax
jae 0x42a8de
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fbcb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42a93f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42a8de
jmp 0x42a976
push ebx
call fcn.004238aa
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42a8de
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42a97e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42a97b
mov edi, dword [edi + 0x18]
jmp 0x42a97e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041fbcb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42b480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b4ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b4ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x48a3517c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xc566d6a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x1000325d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10003310
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x10007f5e
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x10007f80
mov eax, 0xfffffffd
jmp 0x1000805d
mov ebx, dword [0x1013d52c]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x1000802b
mov ebx, dword [0x1013d52c]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x10007fcf
mov ebx, dword [0x1013d52c]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x10007fcf
mov eax, 1
jmp 0x10007fd1
xor eax, eax
test eax, eax
je 0x10007ffd
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x10007fe6
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x1013d52c]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x10008053
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x1000805d
mov esp, ebp
pop ebp
ret 4

Function at 0x10008b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000325d
test eax, eax
je 0x10008bc3
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x10008bc3
cmp word [eax], 0x5a4d
jne 0x10008bc3
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x10008bc3
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10003ef6
mov eax, dword [ebp + 8]
jmp 0x10008bdc
mov esp, ebp
pop ebp
ret 4

Function at 0x1000af34
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.1000325d
test eax, eax
je 0x1000af9f
push ecx
push ebx
xor eax, eax
xchg dword [ebp + 0xc], eax
xchg dword [ebp + 0x10], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffff
jle 0x1000af9d
cmp word [ebx], 0x5a4d
jne 0x1000af9d
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
cmp dword [ecx], 0x4550
jne 0x1000af9d
cmp dword [ebp + 0x10], 0
je 0x1000af91
movzx eax, word [ecx + 0x16]
and eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x10]
jne 0x1000af9d
cmp dword [ecx + 0x28], 0
je 0x1000af9d
add ebx, dword [ecx + 0x28]
mov dword [ebp + 0xc], ebx
pop ebx
pop ecx
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10003ef6
mov eax, dword [ebp + 0xc]
jmp 0x1000afb8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001a720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10099e20
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.1008ef1e
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1001c560
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1001a774
jmp dword [ecx*4 + 0x1001a8dc]
mov al, byte [esi]
test al, al
je 0x1001a7a2
cmp al, 0x20
je 0x1001a78e
cmp al, 0xa1
jne 0x1001a7a2
cmp byte [esi + 1], al
jne 0x1001a7a2
test al, 0x80
je 0x1001a79a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1001a7a2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001a781
test ecx, ecx
je case.default.0x1001a774
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1001a774
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1001a7e8
cmp dl, 0xa1
jne 0x1001a7dc
cmp byte [eax + 1], 0xa1
jne 0x1001a7dc
test ecx, ecx
jne 0x1001a7d4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1001a7fc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1001a816
jmp 0x1001a7fc
cmp dl, 0x20
jne 0x1001a7fa
test ecx, ecx
jne 0x1001a7f3
mov edi, eax
mov ecx, 1
jmp 0x1001a7fc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1001a7bc
cmp ecx, 1
jne case.default.0x1001a774
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001a774
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001a774
mov al, byte [esi]
test al, al
je 0x1001a86e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1001a854
mov cl, byte [esi + 1]
test cl, cl
je 0x1001a86e
cmp al, 0xa1
jne 0x1001a844
cmp cl, al
je 0x1001a851
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1001c830
inc esi
jmp 0x1001a866
cmp al, 0x20
je 0x1001a866
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1001c870
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001a82d
push 0
lea ecx, [esp + 0x14]
call fcn.1001c870
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10028140
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1001a8a1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x1011b540
call fcn.1001c760
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1008eeb0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1001b5b0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, 0x1012d264
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
push ecx
call fcn.1001b570
add esp, 8
mov byte [esp + 8], al
or esi, 0xffffffff
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001b65a
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x1001b6bb
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x1001b63c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x1001b644
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.1007f2d0
mov edx, dword [esp + 0x28]
pop edi
pop esi
mov dword [edx], eax
add esp, 0x1c
ret
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1001b6af
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x30]
je 0x1001b68d
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0x400
imul edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x1c
ret
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
add esp, 0x1c
ret
Function at 0x1001be70
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10099ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x1013948c]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.1001b940
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001bf12
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1001bfcb
mov edx, dword [esi + 8]
push edx
call fcn.10026ec0
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x1001bf62
cmp eax, 0x80000301
jne 0x1001bf30
mov eax, dword [esi]
jmp 0x1001bf3d
push 0
push esi
push 0x7d1
call fcn.1002c3f0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001bfc0
jmp 0x1001bfba
cmp eax, 0x80000004
jne 0x1001bf91
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001bfc0
jmp 0x1001bfba
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x1001bfc0
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001bfc0
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1008eeb0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10021310
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009a34b
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.1008ec25
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10021392
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1008c920
mov eax, dword [eax]
push 0x1012d268
push eax
call fcn.1007eae4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1008eeb0
test bl, bl
je 0x10021392
push 0x1012d268
lea ecx, [esp + 0xc]
call fcn.1008f240
push 0x10130dd0
lea ecx, [esp + 0xc]
call fcn.1008f240
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 0x100213ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1008eeb0
jmp 0x10021499
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 0x10021452
lea edx, [esp + 0x7c]
push 0x10130dcc
push edx
call fcn.1007eae4
add esp, 8
test eax, eax
je 0x10021452
lea eax, [esp + 0x7c]
push 0x10130dc8
push eax
call fcn.1007eae4
add esp, 8
test eax, eax
je 0x10021452
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 0x100213e2
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.1008eeb0
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 0x10021cb0
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 0x10021d12
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 0x10021d20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009a3cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x1013948c]
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 0x10021e58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10021d86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1008eeb0
xor eax, eax
jmp 0x10021ecf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1008efed
push esi
lea ecx, [esp + 0xc]
call fcn.1008f27c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x10130e08
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x10021ead
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x10130e00
push accept
call fcn.10021cb0
test eax, eax
jne 0x10021ead
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x10130dec
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.10021cb0
test eax, eax
jne 0x10021ead
lea eax, [esp + 0x14]
push 0x10130de4
push eax
call fcn.1007fb60
mov esi, eax
add esp, 8
test esi, esi
jne 0x10021e8c
lea ecx, [esp + 0x14]
push 0x10130de0
push ecx
call fcn.1007fae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10021e8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x10021e8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1008ef9d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10021d9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1008eeb0
xor eax, eax
jmp 0x10021ecf
mov byte [esi], 0
push 0x10130ddc
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.1008eeb0
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 0x10033e90
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 0x10033efe
cmp si, 0x69
ja 0x10033efe
add esi, 0xffd0
cmp si, 0x11
je 0x10033ece
push 0x11
call edi
test ax, ax
jge 0x10033ece
or esi, 0x2000
cmp si, 0x10
je 0x10033ee3
push 0x10
call edi
test ax, ax
jge 0x10033ee3
or esi, 0x4000
cmp si, 0x12
je 0x10033ef8
push 0x12
call edi
test ax, ax
jge 0x10033ef8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x10033f0b
mov esi, 0xbd
jmp 0x10033ebf
cmp si, 0x6e
jne 0x10033f18
mov esi, 0xbe
jmp 0x10033ebf
cmp si, 0x6f
jne 0x10033eb9
mov esi, 0xbf
jmp 0x10033ebf

Function at 0x10035370
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009b421
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.1008e112
mov esi, dword [esp + 0x16c]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.1008df66
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0xc]
push eax
call fcn.1008ef1e
lea ecx, [esp + 0xc]
push str..
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x16c], 0
call fcn.1008f0f9
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.1008eeb0
test edi, edi
je 0x100354be
mov edx, dword [0x1013948c]
mov dword [esp + 0x10], edx
cmp edi, 0xffffffff
mov byte [esp + 0x160], 1
je 0x100354ad
cmp byte [esp + 0x44], 0x2e
je 0x10035492
lea eax, [esp + 0xc]
push 0x1012d268
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1008f0f9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 2
call fcn.1008ef9d
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.1008eeb0
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.1008f240
test byte [esp + 0x18], 0x10
mov eax, dword [esi + 8]
je 0x10035478
push 1
jmp 0x1003547a
push 0
push eax
mov ecx, esi
call fcn.1008e404
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.1008e287
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1003541e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.1008eeb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.1008eeb0
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret