joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455b80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x468fc4], esi
push edi
jne 0x455ba0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x468fc0], esi
mov byte [0x468fbc], al
jne 0x455c06
mov ecx, dword [0x46a58c]
test ecx, ecx
je 0x455be7
mov eax, dword [0x46a588]
sub eax, 4
cmp eax, ecx
jmp 0x455be0
mov eax, dword [eax]
test eax, eax
je 0x455bd2
call eax
mov eax, dword [0x46a588]
sub eax, 4
cmp eax, dword [0x46a58c]
mov dword [0x46a588], eax
jae 0x455bca
mov eax, 0x463040
mov esi, 0x463048
cmp eax, esi
mov edi, eax
jae 0x455c06
mov eax, dword [edi]
test eax, eax
je 0x455bff
call eax
add edi, 4
cmp edi, esi
jb 0x455bf7
mov eax, 0x46304c
mov esi, 0x463050
cmp eax, esi
mov edi, eax
jae 0x455c25
mov eax, dword [edi]
test eax, eax
je 0x455c1e
call eax
add edi, 4
cmp edi, esi
jb 0x455c16
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x455c3f
push dword [ebp + 8]
mov dword [0x468fc4], 1
call fcn.0043d3dd
pop ebp
ret
Function at 0x402e14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.00402cb4
mov esi, eax
cmp dword [0x407d70], 0xffffffff
je 0x402e75
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407d6c]
jne 0x402e75
lea eax, [ebp - 0x1c]
push eax
push dword [0x407d6c]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407d78], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407d7c], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402f8c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x408890
call fcn.004060a4
mov esi, dword [eax]
push 0x408890
call fcn.004060a4
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.0040590c
call fcn.00405788
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.00405814
call fcn.00404418
test eax, eax
jne 0x4030cd
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.004058ec
call fcn.00404418
test eax, eax
jne 0x403043
cmp word [ebp - 0x190], 0x5a4d
jne 0x403043
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405830
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.004058ec
jmp 0x40304d
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405830
call fcn.00404418
test eax, eax
jne 0x4030b1
cmp word [ebp - 0x190], 0x4550
jne 0x4030b1
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.004058ec
call fcn.00404418
test eax, eax
jne 0x4030b1
cmp dword [ebp - 0x288], 0x4550
jne 0x4030b1
cmp word [ebp - 0x22c], 3
jne 0x4030b1
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.00405860
push 0x408888
call fcn.004060a4
mov dword [eax], 0
push 0x408890
call fcn.004060a4
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403124
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call sub.kernel32.dll_CreateThread
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle
test esi, esi
setne al
movsx eax, al
push eax
call fcn.00402cb4
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4031c8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407e10], 0
je 0x4031ea
mov eax, dword [0x407e10]
mov dword [ebp - 4], eax
jmp 0x40327f
push 0x104
call fcn.004044ec
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.00403fb4
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x40322f
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00403160
mov esi, eax
inc esi
push esi
call fcn.00403fb4
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.0040454c
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x403260
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x40326d
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.00404d2c
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407e10], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40335c
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.00404ca0
xor eax, eax
mov bl, 0
cmp dword [0x407db4], 0
jne 0x4033aa
push 0x407b04
push 1
call fcn.00402bc0
mov dword [0x407db4], eax
cmp dword [0x407db4], 0
jne 0x4033c3
push 0x8000
call fcn.004044ec
mov esi, eax
mov bl, 1
jmp 0x4033fd
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407db4]
test eax, eax
jne 0x4033ed
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x403426
push esi
push 0x8000
push 0xff
call fcn.00404d88
push esi
push 0x24
push 0
call fcn.00404d88
mov eax, esi
add eax, 0xc
push eax
call fcn.004045d4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4037d4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.00403760
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x40380c
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x4037f2
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407d6c]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403bb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403bd4
mov al, byte [ebp - 4]
jmp 0x403bd7
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405bc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x408164]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405c02
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405bfd
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405bfd
mov esi, edx
add edx, 0x10
jmp 0x405be6
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x405d16
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405d16
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405d14
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x405d14
mov cl, byte [edx]
sub cl, 0x3c
jne 0x405c4a
jmp 0x405d14
sub cl, 3
jne 0x405c64
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x405d0f
inc cl
jne 0x405c78
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x405d0f
inc cl
jne 0x405c8c
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x405c9f
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x405ca9
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x405d06
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x405cbc
cmp byte [ebp - 0x25], 0
jne 0x405d04
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x405cf2
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x405ccd
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x405d16
jmp 0x405d14
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x405c3c
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4061ec
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.004061c8
call fcn.0040335c
mov dword [0x408164], eax
lea edx, [eax + 0x18]
mov dword [0x4081c4], edx
pop edx
call fcn.00406048
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x408190], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4081a4], eax
mov dword [0x4081cc], eax
call fcn.00402f8c
cmp eax, 3
setb byte [0x40816d]
call fcn.00403fac
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x406478
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x41a2fa
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41a30a
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jle 0x41a418
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cwde
call fcn.0041a428
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5a4d
jne 0x41a418
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call fcn.0041a428
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4550
jne 0x41a418
pop eax
push eax
mov eax, dword [eax + 0x7c]
call fcn.0041a428
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41a418
pop eax
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push eax
mov eax, dword [eax + 0x20]
add eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
pop eax
mov eax, dword [eax + 0x18]
dec eax
mov dword [ebp - 4], eax
push dword [ebp - 4]
lea eax, [ebp - 4]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x41a415
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0041a43b
test eax, eax
je 0x41a404
push ecx
mov eax, dword [ebp - 0x10]
lea eax, [eax + 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
add eax, dword [ebp + 8]
pop ecx
leave
ret 8
push dword [ebp - 8]
call fcn.0041a46f
add dword [ebp - 0xc], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x41a3bf
add esp, 0xc
mov eax, 0
jmp 0x41a422
mov esp, ebp
pop ebp
ret 8
Function at 0x4b5545
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4b5566
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4b555d
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4b5555
mov eax, ebx
leave
ret

Function at 0x4b558c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 8]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x4b55eb
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x4b5618
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x4b5607
xor ecx, eax
xor edx, ebx
dec edi
jne 0x4b55f8
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x4b563e
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x4b55df
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x4d0810
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5922bb
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.00581c74
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d0892
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0057ed5d
mov eax, dword [eax]
push 0x70a2d8
push eax
call fcn.0055d634
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00581eff
test bl, bl
je 0x4d0892
push 0x70a2d8
lea ecx, [esp + 0xc]
call fcn.005822db
push 0x70e00c
lea ecx, [esp + 0xc]
call fcn.005822db
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 0x4d08ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00581eff
jmp 0x4d0999
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 0x4d0952
lea edx, [esp + 0x7c]
push 0x70e008
push edx
call fcn.0055d634
add esp, 8
test eax, eax
je 0x4d0952
lea eax, [esp + 0x7c]
push 0x70e004
push eax
call fcn.0055d634
add esp, 8
test eax, eax
je 0x4d0952
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 0x4d08e2
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.00581eff
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 0x4d1c10
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 0x4d1c72
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 0x4d1c80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x59241b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x726574]
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 0x4d1db8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4d1ce6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00581eff
xor eax, eax
jmp 0x4d1e2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00582088
push esi
lea ecx, [esp + 0xc]
call fcn.00582317
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x70e044
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4d1e0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SQLAllocStmt
call fcn.004d1c10
test eax, eax
jne 0x4d1e0d
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 SQLAllocStmt
mov ecx, edi
call fcn.004d1c10
test eax, eax
jne 0x4d1e0d
lea eax, [esp + 0x14]
push 0x70e020
push eax
call fcn.0055e950
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d1dec
lea ecx, [esp + 0x14]
push 0x70e01c
push ecx
call fcn.0055e8d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d1dec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4d1def
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00582038
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4d1cfe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00581eff
xor eax, eax
jmp 0x4d1e2f
mov byte [esi], 0
push 0x70e018
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.00581eff
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 0x4ea650
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 0x4ea6be
cmp si, 0x69
ja 0x4ea6be
add esi, 0xffd0
cmp si, 0x11
je 0x4ea68e
push 0x11
call edi
test ax, ax
jge 0x4ea68e
or esi, 0x2000
cmp si, 0x10
je 0x4ea6a3
push 0x10
call edi
test ax, ax
jge 0x4ea6a3
or esi, 0x4000
cmp si, 0x12
je 0x4ea6b8
push 0x12
call edi
test ax, ax
jge 0x4ea6b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4ea6cb
mov esi, 0xbd
jmp 0x4ea67f
cmp si, 0x6e
jne 0x4ea6d8
mov esi, 0xbe
jmp 0x4ea67f
cmp si, 0x6f
jne 0x4ea679
mov esi, 0xbf
jmp 0x4ea67f

Function at 0x4ebf10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x738780]
xor edx, edx
cmp eax, edx
jne 0x4ebf36
xor eax, eax
mov byte [eax + 0x738680], al
inc eax
cmp eax, 0x100
jl 0x4ebf1e
mov dword [0x738780], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x738680
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4ebfc7
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 0x4ebf9a
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 0x4ebf68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4ec040
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 0x4ec093
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 0x4ec07a
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