joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e803f
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
cmp byte [esi + 1], al
jne 0x4e80d0
movzx ecx, word [edi]
xor eax, eax
test cx, cx
je 0x4e7ff0
lea edx, [edi + 2]
xor eax, eax
movzx ecx, cx
add eax, ecx
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4e7fe0
cmp eax, dword [esi + 4]
je 0x4e7ffe
cmp eax, dword [esi + 8]
jne 0x4e80d0
test edx, edx
add byte [eax], al
invalid
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
push dword [0x570a5c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x570a60]
pushal
or dl, byte [edi]
push eax
call edi
mov esi, eax
push dword [0x5709f8]
push ebx
call edi
mov dword [esp + 0xc], eax
push dword [0x570a28]
push ebx
call edi
mov ebx, eax
mov dword [esp], ebp
and al, 0x55
push ebp
push ebp
push 1
push dword [0x570a20]
call esi
test eax, eax
je 0x4e80d0
xor ecx, ecx
push ecx
push dword [0x570a48]
push ecx
push ecx
push dword [0x570a18]
push eax
call dword [esp + 0x24]
test eax, eax
je 0x4e80d0
mov edx, dword [esp + 8]
add edx, 0x20a
ret 0x20a
add byte [eax], al
mov ecx, esp
push ecx
push dword [0x570a4c]
mov esi, edx
push edx
push eax
call ebx
test eax, eax
je 0x4e80d0
mov eax, dword [esp]
test eax, eax
je 0x4e80d0
add eax, esi
mov ecx, dword [esi]
mov edx, 0xfffffffc
mov esi, dword [0x570a34]
mov esi, dword [esi + edx + 4]
add esi, ecx
mov dword [eax + edx + 4], esi
add edx, 4
cmp edx, 0x1c
jb 0x4e8098
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e80d0
xor ecx, ecx
lea edx, [esp + 0x10]
push ecx
push ecx
push dword [0x570a10]
push edx
call eax
xor esi, esi
push 0x10
push dword [0x570a58]
push edi
add bh, bh
xor eax, 0x570a6c
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4e8117
Capabilities:
Terminate process

Disassembly:
cmp eax, sym.imp.KERNEL32.dll_GetProcessHeap
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebp
push eax
call esi
mov ebx, dword [0x570a4c]
call edi
push ebx
push ebp
push eax
call esi
mov dword [esp], eax
push dword [0x570a5c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
inc ebx
push ecx
add bh, bh
xor eax, 0x570a60

Function at 0x4e814a
Capabilities:
Terminate process

Disassembly:
inc ebx
push ecx
add bh, bh
xor eax, 0x570a60
push eax
call esi
mov dword [esp + 0x18], eax
push dword [0x5709f8]
push ebp
call esi
mov dword [esp + 0x14], eax
push dword [0x570a28]
push ebp
call esi
mov dword [esp + 8], eax
xor ecx, ecx
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x18]
sbb byte [ecx + 0x51], dl
Function at 0x4e817d
Capabilities:
Terminate process

Disassembly:
sbb byte [ecx + 0x51], dl
xor ecx, ecx
push ecx
push 1
push dword [0x570a20]
call eax
test eax, eax
je 0x4e82a6
mov ecx, dword [esp + 0x14]
xor edx, edx
push edx
push dword [0x570a48]
push edx
push edx
push dword [0x570a18]
push eax
call ecx
test eax, eax
ror byte [edi], 0x84
int1
add byte [eax], al
invalid
mov ebp, eax
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push dword [0x570a4c]
push dword [esp + 8]
push ebp
call eax
test eax, eax
je 0x4e82a6
rol dword [eax], 1
add byte [eax], al
mov eax, dword [esp + 4]
test eax, eax
je 0x4e82a6
mov ebx, dword [esp]
mov esi, ebx
mov edi, eax
add ebx, eax
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push dword [0x570a4c]
push ebx
push ebp
call eax
test eax, eax
je 0x4e8209
mov eax, dword [esp + 4]
test eax, eax
jne 0x4e81e4
cmp ebx, dword [esp]
je 0x4e82a6

Function at 0x4e81ae
Capabilities:
Terminate process

Disassembly:
sbb byte [ecx + 0x51], dl
xor ecx, ecx
push ecx
push 1
push dword [0x570a20]
call eax
test eax, eax
je 0x4e82a6
mov ecx, dword [esp + 0x14]
xor edx, edx
push edx
push dword [0x570a48]
push edx
push edx
push dword [0x570a18]
push eax
call ecx
test eax, eax
ror byte [edi], 0x84
int1
add byte [eax], al
invalid
mov ebp, eax
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push dword [0x570a4c]
push dword [esp + 8]
push ebp
call eax
test eax, eax
je 0x4e82a6
rol dword [eax], 1
add byte [eax], al
mov eax, dword [esp + 4]
test eax, eax
je 0x4e82a6
mov ebx, dword [esp]
mov esi, ebx
mov edi, eax
add ebx, eax
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push dword [0x570a4c]
push ebx
push ebp
call eax
test eax, eax
je 0x4e8209
mov eax, dword [esp + 4]
test eax, eax
jne 0x4e81e4
cmp ebx, dword [esp]
je 0x4e82a6

Function at 0x4e81d1
Capabilities:
Terminate process

Disassembly:
sbb byte [ecx + 0x51], dl
xor ecx, ecx
push ecx
push 1
push dword [0x570a20]
call eax
test eax, eax
je 0x4e82a6
mov ecx, dword [esp + 0x14]
xor edx, edx
push edx
push dword [0x570a48]
push edx
push edx
push dword [0x570a18]
push eax
call ecx
test eax, eax
ror byte [edi], 0x84
int1
add byte [eax], al
invalid
mov ebp, eax
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push dword [0x570a4c]
push dword [esp + 8]
push ebp
call eax
test eax, eax
je 0x4e82a6
rol dword [eax], 1
add byte [eax], al
mov eax, dword [esp + 4]
test eax, eax
je 0x4e82a6
mov ebx, dword [esp]
mov esi, ebx
mov edi, eax
add ebx, eax
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push dword [0x570a4c]
push ebx
push ebp
call eax
test eax, eax
je 0x4e8209
mov eax, dword [esp + 4]
test eax, eax
jne 0x4e81e4
cmp ebx, dword [esp]
je 0x4e82a6
Function at 0x4e8212
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp]
mov eax, dword [eax]
add esi, edi
mov ecx, 0xfffffffc
mov edx, dword [0x570a0c]
mov edx, dword [edx + ecx + 4]
add edx, eax
mov dword [esi + ecx + 4], edx
add ecx, 4
cmp ecx, 0x1c
jb 0x4e821e
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e82a6
push dword [0x570a3c]
push 0x1000
add byte [eax], dl
add byte [eax], al
push dword [0x570a4c]
push 0
call eax
mov edx, dword [0x570a14]
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + edx + 4]
lea edx, [esi + edx + 8]
mov esi, 4
mov edi, dword [edx + esi - 4]
add edi, ecx
mov dword [eax + esi + 4], edi
add esi, 4
cmp esi, 0x7ffc
jb 0x4e8271
mov ecx, dword [0x570a1c]
mov dword [eax + 8], ecx
mov ecx, dword [0x570a08]
add ecx, eax
add ecx, dword [eax + 0xc]
invalid
invalid

Function at 0x4e829c
Capabilities:
Terminate process

Disassembly:
or byte [edx], cl
push edi
add byte [eax - 1], dl
rol dword [ebx + 0x106a04c4], 1

Function at 0x4e8fae
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4e9046
push 0x52fefc
push 4
push eax
call fcn.004eefa1
push eax
call fcn.00402720
add esp, 0x10
push ebx
push edi
call fcn.004f0702
mov edi, dword [eax]
call fcn.004f0702
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004f0216
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004f0702
cmp dword [eax], ebx
je 0x4e905d
call fcn.004f0702
push dword [eax]
call fcn.004dd8cc
pop ecx
jmp 0x4e9064
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4e8ff1
jmp 0x4e90eb
call fcn.004f0702
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x4e90e7
cmp dword [ebp - 0x234], esi
jae 0x4e90e7
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.004ef550
add esp, 0xc
push 0x52d4b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4e90d6
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4e90d6
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4e90d6
push ebx
push ebx
push esi
jmp 0x4e90df
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4e90e9
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004edcb6
leave
ret

Function at 0x4edcb6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5706b0]
jne 0x4edcc0
repz ret
jmp fcn.004f36f6
Function at 0x4feee2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004f3105
and dword [ebp - 4], 0
cmp dword [0x57bb28], 0
mov ebx, eax
jne 0x4fef93
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ff044
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4ff044
push eax
call fcn.004f3093
mov dword [esp], 0x531514
push edi
mov dword [0x57bb28], eax
call esi
push eax
call fcn.004f3093
mov dword [esp], 0x531500
push edi
mov dword [0x57bb2c], eax
call esi
push eax
call fcn.004f3093
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x57bb30], eax
call esi
push eax
call fcn.004f3093
pop ecx
mov dword [0x57bb38], eax
test eax, eax
je 0x4fef93
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004f3093
pop ecx
mov dword [0x57bb34], eax
mov eax, dword [0x57bb34]
cmp eax, ebx
je 0x4fefeb
cmp dword [0x57bb38], ebx
je 0x4fefeb
push eax
call fcn.004f310e
push dword [0x57bb38]
mov esi, eax
call fcn.004f310e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4fefeb
test edi, edi
je 0x4fefeb
call esi
test eax, eax
je 0x4fefe2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4fefe2
test byte [ebp - 0xc], 1
jne 0x4fefeb
or dword [ebp + 0x10], 0x200000
jmp 0x4ff024
mov eax, dword [0x57bb2c]
cmp eax, ebx
je 0x4ff024
push eax
call fcn.004f310e
pop ecx
test eax, eax
je 0x4ff024
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4ff024
mov eax, dword [0x57bb30]
cmp eax, ebx
je 0x4ff024
push eax
call fcn.004f310e
pop ecx
test eax, eax
je 0x4ff024
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57bb28]
call fcn.004f310e
pop ecx
test eax, eax
je 0x4ff044
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ff046
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5086e0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x50875b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.004f05b4
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x508717
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x50872e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.004f05b4
add esp, 4
test eax, eax
jbe 0x50875b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.004f05b4
add esp, 4
cmp esi, eax
jb 0x508740
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x508f43
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
push edi
je 0x508fda
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x508fda
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
test eax, eax
jbe 0x508fd3
push eax
call fcn.004dcd28
mov esi, eax
pop ecx
test esi, esi
jne 0x508f82
mov eax, 0x8007000e
jmp 0x508fdf
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x508fcc
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x516d4c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x508fcc
mov eax, dword [ebp + 8]
test eax, eax
je 0x508fcc
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
push esi
mov dword [edi], eax
call fcn.004dcd33
pop ecx
xor eax, eax
jmp 0x508fdf
push esi
call fcn.004dcd33
pop ecx
mov eax, 0x80004005
jmp 0x508fdf
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x50a51a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfile
push reloc.OLEAUT32.dll_SysReAllocString
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50a582
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.EnableFirewall
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50a573
cmp dword [ebp - 0xc], 4
jne 0x50a573
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 4], 0
je 0x50a582
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x50a610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.HTTP_shellopencommand
push SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x50a63e
xor eax, eax
jmp 0x50a691
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
mov edi, 0x5368b3
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x50a67e
cmp dword [ebp - 8], 1
jne 0x50a67e
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], 1
pop edi
pop esi
cmp dword [ebp - 4], ebx
je 0x50a68e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret
Function at 0x50af2b
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push 2
push esi
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x50af4c
xor eax, eax
jmp 0x50aff3
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x50af71
cmp eax, 0x80010119
je 0x50af71
mov ecx, edi
call fcn.0050abef
jmp 0x50af45
lea eax, [edi + 0x20]
push eax
push 0x53271c
push 1
push esi
push 0x5327dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x50af68
push ebx
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [edi + 0x20]
lea ebx, [edi + 0x1c]
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
mov dword [edi + 0x2c], eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0xc]
test eax, eax
jl 0x50afe9
mov eax, dword [ebx]
cmp eax, esi
je 0x50afe9
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x532664
push eax
call dword [ecx]
test eax, eax
jl 0x50afe9
push esi
push esi
push 3
push esi
push esi
push esi
push 0xa
push dword [ebx]
mov ebx, dword [sym.imp.ole32.dll_CoSetProxyBlanket]
call ebx
test eax, eax
jge 0x50aff9
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, edi
call fcn.0050abef
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
push esi
push esi
push 3
push esi
push esi
push esi
push 0xa
push dword [ebp - 4]
call ebx
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebx, esi
jl 0x50afe9
lea ebx, [edi + 0x24]
push ebx
push 0x5327ac
push 1
push esi
push 0x53284c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x50afe9
mov ebx, dword [ebx]
mov eax, dword [ebx]
lea ecx, [edi + 0x28]
push ecx
push 0x5327cc
push ebx
call dword [eax]
test eax, eax
jl 0x50afe9
xor eax, eax
inc eax
jmp 0x50aff2
Function at 0x10001050
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x10034040]
xor eax, esp
mov dword [esp + 0x110], eax
push edi
mov edi, dword [esp + 0x11c]
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.10001b80
add esp, 0xc
mov dword [esp + 8], 0x104
call fcn.10001000
test eax, eax
je 0x100010a6
lea ecx, [esp + 4]
push ecx
push 1
push 0
push str.SOFTWAREIZEXNetHelper_Client_V6.0_x64
jmp 0x100010b4
lea edx, [esp + 4]
push edx
push 1
push 0
push str.SOFTWAREIZEXNetHelper_Client_V6.0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100010e6
push str.___RegOpenKeyEx_number_not_found_in_NHCA_Product_regstry._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10001b6d
add esp, 0x114
ret
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.InstallDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10001139
push str.___Version_number_not_found_in_NHCA_Product_regstry._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10001b6d
add esp, 0x114
ret
mov edx, dword [esp + 4]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x41
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x118]
pop esi
pop edi
xor ecx, esp
mov eax, 1
call fcn.10001b6d
add esp, 0x114
ret
Function at 0x100017c0
Capabilities:
Read .ini file

Disassembly:
push ecx
cmp dword [esp + 8], 0
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
je 0x1000187b
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x1000187b
push 0x201
mov esi, 0x200
call fcn.10002851
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x10001803
mov eax, 0x100305bc
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
push 0x200
push edi
push eax
push ebp
push edx
call ebx
add eax, 1
cmp eax, 0x200
jb 0x10001871
jmp 0x10001830
push edi
add esi, 0x200
call fcn.10002720
lea eax, [esi + 1]
push eax
call fcn.10002851
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
jne 0x10001857
mov eax, 0x100305bc
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push edx
push esi
push edi
push eax
mov eax, dword [esp + 0x28]
push ebp
push eax
call ebx
add eax, 1
cmp eax, esi
jae 0x10001830
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x10001898
push 1
call fcn.10002851
add esp, 4
pop edi
pop esi
pop ebp
mov byte [eax], 0
pop ebx
pop ecx
ret 0xc
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100018a0
sub eax, edx
add eax, 1
push eax
call fcn.10002851
mov esi, eax
add esp, 4
mov ecx, edi
sub esi, edi
lea ecx, [ecx]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x100018c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x10001b6d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10034040]
jne 0x10001b77
repz ret
jmp fcn.10002e29

Function at 0x10001bfa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x10001c27
call fcn.10003075
mov dword [eax], esi
call fcn.10003062
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.100031ac
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x10001c03
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10001c56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10003088
pop ecx
call fcn.10003062
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x10001c7d
test al, 1
je 0x10001c7d
test byte [esp + 0xc], 2
je 0x10001c7d
call fcn.10003075
mov dword [eax], 5
call fcn.10003062
mov dword [eax], 0xd
jmp 0x10001c4d
xor eax, eax
pop esi
ret
Function at 0x1000b2e9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10034e50]
je 0x1000b304
inc edi
cmp edi, 0x17
jb 0x1000b2f5
cmp edi, 0x17
jae 0x1000b484
push ebp
push 3
call fcn.1000dfd1
cmp eax, 1
pop ecx
je 0x1000b450
push 3
call fcn.1000dfd1
test eax, eax
pop ecx
jne 0x1000b338
cmp dword [0x10035398], 1
je 0x1000b450
cmp ebx, 0xfc
je 0x1000b483
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10035a28
push ebp
call fcn.100064ce
add esp, 0xc
test eax, eax
je 0x1000b36e
push esi
push esi
push esi
push esi
push esi
call fcn.100030b0
add esp, 0x14
push 0x104
mov esi, 0x10035a41
push esi
push 0
mov byte [0x10035b45], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000b3b2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.100064ce
add esp, 0xc
test eax, eax
je 0x1000b3b2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100030b0
add esp, 0x14
push esi
call fcn.10005ce0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000b3f7
push esi
call fcn.10005ce0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10035d3c
push 0x100318c8
sub ecx, eax
push ecx
push eax
call fcn.1000a016
add esp, 0x14
test eax, eax
je 0x1000b3f7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100030b0
add esp, 0x14
jmp 0x1000b3f9
xor esi, esi
push 0x10031e50
push ebx
push ebp
call fcn.10009f58
add esp, 0xc
test eax, eax
je 0x1000b419
push esi
push esi
push esi
push esi
push esi
call fcn.100030b0
add esp, 0x14
push dword [edi*8 + 0x10034e54]
push ebx
push ebp
call fcn.10009f58
add esp, 0xc
test eax, eax
je 0x1000b43b
push esi
push esi
push esi
push esi
push esi
call fcn.100030b0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000de14
add esp, 0xc
jmp 0x1000b483
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000b483
cmp ebp, 0xffffffff
je 0x1000b483
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10034e54]
push dword [esi]
call fcn.10005ce0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret