joyce8/EMBER2024-capa huggingface dataset:
Function at 0x615588e0
Capabilities:
Get geographical location

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x1c], 0x400
test byte [0x61576208], 8
jne 0x61558a50
test esi, esi
je 0x61558ad0
mov eax, dword [edi + 0x1c]
mov ebx, dword [eax]
test ebx, ebx
jne 0x61558ac6
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x24]
xor eax, eax
lock cmpxchg dword [edi + 0x20], edx
test eax, eax
jne 0x61558ac6
mov edx, dword [edi + 0x1c]
mov eax, dword [edx + 0x5c]
lea ecx, [edx + 0x5c]
lea ebx, [eax - 0x14]
cmp ecx, eax
jne 0x61558967
jmp 0x61558990
and dword [ebx + 0xc], 0xfffffdff
mov edx, dword [edi + 0x1c]
mov eax, dword [ebx + 0x14]
lea ecx, [edx + 0x5c]
lea ebx, [eax - 0x14]
cmp eax, ecx
je 0x61558990
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x61558950
mov edx, ebx
mov eax, esi
call sym._retrieve_named_item_disp
test eax, eax
jns 0x61558950
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
lea eax, [edx + 0x18]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._create_script_disp
test eax, eax
js 0x6155897b
mov eax, dword [edi + 0x1c]
mov dword [eax], esi
mov eax, dword [edi + 0x1c]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 4]
mov eax, dword [edi + 0x1c]
lea ecx, [ebp - 0x1c]
sub esp, 4
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsValidLocale]
sub esp, 8
test eax, eax
je 0x61558ab8
mov eax, dword [ebp - 0x1c]
mov edx, eax
mov ecx, dword [edi + 0x1c]
mov dword [ecx + 4], eax
mov dword [esp + 0xc], 2
mov eax, dword [edi + 0x1c]
mov dword [esp], edx
add eax, 8
mov dword [esp + 4], 0x20001004
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov eax, dword [edi + 0x1c]
sub esp, 0x10
mov edx, dword [eax + 8]
test edx, edx
jne 0x61558a30
mov dword [eax + 8], 0xfde9
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x61558a88
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p_____p__n
mov dword [esp + 8], str.VBScript_SetScriptSite
mov dword [esp + 4], 0x61576208
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x6155890d
cmp dword [edi + 0x18], 5
je 0x61558a37
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x18], 5
mov eax, dword [eax]
test eax, eax
je 0x61558a37
mov edx, dword [eax]
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [edx + 0x1c]
xor eax, eax
sub esp, 8
jmp 0x61558a39
call dword [sym.imp.kernel32.dll_GetUserDefaultLCID]
mov edx, dword [ebp - 0x1c]
jmp 0x615589f3
mov eax, 0x8000ffff
jmp 0x6155897b
mov eax, 0x80004003
jmp 0x6155897b
Function at 0x6155dcc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x22c
mov eax, dword [0x615762e8]
test eax, eax
je 0x6155dd78
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x6155dd00
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x6155dcec
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x6155ddad
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x615762e8], eax
sub esp, 8
test eax, eax
jne 0x6155dcdd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x6155dcee
Function at 0x61560c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x61560c5b
cmp byte [esi + ebx - 1], 0xa
je 0x61560c2f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x615762fc], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x6156f8f0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
sub esp, 8
test ebx, ebx
je 0x6156fa88
mov eax, dword [esi]
test eax, eax
je 0x6156fa70
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x28], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [esp + 4], 0
mov edi, eax
mov dword [ebp - 0x20], eax
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x6156fa98
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x6156fa60
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
not eax
pop ebx
shr eax, 0x1f
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x6156fa26
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x6156f960
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x6156fa8a
Function at 0x402860
Capabilities:
Hide graphical window

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x88
mov edi, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, dword [ecx + 0xc]
call dword [sym.imp.comctl32.dll_InitCommonControls]
mov dword [0x40305c], 0
mov dword [0x40306c], 1
mov dword [0x403078], 1
test edi, edi
je 0x402a48
lea eax, [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterClassW]
sub esp, 4
test ax, ax
jne 0x4028d0
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [0x403084], 0xc8
mov dword [0x403080], 0xc8
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc8
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], 0x404084
mov dword [esp + 4], 0x404074
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
sub esp, 0x30
mov dword [0x403064], eax
call sym._CLOCK_ResetTimer
test eax, eax
je 0x4028bf
mov dword [esp + 4], 0x100
lea ebx, [ebp - 0x5c]
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadMenuW]
sub esp, 8
mov dword [0x403068], eax
mov dword [esp + 4], eax
mov eax, dword [0x403064]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetMenu]
sub esp, 8
call sym._CLOCK_UpdateMenuCheckmarks
call sym._CLOCK_UpdateWindowCaption
mov eax, dword [0x403064]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x403064]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_UpdateWindow]
mov esi, dword [sym.imp.user32.dll_GetMessageW]
mov edi, dword [sym.imp.user32.dll_TranslateMessage]
sub esp, 4
jmp 0x4029e4
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.user32.dll_DispatchMessageW]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
sub esp, 0x10
test eax, eax
jne 0x4029d0
mov eax, dword [0x403064]
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_KillTimer]
mov eax, dword [0x40305c]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteObject]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [ebp - 0x40], 0xb
mov dword [ebp - 0x3c], sym._CLOCK_WndProc_16
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], ebx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadIconW]
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
sub esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x404074
jmp 0x4028ab
Function at 0x402ad0
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x402b40
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x402bcd
cmp al, 9
je 0x402bc0
cmp al, 0x20
je 0x402bc0
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp al, 0x5c
je 0x402c28
cmp al, 0x22
je 0x402c30
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x402bcd
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x402b80
test edi, 1
jne 0x402b80
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x402bc0
cmp al, 0x20
je 0x402bc0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x402be8
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x402b97
and dword [ebp - 0x6c], 1
jne 0x402b90
xor edi, 1
jmp 0x402b97
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4038b4
Capabilities:
Encode data using xor

Disassembly:
add al, 0
add byte [eax], al
sub esp, edx
mov dword [esp], ebx
push 0x5e6505cd
mov edi, 0x5e65058d
pop ebx
xor edi, ebx
push edi
mov esi, 0x93ec
add esi, 0x14
push esi
mov ebx, 0x26a45d9e
xor ebx, 0x26e44d9e
push ebx
call eax
pop edi
mov eax, 0x2e2a8a7a
xor eax, 0x3cb5a62f
push eax
mov edi, 0x10c93298
mov ebx, 0x21625e9
xor ebx, edi
pop ecx
xor ebx, ecx
mov eax, 0x1b893a01
mov dword [ebx], ebx
xor eax, 0x10b86cc5
mov edx, 0xb3155e5
xor eax, edx
mov esi, 0x18d2dc7d
mov edx, 0x7eec0b92
xor edx, esi
mov esi, 0x2620466f
xor edx, esi
xor edx, 0x405edbeb
xor esi, esi
add esi, eax
mov edi, 0xfffffffc
add esp, edi
mov dword [esp], esi
mov ecx, 0xfffffffc
add esp, ecx
xor esi, esi
add esi, esp
mov dword [esi], ebx
xor eax, eax
mov al, byte [edx]
add ebx, eax
mov al, byte [ebx]
push 0x6c05a66a
mov esi, 0x7c81a646
pop edi
xor esi, edi
mov ecx, 0x54ab96f1
xor ecx, 0x5ca9a331
xor esi, ecx
mov edi, ebx
mov ecx, edi
and ecx, ecx
je 0x4038dc
pop ebx
mov byte [edx], al
mov ecx, 0x6bfbe125
mov esi, 0x94041eda
xor ecx, esi
add edx, ecx
pop eax
mov ecx, 0xffffffff
add eax, ecx
mov esi, eax
add esi, 0
jne 0x4038dc
push 0x16d3fe92
mov edi, 0x4a3bbde5
pop esi
xor edi, esi
mov edx, 0x1088041c
mov eax, 0x4c200020
xor edx, eax
xor edx, edi
call edx
pop esi
pop esi
ret

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x40e160
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47cecb
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.004716fc
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e1e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046f3ed
mov eax, dword [eax]
push 0x592210
push eax
call fcn.00462004
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00471987
test bl, bl
je 0x40e1e2
push 0x592210
lea ecx, [esp + 0xc]
call fcn.00471d17
push 0x595d8c
lea ecx, [esp + 0xc]
call fcn.00471d17
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 0x40e21e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00471987
jmp 0x40e2e9
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 0x40e2a2
lea edx, [esp + 0x7c]
push 0x595d88
push edx
call fcn.00462004
add esp, 8
test eax, eax
je 0x40e2a2
lea eax, [esp + 0x7c]
push 0x595d84
push eax
call fcn.00462004
add esp, 8
test eax, eax
je 0x40e2a2
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 0x40e232
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.00471987
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 0x40eb00
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 0x40eb62
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 0x40eb70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47cf4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5a1c00]
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 0x40eca8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ebd6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00471987
xor eax, eax
jmp 0x40ed1f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00471ac4
push esi
lea ecx, [esp + 0xc]
call fcn.00471d53
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 0x40ecfd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040eb00
test eax, eax
jne 0x40ecfd
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 accept
mov ecx, edi
call fcn.0040eb00
test eax, eax
jne 0x40ecfd
lea eax, [esp + 0x14]
push 0x595da0
push eax
call fcn.00463040
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ecdc
lea ecx, [esp + 0x14]
push 0x595d9c
push ecx
call fcn.00462fc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ecdc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ecdf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00471a74
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ebee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00471987
xor eax, eax
jmp 0x40ed1f
mov byte [esi], 0
push 0x595d98
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.00471987
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 0x421a80
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 0x421aee
cmp si, 0x69
ja 0x421aee
add esi, 0xffd0
cmp si, 0x11
je 0x421abe
push 0x11
call edi
test ax, ax
jge 0x421abe
or esi, 0x2000
cmp si, 0x10
je 0x421ad3
push 0x10
call edi
test ax, ax
jge 0x421ad3
or esi, 0x4000
cmp si, 0x12
je 0x421ae8
push 0x12
call edi
test ax, ax
jge 0x421ae8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x421afb
mov esi, 0xbd
jmp 0x421aaf
cmp si, 0x6e
jne 0x421b08
mov esi, 0xbe
jmp 0x421aaf
cmp si, 0x6f
jne 0x421aa9
mov esi, 0xbf
jmp 0x421aaf

Function at 0x4231a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5b22b0]
xor edx, edx
cmp eax, edx
jne 0x4231c6
xor eax, eax
mov byte [eax + 0x5b21b0], al
inc eax
cmp eax, 0x100
jl 0x4231ae
mov dword [0x5b22b0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5b21b0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x423257
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 0x42322a
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 0x4231f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4232d0
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 0x423323
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 0x42330a
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