joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4605c0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x488490
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x460767
mov ecx, dword [0x4ae164]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4606bc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0045f2e0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004796e1
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004795f4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4aceec
call fcn.00479662
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0045f6a0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004796e1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004795f4
lea ecx, [esp + 0xc]
call fcn.00479abc
mov ecx, dword [esp + 0xc]
push 0x4ad92c
push ecx
call fcn.004694b4
add esp, 8
test eax, eax
je 0x4606e4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x46061d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004795f4
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004795f4
jmp 0x46076b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00460360
test eax, eax
push 0
je 0x46074f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0045ea00
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x460735
cmp eax, 0x64
jg 0x460723
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4606c0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4606c0
cmp eax, 0x64
jge 0x4606bc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4606c0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0045ea00
mov esi, eax
jmp 0x4606c0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x460775
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x47b9d5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47ba0d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00479a4f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00479a27
jmp 0x47ba19
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47d0cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47d111
call fcn.00482e4e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47d111
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47d108
xor eax, eax
jmp 0x47d119
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047d11f
pop edi
pop esi
pop ebx
ret 4

Function at 0x48337e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4833ac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4833ca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004832e4
jmp 0x4833ca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4833ca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004832e4
test edi, edi
mov eax, edi
jne 0x4833b4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001dea
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
push esi
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x1001e2d
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
push eax
call fcn.01001dc4
push eax
call esi
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1001a8c
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
jmp 0x1001f56
push 0x10
push 0x10031a0
push ebp
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
mov dword [0x10032b8], eax
jne 0x1001e7a
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
push eax
call fcn.01001dc4
push eax
call esi
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1001a68
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
push ebp
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x1001f56
mov esi, dword [sym.imp.msvcrt.dll_printf]
push ebx
push edi
push 0x1001a28
call esi
mov dword [esp], 0x1001a10
call esi
mov ebx, 0x10031b0
mov eax, ebx
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001e9d
push 0
sub eax, edi
push eax
push ebx
push ebp
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
mov dword [0x10032b8], eax
jne 0x1001ed4
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
push eax
call fcn.01001dc4
push eax
call esi
push eax
push 0x10019f0
jmp 0x1001f15
push 0x40
pop ecx
xor eax, eax
mov edi, ebx
push 0x10019b4
rep stosd dword es:[edi], eax
call esi
pop ecx
push 0
push 0x100
push ebx
push ebp
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
mov dword [0x10032b8], eax
jne 0x1001f29
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
push eax
call fcn.01001dc4
push eax
call esi
push eax
push 0x1001994
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
jmp 0x1001f4d
push ebx
push 0x1001954
call esi
mov edi, 0x1001930
push edi
call esi
push 0x10018f8
call esi
push 0x10018e0
call esi
push edi
call esi
add esp, 0x18
push ebp
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x1001f5b
Capabilities:
Create raw socket
Send data
Send data on socket
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_printf]
push edi
push 0x1001bc4
call esi
pop ecx
xor edi, edi
push edi
push edi
push edi
push 0x2f
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1001fad
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1001bac
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 0xffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x10032c0], edi
mov word [0x10031a0], 2
jne 0x1001fcc
mov eax, dword [0x10032b4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x1001fd1
mov eax, dword [0x10032b0]
push ebp
xor ebp, ebp
mov dword [0x10031a4], eax
inc ebp
push 0x10
push 0x10031a0
push edi
push 0x20
push 0x1001b9c
push ebx
call dword [sym.imp.WSOCK32.dll_sendto]
cmp eax, 0xffffffff
jne 0x100200c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x100205e
push 0x1001b7c
call esi
pop ecx
jmp 0x1002026
cmp ebp, 6
je 0x100201b
push ebp
push 0x1001b5c
call esi
pop ecx
pop ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 7
jl 0x1001fda
mov edi, 0x1001b34
push edi
call esi
mov dword [esp], 0x1001af0
call esi
push edi
call esi
push 0x1001ad4
call esi
add esp, 0xc
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0x1001ac8
call esi
pop ecx
pop ebp
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x1001aac
call esi
pop ecx
pop ecx
push 0xffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100207a
Capabilities:
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp dword [ebp + 8], 2
push ebx
push esi
push edi
jne 0x100226b
mov ebx, dword [ebp + 0xc]
push 0x1001d94
push dword [ebx + 4]
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x100226b
mov esi, dword [sym.imp.msvcrt.dll_printf]
mov edi, 0x6bb
push 0x1001d78
mov word [0x10032bc], di
call esi
pop ecx
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
mov dword [0x10032b8], eax
je 0x1002110
push eax
call fcn.01001dc4
push eax
push dword [0x10032b8]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1001d58
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
push 0x1001d3c
call esi
add esp, 0x14
jmp 0x1002263
cmp word [ebp - 0x190], 0x101
je 0x100213e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1001d20
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
push 0x1001d3c
call esi
add esp, 0xc
jmp 0x1002263
push dword [ebx + 4]
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0x1001d00
mov dword [0x10032b0], eax
call esi
mov eax, dword [0x10032b0]
cmp eax, 0xffffffff
pop ecx
jne 0x10021a0
push dword [ebx + 4]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
mov dword [0x10032b4], eax
je 0x10021cc
mov word [0x10031a0], 2
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push edi
mov dword [0x10031a4], eax
call dword [sym.imp.WSOCK32.dll_htons]
and dword [0x10032c0], 0
mov word [0x10031a2], ax
mov eax, dword [0x10032b4]
jmp 0x10021cc
push edi
mov word [0x10031a0], 2
mov dword [0x10031a4], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [0x10031a2], ax
xor eax, eax
mov dword [0x10032c0], 1
mov dword [0x10032b4], eax
cmp dword [0x10032c0], 0
jne 0x1002204
test eax, eax
jne 0x1002204
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
push eax
call fcn.01001dc4
push eax
call esi
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1001cd4
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
jmp 0x1002263
push 0x1001ca0
call esi
pop ecx
mov edi, 0x10031b0
push 0x1001c74
call esi
mov dword [esp], 0x1001c28
call esi
mov dword [esp], 0x1001c24
call esi
push edi
call dword [sym.imp.msvcrt.dll_gets]
test eax, eax
pop ecx
pop ecx
jne 0x100223d
and byte [0x10031b0], al
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002242
sub eax, edx
cmp eax, 1
jb 0x1002211
xor eax, eax
mov ax, word [0x10032bc]
push eax
call fcn.01001dea
call fcn.01001f5b
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x1002277
push 0x1001bfc
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x100227e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001d98
call fcn.0100241c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10022b9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022b9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10022d1
cmp eax, 0x20b
je 0x10022be
mov dword [ebp - 0x1c], edi
jmp 0x10022e5
cmp dword [ecx + 0x84], 0xe
jbe 0x10022b9
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10022df
cmp dword [ecx + 0x74], 0xe
jbe 0x10022b9
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10032d4], 0xffffffff
or dword [0x10032d8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10032d0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10032cc]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10032dc], eax
call fcn.01002416
cmp dword [0x1003198], edi
jne 0x1002340
push fcn.01002416
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002404
push 0x10010ac
push 0x10010a8
call sub.msvcrt.dll__initterm
mov eax, dword [0x10032c8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10032c4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010a4
push 0x10010a0
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100207a
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10023b7
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10023ec
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002455
ret
Function at 0x4058c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46054b
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.00455458
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405942
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004533a7
mov eax, dword [eax]
push 0x4cf1c0
push eax
call fcn.004462a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004556e3
test bl, bl
je 0x405942
push 0x4cf1c0
lea ecx, [esp + 0xc]
call fcn.00455a73
push 0x4d2d08
lea ecx, [esp + 0xc]
call fcn.00455a73
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 0x40597e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004556e3
jmp 0x405a49
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 0x405a02
lea edx, [esp + 0x7c]
push 0x4d2d04
push edx
call fcn.004462a4
add esp, 8
test eax, eax
je 0x405a02
lea eax, [esp + 0x7c]
push 0x4d2d00
push eax
call fcn.004462a4
add esp, 8
test eax, eax
je 0x405a02
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 0x405992
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.004556e3
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 0x406240
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 0x4062a2
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 0x4062b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4605cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d91a0]
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 0x4063e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406316
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004556e3
xor eax, eax
jmp 0x40645f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00455820
push esi
lea ecx, [esp + 0xc]
call fcn.00455aaf
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 0x40643d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00406240
test eax, eax
jne 0x40643d
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 0x80000000
mov ecx, edi
call fcn.00406240
test eax, eax
jne 0x40643d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.004472e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40641c
lea ecx, [esp + 0x14]
push 0x4d2d18
push ecx
call fcn.00447260
mov esi, eax
add esp, 8
test esi, esi
jne 0x40641c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40641f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004557d0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40632e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004556e3
xor eax, eax
jmp 0x40645f
mov byte [esi], 0
push 0x4d2d14
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.004556e3
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 0x416a50
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 0x416abe
cmp si, 0x69
ja 0x416abe
add esi, 0xffd0
cmp si, 0x11
je 0x416a8e
push 0x11
call edi
test ax, ax
jge 0x416a8e
or esi, 0x2000
cmp si, 0x10
je 0x416aa3
push 0x10
call edi
test ax, ax
jge 0x416aa3
or esi, 0x4000
cmp si, 0x12
je 0x416ab8
push 0x12
call edi
test ax, ax
jge 0x416ab8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x416acb
mov esi, 0xbd
jmp 0x416a7f
cmp si, 0x6e
jne 0x416ad8
mov esi, 0xbe
jmp 0x416a7f
cmp si, 0x6f
jne 0x416a79
mov esi, 0xbf
jmp 0x416a7f

Function at 0x418130
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e97d8]
xor edx, edx
cmp eax, edx
jne 0x418156
xor eax, eax
mov byte [eax + 0x4e96d8], al
inc eax
cmp eax, 0x100
jl 0x41813e
mov dword [0x4e97d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e96d8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4181e7
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 0x4181ba
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 0x418188
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x418260
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 0x4182b3
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 0x41829a
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 0x4220f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x461a98
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 0x422129
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.0045cdd1
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.0045ce1d
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.004221b0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0045ce5a
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
Function at 0x426670
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x462228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.004271f0
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x426719
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00426300
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
lea ecx, [esp + 0x4c]
call fcn.0045c082
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.00435900
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.0045c0f4
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14