joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4976f8
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4b0b1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x10]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_4
lea ebp, [esi + 0x14]
mov dword [esp + 0x1c], 0
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_4
lea ebx, [esi + 0x1c]
mov byte [esp + 0x1c], 2
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 7
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 8
call sub.MFC42.DLL_CString::CString_4
push 0xa
lea ecx, [esi + 0x40]
mov byte [esp + 0x20], 9
call sub.MFC42.DLL_CMapStringToString::CMapStringToString
push 0xa
lea ecx, [esi + 0x5c]
mov byte [esp + 0x20], 0xa
call sub.MFC42.DLL_CMapStringToString::CMapStringToString
push 0xa
lea ecx, [esi + 0x78]
mov byte [esp + 0x20], 0xb
call sub.MFC42.DLL_CMapStringToString::CMapStringToString
lea ecx, [esi + 0x98]
mov byte [esp + 0x1c], 0xc
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x9c]
mov byte [esp + 0x1c], 0xd
call sub.MFC42.DLL_CString::CString_4
push 0x4dab08
mov ecx, ebp
mov byte [esp + 0x20], 0xe
mov dword [esi], 0x4beb1c
mov dword [esi + 8], 1
call sub.MFC42.DLL_CString::operator_1
push 0x4dab08
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 0x24], 0
push 0x4dab08
lea ecx, [esi + 0x28]
call sub.MFC42.DLL_CString::operator_1
push 0x4dab08
lea ecx, [esi + 0x2c]
call sub.MFC42.DLL_CString::operator_1
push 0x4dab08
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::operator_1
push 0x4dab08
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
mov ecx, esi
mov dword [esi + 0x20], 6
call fcn.00497c10
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, 0x4dc390
jmp 0x4976e0
Function at 0x499b60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b10c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x4dab08
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push str.L00_05x
push ecx
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edi, [esi + 0x14]
mov ecx, edi
push str.TC_580
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esi + 0x9c]
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edi, dword [edi]
push esi
push 0x6400
push 0x6400
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x499c38
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x499c59
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x49f5eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49f643
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4dab08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49f636
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49f645
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x451004]
jne 0x40100a
repz ret
jmp fcn.00401685

Function at 0x407b30
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004023ae
and dword [ebp - 4], 0
cmp dword [0x452cf4], 0
mov ebx, eax
jne 0x407be1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407c92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407c92
push eax
call fcn.0040233c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x452cf4], eax
call esi
push eax
call fcn.0040233c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x452cf8], eax
call esi
push eax
call fcn.0040233c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x452cfc], eax
call esi
push eax
call fcn.0040233c
pop ecx
mov dword [0x452d04], eax
test eax, eax
je 0x407be1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040233c
pop ecx
mov dword [0x452d00], eax
mov eax, dword [0x452d00]
cmp eax, ebx
je 0x407c39
cmp dword [0x452d04], ebx
je 0x407c39
push eax
call fcn.004023b7
push dword [0x452d04]
mov esi, eax
call fcn.004023b7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407c39
test edi, edi
je 0x407c39
call esi
test eax, eax
je 0x407c30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407c30
test byte [ebp - 0xc], 1
jne 0x407c39
or dword [ebp + 0x10], 0x200000
jmp 0x407c72
mov eax, dword [0x452cf8]
cmp eax, ebx
je 0x407c72
push eax
call fcn.004023b7
pop ecx
test eax, eax
je 0x407c72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407c72
mov eax, dword [0x452cfc]
cmp eax, ebx
je 0x407c72
push eax
call fcn.004023b7
pop ecx
test eax, eax
je 0x407c72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x452cf4]
call fcn.004023b7
pop ecx
test eax, eax
je 0x407c92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407c94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44da30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x451004]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x451f00]
push ebx
mov ebx, dword [0x2b50dd4]
push edi
mov edi, dword [0x2b50c1c]
call fcn.0044d940
cmp dword [0x2b50dd4], 0x2f
jne 0x44da6b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call fcn.0044d980
cmp dword [0x2b50dd4], 0x568
pop edi
pop ebx
jne 0x44daa2
push 0
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
lea ecx, [esp + 0x404]
push ecx
push str.Muvedipumob_hiwolucuwe_vusovamovuse
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401000
add esp, 0x804
ret
Function at 0x42b920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
jmp 0x42b93a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b930
mov eax, 1
add ebx, ebx
jne 0x42b953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b948
jne 0x42b964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b948
xor ecx, ecx
sub eax, 3
jb 0x42b978
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b9ea
mov ebp, eax
add ebx, ebx
jne 0x42b983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b9b4
inc ecx
add ebx, ebx
jne 0x42b9a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42b995
jne 0x42b9b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b995
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42b9d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b9c5
jmp 0x42b936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b9d4
add edi, ecx
jmp 0x42b936
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42b9f2
cmp byte [edi], 0x12
jne 0x42b9f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42b9f7
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42ba6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31af8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31bd8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42ba24
mov ecx, edi
jns 0x42ba53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31be0]
or eax, eax
je 0x42ba69
mov dword [ebx], eax
add ebx, 4
jmp 0x42ba41
call dword [esi + 0x31bdc]
mov ebp, dword [esi + 0x31be4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42baa3
sub esp, 0xffffff80
jmp 0x41942f

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x402ac1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x485094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
mov esi, ecx
push 0
push eax
call fcn.00436570
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x200
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x404]
push eax
call fcn.00402f31
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [esi + 0x80]
call fcn.00402eb8
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0041c30c
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x40bb6a
cmp word [ecx], bx
je 0x40bb6a
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bb6a
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret

Function at 0x40bc48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x485094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x4796e0
push eax
call fcn.00406141
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40bcfb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40bcfb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40bcfb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40bcfb
lea eax, [edi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x40bcd7
mov dword [ebx + 0x10], eax
cmp dword [ebx + 0x14], 0x10
jb 0x40bccf
mov ecx, dword [ebx]
jmp 0x40bcd1
mov ecx, ebx
mov byte [ecx + eax], 0
jmp 0x40bce4
sub eax, dword [ebx + 0x10]
mov ecx, ebx
push 0
push eax
call fcn.0040c1dd
push 0
mov ecx, ebx
call fcn.00405cd5
push edi
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.00405f8c
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c30c
mov esp, ebp
pop ebp
ret
Function at 0x40bd0e
Capabilities:
Get file version info

Disassembly:
push 0x1c
mov eax, 0x4619ab
call fcn.0041ce7e
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0041c5ee
pop ecx
mov esi, eax
xor eax, eax
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40bd92
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4794ec
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40bd92
mov ax, word [ecx + 0xa]
mov word [edi], ax
mov ax, word [ecx + 8]
mov word [edi + 2], ax
mov ax, word [ecx + 0xe]
mov word [edi + 4], ax
mov ax, word [ecx + 0xc]
mov word [edi + 6], ax
xor edi, edi
inc edi
jmp 0x40bda2
test esi, esi
je 0x40bdad
push esi
call fcn.0041c5e9
pop ecx
mov eax, edi
call fcn.0041cddc
ret

Function at 0x40bdb5
Capabilities:
Get common file path

Disassembly:
push 0x84c
mov eax, 0x4619dc
call fcn.0041ce47
mov esi, ecx
push 0x800
xor edi, edi
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.00436570
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.00404bef
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], edi
mov word [ebp - 0x828], ax
mov byte [ebp - 4], 1
push edi
lea ecx, [ebp - 0x828]
call fcn.00402f58
push 0xa
lea edx, [ebp - 0x828]
pop ecx
call fcn.00409d7d
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00407018
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40be5c
mov eax, dword [eax]
push edi
push eax
call fcn.0043c6af
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x858]
push edi
neg ebx
push 1
sbb bl, bl
call fcn.00401ca4
add bl, 1
jne 0x40be21
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00407018
pop ecx
push eax
mov ecx, esi
call fcn.00406ccc
push edi
push 1
lea ecx, [ebp - 0x858]
call fcn.00401ca4
cmp dword [esi + 0x14], 8
jb 0x40beb5
mov esi, dword [esi]
push edi
push 1
lea ecx, [ebp - 0x828]
call fcn.00401ca4
push edi
push 1
lea ecx, [ebp - 0x840]
call fcn.00401ca4
mov eax, esi
call fcn.0041cdf1
ret
Function at 0x40bed9
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x840
mov eax, 0x461a3c
call fcn.0041ce47
mov edi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x844], ebx
call fcn.00402f58
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.004110d7
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.00409c4e
cmp dword [eax + 0x14], 8
jb 0x40bf20
mov eax, dword [eax]
lea ecx, [ebp - 0x844]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00401ca4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
push ebx
push 1
call fcn.00404892
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00436570
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x40c038
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x84c]
push eax
push ebx
push str.TEMP
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c02c
lea eax, [ebp - 0x810]
push eax
call fcn.00402f31
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.00402eb8
mov esi, dword [0x4ad75c]
push esi
call fcn.00402f31
pop ecx
push eax
push ebx
push esi
mov ecx, edi
call fcn.0040aa11
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c02c
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40c02c
push dword [0x4ad75c]
call fcn.0043e45e
mov esi, eax
lea eax, [ebp - 0x810]
push eax
call fcn.00402f31
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
push esi
push ebx
call fcn.00407141
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041cdf1
ret
Function at 0x40c03e
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x86c
mov eax, 0x461a85
call fcn.0041ce47
mov esi, ecx
mov dword [ebp - 0x874], esi
xor ebx, ebx
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
mov dword [ebp - 0x878], ebx
call fcn.00436570
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.00404bef
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x840]
cmp dword [ebp - 0x82c], 8
mov eax, dword [ebp - 0x830]
cmovae ecx, dword [ebp - 0x840]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40c0d4
mov edi, 0x4794ec
push edi
call fcn.00402f31
pop ecx
push eax
push edi
lea ecx, [ebp - 0x840]
call fcn.00402dd8
xor edi, edi
inc edi
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], ebx
mov word [ebp - 0x858], ax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
push 8
lea edx, [ebp - 0x858]
mov byte [ebp - 4], 2
pop ecx
call fcn.00409d7d
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x870]
call fcn.00407018
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00406ccc
push ebx
push edi
lea ecx, [ebp - 0x870]
call fcn.00401ca4
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
push ebx
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0043c6af
pop ecx
pop ecx
test eax, eax
jne 0x40c185
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.00401ca4
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.00401ca4
jmp 0x40c0d7
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0043e933
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00402d14
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.00401ca4
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.00401ca4
push ebx
push edi
lea ecx, [ebp - 0x840]
call fcn.00401ca4
mov eax, esi
call fcn.0041cdf1
ret
Function at 0x40c58f
Capabilities:
Write file on windows

Disassembly:
push 0x450
mov eax, 0x461b65
call fcn.0041ce47
mov ebx, ecx
mov esi, dword [ebp + 8]
xor eax, eax
and dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x440]
call fcn.0040bdb5
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push 0x479500
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.0043cf4b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40c64d
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00436570
add esp, 0xc
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x410]
push str.Cannot_open_file___s_
push eax
call fcn.00406141
add esp, 0xc
lea eax, [ebp - 0x410]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x45c]
push 0x482398
push eax
call fcn.00436f56
and dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x40c674
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x428]
call fcn.0040c308
test eax, eax
je 0x40c740
xor eax, eax
cmp dword [ebx + 0x2c], eax
je 0x40c71a
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], eax
mov byte [ebp - 0x458], al
mov byte [ebp - 4], 2
lea edx, [ebp - 0x428]
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebx + 0x1c]
cmovae edx, dword [ebp - 0x428]
cmp dword [ecx + 0x14], 0x10
jb 0x40c6cd
mov ecx, dword [ecx]
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x418]
call fcn.0041132b
cmp dword [ebp - 0x444], 0x10
lea eax, [ebp - 0x458]
push edi
cmovae eax, dword [ebp - 0x458]
push 1
push dword [ebp - 0x448]
push eax
call fcn.0043cba7
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
push 0
push 1
call fcn.004060bd
jmp 0x40c740
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
push edi
cmovae eax, dword [ebp - 0x428]
push 1
push dword [ebp - 0x418]
push eax
call fcn.0043cba7
add esp, 0x10
push edi
call fcn.0043c824
pop ecx
lea ecx, [ebx + 4]
lea eax, [ebp - 0x440]
cmp ecx, eax
je 0x40c75e
push 0xffffffffffffffff
push 0
push eax
call fcn.00403198
push 0
push 1
lea ecx, [ebp - 0x428]
call fcn.004060bd
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.00401ca4
call fcn.0041cdf1
ret 4
Function at 0x40c80f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x40c821
mov eax, dword [eax]
push 0x479544
push eax
call fcn.0043cf4b
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x40c8a1
push ebx
push edi
mov ecx, eax
call fcn.0040bbfc
mov ebx, eax
push ebx
call fcn.0041c5ee
push ebx
mov edi, eax
push 0
push edi
call fcn.00436570
push dword [ebp - 4]
push 1
push ebx
push edi
call fcn.0043d148
push dword [ebp - 4]
call fcn.0043c824
add esp, 0x24
cmp dword [esi + 0x2c], 0
je 0x40c889
lea ecx, [esi + 0x1c]
cmp dword [ecx + 0x14], 0x10
jb 0x40c879
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.0041132b
pop ecx
pop ecx
jmp 0x40c895
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push edi
call fcn.00405f8c
push edi
call fcn.0041c5e9
mov eax, dword [esi + 0x10]
pop ecx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x410b01
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462410
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0041d5e0
mov eax, dword [0x485094]
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 edi, ecx
call fcn.0041095a
mov ebx, 0x800
mov esi, eax
push ebx
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00436570
xor eax, eax
push ebx
push eax
mov dword [ebp - 0x1044], eax
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x1048], eax
lea eax, [ebp - 0x810]
push eax
call fcn.00436570
add esp, 0x18
lea ecx, [ebp - 0x1040]
mov edx, str.3eoB
call fcn.004110d7
xor ebx, ebx
lea ecx, [ebp - 0x1028]
mov edx, eax
mov dword [ebp - 4], ebx
call fcn.00409c4e
push ebx
push 1
lea ecx, [ebp - 0x1040]
call fcn.00404892
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x810]
mov edx, 0x400
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push edx
push ecx
lea ecx, [ebp - 0x1048]
push ecx
lea ecx, [ebp - 0x104c]
push ecx
lea ecx, [ebp - 0x1044]
push ecx
push edx
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1044]
mov edx, esi
push edi
call fcn.00410a54
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x1028]
call fcn.00401ca4
mov al, 1
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.0041c30c
mov esp, ebp
pop ebp
ret