joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aeb6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43f838]
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 + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x4068ad
call fcn.00401680
mov edi, eax
jmp 0x406992
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4068c6
call fcn.00401680
jmp 0x406989
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x4068e4
call fcn.00401680
jmp 0x406989
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x406905
mov edi, 0x8007000e
jmp 0x40698b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00403880
mov dword [ebp - 4], 1
jmp 0x40693d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x40694e
mov edi, 0x8007000e
jmp 0x40698b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x406967
call fcn.00401680
jmp 0x406989
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00405920
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x4069b0
lea ecx, [ebp - 0x418]
call fcn.00402350
jmp 0x4069b0
mov eax, edi
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.0041e946
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408200
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b13a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43f838]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [0x440620]
mov edx, dword [eax + 0xc]
mov ecx, 0x440620
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x440620]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x440620
mov dword [ebp - 4], ebx
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [0x440620]
mov edx, dword [eax + 0xc]
mov ecx, 0x440620
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [0x440620]
mov edx, dword [eax + 0xc]
mov ecx, 0x440620
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov eax, dword [0x440620]
mov edx, dword [eax + 0xc]
mov ecx, 0x440620
mov byte [ebp - 4], 3
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [0x440620]
mov edx, dword [eax + 0xc]
mov ecx, 0x440620
mov byte [ebp - 4], 4
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
mov eax, dword [0x440620]
mov edx, dword [eax + 0xc]
mov ecx, 0x440620
mov byte [ebp - 4], 5
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
push 0x4406e4
lea ecx, [esi + 4]
mov byte [ebp - 4], 6
mov dword [esi + 0xc], ebx
mov word [esi + 0x10], bx
mov byte [esi + 0x12], bl
mov byte [esi + 0x24], bl
mov word [esi + 0x30], bx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], 0x7530
call fcn.00401300
push 0x4406e4
lea ecx, [esi + 8]
call fcn.00401300
mov word [esi + 0x1e], bx
mov dword [esi + 0x3c], 1
mov byte [esi + 0x1c], bl
mov word [esi + 0x40], bx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
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 0x409292
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x409261
cmp eax, 2
jne 0x40927c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x40928c
test eax, eax
je 0x409287
test al, 1
jne 0x40927c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40928c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4096d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x43f838]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push ecx
push 0xff
lea edx, [ebp - 0x204]
push 0x100
push edx
call fcn.0041f468
xor eax, eax
add esp, 0x14
lea ecx, [ebp - 0x204]
mov word [ebp - 6], ax
mov dword [ebp - 0x208], ecx
cmp dword [esi + 0x260], eax
jne 0x40972d
mov edx, ecx
push edx
call fcn.0041f111
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x409762
push 0
lea eax, [ebp - 0x208]
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 [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041e946
mov esp, ebp
pop ebp
ret
Function at 0x409ce0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x43f838]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x409d39
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x409d2a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x409e74
push 0x104
lea ecx, [ebp - 0x20e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409dda
cmp eax, 0x104
je 0x409dda
mov edx, 0x22
mov word [ebp - 0x210], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [ebp + eax*2 - 0x20e], cx
mov word [ebp + eax*2 - 0x20c], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x409ded
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.00409010
add esp, 0xc
test eax, eax
jne 0x409dc5
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0xa10]
push 0x400
push ecx
call fcn.00408df0
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [ebp - 0xa10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e946
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
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 0x409e68
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push 0xd80b
call fcn.00409010
add esp, 0xc
test eax, eax
jne 0x409e59
push str.Could_not_start_service
lea edx, [ebp - 0xa10]
push 0x400
push edx
call fcn.00408df0
add esp, 0xc
push 0
push edi
lea eax, [ebp - 0xa10]
push eax
jmp 0x409dd2
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041e946
mov esp, ebp
pop ebp
ret
Function at 0x409e90
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041ec00
mov eax, dword [0x43f838]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x409efb
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x409eea
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x409ef0
mov edi, dword [ebp - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x409f11
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e946
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x409f6b
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.00409010
add esp, 0xc
test eax, eax
jne 0x409f5c
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00408df0
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x40a0a8
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x409fc9
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.00409010
add esp, 0xc
test eax, eax
jne 0x409f5c
push str.Could_not_open_service
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00408df0
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x40a0a8
lea eax, [ebp - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40a042
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40a042
cmp eax, 0x425
jne 0x409ffa
cmp dword [ebp - 0x101c], 3
je 0x40a042
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.00409010
add esp, 0xc
test eax, eax
jne 0x40a030
push str.Could_not_stop_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.00408df0
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
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 dword [ebp - 0x1024], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1024], 0
jne 0x409efb
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.00409010
add esp, 0xc
test eax, eax
jne 0x40a09e
push str.Could_not_delete_service
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.00408df0
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041e946
mov esp, ebp
pop ebp
ret
Function at 0x40a990
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40a9b1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x409ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x40a9d8
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b0a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.00409e90
test eax, eax
jne 0x40b0be
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4406a4]
push ebx
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [ebp - 0x1c], str.APPID
mov dword [ebp - 0x18], str.29423E88_D05F_477B_A0C2_E7BB802FEB54
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00406ca0
cmp eax, ebx
jl 0x40b1f0
push esi
push 0x20006
push str.AppID
push SysReAllocStringLen
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401a00
cmp eax, ebx
je 0x40b13a
push eax
call fcn.004016a0
mov esi, eax
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, ebx
je 0x40b12f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.29423E88_D05F_477B_A0C2_E7BB802FEB54
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00401960
cmp eax, ebx
je 0x40b190
push eax
call fcn.004016a0
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 4
cmp eax, ebx
je 0x40b17a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40b185
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
push str.LocalService
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0xc]
cmp byte [ebp + 8], bl
je 0x40b1e0
push 1
lea eax, [edi + 0x40]
push eax
push str.LocalService
call fcn.00401ad0
mov ecx, edi
call fcn.00409ce0
lea ecx, [ebp - 0xc]
test eax, eax
jne 0x40b1e0
call fcn.00402500
lea ecx, [ebp - 0x18]
call fcn.00402500
pop esi
pop ebx
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.00402500
lea ecx, [ebp - 0x18]
call fcn.00402500
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b200
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.00409e90
test eax, eax
jne 0x40b218
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocStringLen
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00401a00
cmp eax, esi
je 0x40b261
push eax
call fcn.004016a0
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x40b259
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push str.29423E88_D05F_477B_A0C2_E7BB802FEB54
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00401a00
cmp eax, esi
je 0x40b2b2
push eax
call fcn.004016a0
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x40b29e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x40b2a9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x4406a4]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], str.APPID
mov dword [ebp - 0x1c], str.29423E88_D05F_477B_A0C2_E7BB802FEB54
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00406ca0
mov dword [ebp - 4], eax
cmp edi, esi
je 0x40b2f6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x40b301
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4107d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bdef
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43f838]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00401110
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
mov dword [ebp - 4], 0
call fcn.00401110
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
mov byte [ebp - 4], 1
call fcn.00401110
add eax, 0x10
mov dword [esi + 8], eax
movzx eax, byte [edi + 0xc]
mov byte [esi + 0xc], al
movzx ecx, byte [edi + 0xd]
mov byte [esi + 0xd], cl
movzx edx, byte [edi + 0xe]
mov byte [esi + 0xe], dl
movzx eax, byte [edi + 0xf]
mov byte [esi + 0xf], al
movzx ecx, byte [edi + 0x10]
mov byte [esi + 0x10], cl
movzx edx, byte [edi + 0x11]
mov byte [esi + 0x11], dl
movzx eax, byte [edi + 0x12]
mov byte [esi + 0x12], al
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
movzx eax, byte [edi + 0x1c]
mov byte [esi + 0x1c], al
movzx ecx, byte [edi + 0x1d]
mov byte [esi + 0x1d], cl
movzx edx, byte [edi + 0x1e]
mov byte [esi + 0x1e], dl
movzx eax, byte [edi + 0x1f]
mov byte [esi + 0x1f], al
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
movzx edx, byte [edi + 0x24]
mov byte [esi + 0x24], dl
mov eax, dword [edi + 0x28]
sub eax, 0x10
push eax
mov byte [ebp - 4], 2
call fcn.00401110
add eax, 0x10
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
sub eax, 0x10
push eax
mov byte [ebp - 4], 3
call fcn.00401110
add eax, 0x10
mov dword [esi + 0x2c], eax
movzx eax, byte [edi + 0x30]
mov byte [esi + 0x30], al
movzx ecx, byte [edi + 0x31]
mov byte [esi + 0x31], cl
mov eax, dword [edi + 0x34]
sub eax, 0x10
push eax
mov byte [ebp - 4], 4
call fcn.00401110
add eax, 0x10
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
sub eax, 0x10
push eax
mov byte [ebp - 4], 5
call fcn.00401110
add esp, 0x1c
add eax, 0x10
mov dword [esi + 0x38], eax
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x3c], edx
movzx eax, byte [edi + 0x40]
mov byte [esi + 0x40], al
movzx ecx, byte [edi + 0x41]
mov byte [esi + 0x41], cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x419560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x419611
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x419611
mov edx, dword [ebp + 0x10]
push esi
lea ecx, [ebp - 4]
push ecx
push edi
push edx
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x419601
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.0041ed8f
mov edi, eax
add esp, 4
test edi, edi
je 0x4195fc
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push esi
push edi
call fcn.0041eda0
add esp, 0xc
cmp dword [ebp - 4], esi
jbe 0x419601
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push edi
push eax
push esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x419601
push edi
call fcn.0041ec2b
mov edx, dword [ebp - 8]
add esp, 4
xor edi, edi
mov dword [edx], esi
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, 0xe
mov edx, dword [ebp - 8]
mov dword [edx], esi
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
pop edi
mov dword [ecx], 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4197c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cf40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43f838]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
je 0x419808
push 0x439bd4
lea eax, [ebp - 0x11]
push eax
mov byte [ebp - 0x11], bl
call fcn.0041e4c5
mov eax, dword [esi + 8]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x41982c
push 0x439bd4
lea ecx, [ebp - 0x12]
push ecx
mov byte [ebp - 0x12], bl
call fcn.0041e4c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x419872
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
push 0x439bd4
lea ecx, [ebp - 0x13]
push ecx
mov byte [ebp - 0x13], bl
call fcn.0041e4c5
mov byte [ebp - 0x14], 0
mov eax, 0x41985d
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419890
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x4198ad
mov eax, dword [esi + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4198ee
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push eax
call edi
test eax, eax
je 0x4198e8
cmp eax, 0x80
jne 0x4198d9
mov ecx, dword [esi + 4]
push 0
push ecx
call edi
test eax, eax
je 0x4198e2
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
pop edi
pop esi
mov al, bl
pop ebx
ret
pop edi
pop esi
mov al, 1
pop ebx
ret
pop esi
mov al, bl
pop ebx
ret

Function at 0x419b30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cfd9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43f838]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x440620]
mov edx, dword [eax + 0xc]
mov ecx, 0x440620
mov dword [ebp - 4], edi
call edx
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov edx, dword [ebp + 0xc]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x201
or eax, ecx
mov dword [ebp - 4], edi
mov edi, dword [edx]
jge 0x419b9f
push 0x201
mov ecx, esi
call fcn.004011f0
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [0x440c4c]
push edi
push 0x200
push eax
push 0x431b74
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
cmp dword [eax - 8], 0x201
jl 0x419bf2
mov dword [eax - 0xc], 0x201
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x402], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00401000
int3