joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bdff6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4be016
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c01f9
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4be039
test byte [esp + 8], 2
je 0x4be039
call fcn.004c026c
mov dword [eax], 0xd
call fcn.004c0275
mov dword [eax], 5
jmp 0x4be012
xor eax, eax
ret

Function at 0x4d0b06
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d0b3e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ceb0f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ceae7
jmp 0x4d0b4a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d2450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d2492
call fcn.004d8bd0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d2492
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d2489
xor eax, eax
jmp 0x4d249a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d24a0
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d9100
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d912e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d914c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d9066
jmp 0x4d914c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d914c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d9066
test edi, edi
mov eax, edi
jne 0x4d9136
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4db9b8
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4db9e0
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4db9f1
push 2
call edi
test ax, ax
jge 0x4db9f1
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004d013b
cmp dword [esi + 0x30], ebx
jne 0x4dbacb
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004d013b
cmp eax, dword [esp + 0x34]
jne 0x4dbacb
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4dba67
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4dbaac
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4dbacb
cmp eax, 0x205
je 0x4dbacb
cmp eax, 0x201
je 0x4dbacb
cmp eax, 0x204
je 0x4dbacb
cmp eax, ebx
jne 0x4dba92
cmp dword [esp + 0x1c], 0x1b
je 0x4dbacb
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5a4424]
jbe 0x4dbac1
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4dba24
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4

Function at 0x408955
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.0040896d
xor dword [edi], esi
add eax, eax
inc edi
mov eax, eax
add edx, edx
cmp edi, ecx
jne fcn.00408955
ret
Function at 0x49aa2e
Capabilities:
Encrypt data using aes

Disassembly:
clc
sub esp, 0x1e
lea esp, [esp + 2]
jmp 0x49aa77
xor edi, dword [edx*4 + reloc.KERNEL32.dll_TerminateProcess]
rol edx, 0xf
push edx
push word [esp + 1]
jmp 0x49aa5f
add esp, 5
lea esp, [esp + 1]
jmp 0x49aa86
and edx, ecx
sub esp, 6
lea esp, [esp + 2]
lea esp, [esp + 0x28]
jmp 0x49aa38
mov edx, dword [esi + 4]
call 0x49aa8f
imul esp, dword [esi - 1], 0xe8032474
inc dword [eax]
add byte [eax], al
or dword [edx], reloc.KERNEL32.dll_TerminateProcess
and dword [edi + reloc.KERNEL32.dll_TerminateProcess], ebp
dec ecx
rcl byte [esi + 0x31], 0xc0
jg 0x49aaa9
sar byte [edi - 3], 0xcc
pop edi
int3

Function at 0x49ac55
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov word [esp], sp
sub esp, 2
mov word [esp + 2], sp
lea esp, [esp + 2]
jmp 0x49ac9d
mov edi, dword [edi*4 + reloc.KERNEL32.dll_TerminateProcess]
sub esp, 0xe
sub esp, 0x18
pop word [esp + 0x1b]
lea esp, [esp + 5]
jmp 0x49ac84

Function at 0x49ad89
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
and edx, ecx
pushal
mov edx, dword [edx*4 + reloc.KERNEL32.dll_TerminateProcess]
stc
jmp 0x49ad6f
push edx
and edx, ecx
lea esp, [esp + 0x24]
xor edi, dword [edx*4 + reloc.KERNEL32.dll_TerminateProcess]
jmp 0x49ae0f
push dword [esp + 2]
lea esp, [esp + 8]
movzx ebx, byte [esi + 0xd]
jmp 0x49ad5e
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_TerminateProcess]
pushal
jmp 0x49adf5
mov dword [eax], edi
pop eax
lea edi, [ebx*4]
push edx
mov di, 0xeff5
jmp 0x49ad97
push eax
mov eax, esi
lea eax, [eax + 8]
jmp 0x49adaf
pop word [esp + 0xb]
push word [esp + 0x19]
lea esp, [esp + 2]
jmp 0x49ae5e
mov edi, edx
shr edi, 0x18
sub esp, 0x1e
mov byte [esp + 5], ah
jmp 0x49add2
neg edx
sub esp, 8
mov edx, dword [esi + 0xc]
sub esp, 0x12
lea esp, [esp + 2]
jmp 0x49adca
mov edi, dword [edi*4 + reloc.KERNEL32.dll_TerminateProcess]
and edi, ecx
push edx
jmp 0x49ae3e

Function at 0x49aeb5
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea ebx, [edx*4]
movzx ebx, byte [esi + 0x11]
jmp 0x46d3eb
xchg edx, edi
mov di, word [esp]
mov di, si
mov dh, 0x6a
jmp 0x49a8f8
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_TerminateProcess]
mov dh, 0xc3
setae dh
not dh
mov dx, 0x499f
jmp 0x49a9c9
add esi, 0x10
ror dx, cl
mov edx, dword [esi]
sub esp, 0x10
jmp fcn.0049a99f
jmp 0x49af0b
lea esp, [esp + 0xc]
xor edi, dword [edx*4 + reloc.KERNEL32.dll_TerminateProcess]
dec dword [ebp - 4]
pushal
jmp 0x49af60
and edx, ecx
cmc
sub esp, 0xa
mov dword [esp + 1], esi
lea esp, [esp + 2]
jmp 0x49aeb7
pushal
mov dword [esp + 0xd], ebp
lea esp, [esp + 0x44]
jne 0x46d3da
je 0x46d401
pop ebx
les ebx, [edx + 0x3d]
int3
push esp
pop word [esp + 0x13]
push dword [esp + 0x1a]
lea esp, [esp + 2]
mov dword [esi + 0xc], edi
jmp 0x49af40
Function at 0x49b2b6
Capabilities:
Encrypt data using aes

Disassembly:
pop dword [esp + 0xc]
add esp, 1
lea esp, [esp + 3]
lea esp, [esp + 0x3c]
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_TerminateProcess]
call fcn.0049aeb5
mov ecx, 0x21d2b727
pushfd
fidiv dword [reloc.KERNEL32.dll_TerminateProcess]
pop esi
push edx
and ebx, ecx
pushal
push edx
jmp 0x49aede
mov esi, edx
lea esi, [esi*4]
lea esi, reloc.KERNEL32.dll_TerminateProcess
mov edx, dword [esi]
jmp 0x49af03
sub esp, 0x1a
mov word [esp + 0x10], bx
mov word [esp + 0x16], sp
push word [esp + 0x11]
push esi
jmp 0x49af2d
lea ebp, [ebp*4]
lea ebp, reloc.KERNEL32.dll_TerminateProcess
mov ebx, dword [ebp]
pop ebp
and edx, ecx
jmp 0x49afae
movzx ebx, byte [esi + 0xe]
push ebp
mov ebp, ebx
jmp 0x49b108
lea esp, [esp + 4]
jmp 0x49b186

Function at 0x4a3668
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov eax, edx
mov dword [esp], ebp
mov ch, 0xd8
add esp, 3
bsr cx, cx
mov al, 0x86
jmp 0x4a372c
neg cl
jmp 0x4a36bb
mov ch, 0xd8
add esp, 3
bsr cx, cx
call fcn.004a3683
ljmp 0x65cf
jae 0x4a364f
mov eax, edx
mov dword [esp], ebp
jmp 0x4a369a
pop dword [esp + 8]
lea eax, [edx + edi]
lea esp, [esp + 0x1c]
inc bl
sub esp, 0xa
jmp 0x4a378a
rol bl, 0
mov eax, ecx
mov ecx, 0x7576008c
pushal
xchg word [esp + 8], ax
jmp 0x4a36ee
push edx
pop eax
xchg byte [esp], al
setbe cl
lea eax, [ebx + ebp]
lea esp, [esp + 1]
jmp 0x4a370c
je 0x4a37a9
lea eax, [edx*4]
pop dword [esp]
jmp 0x4a3886
lea eax, [edx*4]
pop dword [esp]
xchg byte [esp + 3], al
bsr ax, bp
mov al, byte [esp + 5]
pop word [esp + 1]
jmp 0x4a3810
cmc
jnp 0x4a385c
jp 0x4a385c
mov cx, 0xcfbb
bt ecx, edx
jg 0x4a383d
jle 0x4a383d
neg ecx
mov ecx, dword [esp]
mov ecx, dword [esp]
lea esp, [esp + 2]
jmp 0x4a3827
lea esp, [esp + 4]
dec bl
mov cl, 0x62
not al
mov ecx, esi
jmp 0x4a37e9
jns 0x4a37f9
neg ecx
mov ecx, dword [esp]
jmp 0x4a3844
cwde
xchg ch, cl
mov ch, byte [esp]
neg ch
jo 0x4a3861
mov ecx, 0xe55d1f64
jmp 0x4a38bd
cbw
sub esp, 2
jmp 0x4a381e
mov ecx, dword [esp]
lea esp, [esp + 2]
jmp 0x4a3827
xchg ebx, eax
push esp
pop ecx
jmp 0x4a37ee
jmp 0x4a38b8
lea ecx, [eax + edi]
dec cx
jmp 0x4a38a0
mov ch, byte [esp]
mov cx, word [esp]
stc
jl 0x4a3928
jge fcn.0047b7d1
ljmp 0xd5cb:0x7889ee78
xchg byte [esp + 3], al
bsr ax, bp
mov al, byte [esp + 5]
jmp 0x4a37bf
je 0x4a3863
lea ecx, [eax + edi]
dec cx
jmp 0x4a3868
push esi
mov esi, edi
mov dword [esi], ebx
pop esi
mov cx, word [esp]
jmp 0x4a386a
mov ecx, 0xe55d1f64
xchg ebx, eax
lea ecx, [eax - 1]
or ecx, ecx
jmp 0x4a3897
jmp fcn.0047b7d1
Function at 0x56e034
Capabilities:
Execute anti-debugging instructions

Disassembly:
setnp ah
lea esp, [esp + 6]
lea esp, [esp + 3]
jmp 0x56e04d
cmc
not ah
lea ebx, [edx + edi]
clc
jmp 0x56dff9
mov dx, word [esp + 3]
lea edi, [ebx + ebx]
call fcn.0056e010
lea esp, [esp + 1]
jmp 0x56e07e
lea ebx, [esi*4]
bsf di, ax
pop si
cpuid
lea edx, [ebp - 0x9f]
call 0x56e034
in al, 0x17
push dword [esp + 2]
bswap edi
mov word [esp + 5], sp
rdtsc
mov dx, 0x7783
pop cx
jmp 0x56e027
rdtsc
pushal
mov ah, byte [esp + 0x1f]
mov eax, 0xaaa9e3a2
mov ah, byte [esp + 2]
rdtsc
jmp 0x56e139
xchg word [esp + 0x1b], si
lea esp, [esp + 6]
mov edi, dword [esp + 6]
xchg word [esp + 8], di
bsr ax, bp
jmp 0x56e119
pushal
lea eax, [edi*4]
xor bp, 0x5d6c
btr eax, edx
neg bx
inc bl
jmp 0x56e0a6
bswap ecx
lea esi, [ecx*4]
rdtsc
mov edi, ebp
setae ah
xchg cx, ax
jmp 0x56e0c3
mov byte [esp + 0xb], bh
inc di
xchg bp, si
pop cx
ror bh, 3
cpuid
jmp 0x56e14c
lea eax, [eax*4]
mov ecx, dword [esp + 1]
cpuid
btc edx, edi
lea edx, [edi*4]
jmp 0x56e0fc
pop ebx
xchg byte [esp + 0xe], al
mov bx, word [esp + 0x1a]
push word [esp + 0x11]
popal
stc
jmp 0x56e0e8
mov dword [esp + 0xb], ebp
not cx
btr edx, esp
and cl, bh
push dword [esp + 0x13]
pop dword [esp + 0xc]
jmp 0x56e1c5
add esp, 0xf
lea edx, [ecx + 0xc3]
mov word [esp], bx
lea ecx, [esi - 0x3d]
jmp 0x56e18d
mov ecx, 0x1148975a
pop si
pop bp
bswap edx
push dword [esp + 1]
mov byte [esp + 1], dh
jmp 0x56e1ad
Function at 0x56e4b0
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg byte [esp + 2], bl
rdtsc
lea ecx, [ecx + ebx]
mov cl, 0x5a
mov dh, byte [esp]
shr bh, 3
jmp 0x56e4d4
lea esi, [ecx + 0x83]
bswap ecx
btr eax, esp
jmp 0x56e48c
rdtsc
mov edx, ebp
neg edi
mov si, di
mov dword [esp], ebp
mov cx, dx
jmp 0x56e4ff
mov dl, dh
mov edi, dword [esp]
rdtsc
not bp
lea eax, [ebx + edi]
mov dword [esp], ebp
jmp 0x56e4bd

Function at 0x56ea44
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop si
push dword [esp + 0xd]
push dword [esp + 0xe]
mov dword [esp + 2], ecx
jmp 0x56ea02

Function at 0x572fc6
Capabilities:
Access peb ldr_data
Execute anti-debugging instructions
Parse pe header

Disassembly:
call fcn.0057200c
mov dword [esp + 0x64], edi
lea esp, [esp + 0x64]
jmp 0x573003
pop word [esp]
mov dword [esp], eax
lea esp, [esp + 1]
mov word [esp], sp
mov word [esp], dx
jmp 0x572fb0
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x572007
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x572fdb
Function at 0x411a00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48b02b
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.0047fb39
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x411a82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047d823
mov eax, dword [eax]
push 0x4a9c98
push eax
call fcn.0046fb24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047fdc4
test bl, bl
je 0x411a82
push 0x4a9c98
lea ecx, [esp + 0xc]
call fcn.00480154
push 0x4a9ca4
lea ecx, [esp + 0xc]
call fcn.00480154
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 0x411abe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047fdc4
jmp 0x411b89
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 0x411b42
lea edx, [esp + 0x7c]
push 0x4a9ca0
push edx
call fcn.0046fb24
add esp, 8
test eax, eax
je 0x411b42
lea eax, [esp + 0x7c]
push 0x4a9c9c
push eax
call fcn.0046fb24
add esp, 8
test eax, eax
je 0x411b42
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 0x411ad2
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.0047fdc4
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 0x412380
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 0x4123e2
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 0x4123f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48b0ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b400c]
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 0x412528
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x412456
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047fdc4
xor eax, eax
jmp 0x41259f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047ff01
push esi
lea ecx, [esp + 0xc]
call fcn.00480190
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4a9cd8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41257d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x4a9cd0
push 0x80000000
call fcn.00412380
test eax, eax
jne 0x41257d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x4a9cbc
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.00412380
test eax, eax
jne 0x41257d
lea eax, [esp + 0x14]
push 0x4a9cb4
push eax
call fcn.00470b60
mov esi, eax
add esp, 8
test esi, esi
jne 0x41255c
lea ecx, [esp + 0x14]
push 0x4a9cb0
push ecx
call fcn.00470ae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41255c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41255f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047feb1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41246e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047fdc4
xor eax, eax
jmp 0x41259f
mov byte [esi], 0
push 0x4a9cac
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.0047fdc4
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 0x422bf0
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 0x422c5e
cmp si, 0x69
ja 0x422c5e
add esi, 0xffd0
cmp si, 0x11
je 0x422c2e
push 0x11
call edi
test ax, ax
jge 0x422c2e
or esi, 0x2000
cmp si, 0x10
je 0x422c43
push 0x10
call edi
test ax, ax
jge 0x422c43
or esi, 0x4000
cmp si, 0x12
je 0x422c58
push 0x12
call edi
test ax, ax
jge 0x422c58
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x422c6b
mov esi, 0xbd
jmp 0x422c1f
cmp si, 0x6e
jne 0x422c78
mov esi, 0xbe
jmp 0x422c1f
cmp si, 0x6f
jne 0x422c19
mov esi, 0xbf
jmp 0x422c1f

Function at 0x4243c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c47a8]
xor edx, edx
cmp eax, edx
jne 0x4243e6
xor eax, eax
mov byte [eax + 0x4c46a8], al
inc eax
cmp eax, 0x100
jl 0x4243ce
mov dword [0x4c47a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c46a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x424477
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 0x42444a
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 0x424418
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4244f0
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 0x424543
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 0x42452a
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
Function at 0x42b1c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x42b358
cmp ebp, ebx
jle 0x42b358
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42b21e
dec eax
or eax, 0xfffffff8
inc eax
je 0x42b225
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x42b234
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42b23b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0047fb05
add esp, 4
cmp eax, ebx
je 0x42b25c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0047fb05
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42b34e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x42b335
mov al, byte [edx]
cmp al, 0xc0
jbe 0x42b321
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x42b316
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x42b324
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x42b324
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x42b2c0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x42b2b1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x42e310
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48c678
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x42e349
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.004875ec
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.00487638
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0042e3d0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00487675
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24