joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10125b34
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10a07618], ebx
push esi
push edi
jne 0x10125bb4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10125bef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1014b3d4
push edi
call esi
test eax, eax
mov dword [0x10a07618], eax
je 0x10125bef
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10a0761c], eax
call esi
cmp dword [0x10a07274], 2
mov dword [0x10a07620], eax
jne 0x10125bb4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10a07628], eax
je 0x10125bb4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10a07624], eax
mov eax, dword [0x10a07624]
test eax, eax
je 0x10125bf9
call eax
test eax, eax
je 0x10125be0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10a07628]
test eax, eax
je 0x10125be0
test byte [ebp - 8], 1
jne 0x10125bf9
cmp dword [0x10a07280], 4
jb 0x10125bf3
or byte [ebp + 0x12], 0x20
jmp 0x10125c18
xor eax, eax
jmp 0x10125c28
or byte [ebp + 0x12], 4
jmp 0x10125c18
mov eax, dword [0x10a0761c]
test eax, eax
je 0x10125c18
call eax
mov ebx, eax
test ebx, ebx
je 0x10125c18
mov eax, dword [0x10a07620]
test eax, eax
je 0x10125c18
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10a07618]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1012869c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10169ccc]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x10128717
push ebx
call fcn.10128665
test eax, eax
pop ecx
jne 0x101286e9
call fcn.1011f165
mov dword [eax], 0xf
call fcn.1011f15c
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.10115a7a
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x10128729
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x101286d9
inc eax
cmp eax, 0x104
ja 0x101286d9
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10128761
cmp eax, dword [ebp + 0x10]
jg 0x10128744
mov eax, dword [ebp + 0x10]
push eax
call fcn.10115bae
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x10128776
call fcn.1011f15c
mov dword [eax], 0xc
jmp 0x101286d9
cmp eax, dword [ebp + 0x10]
jle 0x10128776
call fcn.1011f15c
mov dword [eax], 0x22
jmp 0x101286d9
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.10115ed0
pop ecx
pop ecx
jmp 0x101286db
Function at 0x1012962e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x10129699
push 0x3d
push dword [ebp + 8]
call fcn.10115e4b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x10129699
cmp dword [ebp + 8], esi
je 0x10129699
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x10a07294]
cmp eax, dword [0x10a07298]
jne 0x1012967f
mov edi, eax
call fcn.101295cd
mov dword [0x10a07294], eax
cmp eax, ebx
jne 0x101296d8
cmp dword [ebp + 0xc], ebx
je 0x101296a1
cmp dword [0x10a0729c], ebx
je 0x101296a1
call fcn.101271f7
test eax, eax
je 0x101296d8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x101297dc
push 4
call fcn.10115bae
cmp eax, ebx
pop ecx
mov dword [0x10a07294], eax
je 0x10129699
mov dword [eax], ebx
cmp dword [0x10a0729c], ebx
jne 0x101296d8
push 4
call fcn.10115bae
cmp eax, ebx
pop ecx
mov dword [0x10a0729c], eax
je 0x10129699
mov dword [eax], ebx
mov ebx, dword [0x10a07294]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.10129580
mov edi, eax
test edi, edi
pop ecx
jl 0x10129731
cmp dword [ebx], 0
je 0x10129731
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.10115bc0
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x10129719
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x10129767
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x10129710
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.1011fc1c
test eax, eax
pop ecx
pop ecx
je 0x10129767
jmp 0x10129762
cmp dword [ebp - 4], 0
jne 0x101297d5
test edi, edi
jge 0x10129741
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.1011fc1c
test eax, eax
pop ecx
pop ecx
je 0x10129699
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x10a07294], eax
cmp dword [ebp + 0xc], 0
je 0x101297be
push dword [ebp + 8]
call fcn.10115dc0
inc eax
inc eax
push eax
call fcn.10115bae
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x101297be
push dword [ebp + 8]
push esi
call fcn.10115ed0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x101297b7
or dword [ebp - 8], 0xffffffff
push esi
call fcn.10115bc0
pop ecx
cmp dword [ebp - 4], 0
je 0x101297cd
push dword [ebp + 8]
call fcn.10115bc0
pop ecx
mov eax, dword [ebp - 8]
jmp 0x1012969c
push esi
call fcn.10115bc0
pop ecx
xor eax, eax
jmp 0x1012969c
Function at 0x101297e3
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1014b4c0
call fcn.1011c030
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x10a07654], edi
jne 0x10129827
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10129812
mov dword [0x10a07654], ebx
jmp 0x10129827
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10129827
mov dword [0x10a07654], 2
mov eax, dword [0x10a07654]
cmp eax, ebx
jne 0x10129847
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1012990a
cmp eax, 2
je 0x10129850
cmp eax, edi
jne 0x10129878
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x10129863
mov eax, dword [0x10a07480]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x1012987f
xor eax, eax
jmp 0x1012990a
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10115c40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x101298b2
cmp esi, edi
jne 0x101298c8
push dword [ebp - 0x24]
call fcn.10115bae
pop ecx
mov esi, eax
cmp esi, edi
je 0x10129878
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x101298fb
cmp dword [ebp + 0x14], edi
jne 0x101298e5
push edi
push edi
jmp 0x101298eb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x10129907
push esi
call fcn.10115bc0
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.1011c06b
ret
Function at 0x10129913
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1014b4d0
call fcn.1011c030
xor esi, esi
cmp dword [0x10a07658], esi
jne 0x10129957
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10129942
mov dword [0x10a07658], edi
jmp 0x10129957
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10129957
mov dword [0x10a07658], 2
mov eax, dword [0x10a07658]
cmp eax, 2
je 0x10129a38
cmp eax, esi
je 0x10129a38
cmp eax, 1
jne 0x1012999c
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x10129985
mov eax, dword [0x10a07480]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x101299a3
xor eax, eax
jmp 0x10129a4a
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.10115c40
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x101299d9
cmp edi, esi
jne 0x101299f4
lea eax, [ebx + ebx]
push eax
call fcn.10115bae
pop ecx
mov edi, eax
cmp edi, esi
je 0x1012999c
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10129a27
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x10129a11
push esi
push esi
jmp 0x10129a17
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x10129a33
push edi
call fcn.10115bc0
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x10129a4a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.1011c06b
ret
Function at 0x402260
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
ret

Function at 0x4028e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404270], 0xffffffff
mov dword [0x404274], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40426c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x404268]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x404278], ecx
call fcn.00402a70
mov eax, dword [0x404250]
test eax, eax
jne 0x402971
push 0x402a60
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402a40
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x404264]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x404260]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call section..text
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x402a10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e00
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b77e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x19
xor eax, eax
mov dword [ebp - 0x3c], 0
push str.RCMainFrameWndPicDesigner
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.004036d0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x34]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.004036d0
lea eax, [ebp - 0x34]
push eax
push 0x402fc0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x18]
xor esi, esi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x402ed6
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 0
push 0xbb8
push 3
push 0
push 0
push 0x10
push dword [ecx + esi*4]
call edi
mov eax, dword [ebp - 0x18]
inc esi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x402eb2
test ecx, ecx
je 0x402f1f
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x402f00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402fa6
push edx
push ecx
call fcn.00494280
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x402f55
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402f4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402fab
push edx
push ecx
call fcn.00494280
add esp, 8
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x402f8b
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402f81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402fb0
push edx
push ecx
call fcn.00494280
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049423f
mov esp, ebp
pop ebp
ret
call fcn.00498389
call fcn.00498389
call fcn.00498389
int3
Function at 0x405700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7998
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00403350
test al, al
je 0x405740
xor al, al
jmp 0x405876
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403500
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.00408990
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00403360
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x405863
lea ecx, [ebp - 0x44]
call fcn.004034e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040fd60
test al, al
je 0x4057a2
lea ecx, [ebp - 0x44]
call fcn.00403360
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00403400
cmp esi, 0xffffffff
jne 0x405863
lea ecx, [ebp - 0x2c]
call fcn.004036c0
cmp eax, 2
jbe 0x40585f
lea ecx, [ebp - 0x2c]
call fcn.004036c0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00403630
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4057e7
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x405806
lea ecx, [ebp - 0x2c]
call fcn.004036c0
cmp dword [esi + 0x14], 8
jb 0x4057fe
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40585f
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.00408990
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00403360
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x405863
lea ecx, [ebp - 0x44]
call fcn.004034e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040fd60
test al, al
je 0x40584e
lea ecx, [ebp - 0x44]
call fcn.00403360
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00403400
cmp esi, 0xffffffff
jne 0x405863
xor bl, bl
jmp 0x405865
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403400
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049423f
mov esp, ebp
pop ebp
ret
Function at 0x4058a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7998
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00403350
test al, al
je 0x4058e0
xor al, al
jmp 0x405a1c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403500
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.00408990
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00403360
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40594f
lea ecx, [ebp - 0x44]
call fcn.004034e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040fd60
test al, al
je 0x40593e
lea ecx, [ebp - 0x44]
call fcn.00403360
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00403400
cmp ebx, 0xffffffff
je 0x405958
test bl, 0x10
je 0x405a09
lea ecx, [ebp - 0x2c]
call fcn.004036c0
cmp eax, 2
jbe 0x405a05
lea ecx, [ebp - 0x2c]
call fcn.004036c0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00403630
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x405988
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x4059a7
lea ecx, [ebp - 0x2c]
call fcn.004036c0
cmp dword [esi + 0x14], 8
jb 0x40599f
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x405a05
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.00408990
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00403360
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405a00
lea ecx, [ebp - 0x44]
call fcn.004034e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0040fd60
test al, al
je 0x4059ef
lea ecx, [ebp - 0x44]
call fcn.00403360
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00403400
cmp ebx, 0xffffffff
je 0x405a05
test bl, 0x10
je 0x405a09
xor bl, bl
jmp 0x405a0b
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403400
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049423f
mov esp, ebp
pop ebp
ret
Function at 0x405a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b79d0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00403350
test al, al
je 0x405a7f
xor al, al
jmp 0x405b0a
push esi
lea ecx, [ebp - 0x28]
call fcn.00403500
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.00408990
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00403360
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405aee
lea ecx, [ebp - 0x40]
call fcn.004034e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040fd60
test al, al
je 0x405add
lea ecx, [ebp - 0x40]
call fcn.00403360
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403400
cmp ebx, 0xffffffff
je 0x405af7
test bl, 0x10
je 0x405af7
mov bl, 1
jmp 0x405af9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403400
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049423f
mov esp, ebp
pop ebp
ret
Function at 0x406670
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7b80
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00403350
test al, al
je 0x4066ad
xor al, al
jmp 0x40686b
push edi
call fcn.00405a40
add esp, 4
test al, al
je 0x4066c1
mov al, 1
jmp 0x40686b
push 0
mov ecx, edi
call fcn.00403360
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x406710
lea ecx, [ebp - 0x28]
call fcn.004034e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0040fd60
test al, al
je 0x406701
push 0
lea ecx, [ebp - 0x28]
call fcn.00403360
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403400
push edi
call fcn.00405a40
add esp, 4
test al, al
jne 0x4066ba
mov ecx, edi
call fcn.004036c0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40680c
mov ecx, edi
call fcn.00403630
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40674c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40676f
mov eax, ebx
cmp ecx, 8
jb 0x406765
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4067fc
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00404e80
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403350
test al, al
jne 0x4067ed
lea eax, [ebp - 0x28]
push eax
call fcn.00405700
add esp, 4
test al, al
jne 0x4067ed
push 0
lea ecx, [ebp - 0x28]
call fcn.00403360
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4067ed
lea ecx, [ebp - 0x40]
call fcn.004034e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040fd60
test al, al
je 0x4067e1
push 0
lea ecx, [ebp - 0x40]
call fcn.00403360
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403400
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x406740
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.00405700
add esp, 4
test al, al
jne 0x406862
push 0
mov ecx, edi
call fcn.00403360
push eax
call ebx
test eax, eax
jne 0x406862
lea ecx, [ebp - 0x40]
call fcn.004034e0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0040fd60
test al, al
je 0x406853
push 0
lea ecx, [ebp - 0x40]
call fcn.00403360
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403400
push edi
call fcn.00405a40
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049423f
mov esp, ebp
pop ebp
ret