joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd03058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d031a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd0307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0306a
add dl, dl
jne 0xd03089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd030dc
xor eax, eax
add dl, dl
jne 0xd03096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0317d
add dl, dl
jne 0xd030a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd030b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd030bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd030c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd030d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd03075
mov eax, 1
add dl, dl
jne 0xd030ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd030f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd030e1
sub eax, ebx
mov ebx, 1
jne 0xd03128
mov ecx, 1
add dl, dl
jne 0xd0310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd03119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd03105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd03075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd0313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd0314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd03136
cmp eax, 0x7d00
jae 0xd0316d
cmp eax, 0x500
jb 0xd03168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd03075
cmp eax, 0x7f
ja 0xd03170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd03075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd0319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd03075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x407160
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x407182
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407178
mov eax, 1
add ebx, ebx
jne 0x40719b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407190
jne 0x4071ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407190
xor ecx, ecx
sub eax, 3
jb 0x4071c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407232
mov ebp, eax
add ebx, ebx
jne 0x4071cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4071d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4071fc
inc ecx
add ebx, ebx
jne 0x4071e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4071dd
jne 0x4071f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4071dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40721c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40720d
jmp 0x40717e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40721c
add edi, ecx
jmp 0x40717e
pop esi
mov edi, esi
mov ecx, 0x20
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40723a
cmp byte [edi], 0
jne 0x40723a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40723f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4072ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x703c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40726c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7040]
or eax, eax
je 0x4072a8
mov dword [ebx], eax
add ebx, 4
jmp 0x407289
call dword [esi + 0x7048]
mov ebp, dword [esi + 0x7044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4072e2
sub esp, 0xffffff80
jmp 0x4013d0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x364
lea eax, [esp + 0x15c]
push esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x160]
push ecx
push 0
push 0x406058
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 3
push 0
push 0
lea eax, [esp + 0x70]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40105f
xor eax, eax
pop esi
add esp, 0x364
ret
mov edx, dword [esp + 0x370]
mov eax, dword [esp + 0x36c]
push ebx
push ebp
push edi
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
jne 0x40109a
lea ecx, [esp + 0x68]
push ecx
call ebp
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x68]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x274]
push str._s__S
push eax
mov dword [esp + 0x30], 0x44
call fcn.00401280
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
lea eax, [esp + 0x270]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
test ebx, ebx
je 0x401125
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, 0xc7
push str.TYSAFE_SmartCard_Tool_for_CSP
push 0
push 0
push 0
call esi
test eax, eax
jne 0x401125
mov edx, edi
dec edi
test edx, edx
jne 0x40110d
lea eax, [esp + 0x68]
push eax
call ebp
pop edi
mov eax, ebx
pop ebp
pop ebx
pop esi
add esp, 0x364
ret
Function at 0x401140
Capabilities:
Create process on windows
Create process suspended
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x25c
test eax, eax
push esi
push edi
je 0x401224
mov cl, byte [eax]
cmp cl, 0x2f
je 0x401164
cmp cl, 0x2d
jne 0x401224
mov al, byte [eax + 1]
cmp al, 0x75
je 0x401173
cmp al, 0x55
jne 0x401224
push ebx
lea eax, [esp + 0x60]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str...Program_Files95599_Certificate_ToolsTianyu_Info
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x164]
push eax
push str._sUninstall.exe__S
push ecx
mov dword [esp + 0x28], 0x44
call fcn.00401280
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x164]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop ebx
je 0x401264
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
xor eax, eax
pop esi
add esp, 0x25c
ret 0x10
push str.INSTFILES
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401264
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401264
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push eax
call fcn.00401000
add esp, 8
pop edi
xor eax, eax
pop esi
add esp, 0x25c
ret 0x10
Function at 0x402839
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406170
cmp edx, dword [eax]
je 0x40285b
add eax, 8
inc ecx
cmp eax, 0x406200
jl 0x40284c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406170]
jne 0x402989
mov eax, dword [0x406948]
cmp eax, 1
je 0x402963
test eax, eax
jne 0x40288c
cmp dword [0x4060b8], 1
je 0x402963
cmp edx, 0xfc
je 0x402989
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4028c3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403330
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402d00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402906
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402d00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405434
push edi
call fcn.004040b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403330
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403340
lea eax, [ebp - 0xa0]
push 0x405414
push eax
call fcn.00403340
push dword [esi + 0x406174]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403340
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040401e
add esp, 0x2c
pop edi
jmp 0x402989
lea eax, [ebp + 8]
lea esi, [esi + 0x406174]
push 0
push eax
push dword [esi]
call fcn.00402d00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x46fed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, eax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x46fee5
pop es
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x46fef9
mov byte [ebp - 1], 0x55
mov al, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop esi
pop ecx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10007480
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007a64b
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.1006f4af
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10007502
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1006d395
mov eax, dword [eax]
push 0x10a0ac48
push eax
call fcn.100600e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1006f73a
test bl, bl
je 0x10007502
push 0x10a0ac48
lea ecx, [esp + 0xc]
call fcn.1006faca
push 0x10a0ac54
lea ecx, [esp + 0xc]
call fcn.1006faca
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 0x1000753e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1006f73a
jmp 0x10007609
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 0x100075c2
lea edx, [esp + 0x7c]
push 0x10a0ac50
push edx
call fcn.100600e4
add esp, 8
test eax, eax
je 0x100075c2
lea eax, [esp + 0x7c]
push 0x10a0ac4c
push eax
call fcn.100600e4
add esp, 8
test eax, eax
je 0x100075c2
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 0x10007552
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.1006f73a
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 0x10007e10
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 0x10007e72
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 0x10007e80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007a6cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10a146b0]
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 0x10007fb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10007ee6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1006f73a
xor eax, eax
jmp 0x1000802f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1006f877
push esi
lea ecx, [esp + 0xc]
call fcn.1006fb06
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 0x1000800d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.10007e10
test eax, eax
jne 0x1000800d
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.10007e10
test eax, eax
jne 0x1000800d
lea eax, [esp + 0x14]
push 0x10a0ac64
push eax
call fcn.10061160
mov esi, eax
add esp, 8
test esi, esi
jne 0x10007fec
lea ecx, [esp + 0x14]
push 0x10a0ac60
push ecx
call fcn.100610e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10007fec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x10007fef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1006f827
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10007efe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1006f73a
xor eax, eax
jmp 0x1000802f
mov byte [esi], 0
push 0x10a0ac5c
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.1006f73a
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 0x10018bc0
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 0x10018c2e
cmp si, 0x69
ja 0x10018c2e
add esi, 0xffd0
cmp si, 0x11
je 0x10018bfe
push 0x11
call edi
test ax, ax
jge 0x10018bfe
or esi, 0x2000
cmp si, 0x10
je 0x10018c13
push 0x10
call edi
test ax, ax
jge 0x10018c13
or esi, 0x4000
cmp si, 0x12
je 0x10018c28
push 0x12
call edi
test ax, ax
jge 0x10018c28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x10018c3b
mov esi, 0xbd
jmp 0x10018bef
cmp si, 0x6e
jne 0x10018c48
mov esi, 0xbe
jmp 0x10018bef
cmp si, 0x6f
jne 0x10018be9
mov esi, 0xbf
jmp 0x10018bef

Function at 0x1001a0f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007b561
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.1006e99c
mov esi, dword [esp + 0x16c]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.1006e7f0
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0xc]
push eax
call fcn.1006f7a8
lea ecx, [esp + 0xc]
push str..
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x16c], 0
call fcn.1006f983
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.1006f73a
test edi, edi
je 0x1001a23e
mov edx, dword [0x10a146b0]
mov dword [esp + 0x10], edx
cmp edi, 0xffffffff
mov byte [esp + 0x160], 1
je 0x1001a22d
cmp byte [esp + 0x44], 0x2e
je 0x1001a212
lea eax, [esp + 0xc]
push 0x10a0b7b4
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1006f983
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 2
call fcn.1006f827
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.1006f73a
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.1006faca
test byte [esp + 0x18], 0x10
mov eax, dword [esi + 8]
je 0x1001a1f8
push 1
jmp 0x1001a1fa
push 0
push eax
mov ecx, esi
call fcn.1006ec8e
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.1006eb11
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001a19e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.1006f73a
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.1006f73a
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret
Function at 0x1001a270
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1007b580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
lea ecx, [esp + 8]
call fcn.1006e909
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], esi
call fcn.1006ec02
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x44], 1
call fcn.1001a0f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
mov ebx, eax
jle 0x1001a30d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esp + 0x28]
cmp dword [eax + esi*4], 0
je 0x1001a2fc
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + esi*4]
push eax
call fcn.1001a270
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, dword [edx + esi*4]
push eax
call edi
jmp 0x1001a306
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
push eax
call ebp
inc esi
cmp esi, ebx
jl 0x1001a2d6
pop edi
pop ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.1006ec35
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.1006e93c
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x1001a340
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x20
jne 0x1001a352
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x1001a34a
cmp byte [esi], 0
je 0x1001a381
cmp byte [esi + 1], 0x3a
jne 0x1001a36f
mov al, byte [esi + 2]
test al, al
je 0x1001a381
cmp al, 0x5c
jne 0x1001a36f
mov al, byte [esi + 3]
test al, al
je 0x1001a381
push esi
call fcn.1001a270
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x1001a720
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10a24e08]
xor edx, edx
cmp eax, edx
jne 0x1001a746
xor eax, eax
mov byte [eax + 0x10a24d08], al
inc eax
cmp eax, 0x100
jl 0x1001a72e
mov dword [0x10a24e08], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10a24d08
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1001a7d7
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 0x1001a7aa
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 0x1001a778
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001a850
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 0x1001a8a3
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 0x1001a88a
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