joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d2c1a
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
add dword [esi + 0x14], eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4d6200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ecx + 0x64]
xor ebx, ebx
imul edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], ecx
test edi, edi
je 0x4d626b
nop dword [eax]
mov edx, dword [ebp + 0xc]
mov eax, esi
shr eax, 1
movzx edx, byte [eax + edx]
lea eax, [ecx + 0xa8]
lea eax, [eax + ebx*8]
mov ecx, esi
push eax
mov eax, edx
shr edx, 4
and eax, 0xf
and cl, 1
cmove edx, eax
push edx
call fcn.004d88a0
mov ecx, dword [ebp + 8]
add esp, 8
mov word [ecx + esi*2], ax
mov eax, ebx
mov ecx, dword [ebp - 4]
xor eax, 1
inc esi
cmp dword [ecx + 0x64], 2
cmovne eax, ebx
mov ebx, eax
cmp esi, edi
jb 0x4d6220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4d6c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov eax, dword [edi + 0x64]
imul eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4d6c6b
nop word [eax + eax]
push dword [edi + 0x8c]
lea eax, [edi + 0xa8]
lea eax, [eax + ebx*8]
push eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [esi + eax]
push eax
call fcn.004d8920
mov ecx, dword [ebp + 8]
add esp, 0xc
mov word [ecx + esi*2], ax
mov eax, ebx
xor eax, 1
inc esi
cmp dword [edi + 0x64], 2
cmovne eax, ebx
mov ebx, eax
cmp esi, dword [ebp + 0x10]
jb 0x4d6c30
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4d8330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b746
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x55b2f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CWaveStreamCtrl.0
call fcn.00511420
mov dword [ebp - 4], 0
lea ecx, [edi + 0x30]
call fcn.004d2880
mov byte [ebp - 4], 1
lea ecx, [edi + 0x10]
mov eax, dword [ebp + 8]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], eax
call fcn.00420c80
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4ddfe0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
jne 0x4ddfff
pop edi
mov eax, 0x80004003
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
xor eax, eax
lea esi, [edi + 4]
cmp edi, 0xc
cmove esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
movups xmmword [ebx], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [ebp + 8], eax
test eax, eax
je 0x4de0d5
dec eax
test dword [ebp - 8], eax
jne 0x4de0d5
cmp dword [edi + 0x44], 1
jne 0x4de05a
push esi
mov edi, 0x8004020f
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x20]
cmp eax, dword [edi + 0x30]
jge 0x4de079
push esi
mov edi, 0x80040210
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
add ecx, eax
mov dword [ebp + 0x10], eax
mov eax, ecx
cdq
idiv dword [ebp + 8]
test edx, edx
je 0x4de095
mov eax, dword [ebp + 8]
sub eax, edx
add ecx, eax
sub ecx, dword [ebp + 0x10]
mov dword [edi + 0x34], ecx
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov eax, dword [ecx]
mov dword [edi + 0x2c], eax
mov dword [ebx], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x38], eax
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x3c], eax
mov dword [ebx + 0xc], eax
mov dword [edi + 0x40], 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov edi, 0x8004020e
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e3660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
mov dword [esi + 0x50], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x4e3725
mov ecx, dword [ebp + 0x18]
push 0
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4e3725
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x48], 0x20000
mov dword [esi + 0x4c], 0
push ebx
test eax, eax
jl 0x4e36e2
jg 0x4e36d4
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x20000
jbe 0x4e36e5
mov ebx, 0x20000
mov dword [ebp - 4], 0
jmp 0x4e36e8
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [esi + 0x1c]
call fcn.004d8b08
push ebx
call fcn.004d8b4b
add esp, 8
mov dword [esi + 0x1c], eax
lea ecx, [ebp - 4]
push 0
push ecx
push ebx
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], ebx
pop ebx
je 0x4e3732
push dword [esi + 0x1c]
call fcn.004d8b08
add esp, 4
mov dword [esi + 0x1c], 0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
push dword [esi + 0x38]
call fcn.004d8b08
mov ecx, edi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3742
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d8b4b
mov ecx, eax
add esp, 4
mov dword [esi + 0x38], ecx
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4e3772
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x44], eax
xor eax, eax
pop edi
mov dword [esi + 0x24], ecx
mov dword [esi + 0x50], 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4e37b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51be88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x55b2f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x50], 0
jne 0x4e37f9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esi, [edi + 4]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 4], 0
cmp eax, dword [edi + 0x4c]
jl 0x4e384b
mov ebx, dword [ebp + 0xc]
jg 0x4e381e
cmp ebx, dword [edi + 0x48]
jbe 0x4e384b
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4e3835
push eax
call fcn.004d8b08
add esp, 4
mov dword [edi + 0x1c], 0
push ebx
call fcn.004d8b4b
add esp, 4
mov dword [edi + 0x1c], eax
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [edi + 0x28]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [edi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, edx
add eax, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x2c]
adc eax, 0
cmp eax, dword [edi + 0x24]
jl 0x4e387a
jg 0x4e3876
cmp dword [ebp + 0xc], ebx
jbe 0x4e387a
sub ebx, edx
jmp 0x4e387c
mov ebx, ecx
lea eax, [edx + ebx]
mov ecx, dword [edi + 0x34]
xor edx, edx
div dword [edi + 0x30]
mov edx, eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
cmp eax, edx
jae 0x4e389e
sub ecx, dword [ebp - 0x10]
add ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x40]
add ecx, eax
mov eax, dword [edi + 0x44]
push 0
adc eax, dword [edi + 0x2c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [edi + 0x1c]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.004e4fd0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
add dword [edi + 0x28], ebx
adc dword [edi + 0x2c], 0
push esi
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4e4120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x4e4170
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x4e3e60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x80], eax
test eax, eax
jne 0x4e4170
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4e4172
movzx eax, ax
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fc277
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
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_CreateThread]
pop ebp
ret

Function at 0x5114f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xc
mov esi, ecx
call fcn.004d8b0d
mov edx, dword [ebp + 8]
lea ecx, [esi + 8]
add esp, 4
mov dword [eax], edx
mov edx, dword [ebp + 0xc]
push ecx
push dword [ebp + 0x18]
mov dword [eax + 4], edx
push eax
push 0x5114b0
push dword [ebp + 0x14]
mov dword [eax + 8], esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 0x10]
mov dword [esi + 4], eax
mov ecx, 0x2710
xor esi, esi
test eax, eax
push eax
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x43eab4
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0043ec64
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x43ebb2
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x43eb55
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x43eb98
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x43eb6c
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x43eb87
test al, 0x40
je 0x43eb7e
mov ecx, dword [edi + 0x20]
jmp 0x43eb85
test al, 0x80
je 0x43eb98
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x43eb98
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x43eb24
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0xa37b80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa37bbf
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0xa50131
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a4fdae

Function at 0xa567d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a5664b

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x409d70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x468ebb
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.0045d420
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409df2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045b240
mov eax, dword [eax]
push 0x480200
push eax
call fcn.0044d4f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d6ab
test bl, bl
je 0x409df2
push 0x480200
lea ecx, [esp + 0xc]
call fcn.0045da3b
push 0x483d6c
lea ecx, [esp + 0xc]
call fcn.0045da3b
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 0x409e2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045d6ab
jmp 0x409ef9
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 0x409eb2
lea edx, [esp + 0x7c]
push 0x483d68
push edx
call fcn.0044d4f4
add esp, 8
test eax, eax
je 0x409eb2
lea eax, [esp + 0x7c]
push 0x483d64
push eax
call fcn.0044d4f4
add esp, 8
test eax, eax
je 0x409eb2
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 0x409e42
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.0045d6ab
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 0x40a6f0
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 0x40a752
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 0x40a760
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x468f3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48a544]
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 0x40a898
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a7c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d6ab
xor eax, eax
jmp 0x40a90f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045d7e8
push esi
lea ecx, [esp + 0xc]
call fcn.0045da77
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x483da4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40a8ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040a6f0
test eax, eax
jne 0x40a8ed
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.0040a6f0
test eax, eax
jne 0x40a8ed
lea eax, [esp + 0x14]
push 0x483d80
push eax
call fcn.0044e530
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a8cc
lea ecx, [esp + 0x14]
push 0x483d7c
push ecx
call fcn.0044e4b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a8cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a8cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045d798
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a7de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d6ab
xor eax, eax
jmp 0x40a90f
mov byte [esi], 0
push 0x483d78
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.0045d6ab
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 0x41ae90
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 0x41aefe
cmp si, 0x69
ja 0x41aefe
add esi, 0xffd0
cmp si, 0x11
je 0x41aece
push 0x11
call edi
test ax, ax
jge 0x41aece
or esi, 0x2000
cmp si, 0x10
je 0x41aee3
push 0x10
call edi
test ax, ax
jge 0x41aee3
or esi, 0x4000
cmp si, 0x12
je 0x41aef8
push 0x12
call edi
test ax, ax
jge 0x41aef8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41af0b
mov esi, 0xbd
jmp 0x41aebf
cmp si, 0x6e
jne 0x41af18
mov esi, 0xbe
jmp 0x41aebf
cmp si, 0x6f
jne 0x41aeb9
mov esi, 0xbf
jmp 0x41aebf

Function at 0x41c5b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49ac50]
xor edx, edx
cmp eax, edx
jne 0x41c5d6
xor eax, eax
mov byte [eax + 0x49ab50], al
inc eax
cmp eax, 0x100
jl 0x41c5be
mov dword [0x49ac50], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49ab50
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c667
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 0x41c63a
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 0x41c608
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41c6e0
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 0x41c733
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 0x41c71a
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