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

Disassembly:
push 0xffffffffffffffff
push 0x534878
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi]
mov edi, dword [esp + 0x3c]
xorps xmm0, xmm0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x10], esi
call fcn.0051fcd0
mov byte [esp + 0x14], 1
mov esi, dword [esi + 4]
push 3
mov dword [esp + 0x38], 0
call fcn.0051de30
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 8
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call eax
mov esi, dword [esp + 0x1c]
xor ecx, ecx
test eax, eax
push edi
cmovne esi, ecx
lea ecx, [esp + 0x1c]
call fcn.0051b450
push ecx
mov ecx, esp
lea edi, [esi*4 + 4]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push eax
mov dword [ecx], edi
call fcn.0051a9b0
add esp, 0xc
mov esi, eax
test byte [esp + 0x18], 1
jne 0x51dd69
mov eax, dword [esp + 0x20]
test eax, eax
je 0x51dd69
cmp dword [esp + 0x1c], 0xb
jbe 0x51dd69
push eax
call fcn.004f9345
add esp, 4
cmp esi, edi
je 0x51dd72
add esi, 0x18
jmp 0x51dd74
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0051bea0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004f9e32
add esp, 0x28
ret 4
Function at 0x51ded0
Capabilities:
Access the windows event log

Disassembly:
push 0xffffffffffffffff
push 0x5348b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
push 0x41a414
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov edi, eax
test edi, edi
je 0x51e034
mov dword [esp + 0x20], edi
mov ebx, 0x10000
mov dword [esp + 0x48], 0
push ebx
call fcn.004fe794
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x48], 1
test esi, esi
je 0x51e013
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push esi
push 0
push 9
push edi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
jne 0x51dfc8
call ebp
cmp eax, 0x7a
jne 0x51dfa3
mov ebx, dword [esp + 0x24]
push ebx
push esi
call fcn.0050bfd3
add esp, 8
test eax, eax
jne 0x51df64
push esi
call fcn.004f948a
add esp, 4
xor esi, esi
mov byte [esp + 0x48], 0
test esi, esi
je 0x51dfb5
push esi
call fcn.004f948a
add esp, 4
push edi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
xor al, al
jmp 0x51e036
lea eax, [esp + 0x18]
push eax
push 0x1775
push 0x41a41c
push dword [esp + 0x34]
push esi
call fcn.0051ddb0
add esp, 0x14
test al, al
je 0x51df64
mov eax, dword [esp + 0x18]
push dword [eax + 0xc]
lea eax, [esp + 0x30]
push 0x412060
push eax
call fcn.004f9d6c
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x38]
add esp, 0xc
push eax
call fcn.004724e0
mov byte [esp + 0x48], 0
test esi, esi
je 0x51e025
push esi
call fcn.004f948a
add esp, 4
push edi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f9e32
add esp, 0x38
ret
Function at 0x51e4b0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x534968
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x51e4f5
mov eax, dword [edi]
jmp 0x51e4f7
mov eax, edi
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
push dword [0x5531a0]
push 0
push 0x41a3c0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51e5e7
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0x41a404
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51e5d8
mov ecx, dword [edi + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, ecx
ja 0x51e571
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], eax
jb 0x51e569
mov ecx, dword [edi]
mov byte [ecx + eax], 0
jmp 0x51e57d
mov ecx, edi
mov byte [ecx + eax], 0
jmp 0x51e57d
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.00473920
cmp dword [edi + 0x14], 0x10
jb 0x51e587
mov eax, dword [edi]
jmp 0x51e589
mov eax, edi
lea ecx, [esp + 0x14]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0x41a404
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51e5d8
mov edx, dword [edi + 0x14]
cmp edx, 0x10
jb 0x51e5b5
mov ecx, dword [edi]
jmp 0x51e5b7
mov ecx, edi
mov eax, dword [edi + 0x10]
dec eax
add eax, ecx
cmp edx, 0x10
jb 0x51e5c6
mov ecx, dword [edi]
jmp 0x51e5c8
mov ecx, edi
test eax, eax
je 0x51e5ce
sub eax, ecx
push 1
push eax
mov ecx, edi
call fcn.0042ae50
push esi
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004f9e32
add esp, 0x20
ret
Function at 0x51f830
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x51f865
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004f9e32
add esp, 0x10
ret
xor edx, edx
push edi
mov edi, dword [esp + 0x20]
cmp edx, 0x7fffffff
jb 0x51f899
ja 0x51f87b
cmp edi, 0xffffffff
jbe 0x51f899
push 0xdf
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004f9e32
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
push ebp
push esi
cmp edx, ecx
jl 0x51f90f
mov eax, dword [esp + 0x14]
jg 0x51f8ad
cmp edi, eax
jbe 0x51f90f
push 0
push 0
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x51f92b
sub edi, dword [esp + 0x14]
je 0x51f8fa
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x200
nop
cmp edi, 0x200
mov esi, edi
push 0
cmova esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0x55b248
push ebx
call ebp
cmp dword [esp + 0x10], esi
jne 0x51f92b
mov eax, 0x200
sub edi, esi
jne 0x51f8d0
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004f9e32
add esp, 0x10
ret
push 0
push 0
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x51f92b
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x51f8fa
mov ecx, dword [esp + 0x1c]
xor al, al
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.004f9e32
add esp, 0x10
ret
Function at 0x51fd60
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x51fda1
mov eax, dword [0x55b448]
test eax, eax
jne 0x51fd8f
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
mov ecx, 1
cmp ecx, eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 8
jb 0x51fdfd
cmp eax, 0x20
jae 0x51fdc3
pause
inc dword [esi + 0xc]
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004f9e32
add esp, 0x28
ret
mov ecx, esi
jne 0x51fddf
call fcn.0051e6c0
inc dword [esi + 0xc]
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004f9e32
add esp, 0x28
ret
call fcn.0051fe10
test al, al
je 0x51fdf5
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x51fdfd
push eax
jmp 0x51fdf7
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esi + 0xc]
mov ecx, dword [esp + 0x28]
pop esi
xor ecx, esp
call fcn.004f9e32
add esp, 0x28
ret

Function at 0x51ff30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x534ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x50]
xorps xmm0, xmm0
mov edi, dword [esp + 0x54]
movdqu xmmword [esp + 0x14], xmm0
movzx eax, word [ecx]
mov word [esp + 0xf], ax
movzx eax, word [ecx + 2]
lea ecx, [esp + 0x14]
mov word [esp + 0x11], ax
push dword [esp + 0xf]
movdqu xmmword [esp + 0x28], xmm0
movq qword [esp + 0x38], xmm0
call fcn.00469cc0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x14], 6
test ecx, ecx
je 0x51ffc5
mov edx, dword [ecx]
lea eax, [esp + 0x1c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x41a6ec
mov dword [esp + 0x2c], eax
call fcn.0046a3a0
push eax
call fcn.0046a3d0
add esp, 4
mov esi, eax
mov ecx, edi
push esi
call fcn.00479110
push esi
push dword [edi]
lea eax, [esp + 0x1c]
push dword [esp + 0x60]
push eax
call fcn.0046a3f0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov dword [esp + 0x48], 0xffffffff
test ecx, ecx
je 0x52002f
mov edx, dword [ecx]
lea eax, [esp + 0x1c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004f9e32
add esp, 0x40
ret
Function at 0x520830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x534ba8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
push 0x200
call fcn.0043a670
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
movdqu xmm0, xmmword [edi]
movdqu xmmword [ebx + 0x1c], xmm0
push dword [edi + 4]
push dword [edi]
call fcn.004dc680
mov esi, dword [esp + 0x34]
push esi
push dword [esp + 0x34]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x30]
push edi
push eax
call fcn.00520930
movdqu xmm0, xmmword [esi]
add esp, 0x18
mov eax, ebx
movdqu xmmword [ebx + 0xc], xmm0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc

Function at 0x524050
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5240ed
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x5240ec
push ebx
mov ebx, dword [esp + 0x18]
xor edx, edx
test ebx, ebx
je 0x5240e7
push edi
cmp ebx, 0x20
jb 0x5240cb
lea eax, [esi - 1]
lea ecx, [ebp - 1]
add eax, ebx
add ecx, ebx
cmp ebp, eax
ja 0x52408d
cmp ecx, esi
jae 0x5240cb
movdqa xmm1, xmmword [0x41aa90]
mov eax, ebx
and eax, 0x1f
mov ecx, ebx
sub ecx, eax
mov edi, ebp
mov eax, esi
sub edi, esi
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movdqu xmmword [edi + eax - 0x20], xmm0
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm1
movdqu xmmword [edx + ebp + 0x10], xmm0
add edx, 0x20
cmp edx, ecx
jb 0x5240a4
cmp edx, ebx
jae 0x5240e6
mov edi, ebx
lea ecx, [edx + ebp]
sub esi, ebp
sub edi, edx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0x67
mov byte [ecx - 1], al
dec edi
jne 0x5240d8
pop edi
mov byte [ebx + ebp], 0
pop ebx
pop ebp
pop esi
ret

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x40102e
cmp bl, 0xd7
je 0x40102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x40104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x401023
jmp 0x40104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.004020e0
cmp bl, 0xd8
jne 0x40104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x40104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x401045
pop esi
pop ebx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push 0xffffffffffffffff
push 0x47c2cb
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.00470eb3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4093b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046ed8d
mov eax, dword [eax]
push 0x497c60
push eax
call fcn.00461a04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047113e
test bl, bl
je 0x4093b2
push 0x497c60
lea ecx, [esp + 0xc]
call fcn.004714ce
push 0x497c6c
lea ecx, [esp + 0xc]
call fcn.004714ce
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 0x4093ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047113e
jmp 0x4094b9
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 0x409472
lea edx, [esp + 0x7c]
push 0x497c68
push edx
call fcn.00461a04
add esp, 8
test eax, eax
je 0x409472
lea eax, [esp + 0x7c]
push 0x497c64
push eax
call fcn.00461a04
add esp, 8
test eax, eax
je 0x409472
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 0x409402
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.0047113e
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 0x409cb0
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 0x409d12
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 0x409d20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47c34b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a1534]
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 0x409e58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409d86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047113e
xor eax, eax
jmp 0x409ecf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047127b
push esi
lea ecx, [esp + 0xc]
call fcn.0047150a
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 0x409ead
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00409cb0
test eax, eax
jne 0x409ead
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.00409cb0
test eax, eax
jne 0x409ead
lea eax, [esp + 0x14]
push 0x497c7c
push eax
call fcn.00462a80
mov esi, eax
add esp, 8
test esi, esi
jne 0x409e8c
lea ecx, [esp + 0x14]
push 0x497c78
push ecx
call fcn.00462a00
mov esi, eax
add esp, 8
test esi, esi
jne 0x409e8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409e8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047122b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409d9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047113e
xor eax, eax
jmp 0x409ecf
mov byte [esi], 0
push 0x497c74
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.0047113e
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 0x41a9d0
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 0x41aa3e
cmp si, 0x69
ja 0x41aa3e
add esi, 0xffd0
cmp si, 0x11
je 0x41aa0e
push 0x11
call edi
test ax, ax
jge 0x41aa0e
or esi, 0x2000
cmp si, 0x10
je 0x41aa23
push 0x10
call edi
test ax, ax
jge 0x41aa23
or esi, 0x4000
cmp si, 0x12
je 0x41aa38
push 0x12
call edi
test ax, ax
jge 0x41aa38
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41aa4b
mov esi, 0xbd
jmp 0x41a9ff
cmp si, 0x6e
jne 0x41aa58
mov esi, 0xbe
jmp 0x41a9ff
cmp si, 0x6f
jne 0x41a9f9
mov esi, 0xbf
jmp 0x41a9ff

Function at 0x41c2d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b1d00]
xor edx, edx
cmp eax, edx
jne 0x41c2f6
xor eax, eax
mov byte [eax + 0x4b1c00], al
inc eax
cmp eax, 0x100
jl 0x41c2de
mov dword [0x4b1d00], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b1c00
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c387
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 0x41c35a
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 0x41c328
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41c400
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 0x41c453
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 0x41c43a
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 0x4234a0
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 0x423638
cmp ebp, ebx
jle 0x423638
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 0x4234fe
dec eax
or eax, 0xfffffff8
inc eax
je 0x423505
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x423514
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42351b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00470e7f
add esp, 4
cmp eax, ebx
je 0x42353c
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.00470e7f
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 0x42362e
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 0x423615
mov al, byte [edx]
cmp al, 0xc0
jbe 0x423601
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4235f6
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 0x423604
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x423604
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4235a0
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 0x423591
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