joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40392a
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x1a8
mov eax, dword [0x41239c]
push ebx
push esi
mov dword [ebp + 0x124], eax
call fcn.0040120d
push 0x40ee18
call dword [sym.imp.KankanLiteLiveUD.dll_ExecutionLiveUpdateFile]
pop ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x40ea20
push dword [ebp + 0x130]
mov ebx, 0x412410
push 0x412288
mov ecx, ebx
call fcn.004024ce
test eax, eax
jge 0x40398b
push eax
push str.run:_M.Init_return__X
call fcn.00409225
pop ecx
pop ecx
push dword [ebp + 0x134]
call fcn.00406fd3
mov ecx, eax
call fcn.00405654
test al, al
jne 0x4039a9
or esi, 0xffffffff
jmp 0x403aa8
push 1
push 4
mov ecx, ebx
call fcn.00402b2d
test eax, eax
jge 0x4039c5
push eax
push str.run:_M.RegClassObj_return__X
call fcn.00409225
pop ecx
pop ecx
push edi
push 0x40
pop ecx
xor eax, eax
mov byte [ebp + 0x20], 0
lea edi, [ebp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Low_
lea eax, [ebp + 0x20]
push eax
call esi
push str..IntegrityLevel.txt
lea eax, [ebp + 0x20]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x20]
push eax
call esi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x80]
call fcn.00402787
push 0x40edbc
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x80], eax
pop ecx
pop ecx
je 0x403a44
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
test edi, edi
je 0x403a64
call fcn.00407e8b
push eax
push 0x40edb8
push edi
call dword [sym.imp.MSVCR71.dll_fprintf]
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x10
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x403a76
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp + 4]
push eax
call edi
test eax, eax
jne 0x403a6c
mov ecx, ebx
call fcn.00402b6f
call fcn.00406fd3
mov ecx, eax
call fcn.00406b17
mov ecx, ebx
call fcn.00402adb
lea eax, [ebp + 0x20]
push eax
call esi
xor esi, esi
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x124]
mov eax, esi
pop esi
pop ebx
call fcn.0040cb97
add ebp, 0x128
leave
ret
Function at 0x4048cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x40d40d
call fcn.0040cbc0
sub esp, 0x420
mov eax, dword [0x41239c]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x412260]
xor ebx, ebx
mov edi, eax
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x404968
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x40494d
push esi
call fcn.00401da2
test al, al
pop ecx
je 0x40494d
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0040ccf0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x404959
push esi
lea ecx, [ebp - 0x41c]
call fcn.00402c34
push edi
push esi
push dword [ebp + 8]
push eax
call fcn.00401e33
cmp eax, ebx
jne 0x40498b
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x404981
lea ecx, [ebp - 0x418]
call fcn.004026a9
mov esi, 0x8007000e
jmp 0x404a75
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x420], edi
jne 0x4049ad
call fcn.00401f03
mov esi, eax
jmp 0x404a5c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x4049d2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x424], eax
jne 0x4049d9
call fcn.00401f03
jmp 0x404a4e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x418]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
call fcn.00402cb6
jmp 0x404a06
cmp dword [ebp - 0x418], ebx
mov dword [ebp - 4], 1
jne 0x404a1c
mov esi, 0x8007000e
jmp 0x404a50
push esi
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call sub.MSVCR71.dll_memcpy
mov eax, dword [ebp - 0x418]
add esp, 0xc
push dword [ebp + 0x14]
mov byte [esi + eax], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00404766
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x404a75
lea ecx, [ebp - 0x418]
call fcn.004026a9
lea ecx, [ebp - 0x41c]
call fcn.004025e0
mov eax, esi
lea esp, [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040cb97
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40540d
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x41239c]
push esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00401d09
mov esi, eax
cmp esi, 3
pop ecx
je 0x405529
cmp esi, 4
je 0x405529
cmp esi, 1
je 0x405529
cmp esi, 2
je 0x405529
push str.kankanlite_app_mutex
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405480
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x405548
push ebx
push str._KANKANLITE_SERVER_EXIT_EVENT_
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [ebp - 0x20]
mov ebx, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x20]
push eax
call fcn.00408d7a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push str.DOWNLOG_ROOT
push eax
call fcn.004026d5
add esp, 0x10
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR71.dll__putenv]
lea eax, [ebp - 0x20]
mov dword [esp], str.prop.txt
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040272e
add esp, 0xc
cmp esi, edi
jne 0x4054f2
push edi
push dword [ebp + 8]
call fcn.0040392a
pop ecx
pop ecx
mov edi, eax
jmp 0x405509
cmp esi, 5
jne 0x4054fb
push 1
jmp 0x4054e4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x5c]
call esi
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
pop ebx
jmp 0x405548
xor eax, eax
cmp esi, 1
jne 0x40553a
push dword [ebp + 8]
call fcn.00405333
jmp 0x405547
cmp esi, 2
jne 0x405548
push dword [ebp + 8]
call fcn.004053c0
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0040cb97
leave
ret 0x10
Function at 0x405702
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x40576e
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405762
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x40efdc
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405762
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
or edi, eax
or esi, ecx
jmp 0x405764
xor esi, esi
push ebx
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
jmp 0x405770
xor esi, esi
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret

Function at 0x405787
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [0x41239c]
mov dword [esp], eax
mov ecx, dword [esp]
add esp, 4
jmp fcn.0040cb97
Function at 0x409225
Capabilities:
Get common file path

Disassembly:
mov eax, 0x40d680
call fcn.0040cbc0
sub esp, 0x2ac
mov eax, dword [0x41239c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x114], bl
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Low_
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x234]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00408f38
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str..KKL.txt
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00402787
push 0x40f330
push dword [ebp - 0x2b8]
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
lea eax, [ebp - 0x2b4]
cmp dword [ebp - 0x2b8], eax
pop ecx
pop ecx
je 0x40930f
push dword [ebp - 0x2b8]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp esi, ebx
je 0x409373
push 0x40
mov byte [ebp - 0x218], bl
xor eax, eax
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00409118
push edx
push eax
push str._I64u__s
lea eax, [ebp - 0x218]
push 0x103
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x18
test eax, eax
jge 0x409357
mov byte [ebp - 0x115], bl
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.MSVCR71.dll_vfprintf]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040cb97
leave
ret

Function at 0x409cb4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x40d706
call fcn.0040cbc0
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0x40f374
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
call fcn.0040bb06
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov dword [esi + 0x20], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40b5cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
mov edi, dword [ebp + 8]
cmp eax, edi
jne 0x40b5ed
mov eax, dword [esi + 0x24]
cmp eax, dword [ebp + 0xc]
je 0x40b5fb
call ebx
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
push 0x10
call fcn.0040cb3b
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 4], edi
mov dword [edi + 4], eax
call ebx
mov dword [edi + 8], eax
jmp 0x40b63e
mov ebx, dword [eax]
mov ecx, dword [edi + 8]
sub ecx, dword [ebx + 8]
cmp ecx, 0x1770
jle 0x40b646
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 8]
call fcn.004083a0
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x40b61a
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 8]
call fcn.0040b570
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40cf55
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40f4f0
call fcn.0040cbe8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40cf95
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cf95
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40cfad
cmp eax, 0x20b
je 0x40cf9a
mov dword [ebp - 0x1c], ebx
jmp 0x40cfc1
cmp dword [ecx + 0x84], 0xe
jbe 0x40cf95
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40cfbb
cmp dword [ecx + 0x74], 0xe
jbe 0x40cf95
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x412d28], 0xffffffff
or dword [0x412d2c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x412d20]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x412d1c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x412d24], eax
call fcn.0040d1e4
call fcn.0040aaef
cmp dword [0x4123c0], ebx
jne 0x40d021
push fcn.0040aaef
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040d272
push 0x41202c
push 0x412028
call sub.MSVCR71.dll__initterm
push 0x40d228
call fcn.0040cc66
mov eax, dword [0x412d18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x412d14]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x40d075
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x412024
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40d0f3
cmp al, bl
je 0x40d09f
cmp dword [ebp - 0x20], ebx
jne 0x40d0f3
mov al, byte [esi]
cmp al, bl
je 0x40d0af
cmp al, 0x20
ja 0x40d0af
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40d09f
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x40d0cb
movzx eax, word [ebp - 0x54]
jmp 0x40d0ce
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0040540d
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40d0eb
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40d148
cmp al, 0x22
jne 0x40d102
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x40d115
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x40d08d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040cc23
ret
Function at 0x4f5dd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x58ba2b
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.0057b418
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4f5e52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00578061
mov eax, dword [eax]
push 0x5f2224
push eax
call fcn.0056a844
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0057b6a3
test bl, bl
je 0x4f5e52
push 0x5f2224
lea ecx, [esp + 0xc]
call fcn.0057ba7f
push 0x5f5d9c
lea ecx, [esp + 0xc]
call fcn.0057ba7f
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 0x4f5e8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0057b6a3
jmp 0x4f5f59
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 0x4f5f12
lea edx, [esp + 0x7c]
push 0x5f5d98
push edx
call fcn.0056a844
add esp, 8
test eax, eax
je 0x4f5f12
lea eax, [esp + 0x7c]
push 0x5f5d94
push eax
call fcn.0056a844
add esp, 8
test eax, eax
je 0x4f5f12
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 0x4f5ea2
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.0057b6a3
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 0x4f6770
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 0x4f67d2
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 0x4f67e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x58baab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5fd2c4]
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 0x4f6918
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4f6846
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0057b6a3
xor eax, eax
jmp 0x4f698f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0057b82c
push esi
lea ecx, [esp + 0xc]
call fcn.0057babb
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 0x4f696d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.004f6770
test eax, eax
jne 0x4f696d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.004f6770
test eax, eax
jne 0x4f696d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0056b9f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f694c
lea ecx, [esp + 0x14]
push 0x5f5dac
push ecx
call fcn.0056b970
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f694c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4f694f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0057b7dc
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4f685e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0057b6a3
xor eax, eax
jmp 0x4f698f
mov byte [esi], 0
push 0x5f5da8
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.0057b6a3
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 0x50df30
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 0x50df9e
cmp si, 0x69
ja 0x50df9e
add esi, 0xffd0
cmp si, 0x11
je 0x50df6e
push 0x11
call edi
test ax, ax
jge 0x50df6e
or esi, 0x2000
cmp si, 0x10
je 0x50df83
push 0x10
call edi
test ax, ax
jge 0x50df83
or esi, 0x4000
cmp si, 0x12
je 0x50df98
push 0x12
call edi
test ax, ax
jge 0x50df98
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x50dfab
mov esi, 0xbd
jmp 0x50df5f
cmp si, 0x6e
jne 0x50dfb8
mov esi, 0xbe
jmp 0x50df5f
cmp si, 0x6f
jne 0x50df59
mov esi, 0xbf
jmp 0x50df5f

Function at 0x50f7f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x60e2f8]
xor edx, edx
cmp eax, edx
jne 0x50f816
xor eax, eax
mov byte [eax + 0x60e1f8], al
inc eax
cmp eax, 0x100
jl 0x50f7fe
mov dword [0x60e2f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x60e1f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x50f8a7
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 0x50f87a
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 0x50f848
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x50f920
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 0x50f973
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 0x50f95a
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