joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00420810
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], ecx
mov dword [ebp - 0x1010], 0
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp - 0x100c]
mov edx, dword [ecx + 0x34]
or edx, 1
push edx
push 0
mov ecx, dword [ebp - 0x100c]
add ecx, 4
call fcn.00403d00
push eax
mov eax, dword [ebp - 0x100c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410a50
mov dword [ebp - 0x1014], 0
push 0x1000
push 0
lea edx, [ebp - 0x1004]
push edx
call fcn.004372f0
add esp, 0xc
mov dword [ebp - 0x1020], 0x1000
lea eax, [ebp - 0x1020]
push eax
lea ecx, [ebp - 0x1004]
push ecx
lea edx, [ebp - 0x1014]
push edx
push 0
mov ecx, dword [ebp - 0x100c]
add ecx, 0x1c
call fcn.00403d00
push eax
mov eax, dword [ebp - 0x1010]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4109e0
mov dword [ebp - 0x1018], 1
jmp 0x4109ea
mov dword [ebp - 0x1018], 0
mov ecx, dword [ebp - 0x1018]
mov dword [ebp - 0x101c], ecx
mov edx, dword [ebp - 0x1010]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
je 0x410a2f
cmp dword [ebp - 0x1014], 4
je 0x410a1e
cmp dword [ebp - 0x1014], 5
jne 0x410a20
jmp 0x410a2f
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e540
cmp dword [ebp - 0x101c], 0
je 0x410a41
mov byte [ebp - 0x1005], 1
jmp 0x410a48
mov byte [ebp - 0x1005], 0
mov al, byte [ebp - 0x1005]
jmp 0x410a52
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret 4

Function at 0x410a70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00403d00
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x410a97
mov al, 1
jmp 0x410a99
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x410aa0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
or edx, 0xf003f
push edx
push 0
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00403d00
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410b00
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.00403d00
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x410b00
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x410b0c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x411320
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x411367
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 2
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x2c]
mov ax, word [edx]
mov word [ebp - 0x32], ax
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x32], 0
jne 0x411345
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x40]
sar ecx, 1
mov dword [ebp - 0x44], ecx
jne 0x41136e
xor eax, eax
jmp 0x4114a1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4113c5
jmp 0x411470
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4113e6
jmp 0x411470
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4113ff
jmp 0x411470
cmp dword [ebp - 0x1c], 1
jne 0x41140e
mov dword [ebp - 0x3c], 1
jmp 0x411470
lea ecx, [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x41143a
jmp 0x41145b
cmp dword [ebp - 0x1c], 3
je 0x411442
jmp 0x41145b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x38]
add edx, 0x64
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp + 0xc]
jb 0x41140e
cmp dword [ebp - 0x1c], 1
jne 0x411468
mov dword [ebp - 0x3c], 1
xor ecx, ecx
jne 0x4113a8
cmp dword [ebp - 0x24], 0
je 0x411487
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x28], 0
je 0x41149e
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret
Function at 0x4114b0
Capabilities:
Delete registry key
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 8], 0
je 0x41151a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
add ecx, 2
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x218]
mov ax, word [edx]
mov word [ebp - 0x21a], ax
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21a], 0
jne 0x4114e3
mov ecx, dword [ebp - 0x218]
sub ecx, dword [ebp - 0x228]
sar ecx, 1
mov dword [ebp - 0x22c], ecx
jne 0x411521
xor eax, eax
jmp 0x411689
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov ecx, 0x11
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1c2
push 0
lea edx, [ebp - 0x1c6]
push edx
call fcn.004372f0
add esp, 0xc
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x411596
jmp 0x411619
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x4115c7
mov dword [ebp - 0x224], 1
jmp 0x411619
push 0x7530
mov edx, dword [ebp + 8]
push edx
call fcn.00411320
add esp, 8
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4115fc
jmp 0x411619
mov dword [ebp - 0x224], 1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
jne 0x411573
cmp dword [ebp - 0x210], 0
je 0x411639
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x210], 0
cmp dword [ebp - 0x214], 0
je 0x411659
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x214], 0
push 0x208
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.00411720
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0x224]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret
Function at 0x4162e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45769b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x230]
call fcn.00403fa0
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x234]
push eax
push 1
push 0
push 0x469ff0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4163f3
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x244], 0x208
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x238]
push eax
push 0
push 0x46a078
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4163a1
mov dword [ebp - 0x23c], 1
jmp 0x4163ab
mov dword [ebp - 0x23c], 0
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x248], 0
je 0x4163f3
cmp dword [ebp - 0x238], 4
je 0x4163df
cmp dword [ebp - 0x238], 5
jne 0x4163e1
jmp 0x4163f3
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040e540
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403eb0
mov eax, dword [ebp - 0x240]
or eax, 1
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00403dd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret
Function at 0x416b50
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457720
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x26c]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x416bb4
xor al, al
jmp 0x416cd5
lea edx, [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x416cd3
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403f30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403ce0
push eax
lea ecx, [ebp - 0x28]
call fcn.00403d00
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.00411740
add esp, 0xc
mov byte [ebp - 4], 1
mov byte [ebp - 0x26d], 0
mov dword [ebp - 0x274], 0
jmp 0x416c2a
mov eax, dword [ebp - 0x274]
add eax, 1
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp + 8]
call fcn.004039b0
cmp dword [ebp - 0x274], eax
jae 0x416c66
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x274]
push edx
mov ecx, dword [ebp + 8]
call fcn.00412370
push eax
call fcn.00413ba0
add esp, 8
movzx eax, al
test eax, eax
je 0x416c64
mov byte [ebp - 0x26d], 1
jmp 0x416c1b
movzx ecx, byte [ebp - 0x26d]
test ecx, ecx
je 0x416cb3
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x280], edx
mov eax, dword [ebp - 0x280]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x27c], eax
push 0
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00404250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403dd0
jmp 0x416bb4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret
Function at 0x4173b0
Capabilities:
Copy file
Delete file
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457758
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp eax, dword [0x477b34]
jae 0x4173e8
jmp 0x4175a5
cmp dword [ebp + 0xc], 0
jne 0x4173f3
jmp 0x4175a5
lea ecx, [ebp - 0x24]
call fcn.004176c0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 8
ja 0x41740e
cmp dword [ebp + 8], 0
jae 0x417415
mov dword [ebp + 8], 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push str.GWCLI
mov edx, dword [ebp + 8]
shl edx, 4
add edx, 0x477aa0
push edx
movzx eax, word [ebp - 0x14]
push eax
movzx ecx, word [ebp - 0x16]
push ecx
movzx edx, word [ebp - 0x18]
push edx
movzx eax, word [ebp - 0x1a]
push eax
movzx ecx, word [ebp - 0x1e]
push ecx
push str.__02d__02d__02d:_02d:_02d___s___s_
lea edx, [ebp - 0x24]
push edx
call fcn.00417ee0
add esp, 0x24
lea eax, [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x24]
call fcn.004175c0
mov dword [ebp - 0x2c], 0
push 0x46bbd0
lea ecx, [ebp - 0x24]
call fcn.00417650
push 0x46bbd4
lea ecx, [ebp - 0x24]
call fcn.00417680
mov eax, dword [0x477b30]
and eax, 1
je 0x4174b5
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4174b5
lea ecx, [ebp - 0x24]
call fcn.00402500
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x477b30]
and ecx, 2
je 0x417596
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
push 0
push 0x80
push 4
push 0
push 5
push 0x40000000
push str.c:gwlog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x417573
push 2
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x400000
jbe 0x417516
mov dword [ebp - 0x30], 1
push 2
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0x500000
jbe 0x417547
push 0
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.004176e0
push eax
lea ecx, [ebp - 0x24]
call fcn.00402500
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0
je 0x417596
push 0
push str.c:gwlogbk.txt
push str.c:gwlog.txt
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.c:gwlog.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004176a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret
Function at 0x418920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4577fb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x230]
call fcn.00403fa0
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x234]
push eax
push 1
push 0
push 0x46be10
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418a39
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x244], 0x208
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x238]
push eax
push 0
push str.Path
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4189e7
mov dword [ebp - 0x23c], 1
jmp 0x4189f1
mov dword [ebp - 0x23c], 0
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x248], 0
je 0x418a39
cmp dword [ebp - 0x238], 4
je 0x418a25
cmp dword [ebp - 0x238], 5
jne 0x418a27
jmp 0x418a39
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040e540
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403eb0
mov eax, dword [ebp - 0x240]
or eax, 1
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00403dd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret 4
Function at 0x418a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4577fb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x230]
call fcn.00403fa0
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x234]
push eax
push 1
push 0
push 0x46bea0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418ba9
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x244], 0x208
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x238]
push eax
push 0
push 0x46bf28
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418b57
mov dword [ebp - 0x23c], 1
jmp 0x418b61
mov dword [ebp - 0x23c], 0
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x248], 0
je 0x418ba9
cmp dword [ebp - 0x238], 4
je 0x418b95
cmp dword [ebp - 0x238], 5
jne 0x418b97
jmp 0x418ba9
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040e540
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403eb0
mov eax, dword [ebp - 0x240]
or eax, 1
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00403dd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret 4
Function at 0x419b70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x434], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004372f0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0x46c93c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00403f30
push 0x208
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.004372f0
add esp, 0xc
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x20c]
cmp eax, 0x31
jne 0x419c1b
mov byte [ebp - 0x42d], 1
lea ecx, [ebp - 0x42c]
call fcn.00403dd0
mov al, byte [ebp - 0x42d]
jmp 0x419c55
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x20c]
cmp eax, 0x30
jne 0x419c4a
mov byte [ebp - 0x42e], 0
lea ecx, [ebp - 0x42c]
call fcn.00403dd0
mov al, byte [ebp - 0x42e]
jmp 0x419c55
lea ecx, [ebp - 0x42c]
call fcn.00403dd0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x419c70
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4579cb
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x130], 0
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.004372f0
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [ebp - 0x134], eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00404420
mov dword [ebp - 4], 0
cmp dword [ebp - 0x134], 0
je 0x419d0e
lea ecx, [ebp - 0x12c]
call fcn.00403cb0
movzx eax, al
test eax, eax
je 0x419d41
push 0x46808e
mov ecx, dword [ebp + 8]
call fcn.00404420
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00404250
mov eax, dword [ebp + 8]
jmp 0x419dbc
push 0xffffffffffffffff
push str._x86_
lea ecx, [ebp - 0x12c]
call fcn.00416530
cmp eax, 0xffffffff
je 0x419d8b
push 0x46c948
mov ecx, dword [ebp + 8]
call fcn.00404420
mov edx, dword [ebp - 0x130]
or edx, 1
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00404250
mov eax, dword [ebp + 8]
jmp 0x419dbc
push 0x46c94c
mov ecx, dword [ebp + 8]
call fcn.00404420
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00404250
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret 4
Function at 0x41a2a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x47706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push str.InitIPCAndCallUI_enter
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x14], 0xffffffff
push 0x41cf20
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str..pipeTrustAgentpipe.ToTrustInstallerExe
call fcn.00404420
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.0040ffe0
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.0040fb00
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
je 0x41a351
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x477c3c], eax
cmp dword [0x477c3c], 0
jne 0x41a34f
push str.CreateEvent_failed_
push 5
push 0x47b0a0
call fcn.0040d640
add esp, 0xc
jmp 0x41a365
push str.TAIPC::GetInstance____create_ipc_for_receive_message_failed_
push 5
push 0x47b0a0
call fcn.0040d640
add esp, 0xc
mov ecx, dword [ebp - 0x18]
call fcn.0041a520
push str.call_ui_app_thread_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x14], 0
xor edx, edx
jne 0x41a2da
push str.InitIPCAndCallUI_leave
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x41a520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
add eax, 8
push eax
push 0
push 0
push 0x41a3b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov byte [ebp - 1], 1
xor edx, edx
jne 0x41a52d
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret