joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fd74
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push str.KERNEL32
mov dword [ebp - 4], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x42fe77
push edi
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x42fe06
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x82c]
push eax
call fcn.0043028f
test eax, eax
je 0x42fdde
lea eax, [ebp - 0x82c]
push eax
call fcn.0043007b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
je 0x42fe6d
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
je 0x42fe64
mov eax, 0x7fffffff
jmp 0x42fe64
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x42c], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x42b], cl
mov byte [ebp - 0x42a], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 0x429], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x42fe6d
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0xa
mov dword [esi], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x42fecb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push dword [0x47e4f0]
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call fcn.004301d9
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x400]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x42ff10
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret

Function at 0x42ff29
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x42ff82
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.0042fd30
pop ecx
test eax, eax
pop ecx
je 0x42ff82
push esi
call fcn.0042fecb
test eax, eax
pop ecx
jne 0x42ff8f
inc ebx
cmp ebx, 0x1a
jl 0x42ff4d
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x42ff8b
Function at 0x430175
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.00430144
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
pop edi
je 0x4301d3
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x4301ce
cmp eax, 5
jne 0x4301d3
push 1
pop eax
jmp 0x4301d5
xor eax, eax
leave
ret 4

Function at 0x4302f1
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], 1
call edi
inc eax
inc eax
push eax
call fcn.004342c0
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x47ceac
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x43036b
cmp byte [ebx], 0x5c
jne 0x43035e
and byte [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x43035b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x430366
mov byte [ebx], 0x5c
inc ebx
inc ebp
cmp ebp, edi
jb 0x430339
jmp 0x43036b
and dword [esp + 0x10], 0
push esi
call fcn.004338ba
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x430396
test al, 0x10
jne 0x430396
push 1
pop eax
jmp 0x430398
xor eax, eax
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4303b3
test al, 0x10
je 0x4303b3
push 1
pop eax
jmp 0x4303b5
xor eax, eax
ret 4

Function at 0x4303b8
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.0043039b
test eax, eax
je 0x4303ec
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x4303e7
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x4303f2
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0043037e
test eax, eax
jne 0x430406
push 1
pop eax
jmp 0x430443
push ebx
push esi
xor ebx, ebx
call fcn.00430447
test eax, eax
jne 0x430440
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x43043b
push 1
pop ebx
push 0
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x430595
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x466254
call fcn.004341ac
sub esp, 0xb4
push ebx
push esi
push edi
push 1
pop edi
lea eax, [ebp + 0xb]
push edi
push eax
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x10], ebx
call fcn.00401a6d
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00434af0
push 0x44
lea eax, [ebp - 0xc0]
pop esi
push esi
push ebx
push eax
call fcn.00434af0
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0x94], edi
mov word [ebp - 0x90], bx
je 0x430602
mov word [ebp - 0x90], di
mov esi, dword [ebp - 0x74]
cmp esi, ebx
jne 0x43060e
mov esi, 0x469558
push edi
lea eax, [ebp + 0xf]
mov edi, str.C:CodeBasesisdev_srcRuntimeMSISharedSetuputils.cpp
push eax
push edi
lea ecx, [ebp - 0x54]
call fcn.00401a6d
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x430631
mov eax, 0x469558
mov dword [ebp - 0x18], eax
push esi
lea eax, [ebp - 0x18]
push str.Attempting_to_launch:__s
push eax
mov dword [ebp - 0x14], 0x50d
call fcn.004086b0
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401306
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
push eax
call fcn.00408f7d
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 2
call fcn.00401c5e
lea ecx, [ebp - 0x2c]
mov dword [esi + 8], eax
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [ebp - 0x1c]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.00408faa
cmp esi, ebx
je 0x430751
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x4306e3
cmp eax, 1
jne 0x4306e3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x44], 0x11
je 0x4306e3
cmp dword [ebp - 0x44], 0x10
je 0x4306e3
cmp dword [ebp - 0x44], 0x12
jne 0x4306a6
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov dword [0x4863c8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
lea eax, [ebp + 0xf]
push 1
push eax
push edi
lea ecx, [ebp - 0x54]
call fcn.00401a6d
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x430722
mov eax, 0x469558
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x52e
push esi
push str.Launch_result__d__exit_code__d
push eax
call fcn.004086b0
add esp, 0x10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401306
mov esi, dword [ebp - 0x10]
jmp 0x430756
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401306
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4309c6
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x430a29
call esi
cmp eax, 0x3f0
jne 0x430a20
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x430a98
cmp eax, ebx
je 0x430a98
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x430a98
call esi
cmp eax, 0x7a
jne 0x430a98
push dword [ebp - 4]
call fcn.004342c0
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x430a8c
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x430a9c
cmp byte [ebp - 0x24], bl
je 0x430a98
push esi
call fcn.004338ba
pop ecx
xor eax, eax
jmp 0x430ae7
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x430acf
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x430ac8
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x430aab
jmp 0x430acf
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x430ae4
push esi
call fcn.004338ba
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430aec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
cmp dword [0x486448], ecx
jne 0x430b07
mov eax, dword [0x47e4f4]
cmp eax, 0xffffffff
jne 0x430b47
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x430b41
lea eax, [ebp - 0x14]
push eax
call fcn.00435efb
pop ecx
lea ecx, [ebp - 0x34]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x430b41
movsx eax, word [ebp - 0x34]
mov dword [0x47e4f4], eax
mov ax, word [0x47e4f4]
leave
ret
Function at 0x43137b
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x46630b
call fcn.004341ac
sub esp, 0x460
and byte [ebp - 0x33c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x33b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x104
lea eax, [ebp - 0x33c]
push ebx
push eax
push dword [0x4863d4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x33c]
lea ecx, [ebp - 0x46c]
push eax
call fcn.0042dbfd
and byte [ebp - 0x134], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x485b70
mov ecx, esi
stosb byte es:[edi], al
call fcn.00401c5e
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.00431548
pop ecx
test eax, eax
pop ecx
je 0x43146c
and byte [ebp - 0x238], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x237]
mov byte [ebp - 0xd], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x134]
push eax
push 0
lea eax, [ebp - 0x238]
push 0x47e738
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x134]
push 0
push eax
mov ecx, esi
call fcn.00401c5e
push eax
lea ecx, [ebp - 0x46c]
call fcn.0042e9ec
jmp 0x4314c9
mov eax, 0x484ec0
mov ecx, eax
test ecx, ecx
je 0x431490
cmp byte [0x484ec0], 0
je 0x431490
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4314c5
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.0042ff93
mov ecx, esi
call fcn.00401c5e
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.004301d9
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x30]
call fcn.0040277e
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.004027c6
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x48391c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004029c5
cmp byte [ebp - 0xd], 0
pop edi
pop esi
pop ebx
je 0x431513
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402bfd
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403bed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x46c]
call fcn.0042e23d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x43188b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4663cc
call fcn.004341ac
sub esp, 0x60
push ebx
push esi
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [0x46a024]
call fcn.00401a6d
lea eax, [ebp - 0xe]
push 1
push eax
xor ebx, ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00401a6d
mov esi, dword [ebp + 0xc]
push 0xa
lea eax, [ebp - 0x6c]
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0042a7bc
lea ecx, [ebp - 0x44]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], bl
call fcn.00401306
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401306
cmp dword [ebp + 0xc], 4
jne 0x4319a3
lea eax, [ebp - 0x6c]
push 4
push eax
mov ecx, esi
call fcn.004085a4
push str.1.20.1827.0
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0040316b
push eax
call fcn.0043048c
pop ecx
pop ecx
test eax, eax
setge byte [ebp + 0xf]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004020a2
cmp byte [ebp + 0xf], bl
je 0x43194a
mov esi, 0x300
jmp 0x431a03
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x46a038]
call fcn.00401a6d
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [ebp + 8]
mov dword [ebp - 4], 3
call fcn.00401a6d
push 0xa
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.0042a7bc
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00401306
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
jmp 0x4319fa
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x46a038]
call fcn.00401a6d
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [ebp + 8]
mov dword [ebp - 4], 5
call fcn.00401a6d
push 0xa
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
mov byte [ebp - 4], 6
call fcn.0042a7bc
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.00401306
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401306
cmp esi, ebx
je 0x431a75
mov dword [ebp + 8], ebx
push 0x20019
push str.SystemCurrentControlSetControlWindows
push 0x80000002
lea ecx, [ebp + 8]
mov dword [ebp - 4], 7
call fcn.00413a57
test eax, eax
jne 0x431a67
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.CSDVersion
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], esi
jae 0x431a67
cmp dword [ebp + 8], ebx
je 0x431a63
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x431a78
cmp dword [ebp + 8], ebx
je 0x431a75
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43d366
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x481040
cmp edx, dword [eax]
je 0x43d388
add eax, 8
inc ecx
cmp eax, 0x4810d0
jl 0x43d379
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x481040]
jne 0x43d4b6
mov eax, dword [0x4864c8]
cmp eax, 1
je 0x43d490
test eax, eax
jne 0x43d3b9
cmp dword [0x47e884], 1
je 0x43d490
cmp edx, 0xfc
je 0x43d4b6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43d3f0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004341d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00434610
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43d433
lea eax, [ebp - 0x1a4]
push eax
call fcn.00434610
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46b1f0
push edi
call fcn.00434510
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004341d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004341e0
lea eax, [ebp - 0xa0]
push 0x46b1d0
push eax
call fcn.004341e0
push dword [esi + 0x481044]
lea eax, [ebp - 0xa0]
push eax
call fcn.004341e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004403d3
add esp, 0x2c
pop edi
jmp 0x43d4b6
lea eax, [ebp + 8]
lea esi, [esi + 0x481044]
push 0
push eax
push dword [esi]
call fcn.00434610
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x445d31
Capabilities:
Create directory

Disassembly:
mov eax, 0x4669b8
call fcn.004341ac
sub esp, 0x60
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push ebx
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00402e72
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040211c
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.004020a2
lea eax, [ebp - 0x6c]
lea ecx, [ebp + 8]
push eax
call fcn.0040512d
lea ecx, [ebp - 0x6c]
call fcn.004020a2
lea ecx, [ebp + 8]
mov dword [0x486844], ebx
call fcn.0040445c
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xe]
mov edi, 0x469578
push ebx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x469580
mov dword [ebp - 0x24], edi
call fcn.00402c39
mov byte [ebp - 4], 2
xor esi, esi
mov dword [ebp - 0x14], 1
push 1
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], 0x5c
call fcn.00404123
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x445e7a
sub eax, esi
lea ecx, [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00402e3e
lea esi, [ebp - 0x6c]
lea eax, [ebp - 0x68]
neg esi
sbb esi, esi
push 0x47c870
and esi, eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0044c7fb
test eax, eax
je 0x445e1b
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00415a49
jmp 0x445e2b
push dword [0x469588]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.004108de
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 1
lea esi, [eax + 1]
jle 0x445e6e
cmp dword [ebp - 0x14], 4
jg 0x445e42
cmp byte [ebp - 0xd], bl
jne 0x445e6e
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040316b
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x445e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x486844], eax
jne 0x445eaf
mov dword [0x486844], ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.004020a2
inc dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x445dba
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004020a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004020a2
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x469580
mov dword [ecx + 0x20], edi
call fcn.00403f4f
call fcn.00444293
add esp, 0x28
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.004020a2
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.004020a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004020a2
xor al, al
jmp 0x445ea0