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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x48000]
mov dword [edi + 0x6e734], 0x572c6d02
push edi
or ebp, 0xffffffff
jmp 0x47b3ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47b3d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b3c0
mov eax, 1
add ebx, ebx
jne 0x47b3e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47b3f4
jne 0x47b413
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b413
dec eax
add ebx, ebx
jne 0x47b400
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47b3d8
add ebx, ebx
jne 0x47b40f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47b465
xor ecx, ecx
sub eax, 3
jb 0x47b42b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47b49a
sar eax, 1
mov ebp, eax
jmp 0x47b436
add ebx, ebx
jne 0x47b436
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b404
inc ecx
add ebx, ebx
jne 0x47b444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b404
add ebx, ebx
jne 0x47b451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47b446
jne 0x47b462
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47b446
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47b484
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47b476
jmp 0x47b3c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47b484
add edi, ecx
jmp 0x47b3c6
pop esi
mov edi, esi
mov ecx, 0x175f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47b4a2
cmp byte [edi], 0x11
jne 0x47b4a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47b4a7
lea edi, [esi + 0x76000]
mov eax, dword [edi]
or eax, eax
je 0x47b516
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7b570]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7b628]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47b4d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7b630]
or eax, eax
je 0x47b510
mov dword [ebx], eax
add ebx, 4
jmp 0x47b4f1
call dword [esi + 0x7b62c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x47b547
cmp al, 0xef
ja 0x47b53a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x47b51c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x47b529
mov ebp, dword [esi + 0x7b634]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47b57b
sub esp, 0xffffff80
jmp 0x4290fc
Function at 0x4ad016ad
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 0x4ad016f1
push ebx
push edi
call fcn.4ad016fb
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 0x4ad016e9
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 0x4ad01759
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 0x4ad01790
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [0x4ad241c4]
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.4ad016ad
mov dword [0x4ad241c4], eax
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret 8
xor esi, esi
jmp 0x4ad01759
Function at 0x4ad02070
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, 0x4ad30640
push esi
push dword [ebp + 8]
xor eax, eax
mov word [0x4ad30640], ax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4ad02cd6
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
cmp byte [0x4ad24081], 0
push ebx
je 0x4ad02e2c
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x4ad245c0
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad0fde4
push str.ERRORLEVEL
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad0510a
push str.CMDEXTVERSION
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad1527b
push 0x4ad02d80
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad15282
push str.DATE
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad1528d
push str.TIME
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x4ad02e04
push edi
push esi
push 1
push eax
call fcn.4ad0d701
xor ecx, ecx
mov word [eax*2 + 0x4ad30640], cx
mov eax, esi
pop ebx
jmp 0x4ad0209e
push 0x4ad02e60
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad1529c
push 0x4ad02e34
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad152a8
xor eax, eax
jmp 0x4ad02d78
push dword [0x4ad24188]
push 0x4ad05104
push edi
push esi
call fcn.4ad0179d
add esp, 0x10
jmp 0x4ad02d76
push eax
push edi
push esi
call fcn.4ad02c56
jmp 0x4ad02d76
push 2
jmp 0x4ad05110
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x4ad02d78
push edi
push esi
push 1
push eax
call fcn.4ad1270d
jmp 0x4ad02d6c
call dword [sym.imp.msvcrt.dll_rand]
push eax
jmp 0x4ad05110
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
push dword [ebp + 8]
jmp 0x4ad05110
Function at 0x4ad024ed
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x4ad02506
cmp dword [0x4ad240b4], 0
je 0x4ad07499
leave
ret 4
cmp dword [0x4ad240e4], 0
jne 0x4ad02506
push edi
push 0x20c
call fcn.4ad01896
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x4ad07558
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
test eax, eax
je 0x4ad07558
mov ecx, dword [ebp + 8]
push esi
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x4ad074d9
mov edx, dword [0x4ad24158]
sub ecx, esi
sar ecx, 1
add edx, ecx
lea esi, [edx + eax + 0xa]
lea eax, [esi + esi]
push eax
push edi
call fcn.4ad02536
mov edi, eax
test edi, edi
je 0x4ad0754f
cmp byte [0x4ad24083], 0
mov dword [ebp - 4], edi
jne 0x4ad19d8e
push 0x4ad07560
push esi
push edi
call fcn.4ad020a9
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad07524
push dword [ebp + 8]
sub eax, edx
push esi
sar eax, 1
push edi
mov dword [0x4ad24158], eax
call fcn.4ad020a9
mov byte [0x4ad24083], 1
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push dword [ebp - 4]
call fcn.4ad0142e
pop esi
pop edi
jmp 0x4ad02506
mov eax, dword [0x4ad24158]
push dword [ebp + 8]
sub esi, eax
push esi
lea eax, [edi + eax*2]
push eax
call fcn.4ad0185a
jmp 0x4ad07548

Function at 0x4ad02b68
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 [0x4ad40664]
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.4ad013a9
leave
ret 4

Function at 0x4ad02c56
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 0x4ad0bed5
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.4ad013a9
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.4ad02070
test eax, eax
je 0x4ad19e98
push eax
push dword [ebp + 0xc]
push esi
call fcn.4ad0185a
xor eax, eax
pop edi
jmp 0x4ad02c83
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 0x4ad0bf17
Function at 0x4ad02e73
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 0x4ad02eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24128], 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 0x4ad0fd56
mov dword [0x4ad24128], ebx
mov byte [ebp - 1], 1
cmp dword [esi], 0xffffffff
je 0x4ad02f49
mov eax, dword [0x4ad2412c]
cmp eax, ebx
je 0x4ad075b1
mov ecx, dword [0x4ad24134]
cmp ecx, dword [0x4ad24130]
jge 0x4ad075e0
cmp eax, ebx
je 0x4ad02f45
mov ecx, dword [esi]
mov edx, dword [0x4ad24134]
mov dword [eax + edx*4], ecx
inc dword [0x4ad24134]
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
jne 0x4ad02eaf
jmp 0x4ad02ea4
mov dword [0x4ad2412c], eax
jmp 0x4ad02f30
push 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x4ad075a7
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 0x4ad1b272
inc dword [0x4ad24130]
jmp 0x4ad075a7
push dword [ebp + 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4ad10e81
cmp dword [esi], 0xffffffff
jne 0x4ad02eeb
jmp 0x4ad02f0c
push dword [esi]
call edi
or dword [esi], 0xffffffff
jmp 0x4ad02f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24128], eax
push dword [esi]
call edi
or dword [esi], 0xffffffff
xor al, al
jmp 0x4ad02eb2
Function at 0x4ad0395e
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 [0x4ad40664]
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 0x4ad19ab5
cmp eax, 2
je 0x4ad039da
cmp eax, 5
je 0x4ad039da
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 0x4ad19abd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4ad013a9
leave
ret 4
xor eax, eax
inc eax
jmp 0x4ad039dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4ad039da
jmp 0x4ad19ab5
Function at 0x4ad03a0a
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 0x4ad04abf
test byte [ebp + 0xc], bl
jne 0x4ad04ab5
mov esi, 0x80000000
cmp eax, edi
jne 0x4ad04a90
mov dword [ebp - 8], esi
push 3
cmp dword [ebp + 0xc], 0x10a
pop eax
push edi
je 0x4ad0d64a
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 0x4ad0d8fc
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 0x4ad0d67c
push dword [ebp + 0x10]
call fcn.4ad03b3e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0x4ad04a88
push dword [ebp + 8]
mov dword [ebp - 8], 0x40000000
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4ad04aae
mov dword [ebp + 0x10], ebx
push 2
jmp 0x4ad03a51
test byte [ebp + 0xc], 8
je 0x4ad03a3f
or eax, 0xffffffff
jmp 0x4ad03aa7
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 0x4ad0d8dd
xor edi, edi
jmp 0x4ad03a84
push eax
call fcn.4ad03b03
test eax, eax
jne 0x4ad03a9c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x4ad03a9c
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 0x4ad19add
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 0x4ad19b11
cmp word [ebp - 0xc], 0x1a
jne 0x4ad03a9c
jmp 0x4ad19b23
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 0x4ad0d675
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24128], eax
cmp eax, 0x6e
jne 0x4ad04abf
jmp 0x4ad19ace
mov dword [0x4ad24128], 2
jmp 0x4ad04abf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24128], eax
cmp eax, edi
je 0x4ad0d6bb
cmp dword [ebp + 0x10], 0xffffffff
je 0x4ad19b05
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll__close]
pop ecx
jmp 0x4ad04abf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ad04abf
push 2
lea eax, [ebp - 4]
push eax
push edi
push ebx
mov dword [ebp - 4], edi
call esi
jmp 0x4ad0d6d5
or dword [ebp - 4], 0xffffffff
push 2
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push ebx
call esi
jmp 0x4ad03a9c
Function at 0x4ad0453e
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 [0x4ad40668], bl
jne 0x4ad186b9
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp + 0xc], eax
mov edi, 0x4ad26640
mov esi, 0x2000
cmp dword [ebp + 0x10], esi
ja 0x4ad186cd
cmp dword [ebp + 0x10], ebx
je 0x4ad125df
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push dword [0x4ad241b8]
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 0x4ad125e7
cmp dword [ebx], esi
jne 0x4ad125e7
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 0x4ad045c4
xor eax, eax
jmp 0x4ad045cc
push ebx
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4ad045cd
push ebx
push ebx
push esi
push edi
push 0x1000
push dword [ebp + 0xc]
push ebx
push dword [0x4ad241b8]
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 0x4ad125e7
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], eax
je 0x4ad04579
jmp 0x4ad125e7
Function at 0x4ad04d9a
Capabilities:
Read file on windows

Disassembly:
cmp byte [esi + 1], 0xa
jne 0x4ad04e1e
mov eax, dword [ebp - 0xc]
mov byte [esi + 2], bl
sub esi, edi
inc esi
inc esi
push ebx
push ebx
mov dword [ebp - 8], esi
add esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4ad04e36
mov dword [ebp + 0x10], eax
jmp 0x4ad04dc8
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
mov edi, 0x4ad26640
mov esi, edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
mov eax, 0x1fff
cmp dword [ebp + 0x10], eax
jae 0x4ad04d90
push ebx
push dword [ebp + 0x14]
mov dword [0x4ad240f8], 1
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x4ad240f8], ebx
cmp eax, ebx
je 0x4ad05772
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x4ad05772
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
jle 0x4ad04e36
cmp dword [ebp - 4], 3
jl 0x4ad04e1e
mov al, byte [esi]
cmp al, 0xa
je 0x4ad05779
cmp al, 0xd
je 0x4ad04bda
movzx eax, byte [esi]
cmp byte [eax + 0x4ad24e40], bl
jne 0x4ad141e7
dec dword [ebp - 4]
inc esi
cmp dword [ebp - 4], ebx
jg 0x4ad04e06
push dword [ebp + 0x10]
mov esi, dword [0x4ad241b8]
push dword [ebp + 0xc]
push dword [ebp - 8]
push edi
push esi
call fcn.4ad04b8d
neg eax
sbb eax, eax
neg eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x4ad04e5f
cmp byte [esi + 1], 0xd
jne 0x4ad04e16
jmp 0x4ad04be4
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
je 0x4ad141fa
sub dword [ebp - 4], 2
inc esi
inc esi
jmp 0x4ad04e31
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
inc esi
push esi
push dword [ebp + 8]
mov dword [0x4ad240f8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [0x4ad240f8], 1
cmp eax, ebx
je 0x4ad1422b
cmp dword [ebp - 4], ebx
je 0x4ad1422b
inc dword [ebp - 8]
jmp 0x4ad04e36
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
jmp 0x4ad05772
Function at 0x4ad067d3
Capabilities:
Manipulate console buffer
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
je 0x4ad14554
pop ebp
jmp fcn.4ad04d9a
pop ebp
jmp fcn.4ad134e2

Function at 0x4ad06a35
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ad19db6
push esi
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x208
push edi
call fcn.4ad02598
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
test esi, esi
je 0x4ad06ae2
push 4
lea eax, [ebp - 0x414]
push 0x4ad06af4
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x4ad19dbd
mov eax, dword [ebp - 0x668]
test eax, eax
je 0x4ad19e1c
cmp word [eax], 0
je 0x4ad19e1c
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x664]
push eax
push 0x37
lea eax, [ebp - 0x414]
push eax
call fcn.4ad03117
push dword [ebp - 0x66c]
movzx esi, al
call fcn.4ad02f5c
test esi, esi
je 0x4ad06b09
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.4ad013a9
leave
ret 4
cmp word [ebp - 0x412], 0x5c
je 0x4ad06b30
cmp word [ebp - 0x412], 0x3a
jne 0x4ad06ae2
cmp word [ebp - 0x410], 0x5c
jne 0x4ad06ae2
cmp word [ebp - 0x40e], si
jne 0x4ad06ae2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ad06ae2
jmp 0x4ad19e14
xor eax, eax
jmp 0x4ad06ae5
lea eax, [ebp - 0x40c]
push eax
push edi
mov dword [ebp - 0x668], eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
mov dword [ebp - 0x668], eax
test eax, eax
je 0x4ad19dff
cmp eax, edi
jbe 0x4ad19dff
movzx esi, word [eax]
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov eax, dword [ebp - 0x668]
mov word [eax], si
mov eax, ecx
jmp 0x4ad19e08
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc eax
neg eax
sbb eax, eax
and eax, ecx
jmp 0x4ad06ae4
xor esi, esi
inc esi
jmp 0x4ad06ae2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
jmp 0x4ad06ae2
Function at 0x4ad07b0d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
and dword [esi], 0
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push 0x4ad07b80
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ad07b63
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push 0x4ad07b68
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
pop esi
leave
ret 4
Function at 0x4ad09662
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x24
call fcn.4ad02041
mov esi, eax
push esi
mov dword [esi], edi
call fcn.4ad0944c
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x214], eax
mov eax, dword [esi]
push 0x208
mov dword [ebp - 0x210], eax
call fcn.4ad02041
push 0
mov edi, 0x104
push edi
push eax
mov dword [0x4ad24124], eax
call fcn.4ad02c56
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.4ad02faf
test eax, eax
jne 0x4ad09794
movzx eax, word [0x4ad40664]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad02148
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x4ad25260
call fcn.4ad0185a
test ebx, ebx
je 0x4ad09772
movzx eax, word [ebx]
cmp ax, 0x3a
je 0x4ad09772
cmp ax, word [0x4ad40664]
jne 0x4ad09742
cmp ebx, dword [ebp - 0x210]
je 0x4ad09799
push ebx
push dword [ebp - 0x210]
call fcn.4ad097a2
movzx eax, word [eax]
cmp ax, 0x3a
je 0x4ad09799
cmp ax, word [0x4ad40664]
je 0x4ad09799
movzx edi, word [ebx]
push dword [ebp - 0x210]
xor eax, eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad19714
and dword [0x4ad24128], 0
mov word [ebx], di
cmp dword [0x4ad24128], 0
jne 0x4ad09794
push esi
call fcn.4ad0944c
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x18], eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013a9
leave
ret 4
xor eax, eax
inc eax
jmp 0x4ad09783
inc ebx
inc ebx
jmp 0x4ad09742
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24128], eax
jmp 0x4ad09766