joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dca0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100122c6
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x1001c018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dx, word [0x10017e94]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x10017e90]
push eax
push 0x3ff
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1000dec8
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x1000dd20
mov cx, word [ebx]
push 0x104
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1000ddd6
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], edi
mov word [ebp - 0x63c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000dd63
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.1000ee00
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000dd90
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.1000e630
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000ddf5
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x1000ddd6
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x1000ddd6
cmp word [ebx], di
je 0x1000dec8
mov esi, dword [ebp - 0x660]
jmp 0x1000dd20
xor eax, eax
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000de17
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.1000ee00
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000de41
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x648]
push ebx
inc eax
push esi
lea ecx, [ebp - 0x63c]
call fcn.1000e4a0
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x1000de82
mov ecx, dword [ebp - 0x658]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x1000de96
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x1000dec4
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x1000deca
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10011156
mov esp, ebp
pop ebp
ret
Function at 0x1000e030
Capabilities:
Create thread
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x100
push 0
push 0x10127548
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x100170a0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10127548], cl
inc eax
cmp eax, 0x100
jb 0x1000e050
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
push 0x10127548
push 0
mov ecx, 0x1011c7a8
call fcn.10005580
mov eax, dword [0x1012193c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
test eax, eax
je 0x1000e0c0
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [0x1012209c]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x1012193c], 0
call ebx
mov eax, dword [0x10121a64]
test eax, eax
je 0x1000e0eb
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x1012209c]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x10121a64], 0
call ebx
mov eax, dword [0x10121b8c]
test eax, eax
je 0x1000e116
push 0
push 0
push 0x10
push eax
call edi
mov edx, dword [0x1012209c]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x10121b8c], 0
call ebx
mov eax, dword [ebp + 8]
sub eax, 0
je 0x1000e13c
dec eax
je 0x1000e130
dec eax
jne 0x1000e148
mov eax, 0x6a
mov ecx, 0x2828c8
jmp 0x1000e14e
mov eax, 0x69
mov ecx, 0x1496c8
jmp 0x1000e14e
mov eax, 0x67
mov ecx, 0xc87832
jmp 0x1000e14e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebp + 0xc]
call fcn.1000d8d0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push 0x1000df90
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x1000e1cf
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], 0
je 0x1000e1cf
mov eax, dword [esi + 4]
test eax, eax
je 0x1000e1ca
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x1012209c]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
mov dword [esi + 4], 0
call ebx
call fcn.1000dc00
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000e2a0
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x10127548
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x100146a0]
pop esi
mov dl, byte [ecx + eax]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10127548], dl
inc eax
cmp eax, 0x100
jb 0x1000e2c3
mov eax, 0x10127548
ret
Function at 0x1000ef40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x1011c77c]
push edi
cmp esi, dword [0x1011c780]
je 0x1000f00e
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x1000ef7e
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push closesocket
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x1000ef93
add esi, 0x105
cmp esi, dword [0x1011c780]
jne 0x1000ef60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1011c780]
mov esi, dword [0x1011c77c]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1000eff6
xor edi, edi
cmp byte [edi + esi], 2
jne 0x1000efd2
lea ecx, [edi + esi + 1]
push ecx
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x1011c77c]
mov ecx, dword [0x1011c780]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x1000efb6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 6
call fcn.100031a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000f170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000f310
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000f234
cmp dword [ebp - 4], 0x50000000
jb 0x1000f1b1
cmp dword [ebp - 4], 0x80000000
ja 0x1000f1b1
mov dword [ebp - 4], 0x4fff0000
jmp 0x1000f18a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000f1d7
jmp 0x1000f234
cmp dword [ebp - 0x14], 0x10000
jne 0x1000f21a
cmp dword [ebp - 0x18], 0x10000
jb 0x1000f21a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000f20d
mov eax, dword [ebp - 8]
jmp 0x1000f236
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000f22f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000f310
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000f18a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000f240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000f340
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000f2fc
cmp dword [ebp - 4], 0x50000000
jb 0x1000f27c
cmp dword [ebp - 4], 0x80000000
ja 0x1000f27c
mov dword [ebp - 4], 0x80010000
jmp 0x1000f255
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000f2a2
jmp 0x1000f2fc
cmp dword [ebp - 0x14], 0x10000
jne 0x1000f2e5
cmp dword [ebp - 0x18], 0x10000
jb 0x1000f2e5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000f2d8
mov eax, dword [ebp - 8]
jmp 0x1000f2fe
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000f2f7
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000f340
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000f255
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000fa70
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1000fa85
xor eax, eax
jmp 0x1000fafa
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x1000fab2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x1000faf5
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x1000faf3
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1000faef
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x1000faf3
xor eax, eax
jmp 0x1000fafa
jmp 0x1000faa9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1000fcc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10121cc0]
mov dword [ebp - 4], eax
jmp 0x1000fcd9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000fcf6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000fcd0
mov esp, ebp
pop ebp
ret
Function at 0x10010140
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10121cd0], eax
je 0x1001015e
mov eax, 0x10dd
jmp 0x1001023f
mov eax, dword [0x10121ce0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100101dc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100101ba
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100101ba
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000f7e0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10010166
mov dword [0x10121ce0], 0
call fcn.1000fb00
mov ecx, dword [0x10121cdc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10010229
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x100101f4
mov dword [0x10121cdc], 0
mov dword [0x10121cd0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10010730
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10121cd4], 0
je 0x10010749
mov eax, dword [0x10121cd4]
jmp 0x100107e9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1001075b
xor eax, eax
jmp 0x100107e9
push 8
call fcn.1001126a
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100107b1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1001079a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10121cd4], eax
mov dword [0x10121cd8], 0
mov eax, dword [ebp - 8]
jmp 0x100107e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100107cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1001077b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10121cdc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10121cdc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10011156
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001c018]
jne 0x10011160
repz ret
jmp fcn.10011699
Function at 0x40b110
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46681b
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.0045b336
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b192
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045924d
mov eax, dword [eax]
push 0x47c1c0
push eax
call fcn.0044c0d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045b5c1
test bl, bl
je 0x40b192
push 0x47c1c0
lea ecx, [esp + 0xc]
call fcn.0045b951
push 0x47fd34
lea ecx, [esp + 0xc]
call fcn.0045b951
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 0x40b1ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045b5c1
jmp 0x40b299
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 0x40b252
lea edx, [esp + 0x7c]
push 0x47fd30
push edx
call fcn.0044c0d4
add esp, 8
test eax, eax
je 0x40b252
lea eax, [esp + 0x7c]
push 0x47fd2c
push eax
call fcn.0044c0d4
add esp, 8
test eax, eax
je 0x40b252
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 0x40b1e2
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.0045b5c1
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 0x40ba90
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 0x40baf2
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 0x40bb00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46689b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x486248]
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 0x40bc38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bb66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b5c1
xor eax, eax
jmp 0x40bcaf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045b6fe
push esi
lea ecx, [esp + 0xc]
call fcn.0045b98d
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 0x40bc8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040ba90
test eax, eax
jne 0x40bc8d
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.0040ba90
test eax, eax
jne 0x40bc8d
lea eax, [esp + 0x14]
push 0x47fd48
push eax
call fcn.0044d110
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bc6c
lea ecx, [esp + 0x14]
push 0x47fd44
push ecx
call fcn.0044d090
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bc6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bc6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045b6ae
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bb7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b5c1
xor eax, eax
jmp 0x40bcaf
mov byte [esi], 0
push 0x47fd40
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.0045b5c1
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 0x41c5a0
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 0x41c60e
cmp si, 0x69
ja 0x41c60e
add esi, 0xffd0
cmp si, 0x11
je 0x41c5de
push 0x11
call edi
test ax, ax
jge 0x41c5de
or esi, 0x2000
cmp si, 0x10
je 0x41c5f3
push 0x10
call edi
test ax, ax
jge 0x41c5f3
or esi, 0x4000
cmp si, 0x12
je 0x41c608
push 0x12
call edi
test ax, ax
jge 0x41c608
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41c61b
mov esi, 0xbd
jmp 0x41c5cf
cmp si, 0x6e
jne 0x41c628
mov esi, 0xbe
jmp 0x41c5cf
cmp si, 0x6f
jne 0x41c5c9
mov esi, 0xbf
jmp 0x41c5cf

Function at 0x41dcc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4968a0]
xor edx, edx
cmp eax, edx
jne 0x41dce6
xor eax, eax
mov byte [eax + 0x4967a0], al
inc eax
cmp eax, 0x100
jl 0x41dcce
mov dword [0x4968a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4967a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41dd77
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 0x41dd4a
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 0x41dd18
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ddf0
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 0x41de43
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 0x41de2a
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