joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40904b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x40d1f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
xor ebx, ebx
cmp ecx, ebx
je 0x401acf
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], esi
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401a2b
call fcn.00401040
cmp eax, ebx
jne 0x401acf
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push 2
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4019f9
call fcn.00401040
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xa0]
push 0xfde9
mov dword [ebp - 0xa4], ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.00401370
mov edi, dword [ebp - 0xa4]
mov byte [ebp - 4], 3
cmp edi, ebx
jne 0x401a32
xor eax, eax
jmp 0x401a40
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x4019c2
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401a37
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.004017a0
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x401a68
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 2
push 0x40a32c
lea ecx, [ebp - 0x14]
call fcn.004016e0
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
push ebx
lea edx, [ebp + 8]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x401a94
call fcn.00401040
cmp esi, ebx
je 0x401aa4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x18], esi
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ac4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x401acf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401c10
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x208
mov eax, dword [0x40d1f8]
xor eax, esp
mov dword [esp + 0x204], eax
mov ecx, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x210]
lea eax, [esp + 0x218]
push eax
push ecx
push 0xff
lea edx, [esp + 0x14]
push 0x100
push edx
call dword [sym.imp.MSVCR90.dll__vsnwprintf_s]
xor eax, eax
add esp, 0x14
lea ecx, [esp + 8]
mov word [esp + 0x206], ax
mov dword [esp + 4], ecx
cmp dword [esi + 0x260], eax
jne 0x401c7a
mov edx, ecx
push edx
call dword [sym.imp.MSVCR90.dll__putws]
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401cad
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
call fcn.004086bc
add esp, 0x208
ret

Function at 0x402120
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402196
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x402165
cmp eax, 2
jne 0x402181
mov eax, dword [esp + 0x14]
test esi, esi
je 0x402190
test eax, eax
je 0x40218b
test al, 1
jne 0x402181
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x402190
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x4021a0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x4021b4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x402230
Capabilities:
Create service

Disassembly:
sub esp, 0xa10
mov eax, dword [0x40d1f8]
xor eax, esp
mov dword [esp + 0xa0c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x402289
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40227e
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
jne 0x4023bc
push 0x104
lea ecx, [esp + 0x16]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402323
cmp eax, 0x104
je 0x402323
mov edx, 0x22
mov word [esp + 0x10], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [esp + eax*2 + 0x1e], cx
mov word [esp + eax*2 + 0x20], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40233e
push 0x400
lea eax, [esp + 0x220]
push eax
push 0xd80a
call fcn.00401e80
add esp, 0xc
test eax, eax
jne 0x40230d
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x220]
push 0x400
push ecx
call fcn.00401cd0
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [esp + 0x224]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0xa1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004086bc
add esp, 0xa10
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x4023b6
push esi
call ebp
push 0x400
lea ecx, [esp + 0x220]
push ecx
push 0xd80b
call fcn.00401e80
add esp, 0xc
test eax, eax
jne 0x4023a6
push str.Could_not_start_service
lea edx, [esp + 0x220]
push 0x400
push edx
call fcn.00401cd0
add esp, 0xc
push 0
push edi
lea eax, [esp + 0x224]
push eax
jmp 0x40231b
push eax
call ebp
push esi
call ebp
mov eax, 1
jmp 0x402325
Function at 0x4023d0
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1020
call fcn.004086f0
mov eax, dword [0x40d1f8]
xor eax, esp
mov dword [esp + 0x101c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40242b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x402420
push eax
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jne 0x402435
mov eax, 1
jmp 0x4025a5
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402490
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80a
call fcn.00401e80
add esp, 0xc
test eax, eax
jne 0x402483
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x30]
push 0x400
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
push eax
call fcn.00401b70
add esp, 0x10
push 0
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x40259b
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4024cc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80c
call fcn.00401e80
add esp, 0xc
test eax, eax
jne 0x402483
push str.Could_not_open_service
jmp 0x40246a
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40253b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40253b
cmp eax, 0x425
jne 0x4024f9
cmp dword [esp + 0x14], 3
je 0x40253b
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0xd80e
call fcn.00401e80
add esp, 0xc
test eax, eax
jne 0x40252b
push str.Could_not_stop_service
lea edx, [esp + 0x30]
push 0x400
push edx
call fcn.00401cd0
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
jne 0x40242b
push 0x400
lea ecx, [esp + 0x830]
push ecx
push 0xd80d
call fcn.00401e80
add esp, 0xc
test eax, eax
jne 0x402590
push str.Could_not_delete_service
lea edx, [esp + 0x830]
push 0x400
push edx
call fcn.00401cd0
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x834]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004086bc
add esp, 0x1020
ret
Function at 0x4030c0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x14
call fcn.004023d0
test eax, eax
jne 0x4030d5
mov eax, 0x80004005
add esp, 0x14
ret
lea eax, [esp]
push eax
push 0x20006
push 0
push str.AppID
push 0x80000000
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40315c
mov eax, dword [esp]
push ebp
push esi
push edi
push 0x20006
push str.F0D094A7_C48F_496E_B9DC_BA9E0B7F69BB
mov ebp, eax
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004020c0
test eax, eax
je 0x403169
push eax
call fcn.00401ed0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x40314c
push eax
call edi
test ebp, ebp
je 0x403153
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
push eax
call fcn.00401ed0
add esp, 4
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.00402de0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test esi, esi
je 0x40318f
push esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40319a
push eax
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x403500
Capabilities:
Modify service

Disassembly:
sub esp, 0x80c
mov eax, dword [0x40d1f8]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x814]
push ebp
push edi
xor ebp, ebp
push ebx
mov edi, ecx
mov dword [esp + 0x10], ebp
call fcn.00402ea0
test bl, bl
je 0x403622
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x403626
push 1
add edi, 0x40
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x40356d
push eax
mov ebx, 1
call ebp
push esi
call ebp
test ebx, ebx
je 0x40361c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x403594
call fcn.00401040
jmp 0x403628
push 2
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40360e
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push str.Glarysoft_Startup_Manager_Servers
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x14]
push eax
push 1
lea edx, [esp + 0x20]
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
call ebp
mov esi, dword [esp + 0x10]
push ebx
call ebp
mov eax, esi
jmp 0x403628
call fcn.00401040
push ebx
mov esi, eax
call ebp
mov eax, esi
jmp 0x403628
mov eax, dword [esp + 0x10]
jmp 0x403628
mov eax, ebp
jmp 0x403629
mov eax, ebp
pop esi
mov ecx, dword [esp + 0x814]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004086bc
add esp, 0x80c
ret 4
Function at 0x403ac0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x409109
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x40d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
mov dword [esp + 0x1c], 0
call edx
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 1
call fcn.004031b0
push str.Log_
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2c], 1
call fcn.00403870
add esp, 0x10
push eax
mov ecx, esi
mov byte [esp + 0x20], 2
call fcn.00403950
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
je 0x403bb7
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403bb7
mov eax, dword [esi]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 8
Function at 0x404010
Capabilities:
Get disk information

Disassembly:
sub esp, 0x4c4
mov eax, dword [0x40d1f8]
xor eax, esp
mov dword [esp + 0x4c0], eax
push esi
mov esi, dword [esp + 0x4cc]
push edi
mov edi, dword [esp + 0x4d4]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
test esi, esi
je 0x404162
test edi, edi
je 0x404162
push ebx
push ebp
lea eax, [esp + 0xe8]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40411b
xor ebx, ebx
cmp word [esp + 0xe8], bx
je 0x40411b
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea esi, [esp + 0xe8]
xor edi, edi
push 0x40a714
push esi
call ebp
test eax, eax
je 0x4040f7
push 0x40a70c
push esi
call ebp
test eax, eax
je 0x4040f7
mov cx, word [esi]
mov dx, word [esp + edi + 0xea]
mov word [esp + 0x18], cx
push 0x64
lea ecx, [esp + 0x24]
mov word [esp + 0x1e], dx
push ecx
lea edx, [esp + 0x20]
xor eax, eax
push edx
mov word [esp + 0x28], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x404123
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 0x10]
mov esi, eax
push esi
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.MSVCR90.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x404140
add ebx, 4
lea edi, [ebx + ebx]
cmp word [esp + edi + 0xe8], 0
lea esi, [esp + edi + 0xe8]
jne 0x404088
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c8]
pop edi
pop esi
xor ecx, esp
call fcn.004086bc
add esp, 0x4c4
ret 8
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + esi*2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x404125
xor eax, eax
jmp 0x404127

Function at 0x404170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404189
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4041c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4041c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4041c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4041b0
cmp esi, eax
jb 0x4041ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406750
Capabilities:
Get process image filename

Disassembly:
push 0xffffffffffffffff
push 0x4093cb
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x40d1f8]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov eax, dword [0x40d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0x43c]
mov esi, dword [esp + 0x438]
mov ecx, edi
call fcn.00401240
push 0x104
lea eax, [esp + 0x18]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
lea eax, [esp + 0x14]
je 0x4067f3
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4067d2
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.00401630
jmp 0x4068be
push 0x104
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
mov esi, eax
test esi, esi
je 0x4068be
push 0x104
lea ecx, [esp + 0x220]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.00404010
test eax, eax
je 0x406849
lea ecx, [esp + 0x21c]
push ecx
mov ecx, edi
call fcn.00401840
jmp 0x4068be
mov edx, dword [0x40d500]
mov eax, dword [edx + 0xc]
mov ecx, 0x40d500
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x430], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
push eax
push ecx
push esi
lea edx, [esp + 0x1c]
push str._d_path:_s_err:_d
push edx
call fcn.004060a0
mov esi, dword [esp + 0x24]
add esp, 0x14
push esi
mov ecx, 0x40d4ec
call fcn.00401950
lea eax, [esi - 0x10]
mov dword [esp + 0x430], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4068be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004086bc
add esp, 0x424
ret 8
Function at 0x406cc0
Capabilities:
Access peb ldr_data
Check mutex on windows
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4094f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x40d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push str.FileMutex_GuPM
push 1
push edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebp, eax
cmp ebp, edi
jne 0x406d74
mov eax, dword [0x40d500]
mov edx, dword [eax + 0xc]
mov ecx, 0x40d500
call edx
mov edi, dword [esp + 0x2c]
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00401240
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x18]
push ecx
call fcn.004031b0
push str.dataguprocessm.dat
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x34], 2
call fcn.00403870
add esp, 0x10
mov edi, dword [eax]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x24], 3
jge 0x406dcc
push 0x104
lea ecx, [esp + 0x14]
call fcn.00401550
mov esi, dword [esp + 0x10]
push edi
push 0x104
push esi
push 0
push 0x40a7c4
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 8]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_wcsnlen]
add esp, 8
test eax, eax
jl 0x406e90
cmp eax, dword [esi - 8]
jg 0x406e90
xor ecx, ecx
mov dword [esi - 0xc], eax
push ebp
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
push esi
call fcn.00401100
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x24], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x406d5d
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
jmp 0x406d58
push 0x80070057
call fcn.00401000
int3
Function at 0x408280
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 0x4c]
call fcn.00401240
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x408240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
pop esi
pop ecx
ret

Function at 0x4086bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d1f8]
jne 0x4086c6
repz ret
jmp fcn.00408c21
Function at 0x1078370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x107838e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x10a1074
push ecx
mov edi, eax
call fcn.0108c198
mov esi, eax
add esp, 8
test esi, esi
jne 0x10783cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0108c02e
push esi
call fcn.0108bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret