joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008add0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x100b7314]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x1008afd4
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1008afd4
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10061d90
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call esi
test eax, eax
jne 0x1008afa9
xor edi, edi
mov dword [ebp - 0x2dc], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1008af98
lea eax, [ebp - 0x2e0]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2d8]
call esi
test eax, eax
jne 0x1008af62
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e4], 0x104
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1008af5a
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.10061d90
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.1008aff0
add esp, 0x18
test eax, eax
je 0x1008af5a
cmp byte [ebp - 0x68], 0
je 0x1008af1c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x1008af5a
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x1008af49
mov al, byte [esi + ecx]
test al, al
je 0x1008af49
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1008af30
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1008ae70
push dword [ebp - 0x2d8]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x1008afd4
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.1008bfc0
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c735
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.1003c735
mov esp, ebp
pop ebp
ret
Function at 0x1008b110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x100b7314]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1008b28f
cmp dword [ebp + 0xc], 0x20
jb 0x1008b28f
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.10061d90
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x100a965c
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x1008b28f
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008b1a0
sub ecx, edx
cmp ecx, 0x40
jne 0x1008b28f
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x1008b1dc
mov al, byte [esi + ecx]
test al, al
je 0x1008b1dc
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1008b1c6
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x1008b219
mov al, byte [esi + ecx]
test al, al
je 0x1008b219
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1008b200
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.10061d90
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1008b2a0
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x1008b28f
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.1008bfc0
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c735
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1003c735
mov esp, ebp
pop ebp
ret
Function at 0x1008bb60
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.1003c9d0
mov eax, dword [0x100b7314]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x1008bccd
cmp dword [ebp + 0xc], 0
je 0x1008bccd
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.10046040
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1008bcb0
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.10061d90
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1008bca5
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10061d90
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.1008ccc0
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.1008bfc0
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1008bcba
inc esi
cmp esi, 0x10
jl 0x1008bba0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c735
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1003c735
mov esp, ebp
pop ebp
ret
Function at 0x1008bce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100b7314]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x1008bdc8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10061d90
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x1008bdc8
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008bd37
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x1008bdc8
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x1008bd60
mov eax, dword [0x1009e43c]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1008bd75
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1008bd90
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c735
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c735
mov esp, ebp
pop ebp
ret
Function at 0x1008bde0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x100b7314]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.10061d90
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.1008b2a0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1008be4a
mov al, byte [edi + ecx]
test al, al
je 0x1008be4a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1008be31
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x1008be6b
inc eax
sub ecx, 1
jne 0x1008be60
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x1008bec0
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x1008beb5
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x1008beb4
mov bl, byte [edi + ecx]
test bl, bl
je 0x1008beb4
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x1008bea0
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.10061d90
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x100a965c
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x1008bf7a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1008bf44
test cl, cl
je 0x1008bf40
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1008bf44
add eax, 2
add esi, 2
test cl, cl
jne 0x1008bf24
xor eax, eax
jmp 0x1008bf49
sbb eax, eax
or eax, 1
test eax, eax
je 0x1008bf7a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008bf56
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push 0x80000002
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008bf83
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x100a965c
push str.SoftwareComMaster
push 0x80000002
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003c735
mov esp, ebp
pop ebp
ret
Function at 0x401080
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x88
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
mov dword [esp], str.browseui.dll
mov dword [esp + 4], eax
call dword [0x4061dc]
sub esp, 8
test eax, eax
jne 0x4010c0
mov dword [esp], str.Native_IE_detected__not_doing_registration_n
call fcn.00401060
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 8], esi
lea esi, [ebp - 0x74]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], str.browseui.dll
call dword [0x4061e0]
lea eax, [ebp - 0x70]
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [0x4061e4]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.VarFileInfoTranslation
mov dword [esp], ebx
mov dword [ebp - 0x84], eax
call eax
sub esp, 0x10
test eax, eax
jne 0x401160
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x4010aa
mov eax, dword [ebp - 0x70]
movzx edx, word [eax + 2]
mov dword [esp + 0xc], edx
movzx eax, word [eax]
lea edx, [ebp - 0x6c]
mov dword [esp], edx
mov dword [esp + 4], str.StringFileInfo_04x_04xFileDescription
mov dword [esp + 8], eax
call dword [0x4061d0]
lea eax, [ebp - 0x78]
mov dword [esp + 0xc], esi
lea edx, [ebp - 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ebx
mov eax, dword [ebp - 0x84]
call eax
sub esp, 0x10
test eax, eax
je 0x401136
mov dword [esp + 4], 0x4030e6
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov esi, eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test esi, esi
je 0x4010aa
mov eax, dword [ebp - 0x80]
mov edx, str.RegisterIE
mov dword [esp + 8], 0
mov dword [esp], 0
test eax, eax
mov eax, str.UnregisterIE
cmovne eax, edx
mov dword [esp + 4], eax
call fcn.004012b8
sub esp, 0xc
shr eax, 0x1f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401cd0
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x401d40
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x401d97
xor ecx, ecx
xor edx, edx
jmp 0x401d79
cmp ax, 0x5c
jne 0x401e00
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401d97
cmp ax, 9
je 0x401d85
cmp ax, 0x20
jne 0x401d60
test ecx, ecx
je 0x401deb
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x401d79
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x401e20
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401220
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x401de8
cmp ax, 0x20
je 0x401de8
jmp 0x401d97
cmp ax, 0x22
jne 0x401d89
and edx, 1
jne 0x401d89
xor ecx, 1
jmp 0x401d6d
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x401db0
Function at 0x401d40
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x401d40
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x401d97
xor ecx, ecx
xor edx, edx
jmp 0x401d79
cmp ax, 0x5c
jne 0x401e00
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401d97
cmp ax, 9
je 0x401d85
cmp ax, 0x20
jne 0x401d60
test ecx, ecx
je 0x401deb
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x401d79
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x401e20
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401220
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x401de8
cmp ax, 0x20
je 0x401de8
jmp 0x401d97
cmp ax, 0x22
jne 0x401d89
and edx, 1
jne 0x401d89
xor ecx, 1
jmp 0x401d6d
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x401db0
Function at 0x401010
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.SDL2.dll_SDL_wcslen
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp - 4]
push edx
push str.UTF_16LE
push str.UTF_8
call sub.SDL2.dll_SDL_iconv_string
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40105d
call fcn.004012d0
jmp 0x4010cf
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.004010e0
add esp, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
lea edx, [ecx*4 + 4]
push edx
call sub.SDL2.dll_SDL_malloc
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401091
call fcn.004012d0
jmp 0x4010cf
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004010e0
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004012f0
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.SDL2.dll_SDL_free
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call sub.SDL2.dll_SDL_free
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x403640
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9238
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x4c900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x860], esi
mov dword [ebp - 0x864], esi
xorps xmm0, xmm0
mov dword [ebp - 0x82c], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push eax
push 0x800
mov dword [ebp - 0x82c], 1
call edi
cmp eax, 0x7ff
jae 0x4036f6
lea eax, [ebp - 0x810]
push eax
push 0x800
call edi
test eax, eax
je 0x4038d6
cmp eax, 0x801
jae 0x4038d6
jmp 0x4036fb
mov eax, 0x7ff
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x828], 0
push eax
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], 0
call fcn.00412c80
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x85c]
push 0
mov dword [ebp - 0x85c], 0
push 0x4af250
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x848], 0xf
mov byte [ebp - 0x85c], 0
call fcn.00412c80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x844]
push 1
mov dword [ebp - 0x844], 0
push 0x4af280
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0xf
mov byte [ebp - 0x844], 0
call fcn.00412c80
lea eax, [ebp - 0x85c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x844]
lea ecx, [ebp - 0x828]
call fcn.00403330
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x830]
cmp edx, 0x10
jb 0x403809
mov ecx, dword [ebp - 0x844]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4037ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038c6
push edx
push ecx
call fcn.004a7acb
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x848]
cmp edx, 0x10
jb 0x403847
mov ecx, dword [ebp - 0x85c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40383d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038c6
push edx
push ecx
call fcn.004a7acb
add esp, 8
push ecx
push 0
lea edx, [ebp - 0x828]
lea ecx, [ebp - 0x838]
call fcn.004033b0
mov edi, eax
add esp, 8
cmp esi, edi
je 0x40388f
mov ecx, esi
call fcn.00412480
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [ebp - 0x838]
call fcn.00412480
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x4038d6
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4038cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4038cc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004a7acb
add esp, 8
mov eax, esi
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.004a7a88
mov esp, ebp
pop ebp
ret
Function at 0x410800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x41082c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x41084e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x410850
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4108d5
jg 0x410865
test esi, esi
je 0x4108d5
test ecx, ecx
jl 0x4108b8
jg 0x41086f
test eax, eax
je 0x4108b8
cmp edi, ecx
jg 0x410883
jl 0x410879
cmp esi, eax
jae 0x410883
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x4108d5
jg 0x4108bb
test esi, esi
je 0x4108d5
jmp 0x4108bb
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4108d5
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc