joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401157
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x405148]
push ebx
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x7f
mov ecx, dword [eax + 0x15]
xor ebx, ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, ebx
je 0x401195
lea eax, [ebp - 0x10c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4011ab
movsx eax, byte [eax + 0x14]
push eax
lea eax, [ebp - 0x10c]
push str.vfp_cr.dll
push eax
call edi
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x10c]
push eax
call esi
cmp eax, ebx
jne 0x401261
push ebx
lea eax, [ebp - 0x8c]
push 0x2b
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x8c]
push str._sMicrosoft_SharedVFP_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x8c]
push eax
call esi
cmp eax, ebx
jne 0x401261
mov eax, dword [0x405148]
cmp dword [eax + 0x15], ebx
jne 0x40124e
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareClassesVisualFoxProRuntime.9ShellOpenCommand
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40124e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
je 0x401252
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401261
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x8c]
push eax
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401266
Capabilities:
Accept command line arguments
Get common file path
Query environment variable
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x405020
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edi, 0x1000
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, 0x104
mov dword [0x40513c], eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [0x405138], eax
pop ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
mov esi, str.path
push dword [0x40513c]
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push dword [0x405138]
mov eax, dword [0x40513c]
push eax
push str._s__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [0x40513c]
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push dword [ebp + 8]
call section..text
test eax, eax
pop ecx
jne 0x40130c
push ebx
push str.Error
push str.load_exe_faild
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401399
lea ecx, [ebp - 0x48]
call fcn.00401cd7
lea ecx, [ebp - 0x30]
call fcn.00401cd7
lea ecx, [ebp - 0x18]
call fcn.00401cd7
call fcn.00401157
mov esi, eax
cmp esi, ebx
jne 0x401345
mov eax, dword [0x405148]
push 0x10
push dword [eax + 0x1d]
push dword [eax + 0x21]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401381
push str.DllWinMain
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov dword [ebp + 8], eax
call fcn.00402580
test eax, eax
pop ecx
jne 0x401367
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp + 8], ebx
jne 0x401374
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00401ce4
lea ecx, [ebp - 0x30]
call fcn.00401ce4
lea ecx, [ebp - 0x48]
call fcn.00401ce4
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x401d08
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
jne 0x401ddb
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402025
test eax, eax
je 0x401ddb
mov ecx, esi
call fcn.004020b8
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x401ddb
push 0x40
push 0x3000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
je 0x401ddb
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0040212d
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xa0], ebx
jbe 0x401d7f
cmp dword [eax + 0xa4], ebx
jbe 0x401d7f
push edi
mov ecx, esi
call fcn.00401ed5
push edi
mov ecx, esi
call fcn.00401f39
test eax, eax
jne 0x401d9a
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401ddb
lea eax, [ebp + 8]
push eax
push 0x40
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
push ebx
push 1
push edi
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x28]
add eax, edi
mov dword [esi + 4], eax
call eax
test eax, eax
jne 0x401ddf
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
xor eax, eax
jmp 0x401de7
push 1
mov dword [esi + 8], edi
pop eax
mov dword [esi], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x401dee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx + 8]
push esi
push edi
test edx, edx
jne 0x401e11
cmp dword [ecx], edx
jne 0x401e18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [edx + 0x3c]
mov ebx, edx
add eax, edx
mov edx, dword [eax + 0x78]
test edx, edx
mov dword [ebp - 0xc], edx
je 0x401e08
mov eax, dword [eax + 0x7c]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x401e08
mov ecx, dword [edx + ebx + 0x14]
lea eax, [edx + ebx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
mov esi, dword [eax + 0x24]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x20]
add edi, ebx
add esi, ebx
add ecx, ebx
test word [ebp + 0xa], 0xffff
jne 0x401e60
mov ecx, 0xffff
sub ecx, dword [eax + 0x10]
and ecx, dword [ebp + 8]
jmp 0x401ea8
and dword [ebp + 0xc], 0
cmp dword [ebp - 8], 0
jle 0x401e08
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov eax, dword [eax]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401e96
inc dword [ebp + 0xc]
add dword [ebp - 4], 4
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jl 0x401e6d
jmp 0x401e08
mov eax, dword [ebp + 0xc]
test eax, eax
jl 0x401e08
movzx ecx, word [esi + eax*2]
mov edx, dword [ebp - 0xc]
test ecx, ecx
jl 0x401e08
cmp ecx, dword [ebp - 0x10]
jge 0x401e08
mov ecx, dword [edi + ecx*4]
cmp ecx, edx
jbe 0x401ecd
mov eax, dword [ebp - 0x14]
add eax, edx
cmp ecx, eax
jb 0x401e08
lea eax, [ecx + ebx]
jmp 0x401e0a
Function at 0x402025
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 8], 0x40
push esi
jb 0x40209f
mov eax, dword [esp + 8]
mov dword [ecx + 0xc], eax
cmp word [eax], 0x5a4d
jne 0x40209f
mov edx, dword [eax + 0x3c]
lea esi, [edx + 0xf8]
cmp dword [esp + 0xc], esi
jb 0x40209f
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], reloc.KERNEL32.dll_GetModuleHandleA
jne 0x40209f
mov dx, word [eax + 0x16]
test dh, 0x20
je 0x40209f
test dl, 2
je 0x40209f
cmp word [eax + 0x14], 0xe0
jne 0x40209f
add eax, 0xf8
xor edx, edx
mov dword [ecx + 0x14], eax
mov ecx, dword [ecx + 0x10]
movzx ecx, word [ecx + 6]
test ecx, ecx
jle 0x402098
add eax, 0x10
mov esi, dword [eax + 4]
add esi, dword [eax]
cmp esi, dword [esp + 0xc]
ja 0x40209f
inc edx
add eax, 0x28
cmp edx, ecx
jl 0x402085
push 1
pop eax
pop esi
ret 8
xor eax, eax
jmp 0x40209b

Function at 0x4025f4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
and dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x402640
cmp dword [esi + 8], 0
je 0x402640
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x402640
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8
Function at 0x7b7af0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x35a000]
push edi
jmp 0x7b7b0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7b7b11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b7b00
mov eax, 1
add ebx, ebx
jne 0x7b7b23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7b7b34
jne 0x7b7b53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b7b53
dec eax
add ebx, ebx
jne 0x7b7b40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7b7b18
add ebx, ebx
jne 0x7b7b4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7b7ba5
xor ecx, ecx
sub eax, 3
jb 0x7b7b6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7b7bda
sar eax, 1
mov ebp, eax
jmp 0x7b7b76
add ebx, ebx
jne 0x7b7b76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b7b44
inc ecx
add ebx, ebx
jne 0x7b7b84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b7b44
add ebx, ebx
jne 0x7b7b91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7b7b86
jne 0x7b7ba2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7b7b86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7b7bc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7b7bb6
jmp 0x7b7b06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7b7bc4
add edi, ecx
jmp 0x7b7b06
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7b7be2
cmp byte [edi], 0x11
jne 0x7b7be2
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 0x7b7be7
lea edi, [esi + 0x3b0000]
mov eax, dword [edi]
or eax, eax
je 0x7b7c5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6899f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x689b70]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7b7c14
mov ecx, edi
jns 0x7b7c43
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x689b74]
or eax, eax
je 0x7b7c59
mov dword [ebx], eax
add ebx, 4
jmp 0x7b7c31
call dword [esi + 0x689b84]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7b7c90
cmp al, 0xef
ja 0x7b7c83
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7b7c65
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7b7c72
mov ebp, dword [esi + 0x689b78]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x7b7cc4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x4ad01389
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ad33b38]
jne 0x4ad1f325
test ecx, 0xffff0000
jne 0x4ad1f325
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x4ad3d6a8], eax
mov dword [0x4ad3d6a4], ecx
mov dword [0x4ad3d6a0], edx
mov dword [0x4ad3d69c], ebx
mov dword [0x4ad3d698], esi
mov dword [0x4ad3d694], edi
mov word [0x4ad3d6c0], ss
mov word [0x4ad3d6b4], cs
mov word [0x4ad3d690], ds
mov word [0x4ad3d68c], es
mov word [0x4ad3d688], fs
mov word [0x4ad3d684], gs
pushfd
pop dword [0x4ad3d6b8]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x4ad3d6bc], ecx
mov dword [0x4ad3d6b0], eax
mov dword [0x4ad3d5f8], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x4ad3d5b4], eax
mov eax, dword [0x4ad33b38]
mov dword [ebp - 4], eax
mov eax, dword [0x4ad38884]
xor edi, edi
inc edi
mov dword [ebp - 4], eax
push 0
mov dword [0x4ad3d6ac], ecx
mov dword [0x4ad3d5a8], 0xc0000409
mov dword [0x4ad3d5ac], edi
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x4ad1f408
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret

Function at 0x4ad016df
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
xor ebx, ebx
test edi, edi
mov dword [ebp - 4], edi
je 0x4ad01735
push esi
push edi
call fcn.4ad01740
mov esi, eax
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4ad0172b
mov ecx, esi
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4ad01f78
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and word [0x4ad2b9e0], 0
push ebx
push esi
mov ebx, 0x2000
push ebx
mov esi, 0x4ad2b9e0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4ad033fa
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
cmp byte [0x4ad2fa24], 0
push edi
je 0x4ad0349a
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x4ad34168
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad11aaf
push str.ERRORLEVEL
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad0c761
push str.CMDEXTVERSION
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad133ab
push 0x4ad034b4
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad133b2
push str.DATE
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad0e802
push str.TIME
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad058c2
push 0x4ad034a4
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x4ad133bd
xor eax, eax
pop edi
jmp 0x4ad01fa6
push ebx
push esi
push 1
push eax
call fcn.4ad06358
and word [eax*2 + 0x4ad2b9e0], 0
jmp 0x4ad061bb
mov eax, esi
jmp 0x4ad0349c
push dword [0x4ad2f9e0]
push 0x4ad0c77c
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
jmp 0x4ad061bb
push ebx
push esi
push 1
push eax
call fcn.4ad0cf54
jmp 0x4ad058cc
push eax
push esi
call fcn.4ad0234c
jmp 0x4ad061bb
push 2
jmp 0x4ad0c767
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x4ad0349c
call dword [sym.imp.msvcrt.dll_rand]
push eax
jmp 0x4ad0c767

Function at 0x4ad0234c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp word [ebp + 0xc], 0
mov eax, dword [0x4ad33b38]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x4ad10d7c
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.4ad01389
leave
ret 8
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.msvcrt.dll_towupper]
mov word [ebp - 0xc], 0x3d
call edi
and word [ebp - 6], 0
mov word [ebp - 0xa], ax
pop ecx
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 8], 0x3a
call fcn.4ad01f78
test eax, eax
je 0x4ad17b2d
test esi, esi
je 0x4ad10dbd
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
pop edi
jmp 0x4ad02379
push dword [ebp + 0xc]
call edi
mov word [esi], ax
inc esi
inc esi
mov word [esi], 0x3a
inc esi
inc esi
mov word [esi], 0x5c
and word [esi + 2], 0
xor eax, eax
pop ecx
inc eax
jmp 0x4ad10dbf
Function at 0x4ad02bd6
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ad33b38]
and word [ebp - 6], 0
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
mov word [ebp - 0xc], ax
mov ax, word [0x4ad34440]
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
neg eax
call fcn.4ad01389
leave
ret 4

Function at 0x4ad03118
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4ad0313b
cmp dword [0x4ad2fa7c], edi
jne 0x4ad0313b
cmp dword [0x4ad2fa74], edi
je 0x4ad08e3d
pop edi
leave
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x20c
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 8], ebx
je 0x4ad08eee
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x4ad08eee
push dword [ebp + 8]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
pop ecx
mov ecx, dword [0x4ad33ab8]
add ecx, eax
add ecx, dword [ebp - 4]
lea eax, [ecx + ecx + 0x14]
push eax
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
test ebx, ebx
je 0x4ad17808
cmp byte [0x4ad33abc], 0
jne 0x4ad17810
push 0x4ad08ef8
push ebx
call dword [sym.imp.msvcrt.dll_wcscat]
push ebx
call edi
push dword [ebp + 8]
mov dword [0x4ad33ab8], eax
push ebx
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x14
mov byte [0x4ad33abc], 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
jmp 0x4ad0313b
push dword [ebp - 8]
jmp 0x4ad08ee3
mov eax, dword [0x4ad33ab8]
push dword [ebp + 8]
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x4ad08edb
Function at 0x4ad03181
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
cmp eax, 2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0xc
ja 0x4ad03fe8
test byte [ebp + 0xc], bl
jne 0x4ad03fde
cmp eax, edi
mov esi, 0x80000000
je 0x4ad05122
push 0x4ad03d54
push dword [ebp + 8]
mov dword [ebp - 8], 0x40000000
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x4ad031e1
mov dword [ebp + 0x10], ebx
push 2
cmp dword [ebp + 0xc], 0x10a
pop eax
push edi
je 0x4ad05890
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 0x4ad0ee3d
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 0x4ad058ed
push dword [ebp + 0x10]
call fcn.4ad03245
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
test byte [ebp + 0xc], 8
je 0x4ad031b6
or eax, 0xffffffff
jmp 0x4ad03239
mov dword [ebp - 8], esi
push 3
jmp 0x4ad031e3
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 0x4ad0ee1e
xor edi, edi
jmp 0x4ad03216
push eax
call fcn.4ad01538
test eax, eax
jne 0x4ad0322e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x4ad0322e
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 0x4ad17829
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 0x4ad17864
cmp word [ebp - 0xc], 0x1a
jne 0x4ad0322e
jmp 0x4ad17876
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 0x4ad058bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6e
mov dword [0x4ad2b9c4], eax
jne 0x4ad03fe8
jmp 0x4ad17855
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [0x4ad2b9c4], eax
je 0x4ad0592c
cmp dword [ebp + 0x10], 0xffffffff
je 0x4ad03fe8
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll__close]
pop ecx
jmp 0x4ad03fe8
mov dword [0x4ad2b9c4], 2
jmp 0x4ad03fe8
push 2
lea eax, [ebp - 4]
push eax
push edi
push ebx
mov dword [ebp - 4], edi
call esi
jmp 0x4ad05946
or dword [ebp - 4], 0xffffffff
push 2
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push ebx
call esi
jmp 0x4ad0322e
Function at 0x4ad07024
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 0x4ad07098
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ad0707a
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push 0x4ad07080
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4