joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4307f9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov esi, 0x486618
push edi
push esi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call ebx
push esi
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x430980
push esi
call fcn.00435ae9
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.00435d50
add esp, 0x10
push dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x430977
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00435d50
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push 0x47ef3c
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4308bb
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00435d50
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x430977
push 0x7f
mov word [ebp - 0x244], di
mov esi, dword [ebp - 4]
pop ecx
xor eax, eax
lea edi, [ebp - 0x242]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
test esi, esi
mov dword [ebp + 0xc], eax
jle 0x430977
and dword [ebp - 0xc], 0
test edi, edi
jle 0x43091d
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.00436010
movzx eax, word [ebp - 0xc]
add esp, 0xc
test edi, edi
push eax
jne 0x43094e
lea eax, [ebp - 0x244]
push 0x480370
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x430966
push dword [ebp + 0x10]
lea eax, [ebp - 0x244]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0x10]
call ebx
inc edi
cmp edi, esi
jl 0x430911
push dword [ebp - 8]
call fcn.00435a00
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430bae
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [0x480e74]
lea eax, [ebp - 0x800]
push dword [ebp + 8]
push eax
call fcn.00430edb
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x800]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x430bf3
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
pop eax
leave
ret
Function at 0x430e75
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
call fcn.00430e41
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
pop edi
je 0x430ed5
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x430ed0
cmp eax, 5
jne 0x430ed5
push 1
pop eax
jmp 0x430ed7
xor eax, eax
leave
ret 4

Function at 0x43100f
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_lstrlenW]
mov dword [esp + 0x14], 1
call edi
lea eax, [eax + eax + 4]
push eax
call fcn.00435520
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x47ef3c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x431090
cmp word [ebx], 0x5c
jne 0x431082
and word [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43107d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43108b
mov word [ebx], 0x5c
inc ebx
inc ebx
inc ebp
cmp ebp, edi
jb 0x431059
jmp 0x431090
and dword [esp + 0x10], 0
push esi
call fcn.004347fc
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

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

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

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

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

Function at 0x4310dd
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.004310c0
test eax, eax
je 0x431111
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x43110c
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x431117
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004310a3
test eax, eax
jne 0x43112b
push 1
pop eax
jmp 0x431168
push ebx
push esi
xor ebx, ebx
call fcn.0043116c
test eax, eax
jne 0x431165
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x431160
push 1
pop ebx
push 0
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x4312bd
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x4682b0
call fcn.0043540c
sub esp, 0xb4
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x7c], 0x46b57c
mov dword [ebp - 0x5c], 0x46b574
jne 0x4312ef
mov eax, 0x486618
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004010c6
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00435d50
push 0x44
lea eax, [ebp - 0xc0]
pop esi
push esi
push ebx
push eax
call fcn.00435d50
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc0], esi
mov word [ebp - 0x90], bx
push 1
pop eax
mov dword [ebp - 0x94], eax
je 0x431342
mov word [ebp - 0x90], ax
mov edi, dword [ebp - 0x74]
cmp edi, ebx
jne 0x43134e
mov edi, 0x46b598
push eax
lea eax, [ebp + 0xf]
mov esi, str.C:CodeBasesisdev_srcRuntimeMSISharedSetuputils.cpp
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401a72
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x431371
mov eax, 0x46b598
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x18]
push str.Attempting_to_launch:__s
push eax
mov dword [ebp - 0x14], 0x50d
call fcn.0040866e
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.00408f97
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00408f42
lea ecx, [ebp - 0x2c]
mov eax, dword [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_CreateProcessW]
lea ecx, [ebp - 0x1c]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00408fc4
cmp edi, ebx
je 0x431492
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 0x431424
cmp eax, 1
jne 0x431424
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x44], 0x11
je 0x431424
cmp dword [ebp - 0x44], 0x10
je 0x431424
cmp dword [ebp - 0x44], 0x12
jne 0x4313e7
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 [0x48b730], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
lea eax, [ebp + 0xf]
push 1
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401a72
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x431463
mov eax, 0x46b598
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x52e
push edi
push str.Launch_result__d__exit_code__d
push eax
call fcn.0040866e
add esp, 0x10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401306
mov esi, dword [ebp - 0x10]
jmp 0x431497
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 0x4314b6
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x4682da
call fcn.0043540c
sub esp, 0x8e0
push ebx
push esi
push edi
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00435d50
push 0x44
lea eax, [ebp - 0x9c]
pop esi
push esi
push ebx
push eax
call fcn.00435d50
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x9c], esi
mov word [ebp - 0x6c], bx
push 1
pop edi
mov dword [ebp - 0x70], edi
je 0x431504
mov word [ebp - 0x6c], di
push dword [ebp + 8]
lea eax, [ebp - 0x8ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x8ec]
mov dword [ebp - 0x58], 0x46b57c
test eax, eax
mov dword [ebp - 0x38], 0x46b574
lea eax, [ebp - 0x8ec]
jne 0x431537
mov eax, 0x486618
lea ecx, [ebp + 0xf]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.004010c6
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov dword [ebp - 0x14], 0x46b598
je 0x431559
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xb]
push edi
mov esi, str.C:CodeBasesisdev_srcRuntimeMSISharedSetuputils.cpp
push eax
push esi
lea ecx, [ebp - 0xec]
call fcn.00401a72
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x43157f
mov eax, 0x46b598
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x54f
push str.Attempting_to_launch__no_wait_:__s
push eax
call fcn.0040866e
add esp, 0xc
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], bl
call fcn.00401306
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401306
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
push 0x20
push edi
push ebx
lea eax, [ebp - 0x8ec]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xd]
push edi
push eax
push esi
lea ecx, [ebp - 0xc4]
call fcn.00401a72
mov eax, dword [eax + 8]
mov dword [ebp - 4], 2
cmp eax, ebx
jne 0x4315fe
mov eax, 0x46b598
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x554
push str.Launch_result__d
push eax
call fcn.0040866e
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00401306
cmp dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebx
je 0x431641
push 0x3e8
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x431652
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.004316f9
test eax, eax
je 0x4316b7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4316b7
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x431727
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 0x43178a
call esi
cmp eax, 0x3f0
jne 0x431781
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 0x4317f9
cmp eax, ebx
je 0x4317f9
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 0x4317f9
call esi
cmp eax, 0x7a
jne 0x4317f9
push dword [ebp - 4]
call fcn.00435520
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 0x4317ed
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 0x4317fd
cmp byte [ebp - 0x24], bl
je 0x4317f9
push esi
call fcn.004347fc
pop ecx
xor eax, eax
jmp 0x431848
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x431830
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 0x431829
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x43180c
jmp 0x431830
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x431845
push esi
call fcn.004347fc
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43184d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
cmp dword [0x48b7b0], ecx
jne 0x431868
mov eax, dword [0x480e78]
cmp eax, 0xffffffff
jne 0x4318a8
lea eax, [ebp - 0x48]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x4318a2
lea eax, [ebp - 0x48]
push eax
call fcn.00436561
pop ecx
lea ecx, [ebp - 0x20]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x4318a2
movsx eax, word [ebp - 0x20]
mov dword [0x480e78], eax
mov ax, word [0x480e78]
leave
ret
Function at 0x432147
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x46835f
call fcn.0043540c
sub esp, 0x870
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x646]
mov word [ebp - 0x648], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x648]
push eax
push dword [0x48b73c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x648]
lea ecx, [ebp - 0x87c]
push eax
call fcn.0042e90f
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov ebx, 0x48a6d8
mov ecx, ebx
stosw word es:[edi], ax
call fcn.00401c63
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.00432320
pop ecx
test eax, eax
pop ecx
je 0x43223c
and word [ebp - 0x440], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x43e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x440]
mov byte [ebp - 0xd], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x238]
push eax
push 0
lea eax, [ebp - 0x440]
push 0x481164
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x238]
push 0
push eax
mov ecx, ebx
call fcn.00401c63
push eax
lea ecx, [ebp - 0x87c]
call fcn.0042f666
jmp 0x4322a1
mov eax, 0x489020
mov ecx, eax
test ecx, ecx
je 0x432261
cmp word [0x489020], 0
je 0x432261
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x43229d
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.00430c85
mov eax, dword [0x48a6e0]
test eax, eax
jne 0x432289
mov eax, 0x46b598
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00430edb
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x30]
call fcn.00402676
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.004026be
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x486618
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004028bd
cmp byte [ebp - 0xd], 0
pop edi
pop esi
pop ebx
je 0x4322eb
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040303f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403a96
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.0042ef4f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x43de1b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4839a0
cmp edx, dword [eax]
je 0x43de3d
add eax, 8
inc ecx
cmp eax, 0x483a30
jl 0x43de2e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4839a0]
jne 0x43df6b
mov eax, dword [0x48b830]
cmp eax, 1
je 0x43df45
test eax, eax
jne 0x43de6e
cmp dword [0x4812d4], 1
je 0x43df45
cmp edx, 0xfc
je 0x43df6b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43dea5
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00435430
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00435870
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43dee8
lea eax, [ebp - 0x1a4]
push eax
call fcn.00435870
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46d24c
push edi
call fcn.00435770
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00435430
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00435440
lea eax, [ebp - 0xa0]
push 0x46d22c
push eax
call fcn.00435440
push dword [esi + 0x4839a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00435440
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00441404
add esp, 0x2c
pop edi
jmp 0x43df6b
lea eax, [ebp + 8]
lea esi, [esi + 0x4839a4]
push 0
push eax
push dword [esi]
call fcn.00435870
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 0x4475a6
Capabilities:
Create directory

Disassembly:
mov eax, 0x4689f8
call fcn.0043540c
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.00402d46
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004020f3
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00402079
lea eax, [ebp - 0x6c]
lea ecx, [ebp + 8]
push eax
call fcn.00404d89
lea ecx, [ebp - 0x6c]
call fcn.00402079
lea ecx, [ebp + 8]
mov dword [0x48bcbc], ebx
call fcn.00404128
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xe]
mov edi, 0x46b5b8
push ebx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x46b5c0
mov dword [ebp - 0x24], edi
call fcn.00402b02
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.00402bcc
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x4476f3
sub eax, esi
lea ecx, [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00402d12
lea esi, [ebp - 0x6c]
lea eax, [ebp - 0x68]
neg esi
sbb esi, esi
push 0x47ef3c
and esi, eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00409d40
test eax, eax
je 0x447690
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00415a69
jmp 0x4476a0
push dword [0x46b5c8]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.00410419
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 1
lea esi, [eax + 1]
jle 0x4476e7
cmp dword [ebp - 0x14], 4
jg 0x4476b7
cmp byte [ebp - 0xd], bl
jne 0x4476e7
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x4476c3
mov eax, 0x46b5e8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4476e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x48bcbc], eax
jne 0x447728
mov dword [0x48bcbc], ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00402079
inc dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x44762f
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00402079
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402079
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], 0x46b5c0
mov dword [ecx + 0x20], edi
call fcn.00403c87
call fcn.00445b06
add esp, 0x28
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00402079
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00402079
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402079
xor al, al
jmp 0x447719