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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
cmp eax, 0xf
push edi
jne 0x526b58
cmp dword [esi + 0x68], 0
jg 0x526d02
cmp byte [esi + 0xba], 0
je 0x526d02
push esi
mov dword [esi + 0x68], 0x6e
jmp 0x6515c7
call fcn.00530850
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [0x6a7274]
mov eax, dword [eax + 0xd8]
push edx
call eax
fld dword [0x6796f0]
push ecx
fstp dword [esp]
push 0x14
push 3
push str.anim_pop
mov edi, esi
call fcn.00528b00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x10
jne 0x526d02
cmp dword [esi + 0x68], 0x50
fldz
jne 0x526bbd
mov eax, dword [esi]
cmp byte [eax + 0x8c5], 0
jne 0x526bbd
mov ecx, dword [0x6a9f00]
fst dword [esp + 0x10]
fcomp dword [ecx + 0x6ec]
mov edi, dword [eax + 0x784]
fnstsw ax
test ah, 0x44
jnp 0x526ba7
fld dword [ecx + 0x6ec]
push ecx
fstp dword [esp]
call fcn.005af410
fstp dword [esp + 0x14]
add esp, 4
fld dword [esp + 0x10]
push ecx
mov eax, 0x22
fstp dword [esp]
mov ecx, edi
call fcn.00515020
fldz
cmp dword [esi + 0x68], 0
jg 0x526d00
mov eax, dword [esi]
cmp byte [eax + 0x8c5], 0
jne 0x526c1b
mov ecx, dword [0x6a9f00]
fst dword [esp + 0x10]
fcomp dword [ecx + 0x4b0]
mov edi, dword [eax + 0x784]
fnstsw ax
test ah, 0x44
jnp 0x526c05
fld dword [ecx + 0x4b0]
push ecx
fstp dword [esp]
call fcn.005af410
fstp dword [esp + 0x14]
add esp, 4
fld dword [esp + 0x10]
push ecx
mov eax, 0x17
fstp dword [esp]
mov ecx, edi
call fcn.00515020
jmp 0x526c1d
fstp st(0)
mov eax, dword [esi + 0x10]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x14]
cdq
sub eax, edx
mov ebx, eax
sar edi, 1
add edi, dword [esi + 8]
sar ebx, 1
add ebx, dword [esi + 0xc]
jmp 0x79bd7a
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x28], 0x10
cmp dword [esi + 0x24], 0xf
jne 0x526b1d
push ecx
mov ecx, dword [0x6a9ec0]
cmp dword [ecx + 0x7f8], 0x25
jo 0x6515f1
pop ecx
jmp 0x400b00
push edx
jmp 0x400af7

Function at 0x529a30
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x24]
cmp eax, 0xc
push esi
push edi
je 0x529edc
cmp eax, 0x14
je 0x529edc
cmp eax, 0x16
je 0x529edc
cmp eax, 0x17
je 0x529edc
cmp eax, 0x20
je 0x529edc
cmp eax, 0x19
je 0x529edc
cmp dword [ebx + 0x64], 0xa
je 0x529edc
mov eax, ebx
call fcn.00534680
test al, al
jne 0x529edc
mov ecx, ebx
call fcn.005346a0
cmp eax, 0xffffffff
jne 0x529edc
cmp byte [ebx + 0xba], 0
je 0x529edc
xor edi, edi
cmp dword [ebx + 0xb0], edi
jle 0x529ac5
mov esi, ebx
mov dword [ebx + 0xb0], edi
call fcn.0052f050
push 0xffffffffffffffff
push str.anim_head
mov eax, ebx
jmp 0x798abe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x52fb40
Capabilities:
Packed with generic packer

Disassembly:
push 0xffffffffffffffff
push 0x64f598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x34]
cmp dword [ebp + 0x28], 0x28
push esi
push edi
mov esi, ecx
jne 0x52fb84
mov dword [ebp + 0x68], 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
cmp byte [ebp + 0xbf], 0
jne 0x52fdee
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x28]
mov edx, dword [ebp + 4]
push 3
call fcn.00408e40
test eax, eax
je 0x52fbea
cmp dword [ebp + 0x24], 0x11
je 0x52fbea
mov edi, ebp
call fcn.0052f440
cmp dword [ebp + 0x64], 0
jne 0x52fdee
mov eax, dword [ebp + 0x7c]
cmp eax, dword [esi + 0x28]
je 0x52fdee
mov dword [ebp + 0x64], 6
mov ecx, dword [esi + 0x28]
mov dword [ebp + 0x7c], ecx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov eax, ebp
call fcn.0052f250
mov ecx, dword [esi + 0x24]
cmp ecx, 0x14
je 0x52fc24
cmp ecx, 2
je 0x52fc24
cmp ecx, 0xf
je 0x52fc24
cmp ecx, 0xe
je 0x52fc24
cmp ecx, 0xc
je 0x52fc24
mov eax, dword [esi + 0x3c]
cmp eax, 0x2f
je 0x52fc24
cmp eax, 0x30
je 0x52fc24
cmp eax, 3
je 0x52fc24
cmp eax, 4
jne 0x52fc31
cmp byte [esi + 0x143], 0
je 0x52fdee
cmp ecx, 4
jne 0x52fc40
cmp dword [esi + 0x3c], 0
jne 0x52fdee
xor al, al
cmp ecx, 0x1b
mov ebx, 1
jne 0x52fc4e
mov al, bl
cmp ecx, 0xe
jne 0x52fc5c
cmp byte [esi + 0x143], 0
je 0x52fc60
test al, al
je 0x52fc7b
push esi
call fcn.004666a0
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
cmp dword [ebp + 0xac], 0
jle 0x52fc9c
mov edx, dword [ebp + 0x60]
and edx, 0x80000001
jns 0x52fc94
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, ebx
je 0x52fdee
mov eax, dword [ebp]
call fcn.004537d0
test al, al
je 0x52fcf0
jmp 0x796d7d
jmp 0x7971a9
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 4
Function at 0x5312d0
Capabilities:
Packed with generic packer

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
and esi, 8
push edi
mov dword [esp + 0x10], esi
jne 0x5312f1
mov dword [ebp + 0x54], 0x19
test al, 4
je 0x5312fe
push 0
mov eax, ebp
call fcn.00530950
mov edi, dword [ebp + 0xc8]
mov eax, ebp
mov dword [esp + 0x14], edi
call fcn.0052d710
jmp 0x796495

Function at 0x537f60
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x640888
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [esi + 0x44]
mov ecx, dword [edi + 4]
or edx, eax
mov ebx, eax
mov eax, dword [esi + 0x48]
not eax
and edx, eax
mov dword [edi], edx
mov edx, dword [esi + 0x48]
mov dword [esp + 0x20], ecx
or ecx, dword [esi + 0x44]
not edx
and ecx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [edi + 4], ecx
mov dword [esp + 0x30], 0
cmp byte [edi + 8], 0
je 0x537fd1
mov eax, dword [edi]
jmp 0x537fd3
mov eax, ecx
test al, 2
je 0x537fe0
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
mov ecx, esi
call edx
mov ecx, dword [esi + 0x10]
test ecx, ecx
mov dword [esp + 0x14], ecx
jne 0x538009
mov eax, dword [esp + 0x20]
mov dword [edi], ebx
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [edi + 8], 0
je 0x538013
mov eax, dword [edi]
jmp 0x538016
mov eax, dword [edi + 4]
test al, 1
je 0x53802e
mov eax, dword [ecx + 0x28]
cmp dword [esi + 0x24], eax
je 0x53802e
mov edx, dword [esi]
jmp 0x79a8ec
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
lea eax, [esi + 4]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
lea esp, [esp]
mov eax, dword [esi + 0x1c]
test eax, eax
mov ebx, dword [esi + 8]
lea ecx, [esi + 4]
je 0x538051
cmp eax, ecx
je 0x538056
call fcn.0061c63f
cmp dword [esi + 0x20], ebx
je 0x5380c6
mov byte [esi + 0x18], 0
cmp dword [esi + 0x1c], 0
jne 0x53806a
call fcn.0061c63f
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
cmp eax, dword [edx + 4]
jne 0x53807a
call fcn.0061c63f
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x14]
cmp ecx, dword [edx + 0x94]
jne 0x538090
mov byte [edi + 8], 1
mov eax, dword [ecx]
mov edx, dword [eax + 0x5c]
push edi
call edx
cmp byte [esi + 0x18], 0
jne 0x538040
cmp dword [esi + 0x1c], 0
jne 0x5380a9
call fcn.0061c63f
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp ecx, dword [eax + 4]
jne 0x5380b9
call fcn.0061c63f
mov edx, dword [esi + 0x20]
mov eax, dword [edx]
mov dword [esi + 0x20], eax
jmp 0x538040
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov byte [esi + 0x18], 1
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4048c2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x404951
lea eax, [ebp - 4]
push eax
push dword [edi]
call fcn.004037f3
mov esi, eax
test esi, esi
jns 0x4048fb
push str.Failed_to_get_max_length_of_input_buffer.
push esi
push 0x20
push 5
push 0x417
jmp 0x404a0f
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x40497a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404927
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40492e
mov esi, 0x80004005
push esi
mov ebx, 0x424
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_get_system_directory_path_with_default_size.
push esi
push 0x20
push 5
push ebx
push edi
jmp 0x404a14
mov ebx, 0x105
push ebx
push edi
mov dword [ebp - 8], ebx
call fcn.004029c8
mov esi, eax
test esi, esi
jns 0x404901
push str.Failed_to_allocate_space_for_system_directory.
push esi
push 0x20
push 5
push 0x420
jmp 0x404a0f
cmp ebx, dword [ebp - 8]
jbe 0x4049f4
push ebx
push edi
call fcn.004029c8
mov esi, eax
test esi, esi
jns 0x40499d
push str.Failed_to_realloc_system_directory_path.
push esi
push 0x20
push 5
push 0x429
jmp 0x404a0f
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4049e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4049c1
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4049c8
mov esi, 0x80004005
mov ebx, 0x42e
push esi
push ebx
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
push edi
call fcn.00401225
push str.Failed_to_get_system_directory_path_with_returned_size.
jmp 0x404945
cmp eax, ebx
jbe 0x4049f4
mov esi, 0x8007007a
mov ebx, 0x432
jmp 0x4049cd
push edi
call fcn.00403cfd
mov esi, eax
test esi, esi
jns 0x404a1c
push str.Failed_to_terminate_system_directory_path_with_backslash.
push esi
push 0x20
push 5
push 0x437
push str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
call fcn.00401228
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x404a25
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx], 0
je 0x404ab4
lea eax, [ebp - 4]
push eax
push dword [ebx]
call fcn.004037f3
mov esi, eax
test esi, esi
jns 0x404a5e
push str.Failed_to_get_max_length_of_input_buffer.
push esi
push 0x20
push 5
push 0x44a
jmp 0x404b74
mov edi, dword [ebp - 4]
mov dword [ebp - 8], edi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
mov edi, eax
test edi, edi
jne 0x404add
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404a8a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x404a91
mov esi, 0x80004005
push esi
mov ebx, 0x457
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_get_system_wow64_directory_path_with_default_size.
push esi
push 0x20
push 5
push ebx
push edi
jmp 0x404b79
mov edi, 0x105
push edi
push ebx
mov dword [ebp - 8], edi
call fcn.004029c8
mov esi, eax
test esi, esi
jns 0x404a64
push str.Failed_to_allocate_space_for_system_wow64_directory.
push esi
push 0x20
push 5
push 0x453
jmp 0x404b74
inc edi
cmp edi, dword [ebp - 8]
jbe 0x404b59
push edi
push ebx
call fcn.004029c8
mov esi, eax
test esi, esi
jns 0x404b01
push str.Failed_to_realloc_system_wow64_directory_path.
push esi
push 0x20
push 5
push 0x45e
jmp 0x404b74
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x404b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404b25
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x404b2c
mov esi, 0x80004005
mov ebx, 0x463
push esi
push ebx
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
push edi
call fcn.00401225
push str.Failed_to_get_system_wow64_directory_path_with_returned_size.
jmp 0x404aa8
inc eax
cmp eax, edi
jbe 0x404b59
mov esi, 0x8007007a
mov ebx, 0x469
jmp 0x404b31
push ebx
call fcn.00403cfd
mov esi, eax
test esi, esi
jns 0x404b81
push str.Failed_to_terminate_system_wow64_directory_path_with_backslash.
push esi
push 0x20
push 5
push 0x46e
push str.d:_awixwix_srclibsdutilwixtoolset.dutilpathutil.cpp
call fcn.00401228
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x405a09
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp dword [ebx], 0
je 0x405ab1
lea eax, [ebp - 4]
push eax
push dword [ebx]
call fcn.004037f3
mov esi, eax
test esi, esi
jns 0x405a50
push str.Failed_to_get_max_length_of_input_buffer.
push esi
push 0x3b
push 5
push 0x25
push str.d:_awixwix_srclibsdutilwixtoolset.dutilenvutil.cpp
call fcn.00401228
add esp, 0x18
jmp 0x405b84
mov edi, dword [ebp - 4]
mov dword [ebp - 8], edi
push edi
push dword [ebx]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x405ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x405a7f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x405a86
mov esi, 0x80004005
push esi
push 0x34
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilenvutil.cpp
push edi
call fcn.00401225
push dword [ebp + 8]
push str.Failed_to_expand_environment_variables_in_string:__ls
push esi
push 0x3b
push 5
push 0x34
push edi
call fcn.00401228
add esp, 0x1c
jmp 0x405b84
push 0x40
pop edi
push edi
push ebx
mov dword [ebp - 8], edi
call fcn.004029c8
mov esi, eax
test esi, esi
jns 0x405a56
push str.Failed_to_allocate_space_for_expanded_path.
push esi
push 0x3b
push 5
push 0x2e
jmp 0x405a3e
cmp dword [ebp - 8], edi
jae 0x405b7b
push edi
push ebx
mov dword [ebp - 8], edi
call fcn.004029c8
mov esi, eax
test esi, esi
jns 0x405aff
push str.Failed_to_re_allocate_more_space_for_expanded_path.
push esi
push 0x3b
push 5
push 0x3a
jmp 0x405a3e
push edi
push dword [ebx]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x405b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x405b28
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x405b2f
mov esi, 0x80004005
push esi
push 0x3f
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilenvutil.cpp
push edi
call fcn.00401225
push dword [ebp + 8]
push str.Failed_to_expand_environment_variables_in_string:__ls
push esi
push 0x3b
push 5
push 0x3f
jmp 0x405aa3
cmp dword [ebp - 8], edi
jae 0x405b7b
mov esi, 0x8007007a
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilenvutil.cpp
push esi
push 0x43
push edi
call fcn.00401225
push str.Failed_to_allocate_buffer_for_expanded_string.
push esi
push 0x3b
push 5
push 0x43
push edi
jmp 0x405a43
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x405b84
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x405b8d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 2
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 4]
push eax
mov esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.0040417b
test eax, eax
jns 0x405bc7
push dword [ebp + 8]
push str.Failed_to_get_full_path_for:__ls
push eax
push 0xe
push 5
push 0x16b
jmp 0x405c5f
push edi
push edi
push edi
push dword [ebp - 4]
call fcn.0040525d
mov ecx, eax
test ecx, ecx
jne 0x405c0d
push ebx
mov edi, 0x80070057
mov ebx, str.d:_awixwix_srclibsdutilwixtoolset.dutildirutil.cpp
push edi
push 0x16e
push ebx
call fcn.00401225
push dword [ebp - 4]
push str.Full_path_was_not_rooted:__ls
push edi
push 0xe
push 5
push 0x16e
push ebx
call fcn.00401228
add esp, 0x1c
pop ebx
jmp 0x405c6c
mov eax, dword [ebp - 4]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 8], ecx
test eax, eax
je 0x405c79
cmp word [eax + ecx*2], di
je 0x405c6f
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x405c6c
lea eax, [ebp - 8]
inc esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call fcn.00404807
test eax, eax
js 0x405c4d
mov eax, dword [ebp - 4]
test eax, eax
je 0x405c79
mov ecx, dword [ebp - 8]
jmp 0x405c1b
push dword [ebp - 4]
push str.Failed_to_get_parent_directory_for_path:__ls
push eax
push 0xe
push 5
push 0x177
push str.d:_awixwix_srclibsdutilwixtoolset.dutildirutil.cpp
call fcn.00401228
add esp, 0x1c
mov eax, dword [ebp - 4]
test eax, eax
je 0x405c79
push eax
call fcn.0040367f
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x406305
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40640c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406335
xor esi, esi
jmp 0x40640c
cmp eax, 3
je 0x406346
push 0
push edi
call fcn.00406414
test eax, eax
jne 0x40632e
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x4063e3
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x406363
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40635c
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x4063e3
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.00406305
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
jns 0x4063ad
push edi
push str.failed_to_create_path:__ls
push esi
push 0xe
push 4
push 0x71
push str.d:_awixwix_srclibsdutilwixtoolset.dutildirutil.cpp
call fcn.00401228
add esp, 0x1c
jmp 0x40640b
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4063df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x4063d0
xor esi, esi
inc esi
jmp 0x40640b
test esi, esi
jle 0x40640b
movzx esi, si
or esi, 0x80070000
jmp 0x40640b
xor esi, esi
jmp 0x40640b
mov esi, 0x80070003
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutildirutil.cpp
push esi
push 0x6c
push edi
call fcn.00401225
push str.cannot_find_parent_path
push esi
push 0xe
push 4
push 0x6c
push edi
call fcn.00401228
add esp, 0x18
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406438
test al, 0x10
je 0x406438
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x406435
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40643f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax]
xor edi, edi
mov dword [ebp - 4], edi
test ecx, ecx
je 0x4064dd
lea eax, [ebp - 4]
push eax
push ecx
call fcn.004037f3
mov esi, eax
test esi, esi
jns 0x406482
push str.Failed_to_get_max_length_of_input_buffer.
push esi
push 0xe
push 5
push 0x196
push str.d:_awixwix_srclibsdutilwixtoolset.dutildirutil.cpp
jmp 0x40655e
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 8], eax
test eax, eax
je 0x406522
cmp eax, ebx
jb 0x4064ba
push eax
push dword [ebp + 8]
call fcn.004029c8
mov esi, eax
test esi, esi
js 0x406503
mov eax, dword [ebp - 8]
inc edi
mov ebx, eax
cmp edi, 0xa
jb 0x406485
cmp edi, 0xa
jne 0x406517
mov esi, 0x8007007a
mov ebx, 0x1b4
push esi
push ebx
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutildirutil.cpp
push edi
call fcn.00401225
push str.GetCurrentDirectoryW_results_never_converged.
jmp 0x406557
mov ebx, 0x105
push ebx
push eax
call fcn.004029c8
mov esi, eax
test esi, esi
jns 0x406485
push str.Failed_to_allocate_space_for_current_directory.
push esi
push 0xe
push 5
push 0x19f
jmp 0x406478
push str.Failed_to_reallocate_space_for_current_directory.
push esi
push 0xe
push 5
push 0x1ad
jmp 0x406478
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x406566
mov dword [ecx], eax
jmp 0x406566
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x406539
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x406540
mov esi, 0x80004005
push esi
mov ebx, 0x1a5
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutildirutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_get_current_directory.
push esi
push 0xe
push 5
push ebx
push edi
call fcn.00401228
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40d84a
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x40d8a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x40d877
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x40d87e
mov ebx, 0x80004005
push ebx
mov esi, 0x13a
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push edi
call fcn.00401225
push str.Failed_to_get_module_handle_to_process.
push ebx
push 0x100
push 5
push esi
jmp 0x40da54
mov eax, 0x5a4d
cmp ax, word [edi]
je 0x40d8dc
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x144
push edi
mov ebx, esi
call fcn.00401225
push str.Failed_to_find_valid_DOS_image_header_in_buffer.
push esi
push 0x100
push 5
push 0x144
jmp 0x40da54
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi], 0x4550
je 0x40d917
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x14f
push edi
mov ebx, esi
call fcn.00401225
push str.Failed_to_find_valid_NT_image_header_in_buffer.
push esi
push 0x100
push 5
push 0x14f
jmp 0x40da54
movzx esi, word [ecx + edi + 0x14]
add ecx, 0x18
add esi, ecx
push 8
add esi, edi
push 0x473854
push esi
mov dword [ebp - 4], esi
call fcn.00447c10
add esp, 0xc
test eax, eax
je 0x40d961
mov eax, dword [edi + 0x3c]
movzx ecx, word [eax + edi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x40d9a5
add esi, 0x28
inc eax
mov dword [ebp - 4], esi
cmp dword [esi], 0x7869772e
jne 0x40d945
cmp dword [esi + 4], 0x6e727562
jne 0x40d945
cmp dword [esi + 0x10], 0x34
jae 0x40d9d4
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x174
push edi
mov ebx, esi
call fcn.00401225
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push str.Failed_to_read_section_info__data_to_short:__u
push esi
push 0x100
push 5
push 0x174
push edi
call fcn.00401228
add esp, 0x1c
jmp 0x40da5d
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x168
push edi
mov ebx, esi
call fcn.00401225
push str.Failed_to_find_Burn_section.
push esi
push 0x100
push 5
push 0x168
jmp 0x40da54
mov edx, dword [esi + 0xc]
add edx, edi
mov dword [ebp - 4], edx
cmp dword [edx + 4], 2
je 0x40da14
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x17e
push edi
mov ebx, esi
call fcn.00401225
mov eax, dword [ebp - 4]
push dword [eax + 4]
push str.Failed_to_read_section_info__unsupported_version:__08x
push esi
push 0x100
push 5
push 0x17e
jmp 0x40d997
mov esi, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4 + 8]
jne 0x40da2a
inc ecx
cmp ecx, 4
jne 0x40da19
jmp 0x40da5d
mov esi, 0x8007000d
mov edi, str.d:_awixwix_src_burnengine_section.cpp
push esi
push 0x184
push edi
mov ebx, esi
call fcn.00401225
push str.Bundle_guid_didnt_match_the_guid_in_the_PE_Header_in_memory.
push esi
push 0x100
push 5
push 0x184
push edi
call fcn.00401228
add esp, 0x18
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4