joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x79a6db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.007610cf
mov dword [esi], vtable.CEdit.0
mov eax, dword [0x830b20]
lea edi, [esi + 0x44]
mov dword [edi], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c], 2
push ecx
mov ecx, edi
mov dword [esi], method.CEdit.virtual_0
call fcn.007609b4
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
xor ecx, ecx
cmp ebp, 1
mov dword [esi + 0x40], eax
setne cl
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x28]
mov eax, ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x48], ebx
lea edx, [esi + 0x50]
mov ebx, dword [eax]
mov dword [edx], ebx
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
or eax, 0x50800080
push ebx
push ecx
push eax
mov ecx, esi
call fcn.00773d1e
test eax, eax
je 0x510a21
mov eax, dword [ebx + 0x1c]
mov ebx, dword [0x8fc3e4]
push 0
push 0
push 0x31
push eax
call ebx
push eax
call fcn.0076909d
test eax, eax
je 0x510954
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x1c]
push 1
push eax
push 0x30
push ecx
call ebx
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call fcn.00764e6b
mov ecx, esi
call fcn.00764ffe
lea eax, [ebp - 1]
cmp eax, 0x27
ja case.0x510982.4
xor ecx, ecx
mov cl, byte [eax + 0x510a5c]
jmp dword [ecx*4 + 0x510a4c]
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xffffffffffffffff
push ecx
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
jmp 0x510a1f
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esi + 0x1c]
push 0xb1
push ecx
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push edx
jmp 0x510a11
mov eax, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call ebx
push 0
push 0
push 0xb7
jmp 0x510a1b
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebx
push 0
push ebp
push 0x102
mov ecx, dword [esi + 0x1c]
push ecx
call ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0076087b
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20
Function at 0x52e7f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x79cdc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push 0x833474
lea ecx, [esp + 0xc]
call fcn.007608e9
xor ebx, ebx
mov dword [esp + 0xc], 0x7cb90c
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], 0x7cb900
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x3c], 2
call fcn.007644ed
cmp eax, ebx
je 0x52e865
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
cmp dword [esi + 0x318], ebx
je 0x52e8c3
lea eax, [esi + 0x74]
mov ecx, esi
push eax
call fcn.005368d0
test eax, eax
jne 0x52e88c
push ebx
push ebx
push 0x82e348
mov ecx, esi
call fcn.00762c82
jmp 0x52e8ec
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx]
mov ecx, dword [esi + 0x88]
push eax
push ecx
nop
call fcn.008f265c
test eax, eax
je 0x52e8b3
push ebx
push ebx
push 0x82e318
mov ecx, esi
call fcn.00762c82
jmp 0x52e8ec
mov edx, dword [esi + 0x184]
mov ecx, esi
push edx
call fcn.005309c0
jmp 0x52e8ec
push edi
lea edi, [esi + 0x74]
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0075f443
push 0xffffffffffffffff
push 1
mov ecx, edi
call fcn.0075f443
push edi
mov ecx, esi
call fcn.005368d0
mov ecx, esi
call fcn.00531fa0
pop edi
lea ecx, [esp + 8]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0076087b
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x57b2e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x34
mov ecx, dword [eax + 8]
push ebx
push ebp
push esi
xor esi, esi
dec ecx
test ecx, ecx
push edi
jle 0x57b427
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 4]
mov ecx, dword [eax + esi*8 + 0xc]
mov ebx, dword [eax + esi*8 + 8]
mov ebp, dword [eax + esi*8 + 4]
mov edi, dword [eax + esi*8]
mov edx, ecx
mov dword [esp + 0x20], ecx
push edx
mov ecx, ebx
mov edx, ebp
push ecx
mov eax, edi
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.005181e0
mov edx, dword [eax]
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x24]
mov edx, dword [eax + 8]
push ecx
mov dword [esp + 0x44], edx
mov ecx, dword [esp + 0x6c]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push edi
push ecx
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
call fcn.00541dd0
add esp, 0x3c
test eax, eax
je 0x57b3c3
cmp edi, ebx
jne 0x57b38e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jl 0x57b3c3
cmp eax, dword [esp + 0x28]
jle 0x57b3d5
jmp 0x57b3c3
cmp ebp, dword [esp + 0x20]
jne 0x57b3a8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jl 0x57b3c3
cmp eax, dword [esp + 0x2c]
jle 0x57b3ef
jmp 0x57b3c3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.005183f0
add esp, 0xc
test eax, eax
jne 0x57b409
mov edx, dword [esp + 0x58]
inc esi
mov eax, dword [edx + 8]
dec eax
cmp esi, eax
jge 0x57b427
jmp 0x57b2f9
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov eax, 1
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
mov dword [eax], ecx
pop esi
mov dword [eax + 4], edx
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
Function at 0x6f8f58
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x7c16df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
lea eax, [esi + 0x567b38]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x1c], 1
call fcn.007605f0
push 0x82a168
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call fcn.00760c57
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 8]
call fcn.00760c93
push 0x82a168
lea ecx, [esp + 8]
call fcn.00760c57
mov eax, dword [esp + 0x30]
lea ecx, [esp + 4]
lea edx, [eax + eax*4]
shl edx, 4
lea eax, [edx + esi + 0x31cf30]
push eax
call fcn.00760c57
push 0x82d0e0
lea ecx, [esp + 8]
call fcn.00760c57
push 0x833474
lea ecx, [esp + 0xc]
call fcn.007608e9
mov ecx, dword [esp + 0x28]
lea edx, [esp + 8]
push ecx
push 0x8294b0
push edx
mov byte [esp + 0x24], 3
call fcn.0075cfe3
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
call fcn.00760c93
mov esi, dword [esp + 0x20]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.007605f0
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x18], 2
call fcn.0076087b
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.0076087b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x18], 0
call fcn.0076087b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x14
Function at 0x8e2553
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.008e6ce3
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.008e6d6b
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call fcn.008e7658
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 2
jne 0x8e25d6
cmp dword [0x8fa4c8], 1
jne 0x8e25d6
cmp dword [ebp - 0xc], 0
je 0x8e25d6
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.008e2412
add esp, 8
jmp 0x8e25e5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x14], eax
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 8

Function at 0x8e27d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
jmp 0x8e281b
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x3c
jge 0x8e2841
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x8fa09c], ecx
jne 0x8e283f
cmp dword [ebp - 0xc], 0
je 0x8e283d
mov eax, dword [ebp - 0xc]
add dword [eax + 8], 0xa
jmp 0x8e2841
jmp 0x8e2818
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x8e28e4
mov dword [ebp - 0x18], 0
jmp 0x8e286f
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x3c
jge 0x8e28e4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x8fa09c], ecx
jne 0x8e28e2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx*4 + 0x8fa2b8]
cmp dword [eax*4 + 0x8fa1c8], ecx
jb 0x8e28d1
mov eax, dword [ebp - 0x10]
cmp dword [0x8fa098], eax
je 0x8e28bf
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x8fa18c]
push eax
call fcn.008e741a
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [0x8fa098], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.008e6f71
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add dword [ecx*4 + 0x8fa1c8], eax
jmp 0x8e28e4
jmp 0x8e286c
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14
Function at 0x8e28f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
jmp 0x8e2943
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x3c
jge 0x8e29a5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x8fa09c], ecx
jne 0x8e29a3
mov eax, dword [ebp - 0xc]
cmp dword [0x8fa098], eax
je 0x8e297d
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x8fa18c]
push eax
call fcn.008e741a
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x8fa098], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.008e6fbd
add esp, 8
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
je 0x8e29a1
mov eax, dword [ebp - 8]
add dword [eax + 8], 0xa
jmp 0x8e29a5
jmp 0x8e2940
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x8e29d3
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.008e6f71
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14

Function at 0x8e76b3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.008e6ce3
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.008e6d6b
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.008e78e2
add esp, 8
cmp eax, 0xffffffff
je 0x8e7718
mov dword [ebp - 0x14], 1
jmp 0x8e771f
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 2
jne 0x8e774f
cmp dword [ebp - 8], 0
je 0x8e774f
cmp dword [ebp - 0x14], 0
je 0x8e774f
push 0x8fac78
mov eax, dword [ebp - 4]
push eax
call fcn.008e7760
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x8e8f2d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x8e8f55
xor eax, eax
leave
ret
mov eax, dword [ebp - 0x84]
xor ecx, ecx
sub eax, ecx
je 0x8e8f89
dec eax
je 0x8e8f69
dec eax
je 0x8e8f7b
jmp 0x8e8f51
cmp dword [ebp - 0x8c], ecx
jne 0x8e8f75
push 4
jmp 0x8e8f8b
jbe 0x8e8f7b
push 5
jmp 0x8e8f8b
cmp dword [ebp - 0x90], 5
sbb eax, eax
add eax, 7
leave
ret
push 3
pop eax
leave
ret

Function at 0x8ebb8f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x8ebbc1
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 4
pop ebx
lea ecx, [eax + esi]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx + edi]
inc esi
cmp esi, dword [ebp + 0x14]
mov byte [ecx], al
jl 0x8ebba2
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x416ce0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x478c1b
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.0046d635
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x416d62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046aded
mov eax, dword [eax]
push 0x4a9214
push eax
call fcn.0045d894
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046d8c0
test bl, bl
je 0x416d62
push 0x4a9214
lea ecx, [esp + 0xc]
call fcn.0046dc50
push 0x4acd84
lea ecx, [esp + 0xc]
call fcn.0046dc50
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 0x416d9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046d8c0
jmp 0x416e69
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 0x416e22
lea edx, [esp + 0x7c]
push 0x4acd80
push edx
call fcn.0045d894
add esp, 8
test eax, eax
je 0x416e22
lea eax, [esp + 0x7c]
push 0x4acd7c
push eax
call fcn.0045d894
add esp, 8
test eax, eax
je 0x416e22
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 0x416db2
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.0046d8c0
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 0x417660
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 0x4176c2
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 0x4176d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x478c9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b3314]
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 0x417808
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x417736
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046d8c0
xor eax, eax
jmp 0x41787f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046d9fd
push esi
lea ecx, [esp + 0xc]
call fcn.0046dc8c
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 0x41785d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00417660
test eax, eax
jne 0x41785d
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.00417660
test eax, eax
jne 0x41785d
lea eax, [esp + 0x14]
push 0x4acd98
push eax
call fcn.0045e8d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41783c
lea ecx, [esp + 0x14]
push 0x4acd94
push ecx
call fcn.0045e850
mov esi, eax
add esp, 8
test esi, esi
jne 0x41783c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41783f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046d9ad
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41774e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046d8c0
xor eax, eax
jmp 0x41787f
mov byte [esi], 0
push 0x4acd90
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.0046d8c0
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 0x4290e0
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 0x42914e
cmp si, 0x69
ja 0x42914e
add esi, 0xffd0
cmp si, 0x11
je 0x42911e
push 0x11
call edi
test ax, ax
jge 0x42911e
or esi, 0x2000
cmp si, 0x10
je 0x429133
push 0x10
call edi
test ax, ax
jge 0x429133
or esi, 0x4000
cmp si, 0x12
je 0x429148
push 0x12
call edi
test ax, ax
jge 0x429148
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42915b
mov esi, 0xbd
jmp 0x42910f
cmp si, 0x6e
jne 0x429168
mov esi, 0xbe
jmp 0x42910f
cmp si, 0x6f
jne 0x429109
mov esi, 0xbf
jmp 0x42910f

Function at 0x42a9a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c3a40]
xor edx, edx
cmp eax, edx
jne 0x42a9c6
xor eax, eax
mov byte [eax + 0x4c3940], al
inc eax
cmp eax, 0x100
jl 0x42a9ae
mov dword [0x4c3a40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c3940
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42aa57
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 0x42aa2a
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 0x42a9f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42aad0
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 0x42ab23
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 0x42ab0a
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