joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b012
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x47c
mov eax, 0x444b47
call fcn.0042bcc0
mov esi, edx
mov dword [ebp - 0x47c], esi
mov edi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x484], ecx
mov dword [ebp - 0x480], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ecx
mov dword [ebp - 0x488], edi
mov word [edi], ax
mov dword [ebp - 4], ecx
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ecx
push eax
mov dword [ebp - 0x484], 1
call fcn.0042b470
add esp, 0xc
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x440]
mov dword [ebp - 0x428], 0x104
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x41b1f9
xor esi, esi
test eax, eax
je 0x41b1f9
lea eax, [ebp - 0x440]
mov dword [ebp - 0x424], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41b1b6
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x45c]
call fcn.00402874
push dword [ebp - 0x480]
mov edx, dword [ebp - 0x47c]
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x478]
mov dword [ebp - 4], 1
call fcn.0041aef0
pop ecx
pop ecx
mov byte [ebp - 4], 2
cmp dword [ebx + 0x10], 0
je 0x41b1c5
cmp dword [ebx + 0x14], 0x10
jb 0x41b17c
mov eax, dword [ebx]
jmp 0x41b17e
mov eax, ebx
push dword [ebx + 0x10]
lea ecx, [ebp - 0x478]
push 0
push eax
call fcn.00402ca2
cmp eax, 0xffffffff
jne 0x41b1c5
push 0
push 1
lea ecx, [ebp - 0x478]
call fcn.00402d99
push 0
push 1
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 0
call fcn.00403476
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x41b0f5
jmp 0x41b1f9
lea eax, [ebp - 0x45c]
cmp edi, eax
je 0x41b1db
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00402f26
push 0
push 1
lea ecx, [ebp - 0x478]
call fcn.00402d99
push 0
push 1
lea ecx, [ebp - 0x45c]
call fcn.00403476
mov eax, edi
call fcn.0042bc6f
ret
Function at 0x41b327
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x264
mov eax, 0x444bf5
call fcn.0042bcc0
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
xor edi, edi
mov dword [ebp - 0x220], 7
inc edi
mov dword [ebp - 0x224], ebx
xor eax, eax
mov dword [ebp - 0x254], edi
mov word [ebp - 0x234], ax
push str.SoftwareTencentQQ2009QQPerf0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], edi
call fcn.00402874
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push ecx
cmovae eax, dword [ebp - 0x24c]
push 8
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b4a3
mov edi, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.0042b470
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x21c]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
inc edi
test ebx, ebx
jne 0x41b451
cmp dword [ebp - 0x224], eax
jbe 0x41b431
push 0x452dfc
call fcn.0040126a
pop ecx
push eax
push 0x452dfc
lea ecx, [ebp - 0x234]
call fcn.00402e83
lea eax, [ebp - 0x218]
push eax
call fcn.0040126a
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00402e83
push 0
cmp ebx, 0x103
pop ebx
jne 0x41b3bf
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x270]
cmovae edx, dword [ebp - 0x234]
call fcn.0041dd26
push eax
mov ecx, esi
call fcn.004027be
xor edi, edi
lea ecx, [ebp - 0x270]
push ebx
inc edi
push edi
call fcn.00402d99
push ebx
push edi
lea ecx, [ebp - 0x24c]
call fcn.00403476
push ebx
push edi
lea ecx, [ebp - 0x234]
call fcn.00403476
mov eax, esi
call fcn.0042bc6f
ret
Function at 0x41e981
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45a620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0xc], eax
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41e9ad
xor al, al
jmp 0x41ea1d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x41e9bf
xor al, al
jmp 0x41ea1c
push ebx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41ea0c
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x41ea10
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41ea1b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne al
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004273bf
mov esp, ebp
pop ebp
ret 4

Function at 0x41ea2e
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x44559f
call fcn.0042bcc0
mov edi, edx
mov esi, ecx
push 0x40
xor ebx, ebx
mov dword [ebp - 0x70], 0x44
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0042b470
add esp, 0xc
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x80], xmm0
push esi
call fcn.0040284c
mov esi, 0x451ecc
mov dword [ebp - 4], ebx
push esi
call fcn.0040126a
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00402e83
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00402ddd
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
lea ecx, [ebp - 0x28]
push ebx
sbb esi, esi
and esi, dword [ebp - 0x80]
push 1
call fcn.00403476
mov eax, esi
call fcn.0042bc6f
ret

Function at 0x41eb9a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45a620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x210], ax
mov edi, ecx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0042b470
add esp, 0xc
lea eax, [ebp - 0x210]
push ebx
push 0x1c
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41ec28
push esi
lea eax, [ebp - 0x210]
push eax
lea esi, [edi + 0x20]
call fcn.0040126a
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.004036d1
mov ebx, 0x44d0e4
push ebx
call fcn.0040126a
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.00402e83
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.00402ddd
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004273bf
mov esp, ebp
pop ebp
ret
Function at 0x43d74f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042dae8
mov dword [ebp - 0x14], eax
cmp dword [0x45ce68], esi
jne 0x43d842
push 0x800
push esi
push 0x44cf1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x43d7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43d922
push esi
push esi
push 0x44cf1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x43d922
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43d922
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45ce68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45ce6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45ce70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45ce78], eax
test eax, eax
je 0x43d83f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45ce74], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43d867
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43d85a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x43d87c
push 4
pop eax
jmp 0x43d924
cmp dword [ebp - 0x14], esi
je 0x43d87c
push dword [0x45ce68]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43d861
mov eax, dword [0x45ce74]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x43d8da
cmp dword [0x45ce78], edi
je 0x43d8da
push eax
call ebx
push dword [0x45ce78]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43d8da
test eax, eax
je 0x43d8da
call ecx
test eax, eax
je 0x43d8cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43d8cf
test byte [ebp - 8], 1
jne 0x43d8da
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x43d90a
mov eax, dword [0x45ce6c]
cmp eax, edi
je 0x43d907
push eax
call ebx
test eax, eax
je 0x43d907
call eax
mov esi, eax
test esi, esi
je 0x43d907
mov eax, dword [0x45ce70]
cmp eax, edi
je 0x43d907
push eax
call ebx
test eax, eax
je 0x43d907
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45ce68]
call ebx
test eax, eax
je 0x43d922
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x43d924
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004273bf
mov esp, ebp
pop ebp
ret
Function at 0x34077902
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x34077911
pop dword [ebp - 0x18]
mov eax, 0x7ffba172
sub eax, 0x4bf42861
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xab98ebcc
add dword [ebp - 0x28], 0xa2b9597f
mov dword [ebp - 0x24], 0x89dfd86f
add dword [ebp - 0x24], 0xa85373d6
mov dword [ebp - 0x20], 0xbe1b0831
sub dword [ebp - 0x20], 0x71cec403
mov dword [ebp - 0x1c], 0x991f8818
add dword [ebp - 0x1c], 0x66e077e8
lea eax, [ebp - 0x28]
push eax
mov eax, 0xa4b1a008
sub eax, 0x70ae8e40
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x85584a1d
add dword [ebp - 0x28], 0xef1a1f39
mov dword [ebp - 0x24], 0x5e7d247a
sub dword [ebp - 0x24], 0x1d10c305
mov dword [ebp - 0x20], 0x399fe5bd
sub dword [ebp - 0x20], 0xd6307951
mov dword [ebp - 0x1c], 0xad8a6d2e
add dword [ebp - 0x1c], 0x527592d2
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x44e15
push 0
call eax
mov ecx, 0x459c
mov edi, eax
mov ebx, 0x3409b800
add ebx, dword [ebp - 0x18]
mov edx, 0x21c405d4
sub edx, 0x5234e8c
mov esi, dword [ebx]
xor dword [ebp - 0xc], esi
xor esi, edx
mov dword [ebp - 0xc], 0x9c0776f2
mov dword [edi], esi
add dword [ebp - 0x10], 0xbc01b617
add edi, 0xd75e692c
add edi, 0x28a196d8
add ebx, 0x72869a28
add ebx, 0x8d7965dc
loop 0x34077a22
add eax, 0x10943
mov ebx, eax
add eax, 0x263f04fe
add eax, 0xd9c0fb07
mov ecx, 0x34030000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x3407b622
Capabilities:
Set registry value

Disassembly:
call fcn.34044726
test eax, eax
jl 0x3407b630
jmp fcn.3407ad34
ret

Function at 0x3407f0f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3403d054]
jne 0x3407fcb3
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x34086a80], eax
mov dword [0x34086a7c], ecx
mov dword [0x34086a78], edx
mov dword [0x34086a74], ebx
mov dword [0x34086a70], esi
mov dword [0x34086a6c], edi
mov word [0x34086a98], ss
mov word [0x34086a8c], cs
mov word [0x34086a68], ds
mov word [0x34086a64], es
mov word [0x34086a60], fs
mov word [0x34086a5c], gs
pushfd
pop dword [0x34086a90]
mov eax, dword [ebp]
mov dword [0x34086a84], eax
mov eax, dword [ebp + 4]
mov dword [0x34086a88], eax
lea eax, [ebp + 8]
mov dword [0x34086a94], eax
mov eax, dword [ebp - 0x320]
mov dword [0x340869d0], 0x10001
mov eax, dword [0x34086a88]
mov dword [0x34086984], eax
mov dword [0x34086978], 0xc0000409
mov dword [0x3408697c], 1
mov eax, dword [0x3403d054]
mov dword [ebp - 0x328], eax
mov eax, dword [0x34086850]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x340869c8], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x3403d3b4
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x340869c8], 0
jne 0x3407fda3
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x40e2f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f06b
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.00463b64
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e372
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004614bd
mov eax, dword [eax]
push 0x4861f4
push eax
call fcn.004542f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00463def
test bl, bl
je 0x40e372
push 0x4861f4
lea ecx, [esp + 0xc]
call fcn.0046417f
push 0x489d6c
lea ecx, [esp + 0xc]
call fcn.0046417f
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 0x40e3ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00463def
jmp 0x40e479
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 0x40e432
lea edx, [esp + 0x7c]
push 0x489d68
push edx
call fcn.004542f4
add esp, 8
test eax, eax
je 0x40e432
lea eax, [esp + 0x7c]
push 0x489d64
push eax
call fcn.004542f4
add esp, 8
test eax, eax
je 0x40e432
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 0x40e3c2
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.00463def
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 0x40ec70
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 0x40ecd2
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 0x40ece0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f0eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x490424]
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 0x40ee18
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ed46
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463def
xor eax, eax
jmp 0x40ee8f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00463f2c
push esi
lea ecx, [esp + 0xc]
call fcn.004641bb
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 0x40ee6d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040ec70
test eax, eax
jne 0x40ee6d
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.0040ec70
test eax, eax
jne 0x40ee6d
lea eax, [esp + 0x14]
push 0x489d80
push eax
call fcn.00455330
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ee4c
lea ecx, [esp + 0x14]
push 0x489d7c
push ecx
call fcn.004552b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ee4c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ee4f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00463edc
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ed5e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463def
xor eax, eax
jmp 0x40ee8f
mov byte [esi], 0
push 0x489d78
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.00463def
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 0x41f350
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 0x41f3be
cmp si, 0x69
ja 0x41f3be
add esi, 0xffd0
cmp si, 0x11
je 0x41f38e
push 0x11
call edi
test ax, ax
jge 0x41f38e
or esi, 0x2000
cmp si, 0x10
je 0x41f3a3
push 0x10
call edi
test ax, ax
jge 0x41f3a3
or esi, 0x4000
cmp si, 0x12
je 0x41f3b8
push 0x12
call edi
test ax, ax
jge 0x41f3b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41f3cb
mov esi, 0xbd
jmp 0x41f37f
cmp si, 0x6e
jne 0x41f3d8
mov esi, 0xbe
jmp 0x41f37f
cmp si, 0x6f
jne 0x41f379
mov esi, 0xbf
jmp 0x41f37f

Function at 0x420b80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a0b70]
xor edx, edx
cmp eax, edx
jne 0x420ba6
xor eax, eax
mov byte [eax + 0x4a0a70], al
inc eax
cmp eax, 0x100
jl 0x420b8e
mov dword [0x4a0b70], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a0a70
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x420c37
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 0x420c0a
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 0x420bd8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420cb0
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 0x420d03
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 0x420cea
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 0x427740
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 0x4278d8
cmp ebp, ebx
jle 0x4278d8
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 0x42779e
dec eax
or eax, 0xfffffff8
inc eax
je 0x4277a5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x4277b4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4277bb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00463b30
add esp, 4
cmp eax, ebx
je 0x4277dc
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.00463b30
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 0x4278ce
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 0x4278b5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4278a1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x427896
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 0x4278a4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4278a4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x427840
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 0x427831
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