joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dab0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov dword [ebp - 0x12c], ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041ea1b
add esp, 8
cmp eax, 0xffffffff
jne 0x40dadc
mov eax, 1
jmp 0x40db88
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041ecb0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0041e1b0
add esp, 8
push str..
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041e1c0
add esp, 8
mov edx, dword [ebp + 8]
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], 3
lea eax, [ebp - 0x108]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], 0
mov word [ebp - 0x118], 0x14
mov dword [ebp - 0x116], 0
mov dword [ebp - 0x112], 0
mov dword [ebp - 0x10e], 0
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
cmp dword [ebp - 0x116], 0
je 0x40db83
xor eax, eax
jmp 0x40db88
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x40dcb0
Capabilities:
Delete file
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push str.RT_FILE
push 0x83
mov eax, dword [0x42fdb0]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ddb2
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x42fdb0]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x42fdb0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40ddb2
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40ddb2
cmp dword [ebp - 8], 0
jbe 0x40ddb2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0041ea1b
add esp, 8
cmp eax, 0xffffffff
je 0x40dd54
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40dd54
xor eax, eax
jmp 0x40ddb4
push 0x42adec
mov edx, dword [ebp + 8]
push edx
call fcn.0041e701
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40ddb2
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0x10]
push edx
call fcn.0041e3af
add esp, 0x10
cmp dword [ebp - 8], eax
jne 0x40dd9c
mov eax, dword [ebp - 0x14]
push eax
call fcn.0041e57c
add esp, 4
mov eax, 1
jmp 0x40ddb4
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0041e57c
add esp, 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40e890
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 8], 0
jne 0x40e8a9
xor eax, eax
jmp 0x40e9fc
push 0x65
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0xc], eax
push 0x28
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.0041ecb0
add esp, 0xc
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x40ef60
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x14], eax
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [str.setup_dvr]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0040f050
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
test eax, eax
jne 0x40e935
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [str.setup_dvr]
push ecx
push 0
call fcn.0040e650
mov edx, dword [ebp - 0x34]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], 0
jne 0x40e99e
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x34]
mov dword [eax + 0xc], 0
xor eax, eax
jmp 0x40e9fc
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
mov eax, dword [edx]
and eax, 1
je 0x40e9bc
push 3
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40e9e9
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
and edx, 0x10
je 0x40e9da
push 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40e9e9
push 1
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
mov esp, ebp
pop ebp
ret
Function at 0x40f5c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 0x9c], 0
je 0x40f609
cmp dword [ebp - 0x9c], 1
je 0x40f610
cmp dword [ebp - 0x9c], 2
je 0x40f63b
jmp 0x40f64b
mov eax, 1
jmp 0x40f64d
cmp dword [ebp - 0x94], 4
jae 0x40f620
mov eax, 1
jmp 0x40f64d
cmp dword [ebp - 0x94], 4
jne 0x40f639
cmp dword [ebp - 0x90], 0xa
jae 0x40f639
mov eax, 1
jmp 0x40f64d
jmp 0x40f64b
cmp dword [ebp - 0x94], 5
jae 0x40f64b
mov eax, 1
jmp 0x40f64d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40f790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 5
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret

Function at 0x40f7b0
Capabilities:
Create process on windows
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.0040f580
test eax, eax
je 0x40f813
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40f820
push 1
push str.rundll32.exe_shell32.dll_SHExitWindowsEx_2
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esp, ebp
pop ebp
ret

Function at 0x412aca
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x412b05
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x412ae2
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x412b21
dec esi
je 0x412b1a
dec esi
jne 0x412b26
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x413ec6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], al
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov word [ebx + 0xc], ax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
jne 0x413f0e
mov ecx, 0x2000
lea edi, [esi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x30], eax
call fcn.00413944
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], 0
mov ecx, 0x8000
push 2
mov word [ebx + 0x3c], cx
mov dword [ebx + 0x34], ecx
add eax, ecx
pop edx
movzx edi, byte [eax]
mov esi, dword [ebx + 0x20]
shl esi, 5
xor esi, edi
and esi, 0x7fff
inc eax
dec edx
mov dword [ebx + 0x20], esi
jne 0x413f32
cmp byte [ebp + 0x24], 0
je 0x413f59
mov edi, ebx
call fcn.004137a6
jmp 0x413f68
xor eax, eax
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x413f5b
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.00412c2a
push 0x4b
pop edx
call fcn.00412c2a
call fcn.00413c69
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x413fa2
mov edi, dword [ebx + 0x14]
mov ecx, 0x2000
lea esi, [edi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x41bc30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
push 0x42b888
push 0
push str.debug
push 0x42b89c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x42c], eax
mov ecx, dword [ebp - 4]
call fcn.0041c630
cmp dword [ebp + 8], 0
je 0x41bc6f
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
jmp 0x41bc76
mov dword [ebp - 8], 0x42b8a4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x20c
push ecx
call fcn.0041e1c0
add esp, 8
push 0x42b8ac
mov edx, dword [ebp - 4]
add edx, 0x20c
push edx
call fcn.0041e1c0
add esp, 8
cmp dword [ebp + 8], 0
je 0x41bcb1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jmp 0x41bcb8
mov dword [ebp - 0xc], 0x42b8b4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x310
push edx
call fcn.0041e1c0
add esp, 8
push 0x42b8bc
mov eax, dword [ebp - 4]
add eax, 0x310
push eax
call fcn.0041e1c0
add esp, 8
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x20c
push ecx
call fcn.0041ea1b
add esp, 8
test eax, eax
jge 0x41bd78
mov ecx, dword [ebp - 4]
call fcn.0041c630
push str...us_
mov edx, dword [ebp - 4]
add edx, 0x20c
push edx
call fcn.0041e1c0
add esp, 8
cmp dword [ebp + 8], 0
je 0x41bd29
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jmp 0x41bd30
mov dword [ebp - 0x10], 0x42b8cc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x20c
push edx
call fcn.0041e1c0
add esp, 8
push 0x42b8d4
mov eax, dword [ebp - 4]
add eax, 0x20c
push eax
call fcn.0041e1c0
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 0x20c
push ecx
mov edx, dword [ebp - 4]
add edx, 0x310
push edx
call fcn.0041e1b0
add esp, 8
mov eax, dword [ebp - 4]
add eax, 0x20c
push eax
push 0x200
mov ecx, dword [ebp - 4]
add ecx, 0xc
push ecx
push 0x42b8d9
push str.Signature
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
push str.DVR_TEXT
call fcn.0042828e
add esp, 8
test eax, eax
je 0x41bdce
mov eax, dword [ebp - 4]
mov byte [eax + 0x20c], 0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x310], 0
mov ecx, dword [ebp - 4]
call fcn.0041c0c0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x41c0c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x42f610]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], str.Fonts
mov dword [ebp - 8], str.Fonts.win95
mov ecx, dword [ebp - 0x154]
call fcn.0041c070
test eax, eax
jne 0x41c14f
mov eax, dword [ebp - 0x154]
add eax, 0x20c
push eax
push 0x100
lea ecx, [ebp - 0x110]
push ecx
push 0x42b960
mov edx, dword [str.Normal]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx ecx, byte [ebp - 0x110]
test ecx, ecx
je 0x41c139
mov edx, dword [ebp - 8]
mov dword [ebp - 0x150], edx
push str.MS_Sans_Serif_8
lea eax, [ebp - 0x110]
push eax
call fcn.0041e1b0
add esp, 8
jmp 0x41c163
push str.Tahoma_10
lea ecx, [ebp - 0x110]
push ecx
call fcn.0041e1b0
add esp, 8
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x154]
call fcn.0041be80
test eax, eax
je 0x41c199
lea ecx, [ebp - 0x14c]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edx, dword [ebp - 0x154]
mov dword [edx + 0x428], eax
mov dword [ebp - 4], 0
jmp 0x41c1ab
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jae 0x41c24f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x154]
mov dword [edx + ecx*4 + 0x414], 0
mov eax, dword [ebp - 0x154]
add eax, 0x20c
push eax
push 0x100
lea ecx, [ebp - 0x110]
push ecx
push 0x42b97e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42f1dc]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x110]
test edx, edx
jne 0x41c20b
jmp 0x41c1a2
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x14c]
push ecx
mov ecx, dword [ebp - 0x154]
call fcn.0041be80
test eax, eax
jne 0x41c22d
jmp 0x41c1a2
lea edx, [ebp - 0x14c]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x154]
mov dword [edx + ecx*4 + 0x414], eax
jmp 0x41c1a2
mov eax, 1
mov ecx, dword [ebp - 0xc]
call fcn.0042175e
mov esp, ebp
pop ebp
ret
Function at 0x41c3a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x42f610]
mov dword [ebp - 4], eax
mov dword [ebp - 0x40c], ecx
mov eax, dword [ebp - 0x40c]
movsx ecx, byte [eax + 0x20c]
test ecx, ecx
jne 0x41c3cf
xor eax, eax
jmp 0x41c4e7
cmp dword [ebp + 0x10], 0
je 0x41c3df
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx]
test eax, eax
jne 0x41c3e6
xor eax, eax
jmp 0x41c4e7
cmp dword [ebp + 0xc], 0
jg 0x41c3f3
xor eax, eax
jmp 0x41c4e7
cmp dword [ebp + 0x14], 0
jne 0x41c400
mov dword [ebp + 0x14], str.Global
mov ecx, dword [ebp - 0x40c]
add ecx, 0x20c
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x42b987
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x41c48b
cmp dword [ebp + 0x18], 0
je 0x41c464
cmp dword [ebp + 0x1c], 0
je 0x41c464
push 1
mov edx, dword [ebp - 0x40c]
mov eax, dword [edx + 0x428]
push eax
push 0x30
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x40c]
add eax, 0x310
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x42b988
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp - 0x40c]
cmp dword [edx + 0x42c], 0
je 0x41c4e4
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x41c4e4
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x40c]
add ecx, 0x20c
push ecx
push str.Text_string_is_not_exist._nprofile_:__s_nsection_:__s_nkey_:__s
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x40
push str.Information
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0042175e
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41d850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
jae 0x41d883
xor eax, eax
jmp 0x41d888
mov eax, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41ea3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041f0f7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41ea5e
test byte [esp + 8], 2
je 0x41ea5e
call fcn.0041f0e5
mov dword [eax], 0xd
call fcn.0041f0ee
mov dword [eax], 5
jmp 0x41ea37
xor eax, eax
ret

Function at 0x41ed10
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x42bb30
call fcn.00421be8
mov eax, dword [0x42f610]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x41ee1d
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x41edce
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00421190
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x41edbb
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x41ee1d
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x41ee1d
mov al, byte [edi]
cmp al, 0x5c
je 0x41eddc
cmp al, 0x2f
jne 0x41ede1
cmp al, byte [edi + 1]
je 0x41ee17
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.004226bb
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x41ee1d
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041f0f7
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x41ee39
push edi
call fcn.0041f074
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0042175e
call fcn.00421c23
ret

Function at 0x41ee53
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41ee81
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41ee86
cmp eax, 1
je 0x41ee86
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41ee8a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42f610]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x41ef02
push ebx
call fcn.0041ee53
test eax, eax
pop ecx
jne 0x41eed1
call fcn.0041f0ee
mov dword [eax], 0xf
call fcn.0041f0e5
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0042175e
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x41ef14
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41eec4
inc eax
cmp eax, 0x104
ja 0x41eec4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41ef4c
cmp eax, dword [ebp + 0x10]
jg 0x41ef2f
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041f062
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41ef61
call fcn.0041f0e5
mov dword [eax], 0xc
jmp 0x41eec4
cmp eax, dword [ebp + 0x10]
jle 0x41ef61
call fcn.0041f0e5
mov dword [eax], 0x22
jmp 0x41eec4
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0041e1b0
pop ecx
pop ecx
jmp 0x41eec6
Function at 0x41f4fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41f6cf
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x433920]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41f6cf
test cl, 0x48
je 0x41f566
cmp byte [eax + 5], 0xa
je 0x41f566
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f5b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41f5a0
call fcn.0041f0e5
mov dword [eax], 9
call fcn.0041f0ee
mov dword [eax], esi
jmp 0x41f5b0
cmp eax, 0x6d
je 0x41f6cf
push eax
call fcn.0041f0f7
pop ecx
or eax, 0xffffffff
jmp 0x41f6d1
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41f6ca
test eax, eax
je 0x41f5df
cmp byte [ebx], 0xa
jne 0x41f5df
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41f5e8
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41f6c4
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41f6b4
cmp al, 0xd
je 0x41f61a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41f6a6
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41f634
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41f62f
add dword [ebp + 0x10], 2
jmp 0x41f688
mov dword [ebp + 0x10], eax
jmp 0x41f6a2
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f65c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41f6a2
cmp dword [ebp - 0xc], 0
je 0x41f6a2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41f67d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41f688
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41f6a5
cmp ebx, dword [ebp + 0xc]
jne 0x41f68d
cmp byte [ebp - 1], 0xa
jne 0x41f68d
mov byte [ebx], 0xa
jmp 0x41f6a5
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fb18
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41f6a6
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41f5fe
jmp 0x41f6c4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41f6c4
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41f6d1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret