joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421e40
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x421e58
xor eax, eax
jmp 0x421f36
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x421e8b
xor eax, eax
jmp 0x421f36
lea ecx, [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x421ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x426
jne 0x421eb8
mov eax, 1
jmp 0x421f36
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x421f36
cmp dword [ebp - 0x20], 1
jne 0x421edd
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x421f36
mov dword [ebp - 0x2c], 0
jmp 0x421eef
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0x32
jge 0x421f2a
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x421f09
jmp 0x421f2a
cmp dword [ebp - 0x20], 1
jne 0x421f20
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x421f36
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x421ee6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x421f40
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x421f58
xor eax, eax
jmp 0x421ff0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x421f8f
xor eax, eax
jmp 0x421ff0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
cmp dword [ebp - 8], 0
jne 0x421fe1
cmp dword [ebp - 0xc], 0x420
jne 0x421fd3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x421ff0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x421ff0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x422000
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x422040
xor eax, eax
jmp 0x42209f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
push eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x422092
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x4226d8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43b274]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00422617
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x422727
cmp dword [ebp - 0x1c], 5
jb 0x42273f
jmp 0x42273b
cmp dword [ebp - 0x10], 1
jne 0x42273f
cmp dword [ebp - 0x1c], 4
ja 0x42273b
jne 0x42273f
cmp dword [ebp - 0x18], 0
jbe 0x42273f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42f798
call fcn.004224ad
test eax, eax
jge 0x422760
mov byte [0x43b8a0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042279c
add ebp, 0x78
leave
ret
Function at 0x423260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ae51
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x43b274]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push str.Day_of_month_value_is_out_of_range_1..31
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00402690
mov dword [esi], vtable.std::out_of_range.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x423300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ae51
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x43b274]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push str.Year_is_out_of_valid_range:_1400..10000
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00402690
mov dword [esi], vtable.std::out_of_range.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esi], vtable.boost::gregorian::bad_year.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x423380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ae51
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x43b274]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push str.Month_number_is_out_of_range_1..12
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00402690
mov dword [esi], vtable.std::out_of_range.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esi], vtable.boost::gregorian::bad_month.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x424280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42aed8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43b274]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.004064e0
test edi, edi
mov dword [esp + 0x18], 0
je 0x4242c4
add edi, 0x28
jmp 0x4242c6
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x4242de
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x424330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42af08
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43b274]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00402970
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x42437a
add edi, 0x28
jmp 0x42437c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x424394
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x424490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42af08
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43b274]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00402970
mov dword [esi], vtable.boost::gregorian::bad_year.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x4244da
add edi, 0x28
jmp 0x4244dc
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x4244f4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x424540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42af08
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43b274]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00402970
mov dword [esi], vtable.boost::gregorian::bad_month.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x42458a
add edi, 0x28
jmp 0x42458c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x4245a4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x426690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b2a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b274]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [0x43b2b4]
cmp eax, 0xffffffff
jne 0x4266cb
xor ebp, ebp
jmp 0x4266d4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
mov dword [esp + 0x40], 0
je 0x426715
cmp dword [ebp + 0x18], 0
jne 0x42675c
cmp dword [ebp + 0xc], 0
jne 0x426762
push 0x423670
push 0x43c038
call fcn.00423a50
mov eax, dword [0x43b2b4]
add esp, 8
cmp eax, 0xffffffff
je 0x426715
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebp, ebp
mov dword [esp + 0x40], 0xffffffff
je 0x426748
lea ecx, [ebp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x426748
mov eax, dword [ebp]
mov edx, dword [eax]
push 0
mov ecx, ebp
call edx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x4267aa
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x426794
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0xc], 0
jne 0x426762
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx]
lea ebx, [ebp + 0x10]
mov edi, ebx
mov edx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edx
test edi, edi
je 0x4267ca
cmp edi, ebx
je 0x4267d4
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebx
jmp 0x4267da
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x28]
je 0x4266e4
lea ecx, [esp + 0x1c]
call fcn.00418620
test edi, edi
jne 0x4267f3
call ebx
cmp esi, dword [edi + 4]
jne 0x4267fa
call ebx
cmp dword [esi + 0x10], 0
je 0x42682f
cmp esi, dword [edi + 4]
jne 0x426807
call ebx
cmp dword [esi + 0x18], 0
je 0x42682f
cmp esi, dword [edi + 4]
jne 0x426814
call ebx
cmp esi, dword [edi + 4]
mov ebx, dword [esi + 0x10]
jne 0x426822
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x18]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push ecx
mov ecx, ebx
call edx
push esi
push edi
lea eax, [esp + 0x34]
lea ebx, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.004176f0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x4267c2
Function at 0x4268e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x426850
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x42690a
pop edi
xor al, al
pop ebx
ret
mov edx, dword [edi]
push esi
add edx, 4
mov eax, 1
lock xadd dword [edx], eax
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x426931
cmp eax, 0xffffffff
je 0x426931
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x401950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0xbc]
mov eax, dword [ecx + 0x14]
add esi, edi
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0xc], edx
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x18]
mov ecx, 1
mov dword [esi + 0xc], eax
mov eax, 0x100
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x40199a
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x78]
mov dword [ebp - 8], eax
lea eax, [edx + 0x3a]
test byte [ebp - 8], 4
je 0x4019b5
test byte [eax], 1
je 0x4019ec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xfffffffb
mov dword [edi + 0x78], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 4]
or ecx, 0x200
mov edx, eax
mov dword [esi + 0x10], ecx
test byte [edx], 2
mov edx, dword [ebp - 0xc]
je 0x4019ec
mov eax, dword [edx + 0x46]
or ecx, 0x400
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], ecx
test dword [edi + 0x78], 0x400
je 0x4019fe
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x401a0c
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
test byte [eax + 6], 2
je 0x401a39
or ecx, 0x80
mov eax, 1
mov dword [esi + 0x10], ecx
mov word [esi + 0x20], ax
cmp word [edi + 0x18], 3
jne 0x401a3e
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x401a3e
or word [esi + 0x20], 0x20
mov ecx, dword [edx + 0x3c]
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0x40]
mov dword [esi + 0x1c], eax
cmp cx, 0xd
jne 0x401aa3
mov ecx, dword [0x4af094]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x401a96
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [0x4af094]
imul edx, dword [eax + 0x1a0], 0x2c
add edx, dword [eax + 0x400]
je 0x401a96
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x401a96
mov edx, dword [edx + 0xc]
call fcn.00436920
jmp 0x401a98
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x401aa3
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x401aca
or word [esi + 0x20], 2
mov eax, 1
or dword [esi + 0x10], 8
mov ecx, dword [esi + 0x10]
movzx ecx, cx
pop edi
mov word [esi + 0x22], cx
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0x10]
mov word [esi + 0x22], ax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402c00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov eax, dword [0x4af094]
test eax, eax
je 0x402c34
cmp dword [eax + 0x1fc], 0
jne 0x402dd0
push 0
push 0
push 0
push 0
push esi
mov dword [0x4aef4c], 0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x402db8
push edi
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
nop dword [eax]
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x402d6c
mov ecx, dword [0x4aee7c]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x402cb3
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
test eax, eax
je 0x402cb3
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_536]
push esi
push eax
call edi
test eax, eax
jne 0x402d6c
cmp dword [ebp - 8], eax
je 0x402cb3
mov ecx, dword [0x4aee7c]
jmp 0x402c90
mov eax, dword [0x4af094]
test eax, eax
je 0x402d5e
mov ecx, 0x4000
test word [eax + 0x16], cx
je 0x402d5e
push dword [0x4af068]
call dword [sym.imp.MMFS2.dll_Ordinal_19]
test eax, eax
je 0x402cf7
push esi
push eax
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
mov ecx, dword [ebp - 4]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 4], ecx
mov eax, dword [esi + 4]
cmp eax, 0x100
je 0x402d08
cmp eax, 0x104
jne 0x402d58
mov edi, dword [esi + 8]
cmp edi, 0x10
je 0x402d58
cmp edi, 0x11
je 0x402d58
mov ecx, dword [0x4af094]
test ecx, ecx
je 0x402d58
mov ecx, dword [ecx + 0xb4]
test ecx, ecx
je 0x402d58
cmp eax, 0x104
je 0x402d3f
mov eax, 0x2000
test word [esi + 0xe], ax
jne 0x402d3f
xor edx, edx
jmp 0x402d44
mov edx, 1
push ecx
mov ecx, dword [0x4af070]
push edi
call fcn.00453ac0
add esp, 8
test eax, eax
jne 0x402d6c
cmp dword [ebp - 4], 0
jne 0x402d6c
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402d9a
test al, 1
je 0x402d80
cmp dword [esi + 4], 0x111
je 0x402db7
test al, 2
je 0x402d8d
cmp dword [esi + 4], 0x201
je 0x402db7
test al, 4
je 0x402d9a
cmp dword [esi + 4], 0x202
je 0x402db7
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x402c60
pop edi
push 0
call dword [sym.imp.USER32.dll_GetKeyState]
push 0x4aef50
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov dword [0x4aef4c], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407ff0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea edx, [ecx + 2]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408000
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.004737f9
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4080c1
mov ecx, ebx
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x408030
push 0x5c
push ebx
call fcn.00470fc6
add esp, 8
test eax, eax
je 0x408055
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x40807e
cmp word [ebx + 2], 0x5c
jne 0x40807e
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.00471068
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4080a1
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x408097
cmp word [ebx + 2], 0x3a
jne 0x408094
cmp word [ebx + 4], 0x5c
jne 0x408094
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x408097
push 0x5c
push ebx
call fcn.00471068
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.004737f9
mov esi, eax
add esp, 8
test esi, esi
jne 0x4080cb
push dword [ebp - 4]
call fcn.0047380f
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x408138
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.0047707d
push esi
call fcn.00477227
add esp, 0x10
test eax, eax
je 0x408114
push esi
call fcn.00477232
add esp, 4
test eax, eax
je 0x408101
mov edi, 1
jmp 0x408114
push esi
call fcn.00477227
add esp, 4
test eax, eax
mov eax, 1
cmovne edi, eax
lea eax, [ebx + 2]
mov dword [ebp - 8], ebx
push 0x5c
push eax
call fcn.00471068
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4081ac
mov ecx, dword [ebp - 8]
test edi, edi
je 0x4080d2
jmp 0x4081ac
mov edx, esi
sub edx, dword [ebp - 4]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x408140
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408155
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x408178
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x408178
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.00477227
add esp, 4
test eax, eax
je 0x4081ac
push esi
call fcn.00477232
add esp, 4
test eax, eax
je 0x408199
mov edi, 1
jmp 0x4081ac
push esi
call fcn.00477227
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.0047380f
push dword [ebp - 4]
call fcn.0047380f
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret