joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100190cf
Capabilities:
Get file version info

Disassembly:
push pe_nt_image_headers32
mov eax, 0x10086918
call fcn.1006d55a
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xf4]
xor esi, esi
push eax
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x10c], esi
call fcn.10018efb
pop ecx
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 4], esi
cmp dword [ecx - 0xc], esi
jne 0x10019124
push 0x1008c824
mov ecx, edi
call fcn.10001588
mov ecx, dword [ebp - 0xf4]
add ecx, 0xfffffff0
jmp 0x100192a4
lea eax, [ebp - 0x100]
push eax
push ecx
mov dword [ebp - 0x100], esi
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0x104], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
push 0x1008c824
lea ecx, [ebp - 0xf8]
mov ebx, eax
call fcn.10001588
mov byte [ebp - 4], 1
call fcn.10019e6c
test al, al
jne 0x10019195
push 0x28
call fcn.1006c443
pop ecx
mov edi, eax
call fcn.1006daf8
add eax, dword [0x100c47a0]
mov dword [edi + esi*4], eax
inc esi
cmp esi, 0xa
jl 0x1001916c
mov eax, dword [edi + 0x24]
push edi
mov dword [0x100c47a0], eax
call fcn.1006dc4d
mov edi, dword [ebp - 0x108]
pop ecx
test ebx, ebx
je 0x10019278
push ebx
call fcn.1006c443
pop ecx
mov esi, eax
call fcn.10019d8f
test al, al
jne 0x100191d2
mov edx, dword [0x100c47a0]
xor ecx, ecx
mov eax, dword [ebp + ecx*4 - 0xf0]
imul eax, eax, 0x3b
add edx, eax
inc ecx
cmp ecx, 0xe0
jb 0x100191b7
mov dword [0x100c47a0], edx
push esi
push ebx
push dword [ebp - 0x100]
push dword [ebp - 0xf4]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10019271
call fcn.10019dcf
test al, al
jne 0x10019215
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x100c47a0]
push 7
pop edx
test eax, eax
cmove ecx, edx
mov dword [0x100c47a0], ecx
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x1008b10c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10019271
cmp dword [ebp - 0xfc], 0
je 0x10019271
mov ecx, dword [ebp - 0x104]
cmp dword [ecx], 0xfeef04bd
jne 0x10019271
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0xf8]
push str._d._d._d._d
push eax
call fcn.1001754f
add esp, 0x18
push esi
call fcn.1006dc4d
pop ecx
mov eax, dword [ebp - 0xf8]
add eax, 0xfffffff0
push eax
call fcn.100016b6
pop ecx
mov ecx, dword [ebp - 0xf8]
add eax, 0x10
lea ecx, [ecx - 0x10]
mov dword [edi], eax
call fcn.10001efd
mov ecx, dword [ebp - 0xf4]
lea ecx, [ecx - 0x10]
call fcn.10001efd
mov eax, edi
call fcn.1006d509
ret
Function at 0x10019427
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x10086950
call fcn.1006d527
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 0x24], edi
call fcn.100192b1
pop ecx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], edi
cmp dword [esi - 0xc], edi
jne 0x1001946d
mov ecx, dword [ebp + 8]
push 0x1008c824
call fcn.10001588
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10001efd
mov eax, dword [ebp + 8]
jmp 0x10019565
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
call fcn.10019d71
test al, al
jne 0x1001949a
xor edi, edi
xor eax, eax
inc edi
inc eax
mov edx, 0xcc
dec edx
lea ecx, [eax + edi]
lea edi, [eax]
mov eax, ecx
jns 0x1001948a
mov dword [0x100c47a0], ecx
lea eax, [ebp - 0x18]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
call fcn.10019db1
test al, al
jne 0x100194b5
inc dword [0x100c47a0]
push 0x1008c824
lea ecx, [ebp - 0x14]
call fcn.10001588
mov byte [ebp - 4], 1
test edi, edi
je 0x10019538
push edi
call fcn.1006c443
pop ecx
mov esi, eax
push esi
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10019531
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x1008b10c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10019531
cmp dword [ebp - 0x1c], 0
je 0x10019531
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0xfeef04bd
jne 0x10019531
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x14]
push str._d._d._d._d
push eax
call fcn.1001754f
add esp, 0x18
push esi
call fcn.1006dc4d
pop ecx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.100016b6
mov esi, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0x14]
add eax, 0x10
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.10001efd
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10001efd
mov eax, esi
call fcn.1006d4f5
ret
Function at 0x10019a74
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push 0x10
mov eax, 0x10086a1d
call fcn.1006d55a
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10019bb0
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10019ac9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10019bb0
push ebx
push ebx
push ebx
push 4
pop ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x10019b39
call fcn.10019db1
test al, al
jne 0x10019b1c
mov eax, dword [str.aOKRoZh]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1008c9f8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
call fcn.1006d400
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006c443
push eax
call fcn.1006dc4d
add esp, 0xc
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10019b32
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
je 0x10019b46
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x10019bad
movzx eax, word [eax + esi + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x10019b32
mov ecx, 0x8664
push esi
cmp ax, cx
jne 0x10019b79
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor ebx, ebx
inc ebx
jmp 0x10019bb0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [0x100c47a0]
mov ecx, eax
imul ecx, eax
imul eax, ecx
push 0x12
cdq
pop ecx
idiv ecx
cmp edx, 5
jne 0x10019bad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x100c47a0], eax
push edi
call esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10001efd
mov al, bl
call fcn.1006d509
ret
Function at 0x10019bc3
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push 0x11c
mov eax, 0x10086a58
call fcn.1006d55a
mov esi, 0x100c4784
push esi
lea ecx, [ebp - 0x11c]
call fcn.10002171
lea eax, [ebp - 0x120]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathschrome.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0x124], 0x410
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10019c8d
push dword [ebp - 0x124]
lea ecx, [ebp - 0x11c]
call fcn.10001e8d
lea ecx, [ebp - 0x124]
push ecx
push eax
push ebx
push ebx
push 0x1008ac08
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10019c81
push 0xffffffffffffffff
lea ecx, [ebp - 0x11c]
call fcn.10019a48
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x11c]
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
call fcn.100016b6
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.10019a74
pop ecx
mov bl, al
jmp 0x10019d61
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea ecx, [ebp - 0x118]
call fcn.10002171
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x114], 0
call fcn.1006de50
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
xor eax, eax
push eax
push eax
push 0x26
push eax
call esi
mov edi, str.GoogleChromeApplicationchrome.exe
test eax, eax
js 0x10019d0b
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x118]
call fcn.10001f42
push ecx
mov eax, esp
push edi
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.1000b65d
add esp, 0xc
call fcn.10019a74
mov bl, al
pop ecx
test bl, bl
jne 0x10019d4d
lea eax, [ebp - 0x114]
push eax
xor eax, eax
push eax
push eax
push 0x2a
push eax
call esi
test eax, eax
js 0x10019d4d
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x118]
call fcn.10001f42
push ecx
mov eax, esp
push edi
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.1000b65d
add esp, 0xc
call fcn.10019a74
pop ecx
mov bl, al
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.10001efd
mov esi, dword [ebp - 0x11c]
lea ecx, [esi - 0x10]
call fcn.10001efd
mov al, bl
call fcn.1006d509
ret

Function at 0x1001d1a0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.1006de50
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x1001e080
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.1006e430
mov eax, dword [0x100c3360]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1001e0e5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1001e0e5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.10072cbe
add eax, 0x40
push eax
call fcn.10072af6
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1006d48b
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.10072a31
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1001e174
call fcn.1001df40
test eax, eax
jle 0x1001e174
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1006d48b
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1006d48b
add esp, 0x108
ret

Function at 0x100231a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x100231e7
mov al, byte [edx]
test al, al
je 0x100231e7
push edi
mov edi, pe_nt_image_headers32
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x100231b7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1004f170
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x1004f189
mov esi, edi
mov edi, eax
jmp 0x1004f18b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x1004f19b
mov eax, ebx
jmp 0x1004f1a5
push eax
push ebx
call fcn.10020300
add esp, 8
test eax, eax
jne 0x1004f1ad
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x1004f1c9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x1004f1b4
cmp eax, dword [esi + 4]
jge 0x1004f1e0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x1004f1d0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x1004f201
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x1004f1fe
dec eax
test eax, eax
jg 0x1004f1f0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x100807b6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100c3360]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10076132
mov dword [ebp - 0x14], eax
cmp dword [0x100c85b4], edi
jne 0x100808a7
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10080834
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10080987
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10080987
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10080987
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x100c85b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x100c85b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100b867c
push esi
mov dword [0x100c85bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100c85c4], eax
test eax, eax
je 0x100808a4
push 0x100b8698
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100c85c0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100808cc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100808bf
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x100808e1
push 4
pop eax
jmp 0x10080989
cmp dword [ebp - 0x14], edi
je 0x100808e1
push dword [0x100c85b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100808c6
mov eax, dword [0x100c85c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1008093f
cmp dword [0x100c85c4], esi
je 0x1008093f
push eax
call ebx
push dword [0x100c85c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1008093f
test eax, eax
je 0x1008093f
call ecx
test eax, eax
je 0x10080934
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 0x10080934
test byte [ebp - 8], 1
jne 0x1008093f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1008096f
mov eax, dword [0x100c85b8]
cmp eax, esi
je 0x1008096c
push eax
call ebx
test eax, eax
je 0x1008096c
call eax
mov edi, eax
test edi, edi
je 0x1008096c
mov eax, dword [0x100c85bc]
cmp eax, esi
je 0x1008096c
push eax
call ebx
test eax, eax
je 0x1008096c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x100c85b4]
call ebx
test eax, eax
je 0x10080987
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10080989
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006d48b
leave
ret
Function at 0x40e6c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f69b
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.00464094
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e742
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004619ed
mov eax, dword [eax]
push 0x48a1f4
push eax
call fcn.00454824
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046431f
test bl, bl
je 0x40e742
push 0x48a1f4
lea ecx, [esp + 0xc]
call fcn.004646af
push 0x48dd64
lea ecx, [esp + 0xc]
call fcn.004646af
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 0x40e77e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046431f
jmp 0x40e849
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 0x40e802
lea edx, [esp + 0x7c]
push 0x48dd60
push edx
call fcn.00454824
add esp, 8
test eax, eax
je 0x40e802
lea eax, [esp + 0x7c]
push 0x48dd5c
push eax
call fcn.00454824
add esp, 8
test eax, eax
je 0x40e802
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 0x40e792
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.0046431f
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 0x40f040
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 0x40f0a2
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 0x40f0b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f71b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49441c]
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 0x40f1e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40f116
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046431f
xor eax, eax
jmp 0x40f25f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046445c
push esi
lea ecx, [esp + 0xc]
call fcn.004646eb
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 0x40f23d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040f040
test eax, eax
jne 0x40f23d
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.0040f040
test eax, eax
jne 0x40f23d
lea eax, [esp + 0x14]
push 0x48dd78
push eax
call fcn.00455860
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f21c
lea ecx, [esp + 0x14]
push 0x48dd74
push ecx
call fcn.004557e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f21c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40f21f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046440c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40f12e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046431f
xor eax, eax
jmp 0x40f25f
mov byte [esi], 0
push 0x48dd70
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.0046431f
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 0x41f870
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 0x41f8de
cmp si, 0x69
ja 0x41f8de
add esi, 0xffd0
cmp si, 0x11
je 0x41f8ae
push 0x11
call edi
test ax, ax
jge 0x41f8ae
or esi, 0x2000
cmp si, 0x10
je 0x41f8c3
push 0x10
call edi
test ax, ax
jge 0x41f8c3
or esi, 0x4000
cmp si, 0x12
je 0x41f8d8
push 0x12
call edi
test ax, ax
jge 0x41f8d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41f8eb
mov esi, 0xbd
jmp 0x41f89f
cmp si, 0x6e
jne 0x41f8f8
mov esi, 0xbe
jmp 0x41f89f
cmp si, 0x6f
jne 0x41f899
mov esi, 0xbf
jmp 0x41f89f

Function at 0x4210a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a4b70]
xor edx, edx
cmp eax, edx
jne 0x4210c6
xor eax, eax
mov byte [eax + 0x4a4a70], al
inc eax
cmp eax, 0x100
jl 0x4210ae
mov dword [0x4a4b70], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a4a70
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421157
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 0x42112a
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 0x4210f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4211d0
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 0x421223
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 0x42120a
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