joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4780d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov ebx, ecx
or ebp, 0xffffffff
call fcn.00477d90
mov eax, dword [ebx + 0x47c]
xor esi, esi
cmp eax, esi
jne 0x4782e5
lea edi, [ebx + 8]
mov dword [ebx + 0x47c], 1
mov ecx, edi
call fcn.0047b9e0
test al, al
jne 0x4782df
mov ecx, edi
call fcn.0047ba10
mov ecx, edi
mov byte [esp + 0x13], al
mov byte [esp + 0x12], 0
call fcn.0047bf30
cmp eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jle 0x4782bf
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
jmp 0x478147
xor esi, esi
mov ecx, ebx
call fcn.004798b0
lea ecx, [ebx + 8]
mov dword [esp + 0x20], eax
call fcn.0047c000
mov ebp, eax
cmp dword [ebp], 1
jne 0x4781a2
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cdq
sub eax, edx
mov dword [esp + 0x30], esi
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], 0x420
mov dword [esp + 0x2c], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x44]
jmp 0x4781e0
mov eax, dword [ebp + 4]
mov dword [esp + 0x50], esi
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], 0x820
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00479f20
lea ecx, [ebx + 8]
call fcn.0047bf40
mov eax, dword [ebp + 4]
mov ecx, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
call fcn.00477d70
mov eax, dword [ebp]
mov dword [esp + 0x1c], esi
cmp eax, 1
jne 0x478221
mov eax, dword [ebp + 0xc]
mov edi, 0x21
add eax, esi
mov dword [esp + 0x1c], eax
jmp 0x478226
mov edi, 0x22
cmp dword [esp + 0x18], 1
jle 0x478233
or edi, 0x80
mov ecx, ebx
call fcn.004798b0
sub eax, dword [esp + 0x20]
je 0x478245
mov byte [esp + 0x12], 1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
dec ecx
cmp edx, ecx
jne 0x478266
mov cl, byte [esp + 0x12]
or edi, 0x100
test cl, cl
je 0x478266
or edi, 0x1000
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
sub esp, 0x20
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], esi
mov ecx, 8
lea esi, [esp + 0x84]
mov edi, esp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00479f20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x478145
mov ebp, dword [esp + 0x1c]
lea ecx, [ebx + 8]
call fcn.0047ba10
mov cl, byte [esp + 0x13]
mov byte [esp + 0x20], al
cmp cl, al
je 0x4782df
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.00479ee0
dec dword [ebx + 0x47c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x4782f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov ebx, ecx
or ebp, 0xffffffff
call fcn.00477d90
mov eax, dword [ebx + 0x47c]
xor esi, esi
cmp eax, esi
jne 0x478518
lea edi, [ebx + 8]
mov dword [ebx + 0x47c], 1
mov ecx, edi
call fcn.0047b9e0
test al, al
jne 0x478512
mov ecx, edi
call fcn.0047ba10
mov ecx, edi
mov byte [esp + 0x13], al
mov byte [esp + 0x12], 0
call fcn.0047bff0
cmp eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jle 0x4784f2
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
jmp 0x478367
xor esi, esi
mov ecx, ebx
call fcn.004798b0
lea ecx, [ebx + 8]
mov dword [esp + 0x20], eax
call fcn.0047c000
mov ebp, eax
cmp dword [ebp], esi
jne 0x4783c1
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cdq
sub eax, edx
mov dword [esp + 0x30], esi
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], 0x440
mov dword [esp + 0x2c], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x44]
jmp 0x4783ff
mov eax, dword [ebp + 4]
mov dword [esp + 0x50], esi
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], 0x840
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
sub esp, 0x20
mov ecx, 8
lea esi, [esp + 0x64]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00479f20
lea ecx, [ebx + 8]
call fcn.0047c010
mov eax, dword [ebp + 4]
mov ecx, ebx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.00477d70
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x1c], eax
jne 0x478445
mov ecx, dword [ebp + 0xc]
mov esi, 0x41
add eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x47844a
mov esi, 0x42
mov edi, dword [esp + 0x18]
cmp edi, 1
jle 0x478459
or esi, 0x80
mov ecx, ebx
call fcn.004798b0
mov ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
je 0x47846f
mov byte [esp + 0x12], 1
mov edx, dword [esp + 0x14]
lea eax, [edi - 1]
cmp edx, eax
jne 0x47848e
mov al, byte [esp + 0x12]
or esi, 0x100
test al, al
je 0x47848e
or esi, 0x1000
mov eax, dword [ebp + 4]
sub esp, 0x20
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x84], esi
mov dword [esp + 0x90], ecx
mov ecx, 8
lea esi, [esp + 0x84]
mov edi, esp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00479f20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x478365
mov ebp, dword [esp + 0x1c]
lea ecx, [ebx + 8]
call fcn.0047ba10
mov cl, byte [esp + 0x13]
mov byte [esp + 0x20], al
cmp cl, al
je 0x478512
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.00479ee0
dec dword [ebx + 0x47c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x47c360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e79c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0xc]
call fcn.00473be0
xor ebx, ebx
mov eax, 0x4fb6a8
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
xor eax, eax
mov dword [esi + 0x40], ebx
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
push 0x80
xor edi, edi
mov dword [esi + 0x18], ecx
mov dword [esi + 0x28], ecx
push ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x2c], edx
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 2
mov byte [esi + 0x54], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x20], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 1
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x5c], 0xffffff
mov dword [esi + 0x64], 0x808080
call fcn.0047c8a0
mov eax, dword [eax]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
mov dword [esi + 0x6c], eax
call fcn.0047c8a0
mov ecx, dword [eax]
push 0xc0
push 0xc0
mov dword [esi + 0x74], ecx
push 0xc0
lea ecx, [esp + 0x1c]
call fcn.0047c8a0
mov edx, dword [eax]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x7c], edx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4bac60
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4e7b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebp, ebp
mov edx, ecx
dec ecx
test edx, edx
mov dword [esp + 0x14], ebx
mov eax, esi
je 0x4bacae
inc ecx
movsx edx, byte [eax]
shl ebp, 4
xor ebp, edx
inc eax
dec ecx
jne 0x4baca2
mov eax, ebp
xor edx, edx
mov ecx, 0x1f
div ecx
mov eax, dword [esp + 0x10]
mov edi, dword [eax + edx*4]
cmp edi, ebx
je 0x4bad03
cmp ebp, dword [edi]
jne 0x4bacfc
mov eax, dword [edi + 4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bacef
cmp cl, bl
je 0x4baceb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bacef
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4baccb
xor eax, eax
jmp 0x4bacf4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4bad1e
mov esi, dword [esp + 0x2c]
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x4bacc4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x84]
cmp ecx, ebx
je 0x4bad54
push esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.004bac60
jmp 0x4bad97
mov esi, dword [esp + 0x28]
mov eax, dword [edi + 8]
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 0xffffffffffffffff
push eax
mov dword [esp + 0x28], ebx
mov dword [esi + 0xc], 0x40
call fcn.004baac0
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4bad8f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x4bad91
mov esi, dword [esp + 0x28]
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 0xffffffffffffffff
push 0x535110
mov dword [esp + 0x28], 1
mov dword [esi + 0xc], 0x40
call fcn.004baac0
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4bad8f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x4bad91
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x4badb0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e7b77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x18]
xor ebx, ebx
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], ebx
call fcn.004bac60
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x64
push edx
push esi
mov dword [esp + 0x40], 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call fcn.004bae70
mov esi, dword [esp + 0x48]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x48], 2
mov dword [esi + 0xc], 0x40
call fcn.004baac0
mov edx, dword [esp + 0x38]
mov dword [esi], eax
neg eax
sbb eax, eax
mov dword [esp + 0x24], 1
and eax, edx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov edx, dword [esp + 0x30]
mov byte [esp + 0x48], bl
push edx
mov dword [esp + 0x3c], ebx
call fcn.004d8496
mov ecx, dword [esp + 0x44]
add esp, 0x1c
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 8
Function at 0x4c39f0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4c3a3a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4c3a69
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4c3aab
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4daafa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4dab32
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.004d8b87
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d8b5f
jmp 0x4dab3e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4dc1eb
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 0x4dc22d
call fcn.004e1ce2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4dc22d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4dc224
xor eax, eax
jmp 0x4dc235
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004dc23b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e2212
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 0x4e2240
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e225e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e2178
jmp 0x4e225e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e225e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e2178
test edi, edi
mov eax, edi
jne 0x4e2248
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x409340
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4645db
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.004590f6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4093c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045700d
mov eax, dword [eax]
push 0x4791c0
push eax
call fcn.00449e74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00459381
test bl, bl
je 0x4093c2
push 0x4791c0
lea ecx, [esp + 0xc]
call fcn.00459711
push 0x47cd34
lea ecx, [esp + 0xc]
call fcn.00459711
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 0x4093fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00459381
jmp 0x4094c9
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 0x409482
lea edx, [esp + 0x7c]
push 0x47cd30
push edx
call fcn.00449e74
add esp, 8
test eax, eax
je 0x409482
lea eax, [esp + 0x7c]
push 0x47cd2c
push eax
call fcn.00449e74
add esp, 8
test eax, eax
je 0x409482
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 0x409412
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.00459381
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 0x409cc0
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 0x409d22
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 0x409d30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46465b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4831d8]
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 0x409e68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409d96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459381
xor eax, eax
jmp 0x409edf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004594be
push esi
lea ecx, [esp + 0xc]
call fcn.0045974d
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 0x409ebd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00409cc0
test eax, eax
jne 0x409ebd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00409cc0
test eax, eax
jne 0x409ebd
lea eax, [esp + 0x14]
push 0x47cd48
push eax
call fcn.0044aeb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409e9c
lea ecx, [esp + 0x14]
push 0x47cd44
push ecx
call fcn.0044ae30
mov esi, eax
add esp, 8
test esi, esi
jne 0x409e9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409e9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045946e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409dae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459381
xor eax, eax
jmp 0x409edf
mov byte [esi], 0
push 0x47cd40
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.00459381
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 0x41a530
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 0x41a59e
cmp si, 0x69
ja 0x41a59e
add esi, 0xffd0
cmp si, 0x11
je 0x41a56e
push 0x11
call edi
test ax, ax
jge 0x41a56e
or esi, 0x2000
cmp si, 0x10
je 0x41a583
push 0x10
call edi
test ax, ax
jge 0x41a583
or esi, 0x4000
cmp si, 0x12
je 0x41a598
push 0x12
call edi
test ax, ax
jge 0x41a598
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a5ab
mov esi, 0xbd
jmp 0x41a55f
cmp si, 0x6e
jne 0x41a5b8
mov esi, 0xbe
jmp 0x41a55f
cmp si, 0x6f
jne 0x41a559
mov esi, 0xbf
jmp 0x41a55f

Function at 0x41bc50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x493828]
xor edx, edx
cmp eax, edx
jne 0x41bc76
xor eax, eax
mov byte [eax + 0x493728], al
inc eax
cmp eax, 0x100
jl 0x41bc5e
mov dword [0x493828], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x493728
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bd07
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 0x41bcda
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 0x41bca8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bd80
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 0x41bdd3
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 0x41bdba
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