joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f0c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499898
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [ecx + 0x2b4], 0
lea esi, [ecx + 0x2b4]
mov edi, dword [ebp + 8]
je 0x42f1b7
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f121
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402db0
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0042da40
push edi
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00411cc0
add esp, 0x18
mov ecx, edi
push eax
call fcn.00407120
lea ecx, [ebp - 0x40]
call fcn.004022a0
lea ecx, [ebp - 0x58]
call fcn.004022a0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42f299
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f28f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f2b8
jmp 0x42f28f
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x42f209
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42f1f2
push 0x208
push 0
push esi
call fcn.0046f980
add esp, 0xc
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42f209
push 0x208
push 0
push esi
call fcn.0046f980
add esp, 0xc
xor al, al
jmp 0x42f29b
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f230
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402db0
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0042da40
push edi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.00411cc0
add esp, 0x18
mov ecx, edi
push eax
call fcn.00407120
lea ecx, [ebp - 0x70]
call fcn.004022a0
lea ecx, [ebp - 0x88]
jmp 0x42f175
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret 4
call fcn.00478f8e
int3

Function at 0x42f6b0
Capabilities:
Get common file path

Disassembly:
cmp word [ecx + 0xc], 0
push esi
lea esi, [ecx + 0xc]
jne 0x42f6c8
push 0
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, esi
pop esi
ret
Function at 0x433880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499fa5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c63ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x4338fd
push dword [0x4c61b4]
call fcn.00433170
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 4], 0
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x4338dc
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00433150
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x4338fd
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x14
call fcn.0046d9cd
mov esi, eax
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 4], 1
push ecx
mov dword [eax], ecx
push ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push ecx
mov dword [eax + 0xc], ecx
push ecx
mov dword [eax + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, esi
mov byte [ebp - 4], 2
mov dword [edx + 0x10], eax
mov dword [edx + 8], ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x433978
push dword [0x4c61b4]
call fcn.00433170
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov byte [ebp - 4], 3
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x433974
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00433150
mov eax, dword [ebx + 0x2c]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x10]
push edi
push 0
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4339a4
mov eax, dword [ebp + 8]
push eax
push str._ld_not_overlapped
call fcn.00409c90
add esp, 8
mov bl, 1
jmp 0x4339cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4339e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str._ld_readfile_failed:__ld
call fcn.00409c90
add esp, 0xc
xor bl, bl
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x433a2d
cmp eax, 0xffffffff
je 0x433a2d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x433a2d
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0xc]
xor esi, esi
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], esi
cmp eax, dword [ebx + 0x14]
je 0x4339fb
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x433a05
lea edx, [ebp + 8]
push edx
push eax
call fcn.004097a0
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov dword [ebp + 8], eax
cmp edx, dword [ebx + 0x20]
je 0x433a21
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x433a2b
lea eax, [ebp + 8]
push eax
push edx
call fcn.004097a0
mov bl, 1
test esi, esi
je 0x433a3c
push 0x14
push esi
call fcn.0046d9fd
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x433fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43403c
mov esi, dword [ebp + 0x18]
mov dword [ebp - 8], 3
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 3
jne 0x43403c
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x434050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43407f
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
test esi, esi
pop esi
cmove eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4340d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call fcn.0047ef26
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x434137
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4341f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a040
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
test ebx, ebx
je 0x43441b
push 0x2a
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0046f980
mov ecx, ebx
add esp, 0xc
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434246
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 0xd]
xor ecx, ecx
test eax, eax
cmovs eax, ecx
lea edi, [ebx + eax*2]
movzx eax, word [edi]
test ax, ax
je 0x4342a4
mov ecx, eax
lea esp, [esp]
movzx ecx, cx
lea edi, [edi + 2]
lea eax, [ecx - 0x41]
cmp eax, 0x19
lea edx, [ecx + 0x20]
movzx eax, word [edi]
cmova edx, ecx
shl esi, 4
add edx, esi
mov ecx, eax
mov esi, edx
shr esi, 0x17
and esi, 0x1e0
xor esi, edx
and esi, 0xfffffff
test ax, ax
jne 0x434270
push esi
push 0x4a0d7c
lea eax, [ebp - 0x3c]
push 0x14
push eax
call fcn.0042d8e0
push 0
lea eax, [ebp - 0x3c]
push eax
push str.SoftwareKingsoftOffice6.0CommonResourceManagerImages
push 0x80000001
call fcn.00434050
add esp, 0x20
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov edi, eax
call fcn.0047ef26
push 0
push esi
push edx
push eax
call fcn.0047ef66
fld qword [0x4a41c0]
add esp, 0x14
fcompi st(1)
jbe 0x434321
mov eax, 0x10624dd3
mul edi
shr edx, 6
mov dword [ebp - 0x64], edx
fild dword [ebp - 0x64]
test edx, edx
jns 0x43430f
fadd qword [0x4a41c8]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
fcompi st(1)
fstp st(0)
ja 0x43441b
jmp 0x434323
fstp st(0)
call fcn.00433ee0
test al, al
jne 0x4343b7
lea ecx, [ebp - 0x98]
call fcn.00433390
mov esi, dword [ebp - 0x58]
mov dword [ebp - 4], 0
test esi, esi
je 0x43436e
cmp dword [esi + 4], 0
je 0x43436e
push ebx
lea ecx, [ebp - 0x54]
call fcn.00403330
push esi
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x98]
call fcn.00433e30
jmp 0x43438a
push ebx
lea ecx, [ebp - 0x54]
call fcn.00403330
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x98]
call fcn.00433a60
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.004022a0
lea ecx, [ebp - 0x98]
call fcn.00433e80
lea ecx, [ebp - 0x98]
call fcn.00434440
lea ecx, [ebp - 0x98]
call fcn.004334e0
push 0
call fcn.0047ef26
add esp, 4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareKingsoftOffice6.0CommonResourceManagerImages
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43441b
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
Function at 0x438cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a6d5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], esi
call fcn.0040dba0
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov eax, 0x3f
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x4a4d08]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x4a4d18]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x4a4d28]
mov dword [edi + 0x30], eax
mov ax, word [0x4a4d2c]
mov word [edi + 0x34], ax
mov al, byte [0x4a4d2e]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.0040dba0
mov dword [esi + 0x10], eax
mov ecx, 0x3f
movups xmm0, xmmword [edi]
inc ecx
push ecx
movups xmmword [eax], xmm0
push edi
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
mov esi, dword [ebp - 0x2c]
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.0046d9fd
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::BufferedTransformation_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
Function at 0x44f0c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a6d5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], esi
call fcn.0040dba0
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov eax, 0x3f
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x4a4d08]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x4a4d18]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x4a4d28]
mov dword [edi + 0x30], eax
mov ax, word [0x4a4d2c]
mov word [edi + 0x34], ax
mov al, byte [0x4a4d2e]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.0040dba0
mov dword [esi + 0x10], eax
mov ecx, 0x3f
movups xmm0, xmmword [edi]
inc ecx
push ecx
movups xmmword [eax], xmm0
push edi
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
mov esi, dword [ebp - 0x2c]
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.0046d9fd
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::Filter_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret

Function at 0x44fd10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497d40
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c63ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.004372d0
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x44fd67
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x44fd78
push 0x3c
push esi
call fcn.0046d9fd
add esp, 8
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 0x45a2d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c1e5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x58]
push 1
push eax
mov dword [ebp - 0x5c], esi
call fcn.00461190
push str.cfgs_setup.cfg
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00403130
add esp, 0x14
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x45a362
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a358
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a4b0
push edx
push ecx
call fcn.0046d9fd
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00402db0
push 0x208
mov byte [ebp - 4], 4
call fcn.0046da0b
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0x104
push edi
push 0x49f6a8
push str.BuildId
push str.Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a3f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00402db0
push edi
call fcn.0046da14
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x45a447
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a43d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a4b5
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x45a491
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45a487
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45a4b5
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret 4
call fcn.00478f8e
call fcn.00478f8e
int3
Function at 0x45c700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2c], eax
lea edi, [ecx + 2]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c740
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00402db0
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45c7e7
push dword [ebp - 0x20]
call edi
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20119
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45c7e7
push dword [ebp - 0x20]
call edi
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x45c835
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c82b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c847
jmp 0x45c82b
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x20]
mov esi, eax
call edi
test esi, esi
jne 0x45c7b4
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x45c827
cmp eax, 2
jne 0x45c7b4
xor esi, esi
jmp 0x45c7b9
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret
call fcn.00478f8e
int3

Function at 0x45c850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45c884
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45c892
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [esi + 0x14], 8
lea eax, [eax*2 + 2]
jb 0x45c8a8
mov esi, dword [esi]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x45cd80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c640
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x334], esi
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x45cdc1
mov eax, dword [eax]
push 0x4a85a0
push eax
call fcn.00480b5c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45cf79
push 2
push 0
push ebx
call fcn.0047e0f7
push ebx
call fcn.0048120a
add esp, 0x10
cmp eax, 0x201
jl 0x45cf6c
push 0x202
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0046f980
push 2
push 0xfffffdff
push ebx
call fcn.0047e0f7
push ebx
push 0x201
lea eax, [ebp - 0x214]
push 1
push eax
call fcn.0047dcaa
add esp, 0x28
cmp byte [ebp - 0x214], 0x3b
jne 0x45cf6c
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
push 0x210
mov dword [ebp - 4], 0
call fcn.0046d9cd
mov edi, eax
mov dword [ebp - 0x330], eax
mov ecx, 0x80
mov dword [ebp - 0x21c], 0x200
lea esi, [ebp - 0x213]
mov dword [ebp - 0x218], 0x20f
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x200]
mov esi, eax
mov byte [edi], 0
push 0x20
mov dword [ebp - 0x22c], esi
call fcn.0046d9cd
mov ecx, dword [str.0123456789ABCDEF]
push 0x100
mov dword [ebp - 0x330], eax
mov dword [eax], ecx
mov ecx, dword [0x4a85ac]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a85b0]
mov dword [eax + 8], ecx
mov ecx, dword [0x4a85b4]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], 0
lea eax, [ebp - 0x32c]
push 0
push eax
call fcn.0046f980
mov eax, dword [ebp - 0x330]
add esp, 0x14
mov ecx, eax
lea edx, [eax + 0x10]
cmp eax, edx
je 0x45cf14
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x32c], 1
cmp ecx, edx
jne 0x45cf04
mov ecx, esi
cmp esi, edi
jae 0x45cf32
lea ebx, [ebx]
movzx eax, byte [ecx]
cmp byte [ebp + eax - 0x32c], 0
je 0x45cf3e
inc ecx
cmp ecx, edi
jb 0x45cf20
mov eax, dword [ebp - 0x334]
mov byte [eax + 0x3e], 0
jmp 0x45cf4f
sub ecx, esi
cmp ecx, 0xffffffff
je 0x45cf32
mov eax, dword [ebp - 0x334]
mov byte [eax + 0x3e], 1
push 0x20
push dword [ebp - 0x330]
call fcn.0046d9fd
push 0x210
push esi
call fcn.0046d9fd
add esp, 0x10
jmp 0x45cf70
mov byte [esi + 0x3e], 1
push ebx
call fcn.0047d426
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret