joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30017675
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push 0x300059c0
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x3001769e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
je 0x3001769e
xor bl, bl
jmp 0x300176ab
test esi, esi
mov bl, 1
je 0x300176ab
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret

Function at 0x3001770a
Capabilities:
Accept command line arguments

Disassembly:
push 0x244
mov eax, 0x3001d9bb
call fcn.300090a2
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x3001776d
push 0x30005a10
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.30010c6b
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x144]
lea edi, [ebp - 0x144]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30010c6b
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x300177a1
push dword [edi + esi*4]
lea ecx, [ebp - 0x38]
call fcn.30014ede
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.30010c6b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.300141f8
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x30017774
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
call fcn.3000917a
ret 4

Function at 0x30017950
Capabilities:
Allocate thread local storage

Disassembly:
push 0x21c
mov eax, 0x3001da75
call fcn.300090a2
mov esi, ecx
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
push dword [0x30022ea8]
lea ecx, [esi + 4]
push 0x18
push 0x30005a7c
push 0x50
call fcn.30010c6b
and dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x300179c8
push 0x30005a68
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.30010c6b
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x11c]
lea edi, [ebp - 0x11c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30010c6b
mov eax, esi
call fcn.3000917a
ret
Function at 0x405d74
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 0x14]
call fcn.00403d75
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x405d93
jmp 0x405752
cmp dword [ebp - 0x37c], 0
je 0x405da1
jmp 0x405e56
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x405dfa
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x405dff
jmp 0x405752
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x405e46
lea eax, [ebp - 0x714]
push eax
call fcn.00403dc0
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00403d75
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x405e51
jmp 0x405e56
jmp 0x405752
cmp dword [ebp - 0x37c], 0
jne 0x405f00
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403f8c
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x405eec
lea eax, [ebp - 0x714]
push eax
call fcn.00403dc0
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.00403e55
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax

Function at 0x406133
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406152
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406158
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406187
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a5a8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a5ac]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4061d7
test edi, edi
jne 0x406194
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4061d1

Function at 0x4062ae
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x45ede8], 0x55004e
mov dword [0x45edec], 0x4c
mov edi, 0x400
mov ebp, 0x45ede8
je 0x406304
push 1
push 0
push esi
call fcn.00406158
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406423
cmp eax, edi
jg 0x406423
mov esi, 0x45f5e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406423
cmp eax, edi
jg 0x406423
push esi
push ebp
push str._ls_ls_r_n
push 0x45e9e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x470270]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004066a5
push 4
push 0xc0000000
push esi
call fcn.00406158
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406423
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40641c
push edi
push esi
push ebp
call fcn.004061db
test eax, eax
je 0x40641c
push str._Rename__r_n
push esi
call fcn.004060bd
test eax, eax
jne 0x4063ba
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4063ef
add eax, 0xa
push 0x40a5b0
push eax
call fcn.004060bd
mov ebp, eax
test ebp, ebp
je 0x4063eb
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4063dc
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4063d6
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4063f1
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x45e9e8
push eax
call fcn.00406113
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040620a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406428
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40644b
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062ae
pop ecx
pop ecx
inc dword [0x4702f0]
ret 8
Function at 0x404d10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4cf094]
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.004434f0
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.0040288e
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [esi + 0x80]
call fcn.00402815
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.00428f9c
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40769c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x4076af
push 0xd
pop eax
jmp 0x4076f3
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x4076c2
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4076ba
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407cee
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4cf094]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
call fcn.00407c90
jmp 0x407d46
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00407cee
mov esi, eax
test esi, esi
jne 0x407d9a
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x407d38
cmp dword [esp + 0xc], esi
je 0x407d89
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00407e6b
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x407dab
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00428f9c
mov esp, ebp
pop ebp
ret 4
Function at 0x40884c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x49ab2b
call fcn.00429b55
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4088c9
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4088c9
call fcn.00407088
mov esi, eax
jmp 0x4089cf
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x4088ec
call fcn.00407088
jmp 0x4089c2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4088e2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x40891f
mov esi, 0x8007000e
jmp 0x4089c4
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x408953
cmp eax, 0xffffffff
ja 0x408953
cmp eax, 0x400
jbe 0x408945
push eax
lea ecx, [ebp - 0x418]
call fcn.00407063
jmp 0x408971
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x408971
push 0x80070216
call fcn.00404530
mov eax, 0x408963
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x408915
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4088e2
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004086f5
mov esi, eax
test edi, edi
je 0x4089cf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4089e8
lea ecx, [ebp - 0x418]
call fcn.0040704e
mov eax, esi
call fcn.00429aa2
ret 0x10

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

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x40edb3
cmp word [ecx], bx
je 0x40edb3
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40edb3
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret
Function at 0x40ee03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4cf094]
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 0x4bb2e4
push eax
call fcn.0040a161
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 0x40eeb6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40eeb6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40eeb6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40eeb6
lea eax, [edi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x40ee92
mov dword [ebx + 0x10], eax
cmp dword [ebx + 0x14], 0x10
jb 0x40ee8a
mov ecx, dword [ebx]
jmp 0x40ee8c
mov ecx, ebx
mov byte [ecx + eax], 0
jmp 0x40ee9f
sub eax, dword [ebx + 0x10]
mov ecx, ebx
push 0
push eax
call fcn.0040f326
push 0
mov ecx, ebx
call fcn.00409d9a
push edi
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.0040a051
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428f9c
mov esp, ebp
pop ebp
ret

Function at 0x40eec9
Capabilities:
Get common file path

Disassembly:
push 0x84c
mov eax, 0x49b123
call fcn.00429ae7
mov esi, ecx
push 0x800
xor edi, edi
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.004434f0
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.00403705
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.004024e9
push 0xa
lea edx, [ebp - 0x828]
pop ecx
call fcn.0040d4f3
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.0040afea
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40ef70
mov eax, dword [eax]
push edi
push eax
call fcn.0044f412
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x858]
push edi
neg ebx
push 1
sbb bl, bl
call fcn.00401736
add bl, 1
jne 0x40ef35
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.0040afea
pop ecx
push eax
mov ecx, esi
call fcn.00402c28
push edi
push 1
lea ecx, [ebp - 0x858]
call fcn.00401736
cmp dword [esi + 0x14], 8
jb 0x40efc9
mov esi, dword [esi]
push edi
push 1
lea ecx, [ebp - 0x828]
call fcn.00401736
push edi
push 1
lea ecx, [ebp - 0x840]
call fcn.00401736
mov eax, esi
call fcn.00429a91
ret
Function at 0x40efed
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4cf094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
mov edi, ecx
push ebx
mov dword [ebp - 0x808], ebx
call fcn.004024e9
lea eax, [ebp - 0x808]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x800
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004434f0
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
cmp dword [ebp - 0x808], ebx
je 0x40f10f
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push str.TEMP
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f103
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0040288e
pop ecx
push eax
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.00402815
mov esi, dword [0x4fb2a4]
push esi
call fcn.0040288e
pop ecx
push eax
push ebx
push esi
mov ecx, edi
call fcn.0040a93a
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f102
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40f102
push dword [0x4fb2a4]
call fcn.00450efb
mov esi, eax
lea eax, [ebp - 0x804]
push eax
call fcn.0040288e
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
push esi
push ebx
call fcn.00402e6f
pop esi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00428f9c
mov esp, ebp
pop ebp
ret
Function at 0x40f187
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x86c
mov eax, 0x49b1d7
call fcn.00429ae7
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.004434f0
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.00403705
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 0x40f21d
mov edi, 0x4baebc
push edi
call fcn.0040288e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x840]
call fcn.0040353d
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.0040d4f3
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x870]
call fcn.0040afea
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00402c28
push ebx
push edi
lea ecx, [ebp - 0x870]
call fcn.00401736
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
push ebx
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0044f412
pop ecx
pop ecx
test eax, eax
jne 0x40f2ce
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.00401736
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.00401736
jmp 0x40f220
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00450f56
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00403518
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.00401736
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.00401736
push ebx
push edi
lea ecx, [ebp - 0x840]
call fcn.00401736
mov eax, esi
call fcn.00429a91
ret
Function at 0x40f6d8
Capabilities:
Write file on windows

Disassembly:
push 0x450
mov eax, 0x49b2b7
call fcn.00429ae7
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.0040eec9
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push 0x4baed8
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.0044fcc6
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40f796
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004434f0
add esp, 0xc
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x410]
push 0x4bb3a8
push eax
call fcn.0040a161
add esp, 0xc
lea eax, [ebp - 0x410]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x45c]
push 0x4cb114
push eax
call fcn.004439cc
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 0x40f7bd
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x428]
call fcn.0040f451
test eax, eax
je 0x40f889
xor eax, eax
cmp dword [ebx + 0x2c], eax
je 0x40f863
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 0x40f816
mov ecx, dword [ecx]
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x418]
call fcn.00410034
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.0044f920
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
push 0
push 1
call fcn.00408c24
jmp 0x40f889
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.0044f920
add esp, 0x10
push edi
call fcn.0044f588
pop ecx
lea ecx, [ebx + 4]
lea eax, [ebp - 0x440]
cmp ecx, eax
je 0x40f8a7
push 0xffffffffffffffff
push 0
push eax
call fcn.004025cd
push 0
push 1
lea ecx, [ebp - 0x428]
call fcn.00408c24
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.00401736
call fcn.00429a91
ret 4
Function at 0x40f958
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 0x40f96a
mov eax, dword [eax]
push 0x4bb2dc
push eax
call fcn.0044fcc6
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x40f9ea
push ebx
push edi
mov ecx, eax
call fcn.0040edb7
mov ebx, eax
push ebx
call fcn.00429486
push ebx
mov edi, eax
push 0
push edi
call fcn.004434f0
push dword [ebp - 4]
push 1
push ebx
push edi
call fcn.00451621
push dword [ebp - 4]
call fcn.0044f588
add esp, 0x24
cmp dword [esi + 0x2c], 0
je 0x40f9d2
lea ecx, [esi + 0x1c]
cmp dword [ecx + 0x14], 0x10
jb 0x40f9c2
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.00410034
pop ecx
pop ecx
jmp 0x40f9de
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push edi
call fcn.0040a051
push edi
call fcn.00429256
mov eax, dword [esi + 0x10]
pop ecx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4