joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c620
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4882e0
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.00458510
push esi
mov eax, dword [0x4db434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40c6b3
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0040c6d0
mov dword [ebp - 4], 0
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00402830
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
jb 0x40c686
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x1048]
push str.Could_not_delete_service_with_name__s___i_.
push eax
call fcn.004052e0
add esp, 0x10
lea eax, [ebp - 0x1048]
push 0x4d8cc4
push eax
call fcn.00459b3b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c790
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488391
mov eax, dword fs:[0]
push eax
mov eax, 0x1060
call fcn.00458510
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x30], edi
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.0040d130
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], 0
push dword [eax + 0xc]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, eax
test edx, edx
jne 0x40c860
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0040c6d0
mov byte [ebp - 4], 2
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.00402830
mov esi, eax
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 0x10
jb 0x40c833
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x106c]
push str.Could_not_perform_command_line_conversion_to_service_path_with_name__s___i_.
push eax
call fcn.004052e0
add esp, 0x10
lea eax, [ebp - 0x106c]
push 0x4d8cc4
push eax
call fcn.00459b3b
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push edx
movq qword [ebp - 0x28], xmm0
call fcn.0040da10
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c880
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, edi
call fcn.004027b0
add esp, 4
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040d4b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004072e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004584f8
mov esp, ebp
pop ebp
ret 4
Function at 0x40cdd0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4882e0
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.00458510
push esi
mov eax, dword [0x4db434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 8]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x40ce78
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0040c6d0
mov dword [ebp - 4], 0
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00402830
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
jb 0x40ce4b
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x1048]
push str.Could_not_change_start_type_for_service_with_name__s___i_.
push eax
call fcn.004052e0
add esp, 0x10
lea eax, [ebp - 0x1048]
push 0x4d8cc4
push eax
call fcn.00459b3b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40ce90
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4882e0
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.00458510
push esi
mov eax, dword [0x4db434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40cf27
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0040c6d0
mov dword [ebp - 4], 0
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00402830
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
jb 0x40cefa
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x1048]
push str.Could_not_start_service_with_name__s___i_.
push eax
call fcn.004052e0
add esp, 0x10
lea eax, [ebp - 0x1048]
push 0x4d8cc4
push eax
call fcn.00459b3b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d2c0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488549
mov eax, dword fs:[0]
push eax
mov eax, 0x104c
call fcn.00458510
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [ebx + 4]
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40d3c0
call edi
cmp eax, 0x7a
je 0x40d3b6
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0040c6d0
mov dword [ebp - 4], 1
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.00402830
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0x10
jb 0x40d38d
mov esi, dword [esi]
call edi
push eax
push esi
lea eax, [ebp - 0x1058]
push str.Could_not_get_service_status__query_failed_with_name__s___i_.
push eax
call fcn.004052e0
add esp, 0x10
lea eax, [ebp - 0x1058]
push 0x4d8cc4
push eax
call fcn.00459b3b
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0040d510
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [esi]
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x40d42b
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.0040c6d0
mov dword [ebp - 4], 3
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00402830
mov esi, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 0x10
jb 0x40d402
mov esi, dword [esi]
call edi
push eax
push esi
lea eax, [ebp - 0x1058]
push str.Could_not_get_service_status__fetch_failed_with_name__s___i_.
push eax
call fcn.004052e0
add esp, 0x10
lea eax, [ebp - 0x1058]
push 0x4d8cc4
push eax
call fcn.00459b3b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004584f8
mov esp, ebp
pop ebp
ret 4
Function at 0x412a90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489658
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.00458510
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 8]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00409390
mov dword [ebp - 4], 0
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x412d10
push 0
push 0
call fcn.0046034a
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
mov ecx, dword [esi]
mov dword [ebp - 0x18], 0
cmp edi, ecx
je 0x412b4f
test ecx, ecx
je 0x412b4d
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x412b47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1028]
push str.Could_not_close_handle___i_.
push eax
call fcn.004052e0
add esp, 0xc
lea eax, [ebp - 0x1028]
push 0x4d8cc4
push eax
call fcn.00459b3b
mov dword [esi], 0
mov dword [esi], edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00405050
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
cmp dword [esi], 0
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00405050
test bl, bl
je 0x412ba1
lea eax, [ebp - 0x1028]
push str.Thread_cannot_start.
push eax
call fcn.004052e0
add esp, 8
lea eax, [ebp - 0x1028]
push 0x4d8cc4
push eax
call fcn.00459b3b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004093f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004584f8
mov esp, ebp
pop ebp
ret

Function at 0x412be0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489688
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 8]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00409390
mov dword [ebp - 4], 0
lea edi, [esi + 0x50]
mov al, byte [edi]
test al, al
je 0x412c3e
mov eax, dword [esi]
test eax, eax
je 0x412c3e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor al, al
xchg byte [edi], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004093f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004584f8
mov esp, ebp
pop ebp
ret
Function at 0x413200
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48982c
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.00458510
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x3c], 0
call fcn.00413560
add esp, 4
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
test ebx, ebx
je 0x413284
mov eax, dword [ebx]
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], eax
movq qword [esi], xmm0
mov dword [esi], vtable.Mutex.0
mov dword [esi + 4], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
mov dword [ebp - 0x3c], 1
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004028a0
add esp, 8
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4132bc
mov eax, dword [eax]
push eax
xor ecx, ecx
lea eax, [ebp - 0x34]
test ebx, ebx
push 0
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 4]
call fcn.00408330
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00405050
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x413308
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.00403b20
xor eax, eax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
cmp dword [esi + 4], eax
jne 0x41339b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
jne 0x413359
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x60]
push str.Access_is_denied_when_creating_mutex:__s
push eax
call fcn.004130f0
add esp, 0xc
lea eax, [ebp - 0x60]
push 0x4d8e5c
push eax
call fcn.00459b3b
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x54]
call fcn.00402830
mov esi, eax
mov byte [ebp - 4], 5
cmp dword [esi + 0x14], 0x10
jb 0x413372
mov esi, dword [esi]
call edi
push eax
push esi
lea eax, [ebp - 0x1070]
push str.Could_not_create_open_mutex_with_name__s___i_.
push eax
call fcn.004052e0
add esp, 0x10
lea eax, [ebp - 0x1070]
push 0x4d8cc4
push eax
call fcn.00459b3b
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4133b7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403b80
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004584f8
mov esp, ebp
pop ebp
ret
Function at 0x413b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489942
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x28], esi
call fcn.00456a90
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x413c2c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00459ab9
add esp, 8
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], vtable.std::runtime_error.0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x24]
push 0x4d8e88
push eax
call fcn.00459b3b
push edi
push esi
call fcn.00456dd8
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004584f8
mov esp, ebp
pop ebp
ret 4

Function at 0x421930
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b6e0
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.00458510
push esi
mov eax, dword [0x4db434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.004028a0
add esp, 8
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x42197d
mov eax, dword [eax]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x4219a4
inc ecx
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.00403b20
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
test esi, esi
je 0x4219fd
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.00402830
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x4219d6
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x1030]
push str.Could_not_delete_specified_registry_subkey__s___i_.
push eax
call fcn.004052e0
add esp, 0x10
lea eax, [ebp - 0x1030]
push 0x4d8cc4
push eax
call fcn.00459b3b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x424320
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bc89
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd4], ecx
mov byte [ecx], 0
mov dword [ebp - 4], 1
add ecx, 0x18
push eax
call fcn.00401a00
mov byte [ebp - 4], 2
push esi
mov esi, dword [ebp - 0xd8]
lea ecx, [esi + 0x30]
call fcn.00401a00
mov byte [ebp - 4], 3
lea ecx, [esi + 0x48]
push edi
call fcn.00401a00
mov byte [ebp - 4], 4
lea ecx, [esi + 0x60]
push ebx
call fcn.00401a00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
mov al, byte [ebp + 0x18]
push str.__spsetup.exe
mov byte [esi + 0x78], al
call fcn.00401860
mov byte [ebp - 4], 6
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00404ed0
add esp, 4
mov ecx, eax
call fcn.00404f00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd0]
push eax
call fcn.004083a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.00408540
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00401e70
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, esi
push eax
call fcn.00401dc0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x42444e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403b80
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x424479
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403b80
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd0]
call fcn.00406e30
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x4244b3
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00403b80
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4244de
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403b80
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004584f8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x424520
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bd85
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xd4], esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd4], esi
mov byte [esi], 0
mov dword [ebp - 4], 1
lea eax, [esi + 0x18]
mov dword [ebp - 0xd4], eax
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
mov byte [ebp - 4], 3
lea eax, [esi + 0x30]
mov dword [ebp - 0xd4], eax
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
mov byte [ebp - 4], 5
lea eax, [esi + 0x48]
mov dword [ebp - 0xd4], eax
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
mov byte [ebp - 4], 7
lea eax, [esi + 0x60]
mov dword [ebp - 0xd4], eax
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
push str.__spsetup.exe
call fcn.00401860
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00404ed0
add esp, 4
mov ecx, eax
call fcn.00404f00
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd0]
push eax
call fcn.004083a0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.00408540
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00401e70
add esp, 0xc
mov byte [ebp - 4], 0xe
mov ecx, esi
push eax
call fcn.00401dc0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x424674
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403b80
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x42469f
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403b80
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd0]
call fcn.00406e30
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x4246d9
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00403b80
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x424704
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403b80
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004584f8
mov esp, ebp
pop ebp
ret
Function at 0x425120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c09c
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.00458510
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.CLIENT_SETUP
lea ecx, [ebp - 0x40]
call fcn.00401860
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004028a0
add esp, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x425183
mov eax, dword [eax]
push eax
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4251a9
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00403b20
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
push eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4251fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x104c]
push str.Failed_to_get_client_setup_from_resources:__i
push eax
call fcn.004052e0
add esp, 0xc
lea eax, [ebp - 0x104c]
push 0x4d8cc4
push eax
call fcn.00459b3b
mov dword [ebp - 0x1060], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1054]
push eax
mov dword [ebp - 0x1050], 0
call fcn.004242a0
mov byte [ebp - 4], 3
lea eax, [esi + 0x4c]
push dword [esi + 4]
push dword [esi + 8]
push eax
lea eax, [ebp - 0x1050]
push eax
call fcn.0043bf90
add esp, 0x14
test eax, eax
sete al
test al, al
je 0x42526d
lea eax, [ebp - 0x104c]
push str.Failed_to_decompress_client_setup
push eax
call fcn.004052e0
add esp, 8
lea eax, [ebp - 0x104c]
push 0x4d8cc4
push eax
call fcn.00459b3b
push 3
push 1
push edi
lea ecx, [ebp - 0x105c]
call fcn.00407880
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x105c]
push dword [ebp - 0x1050]
push dword [esi + 4]
call fcn.004078f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1058]
call fcn.00407280
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1054]
test ecx, ecx
je 0x4252b8
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401c20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004584f8
mov esp, ebp
pop ebp
ret