joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a7fa
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0040d6a3
cmp byte [0x42696d], 0
jne 0x40a888
push 6
push dword [0x410014]
lea eax, [ebp - 0x820]
push eax
call fcn.00407568
push eax
call fcn.0040d2d3
test eax, eax
jne 0x40a888
push 0x40e87c
call fcn.0040d690
lea eax, [ebp - 0x820]
push eax
call fcn.00409556
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.004092c3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40a94f
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x425849], 1
cmp dword [0x425858], ebx
je 0x40a977
push 0x7d
call fcn.004090ab
push eax
push 2
push dword [0x425858]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x425858]
mov dword [0x42584c], ebx
mov byte [0x425848], 1
cmp eax, ebx
je 0x40a9d8
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42697c], ebx
jne 0x40a9a6
cmp byte [0x42696c], bl
je 0x40a9ae
cmp dword [0x425850], ebx
jne 0x40a9d0
push ebx
push 1
push 0x111
push dword [0x425858]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40a9d0
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040990c
cmp dword [0x425858], ebx
jne 0x40a9c4
cmp byte [0x425860], bl
pop ebx
je 0x40a9e6
jmp fcn.0040a7fa
ret

Function at 0x40aa22
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x425868], bl
je 0x40aaa2
cmp word [0x424728], bx
je 0x40aaa2
push esi
push 0x424728
lea esi, [ebp - 0x808]
call fcn.0040a9e7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40aaa2
push dword [ebp + 8]
call fcn.00409556
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40aaa7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004012c0
cmp byte [0x425868], 0
je 0x40ab2d
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x80c]
call fcn.0040a9e7
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40ab2d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ab24
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00409580
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
Function at 0x40ac55
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x425846], 0
mov eax, dword [ebp + 0xc]
mov dword [0x425738], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42573c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x425730], eax
je 0x40ac85
xor eax, eax
inc eax
jmp 0x40acae
cmp byte [0x425847], 0
je 0x40ac93
push 2
pop eax
jmp 0x40acae
push dword [ebp + 8]
push 0x409ee5
push dword [0x425858]
push str.REPLACEFILEDLG
push dword [0x425734]
call esi
dec eax
je 0x40ad00
dec eax
je 0x40ad12
dec eax
je 0x40acf9
dec eax
jne 0x40acdd
push dword [ebp + 8]
push 0x40a231
push dword [0x425858]
push str.RENAMEDLG
push dword [0x425734]
call esi
test eax, eax
je 0x40ac5f
mov al, 0x52
jmp 0x40ad0d
dec eax
je 0x40acee
dec eax
mov al, 0x4e
jne 0x40ad0d
mov byte [0x425847], 1
jmp 0x40ad0d
mov byte [0x42584a], 1
mov al, 0x43
jmp 0x40ad0d
mov byte [0x425846], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40ad0d
Function at 0x40ae4f
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.004012c0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40b086
push esi
call fcn.00409556
cmp eax, 0x3f6
jae 0x40b086
push edi
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.004092c3
movzx ecx, word [esi]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x5c0
cmp cx, 0x22
jne 0x40aea6
lea eax, [esi + 2]
mov dword [ebp - 0x30], eax
jmp 0x40aea9
mov dword [ebp - 0x30], esi
xor eax, eax
cmp cx, bx
je 0x40aeff
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40aed1
jmp 0x40aec1
cmp word [esi + eax*2], 0x22
je 0x40aeca
inc eax
cmp word [esi + eax*2], bx
jne 0x40aeba
jmp 0x40aed1
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40aeeb
cmp word [esi + eax*2 + 2], 0x2f
je 0x40aeeb
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40aeb2
jmp 0x40aeff
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40aef9
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x2c], eax
cmp byte [ebp + 8], bl
jne 0x40af14
cmp word [0x42606a], bx
je 0x40af14
mov dword [ebp - 0x2c], 0x42606a
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 1
call fcn.004076db
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40af40
push str..inf
push eax
call fcn.0040d216
test eax, eax
jne 0x40af40
mov dword [ebp - 0x34], str.Install
push dword [ebp - 0x30]
call fcn.004038db
mov bl, al
test bl, bl
je 0x40af66
lea eax, [ebp - 0x1040]
push eax
push dword [ebp - 0x30]
call fcn.00407339
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], 0
je 0x40afa4
test bl, bl
jne 0x40afa4
push dword [ebp - 0x30]
lea eax, [ebp - 0x840]
push eax
call fcn.00409580
push str..exe
lea eax, [ebp - 0x840]
push eax
call fcn.004095ed
lea eax, [ebp - 0x840]
push eax
call fcn.004038db
test al, al
je 0x40b085
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x40]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x40afd6
and dword [ebp - 0x3c], 0xfffffbff
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], esi
call edi
test eax, eax
setne al
test al, al
je 0x40b085
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor bl, bl
cmp byte [0x425860], bl
jne 0x40afeb
cmp byte [ebp + 8], bl
je 0x40b021
mov eax, dword [0x425858]
test eax, eax
je 0x40b00b
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40b00b
push 0
push dword [0x425858]
call esi
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 8]
call fcn.0040a7bb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40b041
push str..exe
push dword [ebp - 4]
call fcn.0040d216
test eax, eax
je 0x40b071
cmp byte [0x425860], 0
je 0x40b057
cmp byte [ebp + 8], 0
jne 0x40b057
push 0x1b58
jmp 0x40b06b
xor eax, eax
cmp byte [ebp + 8], al
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x40b085
cmp byte [ebp + 8], 0
je 0x40b085
push 1
push dword [0x425858]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c474
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
call fcn.0040ca25
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42d8d0
call fcn.0040d3d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp esi, ebx
je 0x40c502
push esi
call fcn.0040a542
cmp byte [0x425869], bl
je 0x40c4fa
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40c4ef
push 0x20000
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40c4e8
push esi
push str.sfxcmd
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c502
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x424f30
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x425840], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x425840]
mov dword [0x424f2c], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x424f28], eax
call fcn.0040d713
push esi
mov ecx, 0x426998
call fcn.00409094
lea ecx, [ebp - 0x40]
call fcn.004050c6
lea ecx, [ebp - 0x24]
call fcn.004050c6
push 0x64
call fcn.00409c15
push 0x64
mov dword [ebp - 0x28], eax
call fcn.00409c15
push ebx
push 0x40bcc5
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x424724], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x424720], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x24]
mov dword [0x424720], ebx
mov dword [0x424724], ebx
call fcn.004050dc
lea ecx, [ebp - 0x40]
call fcn.004050dc
lea ecx, [ebp - 8]
call fcn.0040d765
cmp byte [0x425860], bl
je 0x40c5d7
call fcn.0040a7fa
push 0x100
push ebx
push 0x425740
call fcn.004092c3
cmp dword [0x42697c], ebx
jbe 0x40c5fa
push dword [0x426970]
call fcn.00409140
push dword [0x424f2c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x424f28]
cmp eax, ebx
je 0x40c614
push eax
call esi
cmp dword [0x42698c], ebx
jne 0x40c633
cmp byte [0x42584a], bl
je 0x40c633
push 0xff
mov ecx, 0x42698c
call fcn.0040191b
mov eax, dword [0x426984]
mov byte [0x42584a], 1
cmp eax, ebx
je 0x40c649
push eax
call fcn.0040a7bb
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x42698c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40cd18
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x422680]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x4100d0]
mov ecx, dword [0x422688]
mov dword [0x422680], eax
movzx eax, al
add eax, dword [0x422684]
imul eax, eax, 0x8088405
inc eax
mov dword [0x422684], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4100d0]
mov eax, dword [esp + 4]
mov dword [0x422688], ecx
ret 4

Function at 0x40cdab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040cd72
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004092f0
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040ccf8
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040cd18
inc esi
cmp esi, 0xc
jl 0x40cdca
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x411548]
test byte [eax + 0x28], 2
movzx eax, byte [0x4215b7]
jne 0x40ce05
movzx eax, byte [0x4215bf]
movzx ecx, cx
cmp ecx, eax
je 0x40ce11
or eax, 0xffffffff
jmp 0x40ce56
mov ecx, dword [0x421560]
mov eax, ecx
cdq
cmp edx, dword [0x410924]
push edi
jl 0x40ce33
mov edx, dword [0x410920]
jg 0x40ce2f
cmp eax, edx
jbe 0x40ce33
mov edi, edx
jmp 0x40ce35
mov edi, ecx
mov esi, dword [0x421558]
jmp 0x40ce4f
dec edi
call fcn.0040ccf8
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040cd18
inc esi
test edi, edi
jne 0x40ce3d
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x40d6a3
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40dea0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c8bb
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.004612c9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40df22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f1e0
mov eax, dword [eax]
push 0x487210
push eax
call fcn.00451e14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461554
test bl, bl
je 0x40df22
push 0x487210
lea ecx, [esp + 0xc]
call fcn.004618e4
push 0x48ad84
lea ecx, [esp + 0xc]
call fcn.004618e4
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 0x40df5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461554
jmp 0x40e029
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 0x40dfe2
lea edx, [esp + 0x7c]
push 0x48ad80
push edx
call fcn.00451e14
add esp, 8
test eax, eax
je 0x40dfe2
lea eax, [esp + 0x7c]
push 0x48ad7c
push eax
call fcn.00451e14
add esp, 8
test eax, eax
je 0x40dfe2
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 0x40df72
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.00461554
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 0x40e820
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 0x40e882
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 0x40e890
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c93b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x491298]
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 0x40e9c8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e8f6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461554
xor eax, eax
jmp 0x40ea3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461691
push esi
lea ecx, [esp + 0xc]
call fcn.00461920
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 0x40ea1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040e820
test eax, eax
jne 0x40ea1d
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.0040e820
test eax, eax
jne 0x40ea1d
lea eax, [esp + 0x14]
push 0x48ad98
push eax
call fcn.00452e50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e9fc
lea ecx, [esp + 0x14]
push 0x48ad94
push ecx
call fcn.00452dd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e9fc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40e9ff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461641
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40e90e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461554
xor eax, eax
jmp 0x40ea3f
mov byte [esi], 0
push 0x48ad90
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.00461554
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 0x421f00
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 0x421f6e
cmp si, 0x69
ja 0x421f6e
add esi, 0xffd0
cmp si, 0x11
je 0x421f3e
push 0x11
call edi
test ax, ax
jge 0x421f3e
or esi, 0x2000
cmp si, 0x10
je 0x421f53
push 0x10
call edi
test ax, ax
jge 0x421f53
or esi, 0x4000
cmp si, 0x12
je 0x421f68
push 0x12
call edi
test ax, ax
jge 0x421f68
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x421f7b
mov esi, 0xbd
jmp 0x421f2f
cmp si, 0x6e
jne 0x421f88
mov esi, 0xbe
jmp 0x421f2f
cmp si, 0x6f
jne 0x421f29
mov esi, 0xbf
jmp 0x421f2f

Function at 0x4236a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a1960]
xor edx, edx
cmp eax, edx
jne 0x4236c6
xor eax, eax
mov byte [eax + 0x4a1860], al
inc eax
cmp eax, 0x100
jl 0x4236ae
mov dword [0x4a1960], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a1860
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x423757
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 0x42372a
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 0x4236f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4237d0
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 0x423823
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 0x42380a
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 0x42a260
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 0x42a3f8
cmp ebp, ebx
jle 0x42a3f8
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 0x42a2be
dec eax
or eax, 0xfffffff8
inc eax
je 0x42a2c5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x42a2d4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42a2db
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00461295
add esp, 4
cmp eax, ebx
je 0x42a2fc
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.00461295
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 0x42a3ee
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 0x42a3d5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x42a3c1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x42a3b6
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 0x42a3c4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x42a3c4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x42a360
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 0x42a351
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
Function at 0x42d440
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e278
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x42d479
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.00468c42
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.00468c8e
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0042d500
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00468ccb
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24