joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406220
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x488240]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x48b814], 0
push esi
je 0x406250
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.0043aa02
add esp, 4
test eax, eax
je 0x40626e
push 0
mov ecx, eax
call fcn.00406120
mov dword [0x48b814], eax
jmp 0x406278
mov dword [0x48b814], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x18], 7
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
cmp word [edx], ax
jne 0x4062a0
xor ecx, ecx
jmp 0x4062b4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4062a5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.004082b0
mov ecx, dword [0x48b814]
lea eax, [esp + 4]
push eax
call fcn.00407280
cmp dword [esp + 0x18], 8
jb 0x4062e2
push dword [esp + 4]
call fcn.0043aa53
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
pop esi
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret

Function at 0x407280
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x488240]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov ecx, str._t_n_v_f_r
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
lea edx, [ecx + 2]
mov word [esp + 0x24], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4072d3
sub ecx, edx
sar ecx, 1
push ecx
push str._t_n_v_f_r
lea ecx, [esp + 0x2c]
call fcn.004082b0
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 3
lea edx, [esp + 0x2c]
call fcn.00414070
add esp, 8
cmp dword [esp + 0x38], 8
jb 0x407319
push dword [esp + 0x24]
call fcn.0043aa53
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x407357
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.00406400
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x40736a
push dword [esp + 0xc]
call fcn.0043aa53
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 4
Function at 0x40c480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x488240]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.0040d170
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.004041b0
mov eax, dword [0x48b834]
test eax, eax
je 0x40c4e9
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x40c632
cmp dword [ebx], 2
jl 0x40c529
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.0043e368
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.0043e78d
call fcn.0043e368
add eax, 0x40
push eax
call fcn.0043e4f7
add esp, 0x14
lea esi, [ebx + 0xc]
lea edi, [ebx + 8]
call fcn.0040c200
cmp dword [0x48b83c], 0
jne 0x40c547
push 0xffffffffffffffff
push dword [0x48b838]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40c553
push dword [0x48b81c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0040c310
test al, al
je 0x40c594
push 2
push 0
push 0
push dword [0x48b828]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x48b828]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x48b83c], 0
jne 0x40c5ab
push dword [0x48b838]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40c5b7
push dword [0x48b81c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x40c632
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x40c5eb
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0043c970
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00416cf0
add esp, 4
cmp dword [0x48b830], 0
je 0x40c6b5
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.004041b0
lea eax, [esp + 0x28]
push eax
call dword [0x48b830]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x40c632
push dword [esp + 0x28]
call fcn.0043aa53
add esp, 4
cmp dword [esp + 0x24], 0x10
jb 0x40c645
push dword [esp + 0x10]
call fcn.0043aa53
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
lea esi, [edi + 0x50]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x481518
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 0x54], eax
lea ecx, [esi - 0x4c]
call fcn.00402400
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x47ba78
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], vtable.std::ios_base.0
call fcn.0043a5d0
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
call fcn.00410d40
int3
Function at 0x40e0d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], esi
test edi, edi
jne 0x40e0f4
xor edx, edx
jmp 0x40e10b
cmp byte [edi], 0
jne 0x40e0fd
xor edx, edx
jmp 0x40e10b
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40e102
sub edx, ecx
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
mov ecx, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push eax
call fcn.0040faa0
add esp, 4
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
mov ebx, eax
jb 0x40e156
push dword [ebp - 0x1c]
call fcn.0043aa53
add esp, 4
test ebx, ebx
jne 0x40e16f
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x40e2bd
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00439f0a
add esp, 4
mov esi, eax
test edi, edi
jne 0x40e19c
xor edx, edx
jmp 0x40e1b9
cmp byte [edi], 0
jne 0x40e1a5
xor edx, edx
jmp 0x40e1b9
mov edx, edi
lea ecx, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x40e1b0
sub edx, ecx
xor eax, eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
mov ecx, edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push eax
call fcn.0040faa0
add esp, 4
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
jb 0x40e200
push dword [ebp - 0x1c]
call fcn.0043aa53
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
call fcn.004073b0
cmp dword [ebp - 8], 8
lea edi, [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x34]
cmovae edi, dword [ebp - 0x1c]
mov edx, ebx
push eax
mov ecx, edi
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.00418c50
lea eax, [ebp - 0x34]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0040fc50
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
add esp, 8
cmp ebx, eax
je 0x40e27c
cmp dword [ebx + 0x14], 0x10
jb 0x40e260
push dword [ebx]
call fcn.0043aa53
add esp, 4
lea eax, [ebp - 0x34]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.00402c10
cmp dword [ebp - 0x20], 0x10
jb 0x40e28d
push dword [ebp - 0x34]
call fcn.0043aa53
add esp, 4
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x40e2b0
push dword [ebp - 0x1c]
call fcn.0043aa53
add esp, 4
test esi, esi
je 0x40e2bd
push esi
call fcn.0043d563
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 8
Function at 0x40e780
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40e793
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x40e7aa
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push ebx
call fcn.0043f278
mov edi, eax
add esp, 8
test edi, edi
je 0x40e823
push edi
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40e81a
lea eax, [ebp - 8]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
push eax
push 0x48223c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e81a
cmp dword [ebp + 8], 0
je 0x40e81a
push 0x14
call fcn.0043aa02
add esp, 4
test eax, eax
je 0x40e823
mov edx, dword [ebp + 8]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push edi
mov ecx, eax
call fcn.0040e5c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0043d52b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ea80
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xc]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xc]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push 0x482448
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0043f2b8
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40eb54
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x40eb6e
cmp esi, 8
jb 0x40eaf0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x40eb98
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.004082b0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eba0
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.004082b0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 8
Function at 0x4110e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.004110f0

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x488240]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
call fcn.00411350
mov edi, eax
mov dword [esp + 0x30], 7
xor eax, eax
mov dword [esp + 0x2c], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x28]
mov word [esp + 0x28], ax
call fcn.00407a60
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411169
xor edx, edx
lea ecx, [esp + 0x1c]
call fcn.00415410
test al, al
je 0x4111a2
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x34]
call fcn.00414f90
lea ecx, [esp + 0x1c]
cmp ecx, eax
je 0x411188
push 0xffffffffffffffff
push 0
push eax
call fcn.00407a60
cmp dword [esp + 0x48], 8
jb 0x41119b
push dword [esp + 0x34]
call fcn.0043aa53
add esp, 4
cmp dword [esp + 0x2c], 0
jne 0x4111a6
xor bl, bl
jmp 0x41120e
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 0x18]
call fcn.004115f0
mov eax, dword [edi + 0x18]
lea edx, [esp + 0x10]
push edx
lea ecx, [edi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
push 0x10
push eax
mov dword [ecx + 4], eax
lea eax, [esp + 0x24]
push eax
call fcn.00411670
lea eax, [esp + 0x14]
mov dword [edi + 0x2c], 7
push eax
lea ecx, [edi + 0x38]
mov dword [edi + 0x30], 8
call fcn.00411240
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x411205
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00407a60
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x30], 8
jb 0x411221
push dword [esp + 0x1c]
call fcn.0043aa53
add esp, 4
mov ecx, dword [esp + 0x4c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret

Function at 0x412ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
lea eax, [esp + 8]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 8], 4
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 4
push eax
push 0
push dword [ebp + 8]
mov dword [esp + 0x20], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x412d16
mov ecx, dword [esp + 4]
cmp ecx, 4
je 0x412cf9
cmp ecx, 3
jne 0x412d11
cmp dword [esp + 8], 4
jne 0x412d11
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, edx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov esp, ebp
pop ebp
ret 8
Function at 0x412d20
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.0044a430
mov eax, dword [0x488240]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x412e67
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x412df4
cmp word [esp + 0x10], ax
jne 0x412db8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.004082b0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412dc0
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004082b0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x412e62
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x412e47
cmp eax, 0x400
ja 0x412e47
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.0040b2c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 8

Function at 0x412e80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push esi
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412ec9
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x412ede
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi], 0
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
dec ecx
mov dword [esi + 4], ecx
test edx, edx
je 0x412f14
test ecx, ecx
js 0x412f14
lea eax, [ebp - 8]
mov dword [ebp + 0xc], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x412f1a
xor eax, eax
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4150c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4150ce
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4150e8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4150fb
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x415100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x41525d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.004073b0
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x220], 0
push eax
call fcn.00407a60
push 1
push 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
lea ecx, [ebp - 0x230]
call fcn.00407b80
cmp eax, 0xffffffff
je 0x4151ab
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x230]
call fcn.004084c0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b000
cmp esi, eax
je 0x4151cd
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407a60
cmp dword [ebp - 0x234], 8
jb 0x4151e4
push dword [ebp - 0x248]
call fcn.0043aa53
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x415218
push dword [ebp - 0x230]
call fcn.0043aa53
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x41524c
push dword [ebp - 0x260]
call fcn.0043aa53
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret
Function at 0x415270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x488240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4152e1
cmp word [ebp - 0x210], 0
je 0x4152e1
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004073b0
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.0040a700
cmp dword [ebp - 0x214], 8
jb 0x4153ff
push dword [ebp - 0x228]
jmp 0x4153f7
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.00415100
test al, al
je 0x415336
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x240]
push eax
call fcn.00407a60
jmp 0x4153e8
push 3
xor eax, eax
mov dword [ebp - 0x214], 7
push 0x4825fc
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.004082b0
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00407a60
push 1
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov ecx, esi
call fcn.00407b80
cmp eax, 0xffffffff
je 0x4153b4
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.004084c0
cmp dword [ebp - 0x214], 8
jb 0x4153cb
push dword [ebp - 0x228]
call fcn.0043aa53
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp dword [ebp - 0x22c], 8
jb 0x4153ff
push dword [ebp - 0x240]
call fcn.0043aa53
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret