joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4391d0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x4391fa
mov eax, 2
pop ebp
ret
push esi
call fcn.0042d300
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x43921a
jmp dword [eax*4 + 0x439250]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.0042d440
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x439260
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x44d100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43935b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x43935b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x4392ba
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x439298
jmp 0x43935b
cmp edx, 0x200
jae 0x4393c1
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x43935b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x43935a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x43935a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x4393a3
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x439340
pop edi
mov eax, dword [0x450960]
test eax, eax
jne 0x439381
push 0x446388
call fcn.0043a0d0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x43937c
or eax, 0xffffffff
mov dword [0x450960], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x4393af
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c160
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x43935a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c160
mov esp, ebp
pop ebp
ret
call fcn.0042c3f7
int3

Function at 0x4396c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004396f0
mov esi, dword [ebp + 8]
test al, al
je 0x4396de
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00439700
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x439830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43988c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43988c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43988c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43988c
cmp dword [ecx + 0x74], 0xe
jbe 0x43988c
cmp dword [ecx + 0xe8], 0
je 0x43988c
push dword [ebp + 8]
call fcn.00439700
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x45096c
call fcn.004394d0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4398c1
push dword [ebp + 8]
call fcn.004396c0
mov esp, ebp
pop ebp
ret

Function at 0x439900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43995c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43995c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43995c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43995c
cmp dword [ecx + 0x74], 0xe
jbe 0x43995c
cmp dword [ecx + 0xe8], 0
je 0x43995c
push dword [ebp + 8]
call fcn.00439700
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x45096c
call fcn.004394d0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x439991
push dword [ebp + 8]
call fcn.004396c0
mov esp, ebp
pop ebp
ret
Function at 0x401980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42bb03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x42e194]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
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 ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42bb93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
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 ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x401b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42bbc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
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 ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x403f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42bfc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edi
mov ebx, ecx
push eax
lea ecx, [esp + 0x10]
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__]
cmp dword [esp + 0x24], 0x10
mov edi, dword [esp + 0x10]
mov dword [esp + 0x30], 0
jae 0x403f53
lea edi, [esp + 0x10]
push 0x2e
push edi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x403f69
mov byte [esi], 0
inc esi
push edi
lea ecx, [ebx + 4]
call fcn.0041d3f0
mov edi, eax
test edi, edi
je 0x403fbe
test esi, esi
je 0x403fe6
push esi
mov ecx, edi
call fcn.0041edb0
test eax, eax
je 0x403fbe
mov cl, byte [eax + 1]
and cl, 0xcf
cmp cl, 0xc
jne 0x403fbe
mov esi, dword [eax + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
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 ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x407a40
Capabilities:
Print debug messages
Query service status
Stop service

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.DMS_Kill
call edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x407a97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x5c]
push str.OpenSCManager_failed__error_code___d_n
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc4
ret
mov ecx, dword [esp + 0xd8]
push 0xf01ff
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x407ae1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x5c]
push str.OpenService_failed__error_code___d_n
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
push ebp
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc4
ret
lea eax, [esp + 0x3c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407b7d
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [esp + 0x10]
push ecx
push 0x24
lea edx, [esp + 0x20]
push edx
push 0
push esi
mov dword [esp + 0x24], 0
call ebx
push str.DMS_Uninstall_begin
call edi
cmp dword [esp + 0x1c], 1
je 0x407b5a
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push str.DMS_Uninstall_retry
call edi
push 0x1f4
call ebp
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call ebx
cmp dword [esp + 0x1c], 1
jne 0x407b30
mov ebp, dword [esp + 0x14]
push str.DMS_Uninstall_finish
call edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x5c]
push str.ControlService_failed__error_code___d_n
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
push esi
call ebx
push ebp
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc4
ret
Function at 0x407bb0
Capabilities:
Start service

Disassembly:
sub esp, 0x7c
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x407bee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.OpenSCManager_failed__error_code___d_n
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x8c]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x407c34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.OpenService_failed__error_code___d_n
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x407c67
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x7c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.StartService_failed__error_code___d_n
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
push esi
call ebx
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret

Function at 0x407e20
Capabilities:
Delete service

Disassembly:
sub esp, 0x7c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x407e58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push str.OpenSCManager_failed__error_code___d_n
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
pop edi
add esp, 0x7c
ret
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x407ea0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push str.OpenService_failed__error_code___d_n
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x7c
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push ebx
jne 0x407eb8
push str.Failed_to_delete_service__s_n
lea edx, [esp + 0x18]
push edx
jmp 0x407ec2
push str.Service__s_removed_n
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x7c
ret
Function at 0x407ee0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x7c
push ebx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x407f15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push str.OpenSCManager_failed__error_code___d_n
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
pop ebx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x84]
push ebp
push esi
push edi
mov esi, dword [esp + 0x94]
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
push 2
push pe_nt_image_headers32
push 0xf01ff
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x407f74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_create_service__s__error_code___d_n
call fcn.0040f6a0
add esp, 0xc
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
push esi
push str.Service__s_installed_n
call fcn.0040f6a0
add esp, 8
push edi
call ebp
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x408de0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call fcn.0042aea0
lea eax, [esp]
push eax
push 0x400
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x408e84
mov edx, dword [esp]
cmp edx, 4
jb 0x408e84
shr edx, 2
or ecx, 0xffffffff
xor eax, eax
test edx, edx
push esi
jbe 0x408e50
push edi
mov edi, dword [esp + 0x1010]
lea ecx, [ecx]
mov esi, dword [esp + eax*4 + 0xc]
cmp esi, edi
jae 0x408e45
cmp ecx, 0xffffffff
je 0x408e43
cmp dword [esp + ecx*4 + 0xc], esi
jae 0x408e45
mov ecx, eax
inc eax
cmp eax, edx
jb 0x408e30
cmp ecx, 0xffffffff
pop edi
jne 0x408e5a
xor eax, eax
pop esi
add esp, 0x1004
ret
mov edx, dword [esp + 0x1010]
mov eax, dword [esp + ecx*4 + 8]
push 0x104
lea esi, [esp + ecx*4 + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x408e50
mov eax, dword [esi]
pop esi
add esp, 0x1004
ret
xor eax, eax
add esp, 0x1004
ret

Function at 0x408f60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
push ebx
push esi
push edi
push str._CMediaServer::ServerWakeUpNotify_
mov ebx, ecx
call fcn.0040f6a0
xor eax, eax
mov byte [esp + 0x14], 0
mov ecx, 0x3f
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x443cd8]
add esp, 4
cmp eax, 0x10
mov eax, dword [0x443cc4]
jae 0x408fa7
mov eax, 0x443cc4
push eax
push 0x100
lea eax, [esp + 0x18]
push eax
push 0x42e658
push str.ClientPort
push str.MSClient
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408fd0
sub eax, edx
mov dword [esp + 0xc], eax
jne 0x408feb
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [ebx + 0xc1d8]
add ebx, 0xc1f8
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
push eax
mov ecx, esi
call fcn.00408800
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4094d0
Capabilities:
Hash data using rshash

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
xor ecx, ecx
test edi, edi
mov eax, 0xf8c9
jbe 0x409511
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x2c]
lea ecx, [ecx]
cmp ebp, 0x10
mov edx, ebx
jae 0x4094fb
lea edx, [esp + 0x18]
movsx edx, byte [edx + ecx]
imul esi, eax
imul eax, eax, 0x5c6b7
add esi, edx
inc ecx
cmp ecx, edi
jb 0x4094f0
pop ebp
pop ebx
lea ecx, [esp + 0xc]
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, esi
pop edi
and eax, 0x7fffffff
pop esi
ret
Function at 0x40bf30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x524
mov edx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
cmp edx, ebx
push edi
mov esi, ecx
je 0x40c090
xor eax, eax
mov byte [esp + 0x110], bl
mov ecx, 0x40
lea edi, [esp + 0x111]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x114]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40c0b8
xor eax, eax
mov byte [esp + 0x428], bl
mov ecx, 0x40
lea edi, [esp + 0x429]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x218], bl
mov ecx, 0x40
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x10], bl
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x120]
push eax
mov byte [esp + 0x20], bl
mov word [esp + 0x21], bx
call dword [sym.imp.MSVCR71.dll__splitpath]
xor eax, eax
mov byte [esp + 0x334], bl
mov ecx, 0x40
lea edi, [esp + 0x335]
rep stosd dword es:[edi], eax
push str.DllPath.ini
stosw word es:[edi], ax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCR71.dll_sprintf]
lea eax, [esp + 0x340]
push 0x434784
push eax
call edi
mov eax, dword [ebp + 0xc]
add esp, 0x28
lea ecx, [esp + 0x320]
push ecx
push 0x104
lea edx, [esp + 0x220]
push edx
push 0x42e658
push eax
push str.Path
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x218]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x434]
push 0x434784
push ecx
call edi
add esp, 0x14
push 8
push ebx
lea edx, [esp + 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40c09a
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x40c0b1
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x40c0e4
mov ecx, esi
call fcn.0040b990
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40c0cf
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call esi
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x10]
lea edi, [esi + 8]
push edi
push 0x436c48
push ecx
call eax
cmp eax, ebx
mov dword [esp + 0xc], eax
jl 0x40c119
mov eax, dword [edi]
cmp eax, ebx
je 0x40c119
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push ebx
push eax
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi], ebx
je 0x40c125
mov dword [esp + 0xc], 0x80004005
mov ecx, esi
call fcn.0040b990
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14