joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401430
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404816
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x408018]
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
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x13c], eax
cmp eax, 0xffffffff
je 0x4015f6
lea ecx, [ebp - 0x138]
push ecx
push eax
mov dword [ebp - 0x138], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4015f6
jmp 0x4014a0
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 7
mov eax, str.PointBl
mov dword [ebp - 0x140], esp
mov byte [esi], bl
call fcn.004034e0
sub esp, 0x1c
mov dword [ebp - 4], ebx
mov esi, esp
lea eax, [ebp - 0x114]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x144], esp
mov byte [esi], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4014f0
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x114]
call fcn.004034e0
mov dword [ebp - 4], 0xffffffff
call fcn.004013a0
add esp, 0x38
cmp al, bl
jne 0x4015fb
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 7
mov eax, str.pointbl
mov dword [ebp - 0x144], esp
mov byte [esi], bl
call fcn.004034e0
sub esp, 0x1c
mov dword [ebp - 4], 1
mov esi, esp
lea eax, [ebp - 0x114]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x140], esp
mov byte [esi], bl
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401570
sub eax, ecx
mov edi, eax
lea eax, [ebp - 0x114]
call fcn.004034e0
mov dword [ebp - 4], 0xffffffff
call fcn.004013a0
add esp, 0x38
cmp al, bl
jne 0x4015fb
mov ecx, str.PointBlank.exe
lea eax, [ebp - 0x114]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4015c4
cmp dl, bl
je 0x4015c0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4015c4
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4015a4
xor eax, eax
jmp 0x4015c9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4015fb
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4014a0
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x40160b
mov edx, dword [ebp - 0x130]
push edx
push ebx
push 0x10
call dword [sym.imp.KERNEL32.dll_OpenProcess]
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.00403cd0
mov esp, ebp
pop ebp
ret
Function at 0x403190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404888
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403322
cmp byte [ebx + 0x49], 0
je 0x403322
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403316
lea esi, [ebp - 0x2c]
call fcn.00402e40
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403203
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40323b
dec eax
je 0x40323f
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x40331d
call fcn.004021f0
xor al, al
jmp 0x403324
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40324f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40327d
cmp edi, 0x10
jae 0x40325e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40330e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40331a
test esi, esi
jne 0x4031f7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40333f
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40333f
cmp edi, esi
jae 0x4032f7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.004035b0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4031f7
mov ecx, eax
cmp edi, 0x10
jae 0x4032d3
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4032ee
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4031f1
test esi, esi
jne 0x4032c9
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403306
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4031f1
lea esi, [ebp - 0x2c]
call fcn.004021f0
xor al, al
jmp 0x403324
lea esi, [ebp - 0x2c]
call fcn.004021f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403cd0
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x403cd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408018]
jne 0x403cda
repz ret
jmp fcn.004040ed
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x1000ec86
Capabilities:
Hash data using djb2

Disassembly:
movzx eax, word [ecx]
mov edx, 0x1505
push esi
xor esi, esi
jmp 0x1000eca0
imul edx, edx, 0x21
movzx eax, ax
xor edx, eax
inc esi
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1000ec93
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x1000f8cb
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1000f8d7
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x1000f8ff
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1000f8e5
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10012968
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10012977
pop dword [ebp - 0x14]
mov eax, 0x10012977
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x177d562a
sub dword [ebp - 0x24], 0xc92b10df
mov dword [ebp - 0x20], 0x820345f0
add dword [ebp - 0x20], 0xb0300655
mov dword [ebp - 0x1c], 0x61dd5b2f
sub dword [ebp - 0x1c], 0x15911701
mov dword [ebp - 0x18], 0xe4fa7a46
add dword [ebp - 0x18], 0x1b0585ba
lea eax, [ebp - 0x24]
push eax
mov eax, 0x49bb74e8
sub eax, 0x39b903ec
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xccab0e89
add dword [ebp - 0x24], 0xa7c75acd
mov dword [ebp - 0x20], 0x152df5a2
add dword [ebp - 0x20], 0x2c3e6bd3
mov dword [ebp - 0x1c], 0x90a5e05c
sub dword [ebp - 0x1c], 0x2d3673f0
mov dword [ebp - 0x18], 0x147611e3
add dword [ebp - 0x18], 0xeb89ee1d
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x159e173d
add eax, 0xfa6458eb
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x414e6
push 0
call eax
mov ecx, 0x129059b2
add ecx, 0xed6ffc99
xor edx, edx
add edx, eax
mov ebx, 0xd2ad5f2d
sub ebx, 0xc2a9432d
add ebx, dword [ebp - 0x14]
mov edi, 0x1d1963f1
add edi, 0x793b86d3
xor dword [ebp - 0xc], 0x69b432a8
mov esi, dword [ebx]
sub dword [ebp - 8], 0x4545c936
xor esi, edi
add dword [ebp - 0x10], eax
mov dword [edx], esi
add dword [ebp - 0xc], ebx
add edx, 4
add ebx, 4
loop 0x10012a96
add eax, 0x7040c86e
add eax, 0x8fc08391
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x10002290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100022e8
cmp byte [esi + ebx - 1], 0xa
je 0x100022bc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10003118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x47ad90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ae11
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
call sub.kernel32.dll_GetACP
test eax, eax
jns 0x47adce
call fcn.00403b1c
push eax
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404c20
mov eax, dword [ebp - 0x14]
pop edx
call fcn.00408fd8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x4e4
jne 0x47adfb
mov dword [ebp - 8], 0x4e3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ae18
lea eax, [ebp - 0x14]
call fcn.004049b0
ret

Function at 0x47ae20
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 4
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47aea6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47ae95
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 4
call fcn.00402948
mov eax, dword [ebp - 8]
push eax
push 0x10
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ae9c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x47bb78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x47bc24
push 0x47bc2c
mov eax, dword [0x483664]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x483664]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x413db0]
call fcn.00403bac
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x483664]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeResource
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.0041812c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [ebp - 0x14]
call fcn.00403bdc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008ec9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10008ed8
pop dword [ebp - 0x38]
mov eax, 0xbfa949d
add eax, 0x405fa3b
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x793e617b
add dword [ebp - 0x48], 0xd513e3d0
mov dword [ebp - 0x44], 0xd49b926f
add dword [ebp - 0x44], 0x5d97b9d6
mov dword [ebp - 0x40], 0xaebec74
add dword [ebp - 0x40], 0x416057ba
mov dword [ebp - 0x3c], 0x8e0c7142
sub dword [ebp - 0x3c], 0x8e0c7142
lea eax, [ebp - 0x48]
push eax
mov eax, 0x4d16ae90
sub eax, 0x3d15ee6c
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x9264184d
sub dword [ebp - 0x48], 0x1df1aef7
mov dword [ebp - 0x44], 0x28af730c
sub dword [ebp - 0x44], 0xe7431197
mov dword [ebp - 0x40], 0x968ce09e
sub dword [ebp - 0x40], 0x331d7432
mov dword [ebp - 0x3c], 0x5557d106
sub dword [ebp - 0x3c], 0x5557d106
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x35ec0
push 0
call eax
mov ecx, 0x40fcc930
add ecx, 0xbf037692
mov edi, eax
mov ebx, 0x344887c2
sub ebx, 0x244413c2
add ebx, dword [ebp - 0x38]
mov edx, 0x26c15f68
add edx, 0xf0f8f619
add dword [ebp - 0xc], ecx
mov esi, dword [ebx]
sub dword [ebp - 0x2c], 0xd08bd883
xor esi, edx
mov dword [ebp - 0x30], 0x89131456
mov dword [edi], esi
xor dword [ebp - 0xc], edi
add edi, 0x736c470b
sub edi, 0x736c4707
add ebx, 0x5dbce34e
add ebx, 0xa2431cb6
loop 0x10008ff5
add eax, 0xf1db
mov ebx, eax
add eax, 0xe510a27e
add eax, 0x1aef5d87
mov ecx, 0x6757d027
sub ecx, 0x5757d027
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4067b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a9cb
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.0046f915
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406832
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046d827
mov eax, dword [eax]
push 0x497c28
push eax
call fcn.00460524
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046fba0
test bl, bl
je 0x406832
push 0x497c28
lea ecx, [esp + 0xc]
call fcn.0046ff30
push 0x497c34
lea ecx, [esp + 0xc]
call fcn.0046ff30
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 0x40686e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046fba0
jmp 0x406939
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 0x4068f2
lea edx, [esp + 0x7c]
push 0x497c30
push edx
call fcn.00460524
add esp, 8
test eax, eax
je 0x4068f2
lea eax, [esp + 0x7c]
push 0x497c2c
push eax
call fcn.00460524
add esp, 8
test eax, eax
je 0x4068f2
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 0x406882
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.0046fba0
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 0x407140
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 0x4071a2
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 0x4071b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47aa4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a3150]
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 0x4072e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407216
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046fba0
xor eax, eax
jmp 0x40735f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046fcdd
push esi
lea ecx, [esp + 0xc]
call fcn.0046ff6c
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 0x40733d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00407140
test eax, eax
jne 0x40733d
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.00407140
test eax, eax
jne 0x40733d
lea eax, [esp + 0x14]
push 0x497c44
push eax
call fcn.004615a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40731c
lea ecx, [esp + 0x14]
push 0x497c40
push ecx
call fcn.00461520
mov esi, eax
add esp, 8
test esi, esi
jne 0x40731c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40731f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046fc8d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40722e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046fba0
xor eax, eax
jmp 0x40735f
mov byte [esi], 0
push 0x497c3c
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.0046fba0
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 0x4179a0
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 0x417a0e
cmp si, 0x69
ja 0x417a0e
add esi, 0xffd0
cmp si, 0x11
je 0x4179de
push 0x11
call edi
test ax, ax
jge 0x4179de
or esi, 0x2000
cmp si, 0x10
je 0x4179f3
push 0x10
call edi
test ax, ax
jge 0x4179f3
or esi, 0x4000
cmp si, 0x12
je 0x417a08
push 0x12
call edi
test ax, ax
jge 0x417a08
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x417a1b
mov esi, 0xbd
jmp 0x4179cf
cmp si, 0x6e
jne 0x417a28
mov esi, 0xbe
jmp 0x4179cf
cmp si, 0x6f
jne 0x4179c9
mov esi, 0xbf
jmp 0x4179cf

Function at 0x4191e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b38a0]
xor edx, edx
cmp eax, edx
jne 0x419206
xor eax, eax
mov byte [eax + 0x4b37a0], al
inc eax
cmp eax, 0x100
jl 0x4191ee
mov dword [0x4b38a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b37a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419297
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 0x41926a
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 0x419238
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x419310
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 0x419363
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 0x41934a
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