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

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x104
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x412ab0]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0xc]
repne scasb al, byte es:[edi]
mov ecx, dword [str.IVIApp.tmp]
mov ax, word [0x412ab4]
dec edi
mov dword [edi], ecx
mov cl, byte [0x412ab6]
mov dword [edi + 4], edx
lea edx, [esp + 0xc]
mov word [edi + 8], ax
push 0x412aa8
push edx
mov byte [edi + 0xa], cl
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40357b
push ebx
lea eax, [esp + 0x10]
push 0x412aa4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x18]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_fputs]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x405340
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x228
push ebx
mov ebx, dword [esp + 0x234]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push esi
push edi
mov dword [esp + 0x24], ecx
xor edi, edi
lea ecx, [ecx]
mov eax, 0x104
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x4053bb
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x138]
push eax
mov eax, dword [esp + 0x244]
push ecx
push esi
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc edi
test esi, esi
je 0x405360
cmp esi, 0x103
je 0x4053da
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x228
ret 0xc
cmp dword [esp + 0x244], 1
jne 0x4054b4
xor ebp, ebp
lea ebx, [ebx]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ebx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x405491
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push eax
lea edx, [esp + 0x3c]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405492
mov edx, dword [esp + 0x23c]
mov edi, dword [esp + 0x24]
push 0xf003f
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
mov ecx, edi
call fcn.00405300
test eax, eax
je 0x40546a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405492
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 1
push ecx
push edx
mov ecx, edi
call fcn.00405340
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
inc ebp
test esi, esi
je 0x4053f0
cmp esi, 0x103
je 0x4054b4
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x228
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret 0xc
Function at 0x4054d6
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
mov eax, 0x80004005
mov dword [esp + 8], 4
je 0x40555d
mov edx, dword [esi + 0x10]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ebp
lea ecx, [esp + 0x24]
push ecx
push 0
push edi
push edx
call ebx
test eax, eax
je 0x405532
cmp dword [esi + 0xc], 0x80000001
jne 0x405532
mov esi, dword [esi + 0x14]
test esi, esi
je 0x405532
lea eax, [esp + 0x10]
push eax
push ebp
lea ecx, [esp + 0x24]
push ecx
push 0
push edi
push esi
call ebx
mov edx, dword [esp + 0x1c]
mov ecx, 4
cmp edx, ecx
pop edi
pop ebx
jne 0x405547
cmp dword [esp + 8], ecx
je 0x405559
mov edx, dword [esp + 0x18]
pop esi
mov dword [ebp], edx
mov eax, 0x80004005
pop ebp
pop ecx
ret 0xc
test eax, eax
je 0x405564
mov edx, dword [esp + 0x18]
mov dword [ebp], edx
pop esi
pop ebp
pop ecx
ret 0xc

Function at 0x405570
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
mov eax, 0x80004005
je 0x4055d2
mov ecx, dword [esi + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
push edi
push ebx
lea eax, [esp + 0x24]
push eax
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4055c3
cmp dword [esi + 0xc], 0x80000001
jne 0x4055c3
mov eax, dword [esi + 0x14]
push edi
push ebx
lea edx, [esp + 0x24]
push edx
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x1c], 1
pop edi
pop ebp
pop ebx
je 0x4055d2
mov eax, 0x80004005
pop esi
ret 0xc
jmp 0x405570
Function at 0x4090d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4090f6
xor eax, eax
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x40918e
dec eax
je 0x409168
dec eax
jne 0x4090ed
mov ecx, dword [esp + 4]
mov eax, ecx
sub eax, 3
je 0x40915c
dec eax
je 0x409150
dec eax
jne 0x40913f
mov eax, dword [esp + 8]
test eax, eax
jne 0x40912e
mov eax, 6
add esp, 0x94
ret
cmp eax, 1
jne 0x409144
mov eax, 0xa
add esp, 0x94
ret
cmp ecx, 5
jb 0x4090ed
mov eax, 0xa
add esp, 0x94
ret
mov eax, 5
add esp, 0x94
ret
mov eax, 4
add esp, 0x94
ret
mov eax, dword [esp + 8]
test eax, eax
jne 0x40917c
mov eax, 2
add esp, 0x94
ret
cmp eax, 0xb
sbb eax, eax
and eax, 0xfffffffa
add eax, 9
add esp, 0x94
ret
mov eax, 1
add esp, 0x94
ret
Function at 0x40b7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ecx
je 0x40b9b6
mov ax, word [esi]
cmp ax, 0xffff
je 0x40b9b6
mov ebx, dword [0x414500]
cmp ebx, 0xf9183183
je 0x40b9b6
cmp ebx, 0x40b4d0
je 0x40b9b6
cmp word [esi], 0xffff
mov dword [ebp - 0x10], esi
mov eax, esi
je 0x40b845
mov edi, ebx
sub edi, 0x40b4d0
cmp word [esi], 0xffff
mov edx, ecx
je 0x40b842
xor ebx, ebx
cmp word [eax], 0xfffe
jne 0x40b815
add eax, 2
mov ebx, 1
mov cx, word [eax]
cmp cx, 0xffff
jne 0x40b824
or edx, 0xffffffff
jmp 0x40b82c
movzx ecx, cx
add edx, ecx
add eax, 2
test ebx, ebx
jne 0x40b832
add dword [edx], edi
cmp word [eax], 0xffff
jne 0x40b804
mov ebx, dword [0x414500]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
cmp word [esi], 0xfffe
mov dword [ebp - 4], 0
jne 0x40b860
add esi, 2
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 1
mov ax, word [esi]
cmp ax, 0xffff
jne 0x40b86e
or edx, 0xffffffff
jmp 0x40b87b
xor edx, edx
mov dx, ax
add edx, ecx
add esi, 2
mov dword [ebp + 0xc], esi
cmp ecx, edi
mov esi, dword [ebp + 8]
mov eax, ecx
jae 0x40b956
or ebx, 0xffffffff
cmp eax, edx
jb 0x40b8e9
mov ecx, dword [ebp - 4]
mov edi, eax
sub edi, edx
shl edi, 3
test ecx, ecx
je 0x40b8b1
test edi, edi
jne 0x40b8a5
xor ebx, ebx
jmp 0x40b8b1
mov ecx, 0x20
sub ecx, edi
or ebx, 0xffffffff
shl ebx, cl
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0xfffe
mov dword [ebp - 4], 0
jne 0x40b8cf
add ecx, 2
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 1
mov di, word [ecx]
cmp di, 0xffff
jne 0x40b8de
or edx, 0xffffffff
jmp 0x40b8e9
movzx edi, di
add edx, edi
add ecx, 2
mov dword [ebp + 0xc], ecx
lea ecx, [edx - 3]
cmp eax, ecx
jb 0x40b908
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40b908
mov ecx, edx
sub ecx, eax
shl ecx, 3
mov edi, 1
shl edi, cl
dec edi
and ebx, edi
mov edi, dword [eax]
mov ecx, ebx
and ecx, esi
xor edi, ecx
mov ecx, edi
and ecx, ebx
add esi, ecx
mov dword [eax], edi
mov ecx, esi
shr ecx, 6
and ecx, 0x7f800
mov edi, esi
and edi, 0x7f800
xor ecx, edi
mov edi, esi
shr ecx, 0xb
and edi, 0xff
xor ecx, edi
shl esi, 8
or esi, ecx
mov ecx, dword [ebp - 8]
add eax, 4
cmp eax, ecx
jb 0x40b888
mov ebx, dword [0x414500]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40b9f8
cmp word [eax], 0xffff
je 0x40b9f8
sub ebx, 0x40b4d0
mov esi, ecx
mov ecx, ebx
neg ecx
xor edi, edi
cmp word [eax], 0xfffe
jne 0x40b989
add eax, 2
mov edi, 1
mov dx, word [eax]
cmp dx, 0xffff
jne 0x40b998
or esi, 0xffffffff
jmp 0x40b9a0
movzx edx, dx
add esi, edx
add eax, 2
test edi, edi
jne 0x40b9a6
add dword [esi], ecx
cmp word [eax], 0xffff
jne 0x40b978
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ecx, edi
mov eax, dword [ebp + 8]
jae 0x40b9f8
lea ecx, [ecx]
mov esi, dword [ecx]
xor esi, eax
mov edx, esi
add eax, edx
mov dword [ecx], esi
mov edx, eax
shr edx, 6
mov esi, eax
and edx, 0x7f800
and esi, 0x7f800
xor edx, esi
mov esi, eax
shr edx, 0xb
and esi, 0xff
xor edx, esi
shl eax, 8
add ecx, 4
or eax, edx
cmp ecx, edi
jb 0x40b9c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a5e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, eax
push edi
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x40a5f7
mov dword [ebp - 8], eax
jmp 0x40a60c
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a600
sub eax, edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.0040e050
mov ebx, 8
add esp, 8
cmp dword [eax + 0x18], ebx
jb 0x40a62b
mov eax, dword [eax + 4]
jmp 0x40a62e
add eax, 4
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp dword [ebp - 0x2c], ebx
jb 0x40a64c
mov edx, dword [ebp - 0x40]
push edx
call fcn.00456e75
add esp, 4
test edi, edi
jne 0x40a65b
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], 0
je 0x40a73f
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004568b7
add esp, 4
mov ebx, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x40a68e
mov dword [ebp - 8], esi
jmp 0x40a69f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a693
sub eax, edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.0040e050
mov esi, 8
add esp, 8
cmp dword [eax + 0x18], esi
jb 0x40a6be
mov eax, dword [eax + 4]
jmp 0x40a6c1
add eax, 4
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 0x2c], esi
jb 0x40a6db
mov edx, dword [ebp - 0x40]
push edx
call fcn.00456e75
add esp, 4
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040a920
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040dfe0
mov ecx, dword [ebp + 8]
add esp, 8
push 0xffffffffffffffff
push 0
push eax
call fcn.004028c0
cmp dword [ebp - 0x10], 0x10
jb 0x40a713
mov edx, dword [ebp - 0x24]
push edx
call fcn.00456e75
add esp, 4
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
cmp dword [ebp - 0x2c], esi
jb 0x40a736
mov eax, dword [ebp - 0x40]
push eax
call fcn.00456e75
add esp, 4
push ebx
call fcn.004573a9
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a750
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
cmp dword [ecx + 0x18], 0x10
push ebx
push esi
push edi
jb 0x40a767
mov edx, dword [ecx + 4]
jmp 0x40a76a
lea edx, [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40a783
mov dword [esp + 0x1c], eax
jmp 0x40a793
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a786
sub eax, edx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0040e050
mov edi, 8
add esp, 8
cmp dword [eax + 0x18], edi
jb 0x40a7b4
mov esi, dword [eax + 4]
jmp 0x40a7b7
lea esi, [eax + 4]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0040e050
add esp, 8
cmp dword [eax + 0x18], edi
jb 0x40a7d3
mov eax, dword [eax + 4]
jmp 0x40a7d6
add eax, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
cmp dword [esp + 0x38], edi
jb 0x40a7f6
mov eax, dword [esp + 0x24]
push eax
call fcn.00456e75
add esp, 4
xor ecx, ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], cx
cmp dword [esp + 0x54], edi
jb 0x40a820
mov edx, dword [esp + 0x40]
push edx
call fcn.00456e75
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a830
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov dword [esp + 4], eax
test eax, eax
jne 0x40a848
mov dword [esp + 8], eax
jmp 0x40a85d
lea edx, [eax + 1]
jmp 0x40a850
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a850
sub eax, edx
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040e050
add esp, 8
cmp dword [eax + 0x18], 8
jb 0x40a87a
mov eax, dword [eax + 4]
jmp 0x40a87d
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
cmp dword [esp + 0x24], 8
jb 0x40a89f
mov edx, dword [esp + 0x10]
push edx
call fcn.00456e75
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bab0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x5f89a0], 0
je 0x40bac5
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x3c
call fcn.00457344
mov edi, eax
add esp, 4
test edi, edi
je 0x40baf5
mov esi, edi
call fcn.0040c8f0
lea esi, [edi + 0x18]
call fcn.0040ce20
mov dword [edi + 0x38], 1
mov dword [0x5f89a0], edi
jmp 0x40baff
mov dword [0x5f89a0], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x18], cx
mov ecx, eax
mov dword [ebp - 4], 7
mov dword [ebp - 8], 0
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40bb20
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040a9a0
mov edi, dword [0x5f89a0]
lea edx, [ebp - 0x1c]
push edx
call fcn.0040c830
cmp dword [ebp - 4], 8
pop edi
pop esi
jb 0x40bb5c
mov eax, dword [ebp - 0x18]
push eax
call fcn.00456e75
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x40c830
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x576510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea edx, [ebp - 0x20]
push edx
xor esi, esi
mov dword [ebp - 0x24], esi
xor ecx, ecx
push 3
push eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], esi
mov word [ebp - 0x1c], cx
call fcn.00403e70
add esp, 0xc
cmp dword [ebp - 0xc], esi
je 0x40c89b
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], esi
jae 0x40c87c
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp - 0x24]
mov esi, eax
push esi
push edx
push edi
call fcn.0040bbf0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 8
jb 0x40c8ad
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00456e75
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045759d
mov esp, ebp
pop ebp
ret 4

Function at 0x40f020
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
cmp dword [eax + 0x18], 8
push ebx
push esi
jb 0x40f036
mov ebx, dword [eax + 4]
jmp 0x40f039
lea ebx, [eax + 4]
lea eax, [ebp - 4]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40f04f
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push esi
call fcn.0045a3d9
mov edi, eax
add esp, 8
test edi, edi
je 0x40f0c4
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f0bb
lea edx, [ebp - 8]
push edx
lea eax, [ebp + 8]
push eax
push 0x56fe7c
push edi
mov dword [ebp + 8], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f0bb
cmp dword [ebp + 8], 0
je 0x40f0bb
push 0x14
call fcn.00457344
mov esi, eax
add esp, 4
test esi, esi
je 0x40f0c4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
call fcn.0040ee60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004573b4
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f300
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x576510]
xor eax, ebp
mov dword [ebp - 4], eax
movzx ecx, word [edi + 8]
mov eax, dword [ebp + 0xc]
mov dx, word [edi + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0x224], eax
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], dx
call esi
movzx ecx, word [edi + 8]
mov word [ebp - 0x10], ax
mov ax, word [edi + 0xc]
mov edx, 0x4e4
mov word [ebp - 0xe], ax
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], dx
call esi
mov word [ebp - 8], ax
mov eax, 0x4e4
mov word [ebp - 6], ax
xor esi, esi
jmp 0x40f370
movzx eax, word [ebp + esi*2 - 0x14]
movzx ecx, word [ebp + esi*2 - 0x12]
inc esi
push ebx
movzx ecx, cx
push ecx
movzx edx, ax
push edx
push 0x570088
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
inc esi
call fcn.00458e7f
mov eax, dword [edi + 4]
add esp, 0x1c
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x220], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f3d9
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x40f3f2
cmp esi, 8
jb 0x40f370
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045759d
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f3f7
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.0040a9a0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0045759d
mov esp, ebp
pop ebp
ret 8
Function at 0x410e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x576510]
xor eax, esp
mov dword [esp + 0x290], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x410f86
cmp byte [0x5f89d4], 0
je 0x410f86
push 0x104
lea eax, [esp + 0x8c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x88]
push 0x5c
push ecx
call fcn.0045abbf
add esp, 8
test eax, eax
je 0x410e95
xor edx, edx
mov word [eax + 2], dx
push str.debug_message.exe
lea eax, [esp + 0x8c]
push 0x104
push eax
call fcn.0045abeb
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x410ebe
mov ecx, dword [esi + 4]
mov dword [esp + 8], ecx
jmp 0x410ec5
lea edx, [esi + 4]
mov dword [esp + 8], edx
mov eax, dword [esi + 0x14]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x14], eax
call fcn.0040e050
add esp, 8
cmp dword [esp + 0x80], 0
je 0x410f7d
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00457450
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x90]
mov dword [esp + 0x44], 0x44
call fcn.00405330
push eax
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x410f5f
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
jmp 0x410f7d
push 0x40010
push str.Fatal_error
push 0
lea ecx, [esp + 0x78]
call fcn.00405330
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x6c]
call fcn.00402060
mov ecx, dword [esp + 0x294]
pop esi
xor ecx, esp
call fcn.0045759d
mov esp, ebp
pop ebp
ret
Function at 0x412b10
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x412b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x576510]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x412c96
push ebx
push edi
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x264]
call fcn.0040a920
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [ebp - 0x264]
xor edx, edx
mov ebx, 7
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], edi
mov word [ebp - 0x244], dx
call fcn.00402c50
push 0xffffffffffffffff
xor ecx, ecx
push edi
lea edx, [ebp - 0x248]
mov word [ebp - 0x228], cx
push edx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], edi
call fcn.00402c50
lea eax, [ebp - 0x22c]
call fcn.0040e980
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x22c]
push eax
mov ecx, esi
call fcn.00402c50
mov esi, 8
cmp dword [ebp - 0x214], esi
jb 0x412c2b
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00456e75
add esp, 4
xor edx, edx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], edi
mov word [ebp - 0x228], dx
cmp dword [ebp - 0x230], esi
jb 0x412c57
mov eax, dword [ebp - 0x244]
push eax
call fcn.00456e75
add esp, 4
mov dword [ebp - 0x234], edi
xor ecx, ecx
pop edi
mov dword [ebp - 0x230], ebx
mov word [ebp - 0x244], cx
pop ebx
cmp dword [ebp - 0x24c], esi
jb 0x412c85
mov edx, dword [ebp - 0x260]
push edx
call fcn.00456e75
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045759d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0045759d
mov esp, ebp
pop ebp
ret

Function at 0x412db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [eax + 0x18], 8
jb 0x412dc8
mov eax, dword [eax + 4]
jmp 0x412dcb
add eax, 4
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x412e34
lea ecx, [ebp - 4]
call fcn.004136d0
cmp esi, 0xffffffff
je 0x412e01
mov dword [ebp - 4], esi
jmp 0x412e04
mov esi, dword [ebp - 4]
test esi, esi
je 0x412e34
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 8]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412e34
mov esi, dword [ebp - 8]
cmp esi, edi
jne 0x412e34
lea ecx, [ebp - 4]
call fcn.004136d0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
call fcn.004136d0
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret