joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b6c0
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10203f8
call fcn.0100be74
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1023a40
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100b47b
cmp eax, esi
jne 0x100b46e
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100b47e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100b455
xor esi, esi
inc esi
mov eax, dword [0x1023a3c]
cmp eax, esi
jne 0x100b491
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100b4c0
mov eax, dword [0x1023a3c]
test eax, eax
jne 0x100b4ba
mov dword [0x1023a3c], esi
push 0x100153c
push 0x1001530
call fcn.0100b3b7
pop ecx
pop ecx
test eax, eax
je 0x100b4c0
jmp 0x100b5e4
mov dword [0x1023408], esi
mov eax, dword [0x1023a3c]
cmp eax, esi
jne 0x100b4e4
push 0x100152c
push 0x1001518
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1023a3c], 2
cmp dword [ebp - 0x20], ebx
jne 0x100b4f1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1023a50], ebx
je 0x100b512
push 0x1023a50
call fcn.0100bde9
pop ecx
test eax, eax
je 0x100b512
push ebx
push 2
push ebx
call dword [0x1023a50]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100b5e4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100b57c
cmp cx, bx
je 0x100b537
cmp dword [ebp - 0x1c], ebx
jne 0x100b57c
movzx ecx, word [eax]
cmp cx, bx
je 0x100b54c
cmp cx, 0x20
ja 0x100b54c
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100b537
test byte [ebp - 0x40], 1
je 0x100b558
movzx ecx, word [ebp - 0x3c]
jmp 0x100b55b
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1023404], eax
cmp dword [0x10233f8], ebx
jne 0x100b5c1
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100b58d
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100b521
cmp dword [0x1023408], ebx
jne 0x100b5cf
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1023404]
jmp 0x100b5f0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100beb9
ret
call fcn.0100bf97
jmp 0x100b418
Function at 0x100e457
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x100e486
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.0100b8b2
add esp, 0x14
jmp 0x100e564
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x100e564
test al, 0x40
jne 0x100e564
test al, 2
je 0x100e4a8
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x100e564
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x100e468
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100e554
cmp eax, 0xffffffff
je 0x100e554
test byte [esi + 0xc], 0x82
jne 0x100e529
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x100e514
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x100e514
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x100e519
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x100e529
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x100e547
mov eax, dword [esi + 0xc]
test al, 8
je 0x100e547
test eax, 0x400
jne 0x100e547
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x100e567
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100fd87
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x100fdb6
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.0100b8b2
add esp, 0x14
jmp 0x100fea0
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x100fea0
test al, 0x40
jne 0x100fea0
test al, 2
je 0x100fdd8
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x100fea0
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x100fd98
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100fe90
cmp eax, 1
je 0x100fe90
cmp eax, 0xffffffff
je 0x100fe90
test byte [esi + 0xc], 0x82
jne 0x100fe62
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x100fe4d
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x100fe4d
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x100fe52
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x100fe62
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x100fe80
mov eax, dword [esi + 0xc]
test al, 8
je 0x100fe80
test eax, 0x400
jne 0x100fe80
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x100fea5
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1010347
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.0101139f
mov ebx, eax
cmp ebx, edi
je 0x1010428
push esi
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10103f4
mov eax, dword [ebp + 0xc]
and al, 1
movsx eax, al
push edi
push 0x2200000
neg eax
push 3
sbb eax, eax
push edi
and eax, 0xfffffff9
add eax, 7
push eax
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10103e3
push 0xd
push 1
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov byte [ebp + 0xb], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, edi
jge 0x10103d3
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 4], eax
jmp 0x10103da
mov dword [ebp - 8], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1010418
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1001bf8
jmp 0x1010403
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1001b70
push 0x3000000
push 0x102373c
mov dword [ebp - 4], eax
call fcn.0100a7e5
add esp, 0x14
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8

Function at 0x101043f
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x101051f
xor eax, eax
cmp ax, word [esi]
je 0x101051f
push ebx
push edi
push esi
call fcn.0101139f
mov dword [ebp + 8], eax
cmp eax, edi
je 0x10104d6
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x3000000
mov edi, 0x102373c
test eax, eax
jne 0x10104ad
call esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x1001d50
push ebx
push edi
call fcn.0100a7e5
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x10104f8
cmp dword [ebp - 4], eax
jne 0x10104c7
call esi
mov dword [ebp - 4], eax
call esi
push eax
push dword [ebp + 8]
push 0x1001cd0
push ebx
push edi
jmp 0x10104f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1001c58
push 0x3000000
mov dword [ebp - 4], eax
push 0x102373c
call fcn.0100a7e5
add esp, 0x14
cmp dword [ebp + 8], 0
pop ebx
je 0x1010511
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x1010529
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x1010534
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x10105a5
xor ecx, ecx
cmp cx, word [eax]
je 0x10105a5
push edi
push esi
push eax
call fcn.0101139f
mov edi, eax
cmp edi, esi
je 0x10105a0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101056e
test al, 0x10
je 0x101056e
inc ebx
jmp 0x1010589
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1010581
mov esi, 0x10b
cmp esi, 2
jne 0x1010589
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x10105af
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x1010618
xor ecx, ecx
cmp cx, word [eax]
je 0x1010618
push esi
push ebx
push eax
call fcn.0101139f
mov esi, eax
cmp esi, ebx
je 0x1010613
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10105f2
test eax, 0x400
je 0x10105f2
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebx
pop esi
jmp 0x1010622
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp eax, edi
je 0x10107ac
xor ecx, ecx
cmp cx, word [eax]
je 0x10107ac
push esi
push edi
push eax
call fcn.0101139f
mov esi, eax
test esi, esi
je 0x1010798
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101077e
test al, 0x10
je 0x1010779
push 2
pop edi
jmp 0x1010786
xor ebx, ebx
inc ebx
jmp 0x1010786
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10107a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop esi
jmp 0x10107b6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1010951
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x10109be
xor eax, eax
cmp ax, word [esi]
je 0x10109be
push ebx
push edi
push esi
call fcn.0101139f
mov ebx, eax
test ebx, ebx
je 0x10109b9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101099a
mov ecx, 0x2000
test ecx, eax
je 0x101098e
inc edi
jmp 0x101099a
or eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop ebx
jmp 0x10109c8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x1010aa0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 0x24c
lea eax, [ebp - 0x250]
push edi
push eax
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x254], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x258], edi
cmp ebx, edi
je 0x1010c18
xor eax, eax
cmp ax, word [ebx]
je 0x1010c18
push ebx
call fcn.01010534
test eax, eax
je 0x1010c18
cmp esi, edi
je 0x1010c18
push esi
push ebx
call fcn.0101421f
mov dword [ebp - 0x268], eax
cmp eax, edi
je 0x1010c10
push edi
push eax
call fcn.0101139f
mov dword [ebp - 0x264], eax
cmp eax, edi
je 0x1010c10
lea ecx, [ebp - 0x254]
push ecx
push eax
mov dword [ebp - 0x258], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x1010bf6
test byte [ebp - 0x254], 0x10
jne 0x1010bc0
lea eax, [ebp - 0x228]
push eax
push ebx
call fcn.0101421f
mov ebx, eax
test ebx, ebx
je 0x1010b9e
push ebx
call fcn.01010a88
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1010b9e
mov dword [ebp - 0x258], ecx
jmp 0x1010ba5
and dword [ebp - 0x258], 0
test ebx, ebx
je 0x1010bb1
push ebx
push 0
call edi
push eax
call esi
cmp dword [ebp - 0x258], 1
jne 0x1010bea
mov ebx, dword [ebp - 0x260]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x1010b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1010bea
and dword [ebp - 0x258], 0
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x268]
push 0
call edi
push eax
call esi
push dword [ebp - 0x264]
push 0
call edi
push eax
call esi
mov eax, dword [ebp - 0x258]
jmp 0x1010c22
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b8d5
leave
ret 8
Function at 0x1010c38
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
test dword [ebp + 0x1c], 0xfffffff8
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
je 0x1010c61
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1010dbf
xor eax, eax
inc eax
test dword [ebp + 0x1c], eax
je 0x1010c6c
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp + 8]
call fcn.0101139f
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x1010dbc
push esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0101139f
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1010d97
mov dword [ebp - 0xc], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x102373c
push dword [ebp - 0x10]
and dword [ebp - 4], 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1010d1c
test dword [ebp + 0x1c], 2
je 0x1010d16
call ebx
inc dword [ebp - 0xc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 0xc]
call fcn.010102e9
test eax, eax
je 0x1010d16
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1001ee0
push 0x4000000
push edi
call fcn.0100a7e5
add esp, 0x1c
cmp dword [ebp - 4], 0
jbe 0x1010ca4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1010ca4
cmp dword [ebp - 8], 0
je 0x1010d95
test dword [ebp + 0x1c], 4
je 0x1010d95
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1010d95
call ebx
mov dword [ebp + 0x1c], 0x1f
test eax, eax
je 0x1010d4a
mov dword [ebp + 0x1c], eax
push dword [ebp + 0x1c]
mov esi, 0x2000000
push dword [ebp + 0xc]
push 0x1001e40
push esi
push edi
call fcn.0100a7e5
add esp, 0x14
push dword [ebp + 0xc]
call fcn.01010a88
test eax, eax
jne 0x1010d8c
call ebx
test eax, eax
jne 0x1010d79
push 0x1f
pop eax
push eax
push dword [ebp + 0xc]
push 0x1001de0
push esi
push edi
call fcn.0100a7e5
add esp, 0x14
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
cmp dword [ebp - 0x14], ebx
je 0x1010dba
push dword [ebp - 0x14]
push ebx
call esi
push eax
call edi
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x18
Function at 0x1010dc9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x1010e81
cmp dword [ebp + 0xc], ebx
je 0x1010e81
push esi
push edi
push ebx
push dword [ebp + 8]
call fcn.0101139f
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, ebx
je 0x1010e41
push ebx
push dword [ebp + 0xc]
call fcn.0101139f
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1010e41
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1010e23
push dword [ebp - 4]
call fcn.01010a88
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 2
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
push esi
call fcn.01010c38
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp esi, ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 0xc], eax
je 0x1010e63
push dword [ebp + 8]
push ebx
call edi
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x1010e71
push dword [ebp - 4]
push ebx
call edi
push eax
call esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
jmp 0x1010e8b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x14
Function at 0x101104b
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
cmp eax, esi
je 0x101113e
xor ecx, ecx
cmp cx, word [eax]
je 0x101113e
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x101113e
cmp cx, word [eax]
je 0x101113e
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push esi
call edi
mov ebx, eax
cmp ebx, esi
je 0x1011125
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [ebx + ebx]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x101112e
push eax
push ebx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x1011110
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call edi
test eax, eax
je 0x1011110
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01010fc6
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call edi
test eax, eax
je 0x10110f2
cmp dword [ebp - 4], 0
jne 0x1011119
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov dword [ebp - 8], eax
cmp dword [ebp - 4], edi
je 0x1011119
push dword [ebp - 4]
push edi
call esi
push eax
call ebx
mov dword [ebp - 4], edi
jmp 0x1011119
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
push 0
call esi
push eax
call ebx
jmp 0x101112e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop ebx
jmp 0x1011148
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x10115a1
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x1011735
xor eax, eax
cmp ax, word [esi]
je 0x1011735
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0101139f
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x101171e
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.01011381
cmp eax, ebx
jl 0x10116b2
cmp dword [ebp - 0x1c], 1
jne 0x101167d
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1011617
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
cmp dword [ebp - 0xc], ebx
je 0x1011641
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 8]
cmp esi, ebx
je 0x10116f2
xor eax, eax
mov word [esi], ax
call fcn.01010534
test eax, eax
jne 0x1011673
push ebx
push dword [ebp - 8]
call edi
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x1011647
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x101168f
cmp ax, 0x7a
jbe 0x101169b
cmp ax, 0x41
jb 0x1011641
cmp ax, 0x5a
ja 0x1011641
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x1011641
push 0x5c
pop eax
cmp ax, word [esi + 4]
jne 0x1011641
add esi, 8
jmp 0x1011641
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x10021c0
push 0x3000000
push 0x102373c
mov dword [ebp - 0x10], eax
call fcn.0100a7e5
add esp, 0x14
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
jmp 0x1011727
call fcn.01010534
xor esi, esi
inc esi
cmp eax, esi
je 0x1011719
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x1011719
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x1002160
jmp 0x10116c9
mov dword [ebp - 0x18], esi
jmp 0x10116de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x101173f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b8d5
leave
ret 4