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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x4576a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x105
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457688
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
je 0x457672
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408aa4
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x4576bc
call fcn.004042c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45768f
mov eax, dword [ebp - 4]
call fcn.004026ec
ret

Function at 0x4576c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x457755
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x105
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457738
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x457722
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408aa4
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x45776c
call fcn.004042c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45773f
mov eax, dword [ebp - 4]
call fcn.004026ec
ret

Function at 0x45813c
Capabilities:
Query service status

Disassembly:
mov ecx, 0x45814c
xor edx, edx
call fcn.0045817c
ret

Function at 0x458150
Capabilities:
Query service status

Disassembly:
add esp, 0xffffffe4
push esp
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [esp + 4]
add esp, 0x1c
ret
Function at 0x4583fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040446c
xor eax, eax
push ebp
push 0x4584e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404054
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402c80
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov eax, dword [0x45b088]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
call fcn.0040447c
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 1
mov dl, 1
mov eax, dword [ebx + 0x300]
call fcn.0042bcd4
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x4584bf
mov eax, dword [0x45b088]
mov eax, dword [eax]
call fcn.00454210
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 8], 0x103
jne 0x4584b6
mov eax, dword [0x45b088]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
je 0x458484
mov eax, ebx
call fcn.004583ec
jmp 0x4584c9
mov eax, 0x4584fc
call fcn.0042accc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4584ee
lea eax, [ebp - 0xc]
call fcn.00403fbc
lea eax, [ebp - 4]
call fcn.00403fbc
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x426181
Capabilities:
Terminate process

Disassembly:
jmp 0x428a60
jmp fcn.00429580
cmp ecx, dword [section..data]
jne 0x428a6a
repz ret
jmp 0x426564

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40121c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40121c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40120b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401204
test edi, edi
je 0x401204
push ebx
push eax
push edi
call fcn.004669d0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.00401230
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc

Function at 0x401b00
Capabilities:
Create thread

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5645bc]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push 0x104
mov ebx, ecx
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00463f00
add esp, 0xc
cmp dword [esi + 0x18], 8
lea ebp, [esi + 4]
jb 0x401b4d
mov eax, dword [ebp]
jmp 0x401b4f
mov eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call edi
cmp dword [esi + 0x18], 8
jb 0x401b72
mov ecx, dword [ebp]
jmp 0x401b74
mov ecx, ebp
xor ebp, ebp
push ebp
push ebp
push eax
lea edx, [esp + 0x20]
push edx
push 0xffffffffffffffff
push ecx
push ebp
push 1
call edi
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 4]
push eax
lea edx, [esp + 0x18]
call fcn.00401950
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x10]
push ecx
push ebp
push esi
push 0x4018d0
push ebp
push ebp
mov dword [esp + 0x28], ebp
call fcn.0046bdc5
add esp, 0x18
cmp eax, ebp
mov dword [esi + 0xc], eax
pop edi
je 0x401be6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401bde
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebp
mov eax, dword [ebx + 4]
mov al, byte [eax + 4]
jmp 0x401bec
mov ecx, dword [ebx + 4]
mov al, byte [ecx + 4]
jmp 0x401bec
mov edx, dword [ebx + 4]
mov al, byte [edx + 4]
mov ecx, dword [esp + 0x114]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00463ee8
add esp, 0x10c
ret 8
Function at 0x402870
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x510778
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x5645bc]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push edi
mov eax, dword [0x5645bc]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi], ebx
mov eax, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x10], esi
mov word [esi + 0xc], bx
lea edi, [esi + 0x24]
mov dword [esp + 0x640], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x640], 2
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x539ed8
mov byte [ecx + 4], bl
call fcn.00401e90
push ebx
mov byte [esp + 0x644], 3
call fcn.00468888
push eax
call fcn.00467a79
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.00463f00
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x4029d1
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.00463f00
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4029ae
cmp eax, ebx
je 0x4029ae
lea edx, [esp + 0x220]
push edx
mov ecx, edi
mov word [esp + eax*2 + 0x224], bx
call fcn.00403a90
jmp 0x4029d1
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4029b5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004020f0
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x402a08
lea ebp, [eax - 1]
cmp ebp, dword [edi + 0x14]
jbe 0x4029e5
call fcn.004640ee
cmp dword [edi + 0x18], 8
jb 0x4029f0
mov eax, dword [edi + 4]
jmp 0x4029f3
lea eax, [edi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x402a08
push 1
push 0x539edc
mov ecx, edi
call fcn.00403f60
cmp dword [esi + 0x38], ebx
jne 0x402a1b
push 3
push 0x539ee0
mov ecx, edi
call fcn.004020f0
mov eax, esi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00463ee8
add esp, 0x634
ret
Function at 0x402a50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5106d1
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
mov eax, dword [0x5645bc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], 2
cmp dword [esi + 0x54], ebx
mov ebp, 8
je 0x402a9f
cmp dword [esi + 0x58], ebp
jb 0x402a95
mov eax, dword [esi + 0x44]
jmp 0x402a98
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x74], 0x10
jb 0x402ab1
mov eax, dword [esi + 0x60]
push eax
call fcn.004e0b6b
add esp, 4
mov dword [esi + 0x74], 0xf
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov byte [esp + 0x18], 1
cmp dword [esi + 0x58], ebp
jb 0x402ad4
mov eax, dword [esi + 0x44]
push eax
call fcn.004e0b6b
add esp, 4
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
mov byte [esp + 0x18], bl
cmp dword [esi + 0x3c], ebp
jb 0x402af7
mov eax, dword [esi + 0x28]
push eax
call fcn.004e0b6b
add esp, 4
mov dword [esi + 0x3c], 7
mov dword [esi + 0x38], ebx
mov word [esi + 0x28], bx
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0x20], ebp
jb 0x402b1e
mov eax, dword [esi + 0xc]
push eax
call fcn.004e0b6b
add esp, 4
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], ebx
mov word [esi + 0xc], bx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x404200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x510831
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x5645bc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.004023b0
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 1
call fcn.00404090
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.004023b0
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x4042a3
mov edx, dword [esp + 0x14]
push edx
call fcn.004e0b6b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x4042c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x510831
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x5645bc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.004023b0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], 1
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404320
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00403f60
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.004023b0
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x404377
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004e0b6b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x404d10
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x404d4f
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x404d4f
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret
Function at 0x4050a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4050d3
or eax, 0xffffffff
jmp 0x4051e3
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x405117
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4051e3
cmp dword [ebp - 0xc], 0
je 0x40512f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x4051e3
cmp dword [ebp - 0x14], 1
je 0x405146
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4051e3
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call fcn.0045acac
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00463f00
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4051b9
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004e0b6b
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x4051e3
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00408d10
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e0b6b
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5645bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00463f00
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x214]
add ecx, 0x30
call fcn.00403a90
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x4c
call fcn.00403a90
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463ee8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5645bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00463f00
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x214]
add ecx, 0x274
call fcn.00403a90
push 0x512e4c
mov ecx, dword [ebp - 0x214]
add ecx, 0x274
call fcn.00403ac0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463ee8
mov esp, ebp
pop ebp
ret

Function at 0x409f00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5645bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00463f00
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401c90
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463ee8
mov esp, ebp
pop ebp
ret 4
Function at 0x409f90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509281
mov eax, dword fs:[0]
push eax
mov eax, 0x1344
call fcn.00465ba0
mov eax, dword [0x5645bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1340], ecx
lea ecx, [ebp - 0x1254]
call fcn.00411630
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x1340]
call fcn.00409f00
mov dword [ebp - 4], 0
push 0x512e58
push 0x512e70
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1308]
push edx
call fcn.004042c0
add esp, 0xc
mov dword [ebp - 0x1344], eax
mov eax, dword [ebp - 0x1344]
mov dword [ebp - 0x1348], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1348]
push ecx
lea edx, [ebp - 0x1324]
push edx
call fcn.004042c0
add esp, 0xc
mov dword [ebp - 0x134c], eax
mov eax, dword [ebp - 0x134c]
mov dword [ebp - 0x1350], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1350]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403a70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1324]
call fcn.00401cd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1308]
call fcn.00401cd0
lea ecx, [ebp - 0x2c]
call fcn.00401e80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a139
mov dword [ebp - 0x12e8], 0
mov dword [ebp - 0x12ec], 0
push 1
push 0x40
push 0x60
lea ecx, [ebp - 0x2c]
call fcn.00401e80
push eax
lea ecx, [ebp - 0x12e4]
call fcn.0040c830
mov byte [ebp - 4], 3
push 2
push 0
lea ecx, [ebp - 0x12e4]
call fcn.0040c430
lea edx, [ebp - 0x133c]
push edx
lea ecx, [ebp - 0x12e4]
call fcn.0040c4b0
mov ecx, eax
call fcn.0040c550
mov dword [ebp - 0x12e8], eax
push 0
mov eax, dword [ebp - 0x12e8]
sub eax, 0x1224
push eax
lea ecx, [ebp - 0x12e4]
call fcn.0040c430
push 0x1224
mov ecx, dword [ebp - 0x1340]
add ecx, 0x2b4
push ecx
lea ecx, [ebp - 0x12e4]
call fcn.0040c410
lea ecx, [ebp - 0x12e4]
call fcn.0040c990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12e4]
call fcn.0040c360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00463ee8
mov esp, ebp
pop ebp
ret
Function at 0x40bfd0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5095bd
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5645bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], ecx
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00463f00
add esp, 0xc
push 0
push 0x10
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.00401c90
mov dword [ebp - 4], 0
push str.7654.debug
lea ecx, [ebp - 0x238]
call fcn.00403ac0
lea ecx, [ebp - 0x238]
call fcn.00401e80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c093
mov byte [ebp - 0x239], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00401cd0
mov al, byte [ebp - 0x239]
jmp 0x40c0b2
mov byte [ebp - 0x23a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00401cd0
mov al, byte [ebp - 0x23a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00463ee8
mov esp, ebp
pop ebp
ret