joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015a4
Capabilities:
Create directory
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
lea eax, [ebp - 0x24]
pop ebx
push ebx
push 0x22
push eax
call esi
add esp, 0x10
cmp eax, ebx
jne 0x4016f8
lea eax, [ebp - 0x128]
push 0x4030c0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movzx eax, word [ebp - 0x24]
push edi
push eax
lea eax, [ebp - 0x128]
push ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebp + eax - 0x128]
push eax
call esi
movzx ecx, word [ebp - 0x24]
add esp, 0x10
cmp eax, ecx
jne 0x40172c
cmp dword [ebp - 0x22], 0xffffffff
jne 0x401640
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
test eax, eax
pop ecx
je 0x4016e1
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 0x11
jne 0x40174b
jmp 0x4016e1
lea eax, [ebp - 0x128]
push 0x40308c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov ebx, eax
pop ecx
xor ecx, ecx
cmp ebx, ecx
je 0x401772
cmp dword [ebp - 0x1e], ecx
je 0x4016c2
movzx eax, byte [0x4031e8]
sub eax, ecx
je 0x4016ac
dec eax
je 0x40167c
dec eax
jne 0x40179c
jmp 0x4016c2
lea eax, [ebp - 0x128]
push eax
call fcn.00401141
test eax, eax
pop ecx
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
je 0x40169a
call fcn.00401816
jmp 0x40169f
call fcn.00401912
add esp, 0xc
test eax, eax
jne 0x4017c7
jmp 0x4016c2
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
call fcn.00401816
add esp, 0xc
test eax, eax
jne 0x4017f0
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [ebp - 0x24]
push 1
push eax
lea eax, [ebp - 0x128]
push eax
call section..text
add esp, 0x10
push 1
pop ebx
test byte [edi + 0xc], 0x10
jne 0x40180f
push edi
push ebx
lea eax, [ebp - 0x24]
push 0x22
push eax
jmp 0x4015c4
test byte [edi + 0xc], 0x10
jne 0x40180f
cmp dword [0x403710], 0
jne 0x401725
mov dword [0x403708], str.Z:work_v3unzip_v3unzip.c
mov dword [0x40370c], 0xb0
mov dword [0x403710], ebx
push 4
jmp 0x4017c4
cmp dword [0x403710], 0
jne 0x401725
mov dword [0x403708], str.Z:work_v3unzip_v3unzip.c
mov dword [0x40370c], 0xb8
jmp 0x40171f
cmp dword [0x403710], 0
jne 0x40176e
mov dword [0x403708], str.Z:work_v3unzip_v3unzip.c
mov dword [0x40370c], 0xbf
mov dword [0x403710], ebx
push 2
jmp 0x4017c4
cmp dword [0x403710], ecx
jne 0x401798
mov dword [0x403708], str.Z:work_v3unzip_v3unzip.c
mov dword [0x40370c], 0xc6
mov dword [0x403710], 1
push 3
jmp 0x4017c4
cmp dword [0x403710], ecx
jne 0x4017c2
mov dword [0x403708], str.Z:work_v3unzip_v3unzip.c
mov dword [0x40370c], 0xe2
mov dword [0x403710], 1
push 7
pop eax
jmp 0x401811
cmp dword [0x403710], 0
jne 0x401811
mov dword [0x403708], str.Z:work_v3unzip_v3unzip.c
mov dword [0x40370c], 0xda
mov dword [0x403710], 1
jmp 0x401811
cmp dword [0x403710], 0
jne 0x401811
mov dword [0x403708], str.Z:work_v3unzip_v3unzip.c
mov dword [0x40370c], 0xd0
jmp 0x4017e4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401816
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x10]
lea ecx, [edi + 0x200]
mov eax, dword [eax + 2]
cmp ecx, eax
jbe 0x40183d
sub eax, edi
mov ebx, eax
jmp 0x401842
mov ebx, 0x200
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ebx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x401889
push dword [ebp + 8]
lea eax, [ebp - 0x204]
add edi, esi
push esi
push 1
pop ebx
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x4018b4
add dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
cmp edi, dword [eax + 2]
jae 0x4018db
jmp 0x401827
cmp dword [0x403710], 0
jne 0x4018b0
mov dword [0x403708], str.Z:work_v3unzip_v3unzip.c
mov dword [0x40370c], 0x103
mov dword [0x403710], 1
push 4
jmp 0x401908
cmp dword [0x403710], 0
jne 0x4018d7
mov dword [0x403708], str.Z:work_v3unzip_v3unzip.c
mov dword [0x40370c], 0x10a
mov dword [0x403710], ebx
push 5
jmp 0x401908
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 6]
je 0x40190b
cmp dword [0x403710], 0
jne 0x401906
mov dword [0x403708], str.Z:work_v3unzip_v3unzip.c
mov dword [0x40370c], 0x111
mov dword [0x403710], ebx
push 8
pop eax
jmp 0x40190d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cc8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402098
push 0x401e00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403714], 0xffffffff
or dword [0x403718], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4030ac]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4030a8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40371c], eax
call fcn.00401df9
cmp dword [0x403090], 0
jne 0x401d4b
push 0x401df6
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401de4
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4030a4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4030a0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004011a0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x865058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008651a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x86507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86506a
add dl, dl
jne 0x865089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8650dc
xor eax, eax
add dl, dl
jne 0x865096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x86517d
add dl, dl
jne 0x8650a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8650b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8650bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8650c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8650d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x865075
mov eax, 1
add dl, dl
jne 0x8650ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8650f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8650e1
sub eax, ebx
mov ebx, 1
jne 0x865128
mov ecx, 1
add dl, dl
jne 0x86510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x865119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x865105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x865075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x86513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x86514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x865136
cmp eax, 0x7d00
jae 0x86516d
cmp eax, 0x500
jb 0x865168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x865075
cmp eax, 0x7f
ja 0x865170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x865075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x86519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x865075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4ad016a0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
xor esi, esi
test edi, edi
je 0x4ad016e4
push ebx
push edi
call fcn.4ad016ee
mov ebx, eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4ad016dc
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x4ad01730
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov byte [0x4ad24085], 0
test esi, esi
je 0x4ad0175d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad01749
sub eax, edx
sar eax, 1
je 0x4ad03c0e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [0x4ad241bc]
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.4ad016a0
mov dword [0x4ad241bc], eax
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret 8
xor esi, esi
jmp 0x4ad0175d

Function at 0x4ad01931
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, 0x2000
push edi
mov esi, 0x4ad30600
push esi
push dword [ebp + 8]
xor eax, eax
mov word [0x4ad30600], ax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4ad02bf1
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
cmp byte [0x4ad24081], 0
push ebx
je 0x4ad02d34
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x4ad245c0
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad0f1e1
push str.ERRORLEVEL
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad06c0a
push str.CMDEXTVERSION
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad152c2
push 0x4ad02c9c
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad152c9
push str.DATE
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad152d4
push str.TIME
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x4ad02d20
push edi
push esi
push 1
push eax
call fcn.4ad0dcde
xor ecx, ecx
mov word [eax*2 + 0x4ad30600], cx
mov eax, esi
pop ebx
jmp 0x4ad0195f
push 0x4ad02d3c
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad152e3
xor eax, eax
jmp 0x4ad02c93
push dword [0x4ad24180]
push 0x4ad06c04
push edi
push esi
call fcn.4ad01799
add esp, 0x10
jmp 0x4ad02c91
push eax
push edi
push esi
call fcn.4ad03a9f
jmp 0x4ad02c91
push 2
jmp 0x4ad06c10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x4ad02c93
push edi
push esi
push 1
push eax
call fcn.4ad125c3
jmp 0x4ad02c87
call dword [sym.imp.msvcrt.dll_rand]
push eax
jmp 0x4ad06c10
Function at 0x4ad029ca
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x4ad029e3
cmp dword [0x4ad240b4], 0
je 0x4ad050c8
leave
ret 4
cmp dword [0x4ad240dc], 0
jne 0x4ad029e3
push edi
push 0x20c
call fcn.4ad018b8
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x4ad05187
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
test eax, eax
je 0x4ad05187
mov ecx, dword [ebp + 8]
push esi
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x4ad05108
mov edx, dword [0x4ad24150]
sub ecx, esi
sar ecx, 1
add edx, ecx
lea esi, [edx + eax + 0xa]
lea eax, [esi + esi]
push eax
push edi
call fcn.4ad02a13
mov edi, eax
test edi, edi
je 0x4ad0517e
cmp byte [0x4ad24083], 0
mov dword [ebp - 4], edi
jne 0x4ad19db0
push 0x4ad05190
push esi
push edi
call fcn.4ad01a89
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad05153
push dword [ebp + 8]
sub eax, edx
push esi
sar eax, 1
push edi
mov dword [0x4ad24150], eax
call fcn.4ad01a89
mov byte [0x4ad24083], 1
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push dword [ebp - 4]
call fcn.4ad013cf
pop esi
pop edi
jmp 0x4ad029e3
mov eax, dword [0x4ad24150]
push dword [ebp + 8]
sub esi, eax
push esi
lea eax, [edi + eax*2]
push eax
call fcn.4ad017fb
jmp 0x4ad05177
Function at 0x4ad02d4f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0x14], ebx
push 2
push ebx
sete al
push ebx
push dword [ebp + 0x18]
mov byte [ebp - 1], bl
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, dword [ebp + 0x1c]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4ad02dc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24120], eax
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0x18
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4ad0f149
mov dword [0x4ad24120], ebx
mov byte [ebp - 1], 1
cmp dword [esi], 0xffffffff
je 0x4ad02e22
mov eax, dword [0x4ad24124]
cmp eax, ebx
je 0x4ad051e1
mov ecx, dword [0x4ad2412c]
cmp ecx, dword [0x4ad24128]
jge 0x4ad051f3
cmp eax, ebx
je 0x4ad02e1e
mov ecx, dword [esi]
mov edx, dword [0x4ad2412c]
mov dword [eax + edx*4], ecx
inc dword [0x4ad2412c]
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
jne 0x4ad02d8b
jmp 0x4ad02d80
mov dword [0x4ad24124], eax
jmp 0x4ad02e09
push 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x4ad051d7
lea ecx, [ecx*4 + 4]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp eax, ebx
je 0x4ad1b186
inc dword [0x4ad24128]
jmp 0x4ad051d7
push dword [ebp + 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4ad1399d
cmp dword [esi], 0xffffffff
jne 0x4ad02dc4
jmp 0x4ad02de5
push dword [esi]
call edi
or dword [esi], 0xffffffff
jmp 0x4ad02de5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24120], eax
push dword [esi]
call edi
or dword [esi], 0xffffffff
xor al, al
jmp 0x4ad02d8e

Function at 0x4ad03036
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
mov word [ebp - 0xc], ax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
mov ax, word [0x4ad40620]
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.4ad0139d
leave
ret 4
Function at 0x4ad03845
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
mov word [ebp - 0x10], ax
push 0x3a
pop eax
mov word [ebp - 0xe], ax
mov ax, word [0x4ad40620]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ad19ad7
cmp eax, 2
je 0x4ad038c1
cmp eax, 5
je 0x4ad038c1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x220]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4ad19adf
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4ad0139d
leave
ret 4
xor eax, eax
inc eax
jmp 0x4ad038c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4ad038c1
jmp 0x4ad19ad7

Function at 0x4ad03a9f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
jne 0x4ad0b6c6
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.4ad0139d
leave
ret 0xc
push edi
mov edi, dword [sym.imp.msvcrt.dll_towupper]
push 0x3d
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0xc], ax
call edi
pop ecx
mov word [ebp - 0xa], ax
push 0x3a
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call fcn.4ad01931
test eax, eax
je 0x4ad19eba
push eax
push dword [ebp + 0xc]
push esi
call fcn.4ad017fb
xor eax, eax
pop edi
jmp 0x4ad03acc
push dword [ebp + 0x10]
call edi
mov word [esi], ax
pop ecx
inc esi
push 0x3a
inc esi
pop eax
mov word [esi], ax
inc esi
inc esi
push 0x5c
pop eax
mov word [esi], ax
xor eax, eax
mov word [esi + 2], ax
inc eax
jmp 0x4ad0b708
Function at 0x4ad03c43
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
inc ebx
xor edi, edi
and eax, 3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0xc
cmp eax, 2
ja 0x4ad04557
test byte [ebp + 0xc], bl
jne 0x4ad0454d
mov esi, 0x80000000
cmp eax, edi
jne 0x4ad04528
mov dword [ebp - 8], esi
push 3
cmp dword [ebp + 0xc], 0x10a
pop eax
push edi
je 0x4ad0dc27
push 0x80
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad0dee5
push 8
push ebx
call dword [sym.imp.msvcrt.dll__open_osfhandle]
test byte [ebp + 0xc], 8
pop ecx
pop ecx
mov dword [ebp + 0x10], eax
jne 0x4ad0dc59
push dword [ebp + 0x10]
call fcn.4ad03cec
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0x4ad04520
push dword [ebp + 8]
mov dword [ebp - 8], 0x40000000
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4ad04546
mov dword [ebp + 0x10], ebx
push 2
jmp 0x4ad03c8a
test byte [ebp + 0xc], 8
je 0x4ad03c78
or eax, 0xffffffff
jmp 0x4ad03ce0
mov edi, 0x80
push edi
push 3
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
or eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad0dec6
xor edi, edi
jmp 0x4ad03cbd
push eax
call fcn.4ad03bd3
test eax, eax
jne 0x4ad03cd5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x4ad03cd5
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
or dword [ebp - 4], 0xffffffff
push 2
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0xc], edi
call esi
cmp eax, 0xffffffff
je 0x4ad19aff
push edi
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad19b33
cmp word [ebp - 0xc], 0x1a
jne 0x4ad03cd5
jmp 0x4ad19b45
push 0
push edi
push 4
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ad0dc52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24120], eax
cmp eax, 0x6e
jne 0x4ad04557
jmp 0x4ad19af0
mov dword [0x4ad24120], 2
jmp 0x4ad04557
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24120], eax
cmp eax, edi
je 0x4ad0dc98
cmp dword [ebp + 0x10], 0xffffffff
je 0x4ad19b27
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll__close]
pop ecx
jmp 0x4ad04557
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ad04557
push 2
lea eax, [ebp - 4]
push eax
push edi
push ebx
mov dword [ebp - 4], edi
call esi
jmp 0x4ad0dcb2
or dword [ebp - 4], 0xffffffff
push 2
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push ebx
call esi
jmp 0x4ad03cd5
Function at 0x4ad04ae0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
xor ebx, ebx
pop ecx
mov dword [ebp + 8], eax
cmp byte [0x4ad40624], bl
jne 0x4ad18774
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp + 0xc], eax
mov edi, 0x4ad26600
mov esi, 0x2000
cmp dword [ebp + 0x10], esi
ja 0x4ad18788
cmp dword [ebp + 0x10], ebx
je 0x4ad124f7
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push dword [0x4ad241b0]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov ebx, dword [ebp + 0x14]
mov esi, eax
push ebx
dec esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ad124ff
cmp dword [ebx], esi
jne 0x4ad124ff
mov eax, dword [ebp - 8]
mov dword [ebx], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov ebx, dword [ebp + 0x14]
jmp 0x4ad04b66
xor eax, eax
jmp 0x4ad04b6e
push ebx
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4ad04b6f
push ebx
push ebx
push esi
push edi
push 0x1000
push dword [ebp + 0xc]
push ebx
push dword [0x4ad241b0]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add dword [ebp + 0xc], esi
sub dword [ebp + 0x10], esi
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ad124ff
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], eax
je 0x4ad04b1b
jmp 0x4ad124ff