joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x4f5108]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x46d2a7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00479b70
mov esp, ebp
pop ebp
ret 0x14
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00492550
add esp, 0xc
lea eax, [ebp - 0x80c]
test edi, edi
je 0x46d2da
push edi
push esi
push 0x4dbf40
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x46d2ea
push esi
push 0x4dbe5c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.00492550
mov ax, word [ebp + 0x18]
add esp, 0xc
mov word [ebp - 0x834], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x864], 0x44
movups xmmword [ebp - 0x81c], xmm0
push eax
lea eax, [ebp - 0x864]
mov dword [ebp - 0x838], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x46d292
cmp dword [ebp + 0x10], 0
je 0x46d379
push dword [ebp + 0x14]
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x81c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x818]
call esi
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00479b70
mov esp, ebp
pop ebp
ret 0x14

Function at 0x46d3b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4f5108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x46d47d
mov eax, dword [0x4e09cc]
xorps xmm0, xmm0
movups xmmword [ebp - 0x22], xmm0
push 0x38
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
movq qword [ebp - 0x12], xmm0
movq xmm0, qword [str.runas]
push 0
push eax
mov dword [ebp - 0xa], 0
mov word [ebp - 6], 0
movq qword [ebp - 0x24], xmm0
call fcn.00492550
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], ebx
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x46d47d
cmp dword [ebp + 0x10], 0
je 0x46d45c
push dword [ebp + 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479b70
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00479b70
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46e540
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4ef0d0
push 0x4944e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4f5108]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x46e5ad
push 1
push str.ExtensionProtect
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x46e5a8
mov ebx, 1
push eax
call edi
push esi
call edi
jmp 0x46e5b3
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x46e5bc
lea eax, [ebx + 1]
jmp 0x46e621
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ebx
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], ebx
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x46e613
push 0x10020
push str.ExtensionProtect
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x46e613
lea eax, [ebp - 0x38]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0046e649
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00479b70
mov esp, ebp
pop ebp
ret
Function at 0x470e10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c48f4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4f5108]
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, dword [0x4f8ff0]
test esi, esi
jne 0x470e75
push 0x140
call fcn.00479672
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x470e66
mov ecx, eax
call fcn.00470850
mov esi, eax
jmp 0x470e68
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x4f8ff0], esi
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x470f32
push 1
mov ecx, esi
call fcn.0041c420
push 0xc0
call fcn.00479672
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x470eb5
mov ecx, eax
call fcn.0040f5a0
mov edi, eax
jmp 0x470eb7
xor edi, edi
push 3
push 0x83
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0040f270
push 2
mov ecx, edi
call fcn.00410070
movaps xmm0, xmmword [0x4c7db0]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call fcn.004101c0
push edi
mov ecx, esi
call fcn.0041c440
push 0
mov ecx, esi
call fcn.0041ac90
movaps xmm0, xmmword [0x4c7dc0]
push 0
push ecx
mov eax, esp
push 0x40000
push SysReAllocString
push 0x4dbeb0
push ecx
mov dword [eax], 0
lea ecx, [ebp - 0x20]
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push 0
mov dword [eax], ecx
mov ecx, esi
call fcn.00419710
push 1
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0041c500
push eax
call fcn.00455580
add esp, 4
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.00479b70
mov esp, ebp
pop ebp
ret
Function at 0x475210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4f5108]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4752bc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4752bc
call fcn.004425d0
mov esi, eax
jmp 0x4753ac
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4752df
call fcn.004425d0
jmp 0x47539f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4752fd
call fcn.004425d0
jmp 0x47539f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x47531e
mov esi, 0x8007000e
jmp 0x4753a1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00474100
jmp 0x475348
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x47535f
mov esi, 0x8007000e
jmp 0x4753a1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x47537f
call fcn.004425d0
jmp 0x47539f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004750b0
mov esi, eax
test edi, edi
je 0x4753ac
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4753d0
lea ecx, [ebp - 0x418]
call fcn.004745e0
nop word [eax + eax]
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 - 0x14]
xor ecx, ebp
call fcn.00479b70
mov esp, ebp
pop ebp
ret 0x10
Function at 0x476440
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x476459
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x476465
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x476460
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47c50b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4aeb42
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ae9c1

Function at 0x4b5207
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b4ec7
Function at 0x402b80
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0x1f4
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x28], 0
mov al, 1
pop esi
ret

Function at 0x403000
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x24]
push eax
push 0
push esi
push 0x402e80
push 0
push 0
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
mov dword [esi + 0x28], eax
pop esi
jne 0x403028
xor al, al
ret
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
ret
Function at 0x4030f0
Capabilities:
Copy file
Create service
Get common file path

Disassembly:
sub esp, 0x254
mov eax, dword [0x412450]
mov dword [esp + 0x250], eax
push 0x37
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40312a
push str.PortTalk:_Failed_to_get_System_Directory._Is_System_Directory_Path___55_Characters__n
call fcn.00404d74
push str.PortTalk:_Please_manually_copy_driver_to_your_system32_driver_directory._n
call fcn.00404d74
add esp, 8
push str.DriversPortTalk.sys
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp]
push edx
push str.PortTalk:_Copying_driver_to__s_n
call fcn.00404d74
add esp, 8
push 0x200
lea eax, [esp + 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403164
sub eax, edx
mov dl, byte [esp + eax + 0x4f]
dec eax
mov cl, 0x5c
cmp dl, cl
je 0x403185
test eax, eax
je 0x403185
mov dl, byte [esp + eax + 0x4f]
dec eax
cmp dl, cl
jne 0x403178
push edi
lea edi, [esp + 0x54]
mov byte [esp + eax + 0x54], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403190
mov ecx, dword [str.PortTalk.sys]
mov edx, dword [0x40f348]
mov eax, dword [0x40f34c]
mov dword [edi], ecx
mov cx, word [0x40f350]
mov dword [edi + 4], edx
push 0
mov dword [edi + 8], eax
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x5c]
push eax
mov word [edi + 0xc], cx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
pop edi
jne 0x4031ee
lea ecx, [esp]
push ecx
push str.PortTalk:_Failed_to_copy_driver_to__s_n
call fcn.00404d74
push str.PortTalk:_Please_manually_copy_driver_to_your_system32_driver_directory._n
call fcn.00404d74
add esp, 0xc
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 1
push 3
push 1
push 0xf01ff
push str.PortTalk
push str.PortTalk
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x40324a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x403243
push str.PortTalk:_Driver_already_exists._No_action_taken._n
jmp 0x40324f
push str.PortTalk:_Unknown_error_while_creating_Service._n
jmp 0x40324f
push str.PortTalk:_Driver_successfully_installed._n
call fcn.00404d74
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x254]
pop esi
call fcn.00404b1b
add esp, 0x254
ret
Function at 0x403280
Capabilities:
Start service

Disassembly:
push ebp
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4032ca
call ebp
cmp eax, 5
jne 0x4032ca
push str.PortTalk:_You_do_not_have_rights_to_access_the_Service_Control_Manager_and_n
call fcn.00404d74
push str.PortTalk:_the_PortTalk_driver_is_not_installed_or_started._Please_ask__n
call fcn.00404d74
push str.PortTalk:_your_administrator_to_install_the_driver_on_your_behalf._n
call fcn.00404d74
add esp, 0xc
pop edi
xor al, al
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push esi
push 0xf01ff
push str.PortTalk
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x40333e
call ebp
cmp eax, 5
je 0x40332a
cmp eax, 0x7b
je 0x403316
cmp eax, 0x424
jne 0x4032d2
push str.PortTalk:_The_PortTalk_driver_does_not_exist._Installing_driver._n
call fcn.00404d74
push str.PortTalk:_This_can_take_up_to_30_seconds_on_some_machines_._._n
call fcn.00404d74
add esp, 8
call fcn.004030f0
jmp 0x4032d2
push str.PortTalk:_The_specified_service_name_is_invalid._n
call fcn.00404d74
add esp, 4
pop esi
pop ebx
pop edi
xor al, al
pop ebp
ret
push str.PortTalk:_You_do_not_have_rights_to_the_PortTalk_service_database_n
call fcn.00404d74
add esp, 4
pop esi
pop ebx
pop edi
xor al, al
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0
push 0
push esi
call edi
test eax, eax
jne 0x40335f
call fcn.004030f0
push 0
push 0
push esi
call edi
test eax, eax
je 0x403366
push str.PortTalk:_The_PortTalk_driver_has_been_successfully_started._n
jmp 0x403374
call ebp
cmp eax, 0x420
jne 0x40338a
push str.PortTalk:_The_PortTalk_driver_is_already_running._n
call fcn.00404d74
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
pop edi
mov al, 1
pop ebp
ret
push str.PortTalk:_Unknown_error_while_starting_PortTalk_driver_service._n
call fcn.00404d74
push str.PortTalk:_Does_PortTalk.SYS_exist_in_your_System32Drivers_Directory__n
call fcn.00404d74
add esp, 8
pop esi
pop ebx
pop edi
xor al, al
pop ebp
ret
Function at 0x403420
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x40c
mov eax, dword [0x412450]
push esi
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push edi
push str.BeatUPAgentMessage1
mov dword [esp + 0x414], eax
call esi
push str.BeatUPAgentMessage2
mov dword [0x412f38], eax
call esi
push str.BeatUPAgentMessage3
mov dword [0x412f40], eax
call esi
push str.BeatUPAgentMessage4
mov dword [0x412f28], eax
call esi
mov dword [0x412f2c], eax
push 0x200
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403483
sub eax, edx
mov esi, eax
mov cl, byte [esp + esi + 0xf]
dec esi
mov al, 0x5c
cmp cl, al
je 0x4034ad
lea esp, [esp]
test esi, esi
je 0x4034ad
mov cl, byte [esp + esi + 0xf]
dec esi
cmp cl, al
jne 0x4034a0
lea edi, [esp + 0x10]
mov byte [esp + esi + 0x10], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4034b7
mov ecx, dword [str._beatdata]
mov edx, dword [0x40f7c4]
mov ax, word [0x40f7c8]
mov dword [edi], ecx
lea ecx, [esp + 0x10]
mov dword [edi + 4], edx
push ecx
mov ecx, 0x412f4c
mov word [edi + 8], ax
call fcn.00402910
mov edx, dword [0x412f48]
push 0x65
push edx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x412f30], eax
call fcn.004033b0
cmp al, 0xff
jne 0x4035f7
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x218]
push ecx
call fcn.004048a0
lea edi, [esp + 0x21c]
add esp, 0xc
mov byte [esp + esi + 0x210], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403530
mov edx, dword [str.porttalk.sys]
mov eax, dword [0x40f7b4]
mov ecx, dword [0x40f7b8]
mov dword [edi], edx
mov dx, word [0x40f7bc]
mov dword [edi + 4], eax
push 0x200
lea eax, [esp + 0x14]
mov dword [edi + 8], ecx
push eax
mov word [edi + 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403571
mov ecx, dword [str.driversporttalk.sys]
mov edx, dword [0x40f79c]
mov eax, dword [0x40f7a0]
mov dword [edi], ecx
mov ecx, dword [0x40f7a4]
mov dword [edi + 4], edx
mov edx, dword [0x40f7a8]
mov dword [edi + 8], eax
mov ax, word [0x40f7ac]
mov dword [edi + 0xc], ecx
push 0
mov dword [edi + 0x10], edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x218]
push edx
mov word [edi + 0x14], ax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call fcn.004033b0
cmp al, 0xff
jne 0x4035f7
push 0
push str.Error
push str.Porttalk_service_error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x408]
call fcn.00404b1b
add esp, 0x40c
ret
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], 8
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [esp + 0x410]
pop edi
mov eax, 1
pop esi
call fcn.00404b1b
add esp, 0x40c
ret
Function at 0x404ede
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40f9b8
call fcn.00407c60
mov edi, 0x94
mov eax, edi
call fcn.004098e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x412fc0], ecx
mov eax, dword [esi + 4]
mov dword [0x412fcc], eax
mov edx, dword [esi + 8]
mov dword [0x412fd0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x412fc4], esi
cmp ecx, 2
je 0x404f3e
or esi, 0x8000
mov dword [0x412fc4], esi
shl eax, 8
add eax, edx
mov dword [0x412fc8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404f79
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404f79
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404f91
cmp eax, 0x20b
je 0x404f7e
mov dword [ebp - 0x1c], esi
jmp 0x404fa5
cmp dword [ecx + 0x84], 0xe
jbe 0x404f79
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x404f9f
cmp dword [ecx + 0x74], 0xe
jbe 0x404f79
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040988f
pop ecx
test eax, eax
jne 0x404fd1
cmp dword [0x412f84], 1
jne 0x404fbe
call fcn.00409044
push 0x1c
call fcn.00408ecd
push 0xff
call fcn.004078a4
pop ecx
pop ecx
call fcn.004097ed
mov dword [ebp - 4], esi
call fcn.00409642
test eax, eax
jge 0x404fea
push 0x1b
call fcn.00404eb9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4145bc], eax
call fcn.00409520
mov dword [0x412f7c], eax
call fcn.0040947e
test eax, eax
jge 0x405010
push 8
call fcn.00404eb9
pop ecx
call fcn.0040924b
test eax, eax
jge 0x405021
push 9
call fcn.00404eb9
pop ecx
push 1
call fcn.004078d4
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405037
push eax
call fcn.00404eb9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004091ee
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405058
movzx eax, word [ebp - 0x40]
jmp 0x40505b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00403c20
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405079
push edi
call fcn.004079ff
call fcn.00407a21
jmp 0x4050ab
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00407c9b
ret
Function at 0x40793e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x413000], esi
push edi
jne 0x40795e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x412ffc], esi
mov byte [0x412ff8], al
jne 0x4079c4
mov ecx, dword [0x4145b4]
test ecx, ecx
je 0x4079a5
mov eax, dword [0x4145b0]
sub eax, 4
cmp eax, ecx
jmp 0x40799e
mov eax, dword [eax]
test eax, eax
je 0x407990
call eax
mov eax, dword [0x4145b0]
sub eax, 4
cmp eax, dword [0x4145b4]
mov dword [0x4145b0], eax
jae 0x407988
mov eax, 0x41202c
mov esi, 0x412034
cmp eax, esi
mov edi, eax
jae 0x4079c4
mov eax, dword [edi]
test eax, eax
je 0x4079bd
call eax
add edi, 4
cmp edi, esi
jb 0x4079b5
mov eax, 0x412038
mov esi, 0x412040
cmp eax, esi
mov edi, eax
jae 0x4079e3
mov eax, dword [edi]
test eax, eax
je 0x4079dc
call eax
add edi, 4
cmp edi, esi
jb 0x4079d4
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4079fd
push dword [ebp + 8]
mov dword [0x413000], 1
call fcn.004078a4
pop ebp
ret

Function at 0x408ecd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x412450]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x412730]
je 0x408f02
inc eax
cmp eax, 0x13
jb 0x408ef3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x412730]
jne 0x409028
mov eax, dword [0x412f84]
cmp eax, 1
je 0x409000
cmp eax, edx
jne 0x408f32
cmp dword [0x412464], 1
je 0x409000
cmp ecx, 0xfc
je 0x409028
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408f68
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405f10
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00405160
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408f9c
mov eax, edi
push eax
call fcn.00405160
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40fae8
push edi
call fcn.004048a0
add esp, 0x10
push edi
call fcn.00405160
push dword [esi + 0x412734]
mov ebx, eax
call fcn.00405160
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004098e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405f10
push edi
push ebx
call fcn.00405f20
push 0x40fae4
push ebx
call fcn.00405f20
push dword [esi + 0x412734]
push ebx
call fcn.00405f20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040b8c3
add esp, 0x2c
jmp 0x409028
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x412734]
push dword [esi]
call fcn.00405160
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00404b1b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret