joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50ce50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.QNhjSkbP
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x50ce72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ce79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ce68
mov eax, 1
add ebx, ebx
jne 0x50ce8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ce80
jne 0x50ce9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ce80
xor ecx, ecx
sub eax, 3
jb 0x50ceb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50cf22
mov ebp, eax
add ebx, ebx
jne 0x50cebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50cec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ceec
inc ecx
add ebx, ebx
jne 0x50ced8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cecd
jne 0x50cee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cecd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50cf0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cefd
jmp 0x50ce6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50cf0c
add edi, ecx
jmp 0x50ce6e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50cf6b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50cf29
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50cf65
mov dword [ebx], eax
add ebx, 4
jmp 0x50cf46
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50cf9f
sub esp, 0xffffff80
jmp section.bUItIFMf

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
nop
mov ecx, 0xec63348
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x4990125d
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4015c0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov eax, dword [ebx]
test eax, eax
je 0x401681
mov edi, dword [ebx + 4]
mov eax, dword [esi + 4]
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call ebp
sub esp, 4
add edi, eax
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [esi + 8]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
je 0x401780
mov edx, dword [ebx]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call ebp
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_fread
test eax, eax
je 0x401762
cmp byte [esi + 0x10], 1
je 0x4016b0
mov eax, dword [ebx]
test eax, eax
je 0x401677
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebx], 0
add esp, 0x6c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x68]
mov dword [esp + 4], 0x40e020
mov dword [esp], eax
call fcn.00403470
test eax, eax
mov dword [ebx], eax
jne 0x4015df
mov dword [esp], str.Cannot_open_archive_file_n
xor edi, edi
call fcn.00402090
jmp 0x401677
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4017ed
mov eax, dword [esi + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], edi
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
lea ebp, [esp + 0x28]
mov dword [esp + 8], 0x38
mov dword [esp + 4], 0x40e0a3
mov dword [esp + 0x38], eax
mov dword [esp], ebp
call fcn.004065c0
test eax, eax
js 0x401791
mov dword [esp + 4], 4
mov dword [esp], ebp
call fcn.00406670
test eax, eax
js 0x4017cb
mov dword [esp], ebp
call fcn.00408890
mov dword [esp], edi
call sub.msvcrt.dll_free
mov edi, dword [esp + 0x1c]
jmp 0x401663
mov dword [esp], str.Could_not_read_from_file_n
call fcn.00402090
mov dword [esp], edi
xor edi, edi
call sub.msvcrt.dll_free
jmp 0x401677
mov dword [esp], str.Could_not_allocate_read_buffer_n
call fcn.00402090
jmp 0x401677
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflateInit:__s_n
mov dword [esp + 8], edx
call fcn.00402090
mov dword [esp], edi
call sub.msvcrt.dll_free
add esi, 0x12
mov dword [esp], str.Error_decompressing__s_n
xor edi, edi
mov dword [esp + 4], esi
call fcn.00402090
jmp 0x401677
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflate:__s_n
mov dword [esp + 8], edx
call fcn.00402090
mov dword [esp], edi
call sub.msvcrt.dll_free
jmp 0x4017b1
mov dword [esp], str.Error_allocating_decompression_buffer_n
call fcn.00402090
mov dword [esp], edi
call sub.msvcrt.dll_free
jmp 0x4017b1
Function at 0x401810
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004015c0
mov dword [esp], ebx
mov edi, eax
call fcn.004050b0
cmp eax, 0xffffffff
je 0x401899
lea ebp, [esi + 0x12]
add ebx, 0x2068
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00405310
mov ebx, eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
sub esp, 4
test ebx, ebx
mov esi, eax
je 0x4018c0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x401887
test esi, esi
jne 0x4018a1
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebp
mov dword [esp + 4], str.Failed_to_write_all_bytes_for__s_n
mov dword [esp], str.fwrite
call fcn.00402190
mov eax, 0xffffffff
jmp 0x401899
mov dword [esp + 8], ebp
mov dword [esp + 4], str._s_could_not_be_extracted__n
mov dword [esp], str.fopen
call fcn.00402190
mov eax, 0xffffffff
jmp 0x401899
Function at 0x404c20
Capabilities:
Query environment variable

Disassembly:
push ebx
mov eax, 0x4018
call fcn.0040b540
sub esp, eax
mov eax, dword [esp + 0x4020]
lea ebx, [esp + 0x10]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00405c50
mov dword [esp + 8], 0x2000
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
jne 0x404c80
add esp, 0x4018
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x2010]
mov dword [esp + 8], 0x2000
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004059c0
test eax, eax
je 0x404c6c
cmp byte [eax], 0
je 0x404c6c
mov dword [esp], eax
call sub.msvcrt.dll__strdup
add esp, 0x4018
pop ebx
ret

Function at 0x404d40
Capabilities:
Set environment variable

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00405c50
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret

Function at 0x404d90
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
push edi
mov eax, 0x401c
push esi
push ebx
call fcn.0040b540
sub esp, eax
mov eax, dword [esp + 0x4030]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00405c50
test eax, eax
mov esi, eax
je 0x404ec0
lea ebx, [esp + 0x10]
mov dword [esp + 8], 0x1000
mov dword [esp], eax
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov edi, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
test edi, edi
je 0x404eb0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__wfullpath]
test eax, eax
mov esi, eax
je 0x404ece
lea ebp, [esp + 0x2010]
xor eax, eax
mov ecx, 0x800
mov edi, ebp
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call sub.msvcrt.dll_wcschr
test eax, eax
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
je 0x404e92
nop
lea esi, [esi]
mov eax, ebx
mov dword [esp + 4], esi
mov dword [esp], ebp
sub eax, esi
add ebx, 2
sar eax, 1
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_wcsncpy
mov dword [esp + 4], 0
mov dword [esp], ebp
call edi
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
call sub.msvcrt.dll_wcschr
test eax, eax
mov ebx, eax
jne 0x404e50
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
sub esp, 8
add esp, 0x401c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
xor esi, esi
call fcn.00402030
jmp 0x404ea2
mov dword [esp], str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00402030
jmp 0x404ea2
mov dword [esp], str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00402030
jmp 0x404ea2
Function at 0x404ee0
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
mov eax, 0x204c
push esi
push ebx
call fcn.0040b540
sub esp, eax
mov ecx, dword [esp + 0x2064]
test ecx, ecx
je 0x404f47
mov dword [esp], 0x40fd8b
call fcn.00404c20
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2064]
mov dword [esp], eax
call fcn.00404d90
test eax, eax
mov ebx, eax
je 0x404ffc
mov dword [esp + 4], eax
mov dword [esp], 0x40fd90
call dword [sym.imp.msvcrt.dll__wputenv_s]
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_free
test esi, esi
jne 0x405010
lea edi, [esp + 0x40]
mov dword [esp], 0x1000
mov ebx, 5
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
lea esi, [esp + 0x20]
call sub.msvcrt.dll__getpid
mov dword [esp + 8], str._MEI_d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00404aa0
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__wtempnam]
mov dword [esp], eax
mov ebp, eax
call fcn.00405f60
test eax, eax
je 0x405030
mov dword [esp], ebp
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x404f89
mov eax, dword [esp + 0x2064]
test eax, eax
je 0x404ffc
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x404ff0
mov dword [esp + 4], edi
mov dword [esp], 0x40fd8b
xor ebx, ebx
call fcn.00404cd0
mov dword [esp], edi
call sub.msvcrt.dll_free
add esp, 0x204c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x40fd8b
call fcn.00404d40
xor ebx, ebx
add esp, 0x204c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
xor ebx, ebx
call fcn.00402030
add esp, 0x204c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2060]
mov dword [esp + 8], 0x1000
mov ebx, 1
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.004059c0
mov dword [esp], ebp
call sub.msvcrt.dll_free
mov edx, dword [esp + 0x2064]
test edx, edx
je 0x404ffe
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x405090
mov dword [esp + 4], edi
mov dword [esp], 0x40fd8b
call fcn.00404cd0
mov dword [esp], edi
call sub.msvcrt.dll_free
jmp 0x404ffe
mov dword [esp], 0x40fd8b
call fcn.00404d40
jmp 0x404ffe
Function at 0x405110
Capabilities:
Delete directory

Disassembly:
push ebp
push edi
mov eax, 0x445c
push esi
push ebx
call fcn.0040b540
sub esp, eax
mov eax, dword [esp + 0x4470]
mov dword [esp + 8], 0x1000
lea ebp, [esp + 0x44c]
mov dword [esp + 4], eax
lea eax, [esp + 0x244e]
mov dword [esp], eax
call fcn.00405c50
lea eax, [esp + 0x244e]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscpy
mov dword [esp], ebp
call sub.msvcrt.dll_wcslen
mov esi, eax
mov dword [esp + 0x22c], eax
movzx eax, word [esp + eax*2 + 0x44a]
cmp ax, 0x2f
je 0x405185
cmp ax, 0x5c
jne 0x405211
lea ebx, [esp + 0x230]
mov dword [esp + 4], 0x40fe18
mov dword [esp], ebp
call sub.msvcrt.dll_wcscat
mov dword [esp + 4], ebx
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll__wfindfirst]
cmp eax, 0xffffffff
mov dword [esp + 0x228], eax
je 0x4051f6
mov ecx, 0x87
mov edi, esp
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
mov edx, dword [esp + 0x22c]
call fcn.00405230
mov eax, dword [esp + 0x228]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfindnext]
test eax, eax
je 0x4051b5
mov eax, dword [esp + 0x228]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
lea eax, [esp + 0x244e]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wrmdir]
add esp, 0x445c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x40fe14
mov dword [esp], ebp
add esi, 1
call sub.msvcrt.dll_wcscat
mov dword [esp + 0x22c], esi
jmp 0x405185

Function at 0x405230
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x101c
call fcn.0040b540
sub esp, eax
mov edi, edx
mov eax, dword [esp + eax]
lea ebx, [esp + 0x1044]
mov dword [esp + 4], 0x40fe1c
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x405270
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x40fe20
mov dword [esp], ebx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x405262
xor eax, eax
mov dword [esp + 4], ebx
mov dword [esp], esi
mov word [esi + edi*2], ax
call sub.msvcrt.dll_wcscat
test byte [esp + 0x1030], 0x10
je 0x4052c2
lea ebx, [esp + 0x1f]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004059c0
mov dword [esp], ebx
call fcn.00405110
jmp 0x405262
mov dword [esp], esi
mov ebx, dword [sym.imp.msvcrt.dll__wremove]
call ebx
test eax, eax
je 0x405262
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], esi
call ebx
jmp 0x405262
Function at 0x405510
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
push esi
mov eax, 0x1010
push ebx
call fcn.0040b540
sub esp, eax
mov eax, dword [esp + 0x1020]
mov dword [esp + 4], 0x40fe5c
mov dword [esp], eax
call fcn.00403470
mov ebx, eax
mov eax, dword [esp + 0x1028]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1024]
mov dword [esp], eax
call fcn.00405310
test ebx, ebx
mov edi, eax
je 0x405611
test eax, eax
lea esi, [esp + 0x10]
je 0x405611
nop
lea esi, [esi]
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x405632
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
test eax, eax
jne 0x4055c0
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x405570
mov dword [esp], ebx
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x405634
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test eax, eax
je 0x4055e8
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x405570
mov dword [esp], edi
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_fclose
add esp, 0x1010
mov eax, esi
pop ebx
pop esi
pop edi
ret
test ebx, ebx
je 0x40561d
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
test edi, edi
mov esi, 0xffffffff
jne 0x4055fd
add esp, 0x1010
mov eax, esi
pop ebx
pop esi
pop edi
ret
xor esi, esi
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
jmp 0x4055fd
Function at 0x4056b0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push edi
push esi
mov eax, 0x20a0
push ebx
call fcn.0040b540
sub esp, eax
mov eax, dword [esp + 0x20b0]
lea esi, [esp + 0xa0]
mov dword [esp + 8], 0x1000
mov dword [esp + 0x3c], 0
lea edi, [esp + 0x5c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00405c50
mov dword [esp + 4], 1
mov dword [esp], 0x16
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0xf
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0x15
call sub.msvcrt.dll_signal
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
sub esp, 4
mov word [esp + 0x8c], ax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x88], 0x101
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov ebx, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp], eax
call ebx
mov dword [esp + 0x94], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp + 0x98], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x4c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x405861
mov dword [esp + 4], str.Error_creating_child_process__n
mov dword [esp], str.CreateProcessW
call fcn.004020f0
add esp, 0x20a0
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
mov eax, dword [esp + 0x3c]
add esp, 0x20a0
pop ebx
pop esi
pop edi
ret
Function at 0x405f60
Capabilities:
Create directory

Disassembly:
push ebp
push edi
mov eax, 0x204c
push esi
push ebx
call fcn.0040b540
sub esp, eax
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x30]
mov dword [esp + 4], 8
mov dword [esp], eax
mov dword [esp + 8], edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
jne 0x406080
mov ebx, dword [esp + 0x30]
lea edi, [esp + 0x34]
lea esi, [esp + 0x40]
xor edx, edx
mov dword [esp], edx
call sub.msvcrt.dll_free
cmp ebx, 0xffffffff
je 0x405fd9
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov ebx, dword [esp + 0x40]
mov eax, str.S_1_3_4
mov dword [esp + 8], str.D:_A__FA____s_
mov dword [esp + 4], 0x1000
mov dword [esp], esi
test ebx, ebx
cmovne eax, ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.msvcrt.dll__snwprintf]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
sub esp, 0x10
test eax, eax
je 0x406130
mov eax, dword [esp + 0x2060]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
neg eax
add esp, 0x204c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea edi, [esp + 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp + 0x10], edi
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [esp], eax
call ebp
sub esp, 0x14
test eax, eax
jne 0x4060d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4060d0
mov ebx, dword [esp + 0x30]
xor edx, edx
lea esi, [esp + 0x40]
jmp 0x405fc0
mov ecx, dword [esp + 0x34]
mov dword [esp], 1
lea esi, [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], ecx
call sub.msvcrt.dll_calloc
test eax, eax
mov edx, eax
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
je 0x405fc0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call ebp
sub esp, 0x14
test eax, eax
mov edx, dword [esp + 0x2c]
jne 0x406140
mov ebx, dword [esp + 0x30]
jmp 0x405fc0
mov eax, 0xffffffff
jmp 0x40606d
mov dword [esp + 4], esi
mov eax, dword [edx]
mov dword [esp + 0x2c], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
sub esp, 8
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
jmp 0x405fc0