joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004a860
Capabilities:
Accept command line arguments
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
push ebx
push esi
push edi
mov ecx, 0x7c
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
call esi
mov ebx, dword [ebp + 8]
cmp eax, ebx
jne 0x1004a935
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
test edx, edx
je 0x1004a90c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x10]
not ecx
dec ecx
mov esi, ecx
cmp esi, eax
jb 0x1004a8d9
lea esi, [eax - 1]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1004a91d
test eax, eax
jbe 0x1004a91d
push esi
push edx
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esi + edi], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1004a91d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jbe 0x1004a91d
mov byte [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.1002ca20
test eax, eax
je 0x1004a950
push 1
push str.SeDebugPrivilege
call esi
push eax
call fcn.100538c0
add esp, 0xc
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x1004a97a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
call fcn.1004c4d0
add esp, 4
test eax, eax
je 0x1004a99c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], 0
mov ecx, dword [eax + 1]
mov dword [ebp + 8], ecx
call fcn.1002ca20
test eax, eax
je 0x1004aa07
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
push edx
push 4
push eax
push ecx
push esi
call ebx
test eax, eax
je 0x1004aa07
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x20c]
push 0x1f4
push eax
push ecx
push esi
call ebx
test eax, eax
je 0x1004aa07
mov edi, 1
jmp 0x1004aa07
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1004aa5c
mov eax, dword [ebp - 0x14]
xor edi, edi
cmp eax, 0x1f4
jb 0x1004aa26
mov eax, 0x1f3
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jb 0x1004aa33
lea eax, [ecx - 1]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1004aa5c
test ecx, ecx
jbe 0x1004aa5c
lea edx, [ebp - 0x20c]
push eax
push edx
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov edi, 1
mov byte [eax + esi], 0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10050fe0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x100579e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.10021c90
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.10021c90
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x10051118
mov edx, dword [0x10064b70]
mov cx, word [0x10064b74]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.1001a440
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.10022320
lea ecx, [esp + 0x14]
call fcn.1001a220
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x2c]
push 0x104
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [esp + 0x2c]
mov word [esp + 0x232], bx
push ecx
lea ecx, [esp + 0x18]
call fcn.1001afa0
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.10022320
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.1001acc0
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.1001acc0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x1005103b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x10053e20
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10053e6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10053e6b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x10053eb0
test esi, esi
je 0x10053ec1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x10053ebd
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
jne 0x10053ed0
mov edi, dword [edi]
test edi, edi
je 0x10053ed0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x430850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d2530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.004c37ff
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.00435930
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x4308a4
jmp dword [ecx*4 + 0x430a0c]
mov al, byte [esi]
test al, al
je 0x4308d2
cmp al, 0x20
je 0x4308be
cmp al, 0xa1
jne 0x4308d2
cmp byte [esi + 1], al
jne 0x4308d2
test al, 0x80
je 0x4308ca
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4308d2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4308b1
test ecx, ecx
je case.default.0x4308a4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x4308a4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x430918
cmp dl, 0xa1
jne 0x43090c
cmp byte [eax + 1], 0xa1
jne 0x43090c
test ecx, ecx
jne 0x430904
mov edi, eax
mov ecx, 1
inc eax
jmp 0x43092c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x430946
jmp 0x43092c
cmp dl, 0x20
jne 0x43092a
test ecx, ecx
jne 0x430923
mov edi, eax
mov ecx, 1
jmp 0x43092c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x4308ec
cmp ecx, 1
jne case.default.0x4308a4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x4308a4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x4308a4
mov al, byte [esi]
test al, al
je 0x43099e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x430984
mov cl, byte [esi + 1]
test cl, cl
je 0x43099e
cmp al, 0xa1
jne 0x430974
cmp cl, al
je 0x430981
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00435c00
inc esi
jmp 0x430996
cmp al, 0x20
je 0x430996
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00435c40
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x43095d
push 0
lea ecx, [esp + 0x14]
call fcn.00435c40
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00446dc0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x4309d1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x4f5560
call fcn.00435b30
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004c3791
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x432a90
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4d26a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x51b8b8]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.00432560
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x432b32
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x432beb
mov edx, dword [esi + 8]
push edx
call fcn.00445b40
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x432b82
cmp eax, 0x80000301
jne 0x432b50
mov eax, dword [esi]
jmp 0x432b5d
push 0
push esi
push 0x7d1
call fcn.0044b200
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x432be0
jmp 0x432bda
cmp eax, reloc.OLEAUT32.dll_SysReAllocStringLen
jne 0x432bb1
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x432be0
jmp 0x432bda
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x432be0
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x432be0
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004c3791
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x43d520
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d2cdb
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.004c3506
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x43d5a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c0b2a
mov eax, dword [eax]
push 0x511be8
push eax
call fcn.004ab4e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c3791
test bl, bl
je 0x43d5a2
push 0x511be8
lea ecx, [esp + 0xc]
call fcn.004c3b6d
push 0x511bf4
lea ecx, [esp + 0xc]
call fcn.004c3b6d
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 0x43d5de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c3791
jmp 0x43d6a9
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 0x43d662
lea edx, [esp + 0x7c]
push 0x511bf0
push edx
call fcn.004ab4e4
add esp, 8
test eax, eax
je 0x43d662
lea eax, [esp + 0x7c]
push 0x511bec
push eax
call fcn.004ab4e4
add esp, 8
test eax, eax
je 0x43d662
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 0x43d5f2
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.004c3791
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 0x43dea0
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 0x43df02
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 0x43df10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d2d5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x51b8b8]
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 0x43e048
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x43df76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c3791
xor eax, eax
jmp 0x43e0bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004c391a
push esi
lea ecx, [esp + 0xc]
call fcn.004c3ba9
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 0x43e09d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0043dea0
test eax, eax
jne 0x43e09d
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 SysReAllocString
mov ecx, edi
call fcn.0043dea0
test eax, eax
jne 0x43e09d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.004acce3
mov esi, eax
add esp, 8
test esi, esi
jne 0x43e07c
lea ecx, [esp + 0x14]
push 0x511c00
push ecx
call fcn.004aca80
mov esi, eax
add esp, 8
test esi, esi
jne 0x43e07c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43e07f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004c38ca
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43df8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c3791
xor eax, eax
jmp 0x43e0bf
mov byte [esi], 0
push 0x511bfc
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.004c3791
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 0x452cb0
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 0x452d1e
cmp si, 0x69
ja 0x452d1e
add esi, 0xffd0
cmp si, 0x11
je 0x452cee
push 0x11
call edi
test ax, ax
jge 0x452cee
or esi, 0x2000
cmp si, 0x10
je 0x452d03
push 0x10
call edi
test ax, ax
jge 0x452d03
or esi, 0x4000
cmp si, 0x12
je 0x452d18
push 0x12
call edi
test ax, ax
jge 0x452d18
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x452d2b
mov esi, 0xbd
jmp 0x452cdf
cmp si, 0x6e
jne 0x452d38
mov esi, 0xbe
jmp 0x452cdf
cmp si, 0x6f
jne 0x452cd9
mov esi, 0xbf
jmp 0x452cdf

Function at 0x454220
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d3e11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
mov ebp, dword [esp + 0x160]
push esi
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.004c2733
mov esi, dword [esp + 0x16c]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004c2560
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0xc]
push eax
call fcn.004c37ff
lea ecx, [esp + 0xc]
push str..
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x16c], 0
call fcn.004c3a26
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.004c3791
test edi, edi
je 0x45436e
mov edx, dword [0x51b8b8]
mov dword [esp + 0x10], edx
cmp edi, 0xffffffff
mov byte [esp + 0x160], 1
je 0x45435d
cmp byte [esp + 0x44], 0x2e
je 0x454342
lea eax, [esp + 0xc]
push 0x5126ec
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004c3a26
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 2
call fcn.004c38ca
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.004c3791
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.004c3b6d
test byte [esp + 0x18], 0x10
mov eax, dword [esi + 8]
je 0x454328
push 1
jmp 0x45432a
push 0
push eax
mov ecx, esi
call fcn.004c2679
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.004c28a8
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4542ce
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.004c3791
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.004c3791
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret
Function at 0x4543a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4d3e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
lea ecx, [esp + 8]
call fcn.004c26a0
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], esi
call fcn.004c2999
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x44], 1
call fcn.00454220
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
mov ebx, eax
jle 0x45443d
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
mov eax, dword [esp + 0x28]
cmp dword [eax + esi*4], 0
je 0x45442c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + esi*4]
push eax
call fcn.004543a0
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, dword [edx + esi*4]
push eax
call edi
jmp 0x454436
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
push eax
call ebp
inc esi
cmp esi, ebx
jl 0x454406
pop edi
pop ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.004c29cc
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c26d3
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x454470
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x20
jne 0x454482
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x45447a
cmp byte [esi], 0
je 0x4544b1
cmp byte [esi + 1], 0x3a
jne 0x45449f
mov al, byte [esi + 2]
test al, al
je 0x4544b1
cmp al, 0x5c
jne 0x45449f
mov al, byte [esi + 3]
test al, al
je 0x4544b1
push esi
call fcn.004543a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x454900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x52a618]
xor edx, edx
cmp eax, edx
jne 0x454926
xor eax, eax
mov byte [eax + 0x52a518], al
inc eax
cmp eax, 0x100
jl 0x45490e
mov dword [0x52a618], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x52a518
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4549b7
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 0x45498a
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 0x454958
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x454a30
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 0x454a83
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 0x454a6a
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