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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
mov dword [ebp - 4], eax
mov byte [ebp - 8], 1
jmp 0x401f79
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call ebx
test al, al
pop ecx
pop ecx
mov byte [ebp - 8], al
je 0x401f76
mov esi, dword [esi]
jmp 0x401f79
mov esi, dword [esi + 8]
cmp byte [esi + 0x45], 0
je 0x401f5d
push edi
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.00401a99
cmp byte [ebp - 8], 0
je 0x401fdf
mov eax, dword [edi + 4]
push edi
push dword [eax]
lea ecx, [ebp - 0x18]
call fcn.00401a99
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401609
test al, al
je 0x401fd7
push dword [ebp + 0xc]
push dword [ebp - 4]
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00401d30
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov byte [eax + 8], 1
jmp 0x40200b
lea ecx, [ebp - 0x10]
call fcn.00401abe
mov esi, dword [ebp - 0xc]
push dword [ebp + 0xc]
lea eax, [esi + 0xc]
push eax
call ebx
test al, al
pop ecx
pop ecx
je 0x401ffc
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
jmp 0x401fb7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov byte [eax + 8], 0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4023ea
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push esi
push dword [eax]
lea ecx, [ebp - 8]
call fcn.00401a99
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401609
test al, al
je 0x40243e
push esi
push dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00401a99
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 0x14]
call fcn.00401609
test al, al
je 0x40243e
mov ecx, esi
call fcn.00402384
push dword [ebp + 8]
mov ecx, esi
call fcn.00401cfb
mov eax, dword [ebp + 8]
jmp 0x40248b
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401609
test al, al
jne 0x40247d
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.00401667
push ebx
push edi
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0040207f
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401609
test al, al
je 0x402450
pop edi
pop ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
pop esi
leave
ret 0x14

Function at 0x40249d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push esi
push dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00401a99
mov eax, dword [esi + 4]
push esi
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00401a99
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push dword [ebp - 8]
mov ecx, esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
call fcn.004023e6
push dword [esi + 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
and dword [esi + 4], 0
and dword [esi + 8], 0
pop ecx
pop esi
leave
ret

Function at 0x4024b2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push esi
push dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00401a99
mov eax, dword [esi + 4]
push esi
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00401a99
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push dword [ebp - 8]
mov ecx, esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
call fcn.004023e6
push dword [esi + 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
and dword [esi + 4], 0
and dword [esi + 8], 0
pop ecx
pop esi
leave
ret
Function at 0x40278b
Capabilities:
Read file on windows

Disassembly:
push 0x10
mov eax, 0x4039f3
call fcn.00402e76
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 0x24]
xor eax, eax
mov dword [edi], eax
lea ebx, [esi + 0x2c]
mov dword [ebp - 4], eax
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov cl, byte [ebp + 0x28]
mov edx, dword [ebp + 0x24]
and dword [esi + 0x30], 0
test cl, cl
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 1
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov byte [esi + 0x20], cl
jne 0x40281f
and dword [ebp + 0x28], 0
test edx, edx
jbe 0x4027db
add eax, 0xc
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x28]
jbe 0x4027c7
mov dword [ebp + 0x28], ecx
add eax, 0x10
dec edx
jne 0x4027bd
cmp dword [ebp + 0x28], 0x100000
mov eax, 0x40690c
ja 0x4027de
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00402e5c
pop ecx
mov dword [ebp + 0x28], eax
lea eax, [ebp + 0x28]
push eax
mov ecx, edi
call fcn.004023aa
push dword [ebp + 0x28]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
cmp dword [edi], 0
pop ecx
jne 0x40281f
lea ecx, [ebp - 0x1c]
call fcn.004011e1
push 0x406f50
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push 0x44
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00402e5c
pop ecx
mov dword [ebp + 0x28], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x40286b
mov ecx, dword [ebp + 0x14]
push fcn.00401bfb
push 0x401bca
push ecx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ecx
call fcn.00403021
jmp 0x40286d
xor edi, edi
lea eax, [ebp + 0x28]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebp + 0x28], edi
call fcn.004023c8
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x40288d
push 3
call fcn.00401c1c
cmp dword [ebx], 0
je 0x402809
mov ecx, esi
call fcn.004024e3
mov eax, esi
call fcn.00402edf
ret 0x24
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0xd0d1b89
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4e8a41c4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x41dbc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc48
xor eax, eax
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3a0], eax
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3ac], eax
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41dd6d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3a4]
xor eax, eax
call fcn.004029a0
mov eax, dword [ebp - 0x3a4]
lea edx, [ebp - 0x3a0]
call fcn.00408148
push dword [ebp - 0x3a0]
lea edx, [ebp - 0x3ac]
xor eax, eax
call fcn.004029a0
mov eax, dword [ebp - 0x3ac]
lea edx, [ebp - 0x3a8]
call fcn.00408210
push dword [ebp - 0x3a8]
push 0x41dd80
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b0c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402d44
lea eax, [ebp - 0x1d0]
call fcn.00402ad4
lea eax, [ebp - 0x1d0]
call fcn.00402ee8
lea eax, [ebp - 0x3b0]
call fcn.0041ca9c
lea eax, [ebp - 0x3b0]
mov edx, 0x41dd90
call fcn.00404a54
mov edx, dword [ebp - 0x3b0]
lea eax, [ebp - 0x39c]
call fcn.00402d44
lea eax, [ebp - 0x39c]
call fcn.00402ad4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x39c]
call fcn.00404d90
call fcn.00403558
lea eax, [ebp - 0x39c]
call fcn.00402ee8
push 0
lea eax, [ebp - 0x3b4]
call fcn.0041ca9c
lea eax, [ebp - 0x3b4]
mov edx, 0x41dd90
call fcn.00404a54
mov eax, dword [ebp - 0x3b4]
call fcn.00404c44
push eax
call sub.kernel32.dll_WinExec
push 0x5dc
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x3b8]
call fcn.0041ca9c
lea eax, [ebp - 0x3b8]
mov edx, 0x41dd90
call fcn.00404a54
mov eax, dword [ebp - 0x3b8]
call fcn.004080e0
mov eax, dword [ebp - 4]
call fcn.004080e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dd74
lea eax, [ebp - 0x3b8]
mov edx, 7
call fcn.004047b8
lea eax, [ebp - 4]
call fcn.00404794
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40cb50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40cb5f
pop dword [ebp - 0x3c]
mov eax, 0x40cb5f
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x35d1a
push 0
mov eax, 0x8b45e552
add eax, 0x74fafb86
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x3a52
mov ebx, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x3c]
mov edi, 0x590749e1
add edi, 0xdb13e00f
xor dword [ebp - 0x28], 0x259cbaa9
mov esi, dword [edx]
add dword [ebp - 0x38], 0xec61dc8a
xor esi, edi
sub dword [ebp - 0x24], 0x8d9406ba
mov dword [ebx], esi
add ebx, 0x9450af75
sub ebx, 0x9450af71
add edx, 0x1a18d2f9
add edx, 0xe5e72d0b
loop 0x40cbad
add eax, 0xb74ab5ef
sub eax, 0xb749d9d4
xor ebx, ebx
add ebx, eax
add eax, 0x4c326a6c
sub eax, 0x4c326a67
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x40d673
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40d6a4
call fcn.00403763
mov dword [eax], esi
call fcn.00403750
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040cb50
add esp, 0x14
push 0x16
pop eax
jmp 0x40d6f9
test dword [ebp + 0xc], 0xfffffff9
jne 0x40d680
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d6d1
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0040cb50
pop ecx
call fcn.00403750
mov eax, dword [eax]
jmp 0x40d6f9
test al, 0x10
jne 0x40d6f7
test al, 1
je 0x40d6f7
test byte [ebp + 0xc], 2
je 0x40d6f7
call fcn.00403763
mov dword [eax], 5
call fcn.00403750
mov dword [eax], 0xd
jmp 0x40d6c8
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100d2fac
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.100d302b
jae 0x100d2fb8
xor ecx, ecx
call fcn.100d302b
jae 0x100d2fe2
xor eax, eax
call fcn.100d302b
jae 0x100d2ff3
mov al, 0x10
call fcn.100d302b
adc al, al
jae 0x100d2fd4
jne 0x100d3020
stosb byte es:[edi], al
jmp 0x100d2fb9
call fcn.100d3037
dec ecx
loop 0x100d2fff
mov eax, ebp
call fcn.100d3035
jmp 0x100d3021
lodsb al, byte [esi]
shr eax, 1
je 0x100d3047
adc ecx, 2
mov ebp, eax
jmp 0x100d3021
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.100d3035
cmp eax, 0x7d00
jae 0x100d301f
cmp eax, 0x500
jae 0x100d3020
cmp eax, 0x7f
ja 0x100d3021
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100d2fb9
pop ebp
ret 8
Function at 0x4075f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x465d3b
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.0045a6af
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407672
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00458507
mov eax, dword [eax]
push 0x47b1d0
push eax
call fcn.0044aa64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045a93a
test bl, bl
je 0x407672
push 0x47b1d0
lea ecx, [esp + 0xc]
call fcn.0045acca
push 0x47ed20
lea ecx, [esp + 0xc]
call fcn.0045acca
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 0x4076ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045a93a
jmp 0x407779
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 0x407732
lea edx, [esp + 0x7c]
push 0x47ed1c
push edx
call fcn.0044aa64
add esp, 8
test eax, eax
je 0x407732
lea eax, [esp + 0x7c]
push 0x47ed18
push eax
call fcn.0044aa64
add esp, 8
test eax, eax
je 0x407732
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 0x4076c2
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.0045a93a
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 0x407f70
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 0x407fd2
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 0x407fe0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x465dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x485464]
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 0x408118
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408046
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a93a
xor eax, eax
jmp 0x40818f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045aa77
push esi
lea ecx, [esp + 0xc]
call fcn.0045ad06
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 0x40816d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00407f70
test eax, eax
jne 0x40816d
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 SysReAllocString
mov ecx, edi
call fcn.00407f70
test eax, eax
jne 0x40816d
lea eax, [esp + 0x14]
push 0x47ed34
push eax
call fcn.0044bb70
mov esi, eax
add esp, 8
test esi, esi
jne 0x40814c
lea ecx, [esp + 0x14]
push 0x47ed30
push ecx
call fcn.0044baf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40814c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40814f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045aa27
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40805e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a93a
xor eax, eax
jmp 0x40818f
mov byte [esi], 0
push 0x47ed2c
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.0045a93a
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 0x4186b0
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 0x41871e
cmp si, 0x69
ja 0x41871e
add esi, 0xffd0
cmp si, 0x11
je 0x4186ee
push 0x11
call edi
test ax, ax
jge 0x4186ee
or esi, 0x2000
cmp si, 0x10
je 0x418703
push 0x10
call edi
test ax, ax
jge 0x418703
or esi, 0x4000
cmp si, 0x12
je 0x418718
push 0x12
call edi
test ax, ax
jge 0x418718
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41872b
mov esi, 0xbd
jmp 0x4186df
cmp si, 0x6e
jne 0x418738
mov esi, 0xbe
jmp 0x4186df
cmp si, 0x6f
jne 0x4186d9
mov esi, 0xbf
jmp 0x4186df

Function at 0x419e60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x495b60]
xor edx, edx
cmp eax, edx
jne 0x419e86
xor eax, eax
mov byte [eax + 0x495a60], al
inc eax
cmp eax, 0x100
jl 0x419e6e
mov dword [0x495b60], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x495a60
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419f17
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 0x419eea
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 0x419eb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x419f90
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 0x419fe3
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 0x419fca
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 0x420a20
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 0x420bb8
cmp ebp, ebx
jle 0x420bb8
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 0x420a7e
dec eax
or eax, 0xfffffff8
inc eax
je 0x420a85
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x420a94
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x420a9b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0045a67b
add esp, 4
cmp eax, ebx
je 0x420abc
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.0045a67b
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 0x420bae
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 0x420b95
mov al, byte [edx]
cmp al, 0xc0
jbe 0x420b81
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x420b76
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 0x420b84
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x420b84
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x420b20
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 0x420b11
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x423c10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467288
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 0x423c49
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.00462058
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.004620a4
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.00423cd0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.004620e1
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24