joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407890
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48fc61
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0xc], 0
push 0x49a67c
mov ecx, esi
mov dword [esp + 0x20], 1
call fcn.00401600
mov eax, dword [esp + 0x28]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push eax
mov dword [esp + 0x14], 1
call fcn.00401e30
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0042e170
add esp, 4
test eax, eax
je 0x407975
mov eax, dword [esi]
mov edi, dword [esp + 0x28]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40792e
push 0x104
mov ecx, esi
call fcn.00401de0
mov eax, dword [esi]
push edi
push 0x104
push eax
push 0x49a67c
push str.mark
push str.info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x407963
push ecx
push eax
call fcn.0045d3d2
add esp, 8
test eax, eax
jl 0x4079b0
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4079b0
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40799a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 8
push 0x80070057
call fcn.004010b0
int3
Function at 0x408bd0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 5
push 0
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret 8

Function at 0x408c30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x40
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408ca4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0x3c
ret 8
Function at 0x412fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0044b17e

Function at 0x413680
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x288
mov dword [esp + 8], 0x288
call fcn.0043e1fa
mov esi, eax
add esp, 4
test esi, esi
je 0x413754
push 0x288
push 0
push esi
call fcn.00462c20
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4136cf
push esi
call fcn.0043e229
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x41374b
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x1a0], ecx
jne 0x4136f5
cmp dword [eax + 0x190], ecx
je 0x413709
mov eax, dword [eax]
test eax, eax
jne 0x4136e5
push esi
call fcn.0043e229
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [esi + 0x199]
movzx eax, byte [esi + 0x198]
movzx ecx, byte [esi + 0x197]
push edx
movzx edx, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push ecx
movzx ecx, byte [esi + 0x194]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push 0x49bac0
push edx
call fcn.00411ee0
add esp, 0x20
push esi
call fcn.0043e229
add esp, 4
pop esi
pop ecx
ret 4

Function at 0x413760
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x170
mov dword [esp + 8], 0x170
call fcn.0043e1fa
mov esi, eax
add esp, 4
test esi, esi
je 0x413824
push 0x170
push 0
push esi
call fcn.00462c20
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x4137b5
push esi
call fcn.0043e229
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x41381b
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x34], ecx
je 0x4137eb
mov eax, dword [eax + 8]
test eax, eax
jne 0x4137d1
push esi
call fcn.0043e229
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [eax + 0x31]
movzx ecx, byte [eax + 0x30]
push edx
movzx edx, byte [eax + 0x2f]
push ecx
movzx ecx, byte [eax + 0x2e]
push edx
movzx edx, byte [eax + 0x2d]
movzx eax, byte [eax + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0x49bac0
push ecx
call fcn.00411ee0
add esp, 0x20
push esi
call fcn.0043e229
add esp, 4
pop esi
pop ecx
ret 4
Function at 0x416a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
call fcn.0044255a
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x49ab60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x416a7d
pop edi
pop esi
pop ebp
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x416a9d
pop ebx
pop edi
pop esi
pop ebp
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.00466330
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0x18]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x416af4
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x416af6
xor esi, esi
push edi
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop ebx
xor eax, eax
cmp dword [ebp], eax
pop edi
pop esi
setne al
pop ebp
ret 8
Function at 0x418510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [eax], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418583
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.Install
mov ebp, 4
push edi
mov dword [esp + 0x30], ebp
call esi
test eax, eax
jne 0x418578
cmp dword [esp + 0x1c], ebp
je 0x41858f
test edi, edi
je 0x418583
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp dword [esp + 0x10], 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0x49ceec
push edi
setne bl
mov dword [esp + 0x34], ebp
call esi
test eax, eax
jne 0x4185be
cmp dword [esp + 0x18], ebp
je 0x4185ca
mov eax, dword [esp + 0x24]
mov dword [eax], 0
jmp 0x4185d4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
test edi, edi
je 0x4185df
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 4
Function at 0x4185f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8c
push esi
push edi
mov eax, str.XnaNative.dll
push str.GetNativeSystemInfo
xor edi, edi
push 0x49bf18
mov dword [esp + 0x84], str.SOFTWAREMicrosoftXNAFramework_v1.0
mov dword [esp + 0x88], str.SOFTWAREMicrosoftXNAFramework_v2.0
mov dword [esp + 0x8c], str.SOFTWAREMicrosoftXNAFramework_v3.0
mov dword [esp + 0x90], str.SOFTWAREMicrosoftXNAFramework_v3.1
mov dword [esp + 0x94], str.SOFTWAREMicrosoftXNAFramework_v4.0
mov dword [esp + 0x70], str.SOFTWAREWow6432NodeMicrosoftXNAFramework_v1.0
mov dword [esp + 0x74], str.SOFTWAREWow6432NodeMicrosoftXNAFramework_v2.0
mov dword [esp + 0x78], str.SOFTWAREWow6432NodeMicrosoftXNAFramework_v3.0
mov dword [esp + 0x7c], str.SOFTWAREWow6432NodeMicrosoftXNAFramework_v3.1
mov dword [esp + 0x80], str.SOFTWAREWow6432NodeMicrosoftXNAFramework_v4.0
mov dword [esp + 0x38], str.XnaNative1.dll
mov dword [esp + 0x3c], str.XnaNative2.dll
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 0x10
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x41873f
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], edi
call eax
mov eax, dword [esp + 0x44]
cmp ax, 9
je 0x4186ff
cmp ax, 6
jne 0x41873f
xor esi, esi
mov eax, dword [esp + esi + 0x30]
mov ecx, dword [esp + esi + 0x68]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.00418780
test al, al
je 0x41872e
mov ecx, dword [esp + esi + 0x1c]
or dword [ebx], ecx
add esi, 4
cmp esi, 0x14
jb 0x418701
pop edi
pop esi
add esp, 0x8c
ret
xor esi, esi
mov eax, dword [esp + esi + 0x30]
mov ecx, dword [esp + esi + 0x7c]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.00418780
test al, al
je 0x41876e
mov ecx, dword [esp + esi + 0x1c]
or dword [ebx], ecx
add esi, 4
cmp esi, 0x14
jb 0x418741
pop edi
pop esi
add esp, 0x8c
ret
Function at 0x418b50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebp
push edi
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SOFTWAREAGEIA_Technologies
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418c39
mov edi, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x49be98
mov ebp, 4
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418c2e
cmp dword [esp + 0x14], ebp
jne 0x418c2e
mov ecx, dword [esp + 0xc]
mov eax, 0x55e63b89
mul ecx
shr edx, 0x19
imul edx, edx, 0x5f5e100
mov ebp, ecx
sub ebp, edx
mov eax, 0x431bde83
mul ebp
shr edx, 0x12
mov dword [esi], edx
mov eax, 0x431bde83
mul ecx
shr edx, 0x12
imul edx, edx, 0xf4240
mov ebp, ecx
sub ebp, edx
mov eax, 0xd1b71759
mul ebp
shr edx, 0xd
mov dword [esi + 4], edx
mov eax, 0xd1b71759
mul ecx
shr edx, 0xd
imul edx, edx, 0x2710
mov ebp, ecx
sub ebp, edx
mov eax, 0x51eb851f
mul ebp
shr edx, 5
mov dword [esi + 8], edx
mov eax, 0x51eb851f
mul ecx
shr edx, 5
imul edx, edx, 0x64
sub ecx, edx
mov dword [esi + 0xc], ecx
test edi, edi
je 0x418c39
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
add esp, 0x10
ret
Function at 0x418f20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48e890
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
call fcn.0043e9ec
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x418f67
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
call fcn.0043e9ec
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x418f99
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x14
mov byte [esp + 0x3c], 1
push str.SOFTWAREValveSteam
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], 0x104
call fcn.00401d30
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41909c
mov ecx, 1
mov dword [esp + 0x28], ecx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x419013
push 0x100
lea ecx, [esp + 0x18]
call fcn.00401de0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push esi
lea eax, [esp + 0x30]
push eax
push ebx
push str.InstallPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0045d3d2
add esp, 8
cmp eax, ebx
jl 0x419103
cmp eax, dword [esi - 8]
jg 0x419103
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp edi, ebx
jne 0x41909c
push 0xa
push str.Steam.exe
lea ecx, [esp + 0x1c]
call fcn.00411980
mov esi, dword [esp + 0x14]
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push eax
call fcn.00401e30
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0042e170
add esp, 4
cmp eax, ebx
je 0x41909c
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4190c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4190eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80070057
call fcn.004010b0
int3
Function at 0x4191f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48e830
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
call fcn.0043e9ec
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x419237
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], ebx
call fcn.0043e9ec
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x419269
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0xf
mov byte [esp + 0x3c], 1
push str.SOFTWAREOrigin
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0x104
call fcn.00401d30
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419358
mov ecx, 1
mov dword [esp + 0x28], ecx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x4192e3
push 0x100
lea ecx, [esp + 0x20]
call fcn.00401de0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push esi
lea eax, [esp + 0x30]
push eax
push ebx
push str.ClientPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0045d3d2
add esp, 8
cmp eax, ebx
jl 0x4193bf
cmp eax, dword [esi - 8]
jg 0x4193bf
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp edi, ebx
jne 0x419358
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push eax
call fcn.00401e30
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0042e170
add esp, 4
cmp eax, ebx
je 0x419358
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4193a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80070057
call fcn.004010b0
int3
Function at 0x41a650
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x48f628
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push str.Software_
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 1
call fcn.00401600
push 6
push str.yxgame
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00411980
mov eax, dword [esp + 0x38]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x41a6d1
push 1
push 0x49a9b0
lea ecx, [esp + 0x1c]
call fcn.00411980
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00411980
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
push edx
push SysReAllocString
xor esi, esi
mov dword [esp + 0x2c], ebx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x41a704
mov esi, dword [esp + 0x18]
jmp 0x41a76c
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edx
push SysReAllocString
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x41a73c
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x41a73c
push esi
call ebp
xor esi, esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push ebx
push ecx
push SysReAllocString
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x41a78a
xor eax, eax
cmp esi, ebx
je 0x41a764
push esi
call ebp
mov esi, dword [esp + 0x20]
cmp eax, ebx
jne 0x41a78a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push 4
lea eax, [esp + 0x44]
push eax
push 4
push ebx
push ecx
push esi
mov dword [esp + 0x58], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x41a791
push esi
call ebp
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a7b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a7da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a802
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x41c2b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41c2d7
xor eax, eax
pop ebx
pop ecx
ret
push ebp
push esi
push edi
call fcn.0044255a
mov esi, dword [eax + 0xc]
push 0x49ab20
push 0x93
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebp
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x41c430
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x48f518
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x4c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.00401e30
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x14]
call fcn.0041c340
fldz
add esp, 4
fstp qword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x41c4c6
fild qword [esp + 0x14]
jmp 0x41c4ca
fld qword [esp + 0x2c]
call fcn.00464916
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov edi, edx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c4f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c51b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, edi
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x3c
ret