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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x494240]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x497844], 0
push esi
je 0x4062c0
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.00444deb
add esp, 4
test eax, eax
je 0x4062de
push 0
mov ecx, eax
call fcn.00406190
mov dword [0x497844], eax
jmp 0x4062e8
mov dword [0x497844], 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 0x406310
xor ecx, ecx
jmp 0x406324
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406315
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.00408320
mov ecx, dword [0x497844]
lea eax, [esp + 4]
push eax
call fcn.004072f0
cmp dword [esp + 0x18], 8
jb 0x406352
push dword [esp + 4]
call fcn.00444e3c
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
pop esi
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret

Function at 0x4072f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x494240]
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 0x407343
sub ecx, edx
sar ecx, 1
push ecx
push str._t_n_v_f_r
lea ecx, [esp + 0x2c]
call fcn.00408320
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 3
lea edx, [esp + 0x2c]
call fcn.00414390
add esp, 8
cmp dword [esp + 0x38], 8
jb 0x407389
push dword [esp + 0x24]
call fcn.00444e3c
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x4073c7
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.00406470
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x4073da
push dword [esp + 0xc]
call fcn.00444e3c
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret 4
Function at 0x40e1c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x494240]
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 0x40e1e4
xor edx, edx
jmp 0x40e1fb
cmp byte [edi], 0
jne 0x40e1ed
xor edx, edx
jmp 0x40e1fb
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40e1f2
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.0040f9d0
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 0x40e246
push dword [ebp - 0x1c]
call fcn.00444e3c
add esp, 4
test ebx, ebx
jne 0x40e25f
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004455d4
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x40e3ad
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004442f3
add esp, 4
mov esi, eax
test edi, edi
jne 0x40e28c
xor edx, edx
jmp 0x40e2a9
cmp byte [edi], 0
jne 0x40e295
xor edx, edx
jmp 0x40e2a9
mov edx, edi
lea ecx, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x40e2a0
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.0040f9d0
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 0x40e2f0
push dword [ebp - 0x1c]
call fcn.00444e3c
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
call fcn.00407420
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.0041afc0
lea eax, [ebp - 0x34]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0040fb80
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
add esp, 8
cmp ebx, eax
je 0x40e36c
cmp dword [ebx + 0x14], 0x10
jb 0x40e350
push dword [ebx]
call fcn.00444e3c
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.00402c80
cmp dword [ebp - 0x20], 0x10
jb 0x40e37d
push dword [ebp - 0x34]
call fcn.00444e3c
add esp, 4
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x40e3a0
push dword [ebp - 0x1c]
call fcn.00444e3c
add esp, 4
test esi, esi
je 0x40e3ad
push esi
call fcn.00447953
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004455d4
mov esp, ebp
pop ebp
ret 8
Function at 0x40e870
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 0x40e883
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 0x40e89a
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push ebx
call fcn.00449680
mov edi, eax
add esp, 8
test edi, edi
je 0x40e913
push edi
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40e90a
lea eax, [ebp - 8]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
push eax
push 0x48df40
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e90a
cmp dword [ebp + 8], 0
je 0x40e90a
push 0x14
call fcn.00444deb
add esp, 4
test eax, eax
je 0x40e913
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.0040e6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0044791b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40eb70
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x494240]
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 0x48e14c
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004496c0
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 0x40ec44
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x40ec5e
cmp esi, 8
jb 0x40ebe0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004455d4
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x40ec88
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.00408320
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004455d4
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 0x40ec90
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00408320
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004455d4
mov esp, ebp
pop ebp
ret 8
Function at 0x40f060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x40f226
mov edx, dword [ebp + 8]
push ebx
push esi
lea esp, [esp]
mov ecx, dword [edi + 0x168]
dec eax
mov dword [ebp + 0xc], eax
mov al, byte [edx]
inc edx
mov dword [ebp + 8], edx
mov byte [ecx + edi + 0x28], al
inc dword [edi + 0x168]
cmp dword [edi + 0x168], 0x40
jb 0x40f212
lea esi, [edi + 0x28]
mov edi, 0x10
mov ebx, esi
mov edx, dword [ebx]
lea ebx, [ebx + 4]
mov ecx, edx
mov eax, edx
shl ecx, 0x10
and eax, 0xff00
or ecx, eax
shr edx, 8
movzx eax, byte [ebx - 1]
and edx, 0xff00
shl ecx, 8
or ecx, eax
or ecx, edx
mov dword [ebx - 4], ecx
dec edi
jne 0x40f0b1
lea ecx, [edi + 0x40]
mov edi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x34]
lea esi, [esi + 4]
xor eax, dword [esi + 0x1c]
xor eax, dword [esi + 4]
xor eax, dword [esi - 4]
rol eax, 1
mov dword [esi + 0x3c], eax
dec ecx
jne 0x40f0e4
mov eax, dword [edi + 0x14]
xor edx, edx
mov dword [edi], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov ebx, dword [edi + 4]
mov dword [edi + 8], eax
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
mov dword [edi + 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x28
mov eax, dword [edi]
mov dword [ebp - 4], eax
cmp edx, 0x14
jae 0x40f14e
mov eax, ebx
not eax
and eax, ecx
mov ecx, ebx
and ecx, esi
or eax, ecx
jmp 0x40f16d
cmp edx, 0x28
jb 0x40f167
cmp edx, 0x3c
jae 0x40f167
mov eax, esi
or eax, ecx
mov ecx, esi
and ecx, dword [ebp - 0xc]
and eax, ebx
or eax, ecx
jmp 0x40f16d
mov eax, ebx
xor eax, esi
xor eax, ecx
cmp edx, 0x14
jae 0x40f179
mov ecx, 0x5a827999
jmp 0x40f196
cmp edx, 0x28
jae 0x40f185
mov ecx, 0x6ed9eba1
jmp 0x40f196
cmp edx, 0x3c
sbb ecx, ecx
and ecx, 0xc4b8fb06
add ecx, 0xca62c1d6
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
add dword [ebp - 8], 4
rol ebx, 5
add ebx, dword [edx + edi]
add ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add ebx, ecx
mov dword [ebp - 4], ebx
mov ecx, esi
add dword [ebp - 4], eax
inc edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [edi]
mov dword [ebp - 0xc], esi
mov dword [edi + 0xc], esi
mov esi, dword [ebp - 0x14]
ror esi, 2
cmp dword [ebp - 8], 0x168
mov dword [ebp - 0x10], eax
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [edi + 8], esi
mov dword [ebp - 0x14], ebx
mov dword [edi + 4], ebx
mov dword [edi], eax
mov dword [ebp - 0x18], edx
jb 0x40f136
add dword [edi + 0x14], eax
mov eax, ebx
add dword [edi + 0x18], eax
mov eax, esi
add dword [edi + 0x1c], eax
mov eax, dword [edi + 0xc]
add dword [edi + 0x20], eax
mov eax, dword [edi + 0x10]
add dword [edi + 0x24], eax
mov edx, dword [ebp + 8]
mov dword [edi + 0x168], 0
add dword [edi + 0x16c], 8
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40f080
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x40f2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x18], ebx
lea edi, [ebx + 0x28]
mov ebx, 0x10
mov ecx, edi
mov esi, dword [ecx]
lea ecx, [ecx + 4]
mov edx, esi
mov eax, esi
shl edx, 0x10
and eax, 0xff00
or edx, eax
shr esi, 8
movzx eax, byte [ecx - 1]
and esi, 0xff00
shl edx, 8
or edx, eax
or edx, esi
mov dword [ecx - 4], edx
dec ebx
jne 0x40f2e8
lea ecx, [ebx + 0x40]
mov ebx, dword [ebp - 0x18]
jmp 0x40f320
mov eax, dword [edi + 0x34]
lea edi, [edi + 4]
xor eax, dword [edi + 0x1c]
xor eax, dword [edi + 4]
xor eax, dword [edi - 4]
rol eax, 1
mov dword [edi + 0x3c], eax
dec ecx
jne 0x40f320
mov eax, dword [ebx + 0x14]
xor edx, edx
mov dword [ebx], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebx + 4]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x20]
mov esi, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x28
mov eax, dword [ebx]
mov dword [ebp - 4], eax
cmp edx, 0x14
jae 0x40f38a
mov eax, edi
not eax
and eax, ecx
mov ecx, edi
and ecx, esi
or eax, ecx
jmp 0x40f3a9
cmp edx, 0x28
jb 0x40f3a3
cmp edx, 0x3c
jae 0x40f3a3
mov eax, esi
or eax, ecx
mov ecx, esi
and ecx, dword [ebp - 0xc]
and eax, edi
or eax, ecx
jmp 0x40f3a9
mov eax, edi
xor eax, esi
xor eax, ecx
cmp edx, 0x14
jae 0x40f3b5
mov ecx, 0x5a827999
jmp 0x40f3d2
cmp edx, 0x28
jae 0x40f3c1
mov ecx, 0x6ed9eba1
jmp 0x40f3d2
cmp edx, 0x3c
sbb ecx, ecx
and ecx, 0xc4b8fb06
add ecx, 0xca62c1d6
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
add dword [ebp - 8], 4
rol edi, 5
add edi, dword [edx + ebx]
add edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add edi, ecx
mov dword [ebp - 4], edi
mov ecx, esi
add dword [ebp - 4], eax
inc edx
mov eax, dword [ebp - 0xc]
mov edi, dword [ebx]
mov dword [ebp - 0xc], esi
mov dword [ebx + 0xc], esi
mov esi, dword [ebp - 0x14]
ror esi, 2
cmp dword [ebp - 8], 0x168
mov dword [ebp - 0x10], eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 8], esi
mov dword [ebp - 0x14], edi
mov dword [ebx + 4], edi
mov dword [ebx], eax
mov dword [ebp - 0x18], edx
jb 0x40f372
add dword [ebx + 0x14], eax
mov eax, edi
add dword [ebx + 0x18], eax
mov eax, esi
add dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0xc]
add dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x10]
add dword [ebx + 0x24], eax
pop edi
pop esi
mov dword [ebx + 0x168], 0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411240
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.00411250
Function at 0x411250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x494240]
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.004114b0
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.00407ad0
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 0x4112c9
xor edx, edx
lea ecx, [esp + 0x1c]
call fcn.00415f70
test al, al
je 0x411302
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x34]
call fcn.00415af0
lea ecx, [esp + 0x1c]
cmp ecx, eax
je 0x4112e8
push 0xffffffffffffffff
push 0
push eax
call fcn.00407ad0
cmp dword [esp + 0x48], 8
jb 0x4112fb
push dword [esp + 0x34]
call fcn.00444e3c
add esp, 4
cmp dword [esp + 0x2c], 0
jne 0x411306
xor bl, bl
jmp 0x41136e
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 0x18]
call fcn.00411750
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.004117d0
lea eax, [esp + 0x14]
mov dword [edi + 0x2c], 7
push eax
lea ecx, [edi + 0x38]
mov dword [edi + 0x30], 8
call fcn.004113a0
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x411365
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00407ad0
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x30], 8
jb 0x411381
push dword [esp + 0x1c]
call fcn.00444e3c
add esp, 4
mov ecx, dword [esp + 0x4c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret

Function at 0x412ed0
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 0x412f46
mov ecx, dword [esp + 4]
cmp ecx, 4
je 0x412f29
cmp ecx, 3
jne 0x412f41
cmp dword [esp + 8], 4
jne 0x412f41
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 0x412f50
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.00454f80
mov eax, dword [0x494240]
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 0x413097
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x413024
cmp word [esp + 0x10], ax
jne 0x412fe8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00408320
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004455d4
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 0x412ff0
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00408320
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x413092
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 0x413077
cmp eax, 0x400
ja 0x413077
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.0040b440
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret 8

Function at 0x4130b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4130d0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x413100
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 0x413149
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 0x41315e
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 0x413194
test ecx, ecx
js 0x413194
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 0x41319a
xor eax, eax
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x415c20
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 0x415c2e
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 0x415c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x415c48
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415c5b
shr eax, 4
and eax, 1
ret
xor al, al
ret
Function at 0x415c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x494240]
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 0x415dbd
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00407420
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.00407ad0
push 1
push 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
lea ecx, [ebp - 0x230]
call fcn.00407bf0
cmp eax, 0xffffffff
je 0x415d0b
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x230]
call fcn.00408530
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b0b0
cmp esi, eax
je 0x415d2d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407ad0
cmp dword [ebp - 0x234], 8
jb 0x415d44
push dword [ebp - 0x248]
call fcn.00444e3c
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 0x415d78
push dword [ebp - 0x230]
call fcn.00444e3c
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 0x415dac
push dword [ebp - 0x260]
call fcn.00444e3c
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004455d4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004455d4
mov esp, ebp
pop ebp
ret