joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x2008
call fcn.00408570
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2024]
mov eax, 0x2000
push edi
mov word [esp + 0x18], ax
call sym.downcase_dir.exe__sys_error_none_4
mov esi, dword [esp + 0x2020]
mov edx, 0x400
mov ebp, dword [esp + 0x201c]
lea ebx, [esi + 0x50c]
mov ecx, 0x100
mov word [ebx], dx
mov word [esi + 4], dx
mov word [esi + 0x408], cx
cmp word [ebp + 2], 0
jg 0x40147f
push edi
push 4
push 0xfffffffffffffffd
call sym.downcase_dir.exe__sys_stat_set_12
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2008
ret 0xc
push ebx
push ebp
call sym.downcase_dir.exe__string_treename_8
lea eax, [esi + 4]
push eax
push ebp
call sym.downcase_dir.exe__string_copy_8
lea eax, [esi + 0x408]
push eax
push 0x432a90
push ebp
call sym.downcase_dir.exe__string_generic_fnam_12
lea eax, [esp + 0x14]
push eax
push ebx
call sym.downcase_dir.exe__string_copy_8
lea eax, [esp + 0x14]
push eax
call sym.downcase_dir.exe__string_terminate_null_4
lea eax, [esp + 0x18]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4014db
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2008
ret 0xc
test al, 0x10
jne 0x4014fd
push edi
push 2
push 0xfffffffffffffffd
call sym.downcase_dir.exe__sys_stat_set_12
push edi
push ebx
call sym.downcase_dir.exe__sys_stat_parm_vstr_8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2008
ret 0xc
movsx eax, word [esp + 0x16]
cmp byte [esp + eax + 0x17], 0x5c
je 0x401515
push 0x5c
lea eax, [esp + 0x18]
push eax
call sym.downcase_dir.exe__string_append1_8
push 0x2a
lea eax, [esp + 0x18]
push eax
call sym.downcase_dir.exe__string_append1_8
lea eax, [esp + 0x14]
push eax
call sym.downcase_dir.exe__string_terminate_null_4
lea eax, [esp + 0x10]
push eax
push 0x144
call sym.downcase_dir.exe__sys_mem_alloc_8
push 0
push 0x432ae0
push 0x432a90
push 0x432a90
push dword [esp + 0x20]
call sym.downcase_dir.exe__sys_mem_error_20
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call sub.KERNEL32.dll_FindFirstFileA
mov dword [esi + 0x920], eax
cmp eax, 0xffffffff
jne 0x4015d7
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
cmp eax, 0x12
je 0x4015b9
cmp word [esi + 0x50e], 3
jne 0x4015a2
mov al, byte [esi + 0x510]
sub al, 0x41
cmp al, 0x19
ja 0x4015a2
cmp byte [esi + 0x511], 0x3a
jne 0x4015a2
cmp byte [esi + 0x512], 0x5c
je 0x4015b9
lea eax, [esp + 0x10]
push eax
call sym.downcase_dir.exe__sys_mem_dealloc_4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2008
ret 0xc
push edi
call sym.downcase_dir.exe__sys_error_none_4
mov eax, dword [esp + 0x10]
mov byte [eax + 0x140], 0
mov eax, dword [esp + 0x10]
mov byte [eax + 0x141], 1
jmp 0x4015ed
mov eax, dword [esp + 0x10]
mov byte [eax + 0x140], 1
mov eax, dword [esp + 0x10]
mov byte [eax + 0x141], 0
mov eax, dword [esp + 0x10]
pop edi
mov word [esi], 0x101
mov byte [esi + 2], 1
mov dword [esi + 0x910], 0
mov dword [esi + 0x914], 0xfffffffe
mov dword [esi + 0x918], eax
mov dword [esi + 0x91c], 0x4018c0
pop esi
pop ebp
pop ebx
add esp, 0x2008
ret 0xc
Function at 0x401660
Capabilities:
Move file

Disassembly:
sub esp, 0x808
push esi
mov esi, dword [esp + 0x818]
mov eax, 0x400
push esi
mov word [esp + 0x40c], ax
mov word [esp + 8], ax
call sym.downcase_dir.exe__sys_error_none_4
lea eax, [esp + 0x408]
push eax
push dword [esp + 0x814]
call sym.downcase_dir.exe__string_treename_8
lea eax, [esp + 0x408]
push eax
call sym.downcase_dir.exe__string_terminate_null_4
lea eax, [esp + 4]
push eax
push dword [esp + 0x818]
call sym.downcase_dir.exe__string_treename_8
lea eax, [esp + 4]
push eax
call sym.downcase_dir.exe__string_terminate_null_4
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x410]
push eax
call sub.KERNEL32.dll_MoveFileA
test al, al
jne 0x4016e0
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x808
ret 0xc

Function at 0x401820
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x91c]
test eax, eax
jne 0x40188b
test byte [esi], 2
je 0x40185e
cmp byte [esi + 1], al
jne 0x40185e
push dword [esi + 0x920]
call sub.KERNEL32.dll_SetEndOfFile
test al, al
jne 0x40185e
push 0
push 0x432ae8
push str.truncate
push 0x42cef8
call sym.downcase_dir.exe__sys_sys_error_bomb_16
cmp byte [esi + 1], 6
je 0x401898
push dword [esi + 0x920]
call fcn.004090f9
test al, al
jne 0x401898
push 0
push 0x432ae8
push str.close
push 0x42cef8
call sym.downcase_dir.exe__sys_sys_error_bomb_16
jmp 0x401898
push esi
call eax
mov dword [esi + 0x91c], 0
add esi, 0x918
cmp dword [esi], 0
je 0x4018a9
push esi
call sym.downcase_dir.exe__sys_mem_dealloc_4
pop esi
ret 4

Function at 0x401c50
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 0x7530
push edi
movzx ecx, word [esi + 2]
lea edi, [esi + 4]
mov eax, ecx
cmp cx, bx
jle 0x401c86
movsx eax, cx
push 0x432af0
sub eax, ebx
push eax
push 0x42d138
call fcn.00401cd0
movzx eax, word [esi + 2]
add esp, 0xc
test ax, ax
jle 0x401c99
cmp ax, bx
jge 0x401c95
movsx esi, ax
jmp 0x401c9b
mov esi, ebx
jmp 0x401c9b
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
push 1
push edi
call fcn.0040be61
push 0x42d13c
call fcn.00401cd0
add esp, 0x18
pop edi
pop esi
pop ebx
ret 4

Function at 0x4026d0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x1070
call fcn.00408570
call sym.downcase_dir.exe__sys_init_0
call sym.downcase_dir.exe__util_init_0
mov eax, 4
mov dword [0x435be4], 0x400
mov word [esp], ax
movzx eax, word [0x42d1fc]
push eax
push dword [esp + 0x1080]
mov dword [0x435fe8], 0x100
push 0x435fe8
mov dword [0x4360ec], 0x20
mov dword [0x433bc0], 0x2000
call sym.downcase_dir.exe__string_vstring_12
mov byte [0x432af4], 1
call sub.KERNEL32.dll_GetCommandLineA
test eax, eax
je 0x402751
movzx ecx, word [0x42d1fc]
push ecx
push eax
push 0x433bc0
call sym.downcase_dir.exe__string_vstring_12
mov eax, 1
mov word [0x435bc4], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x435bc4
push 0x433bc0
call sym.downcase_dir.exe__string_token_16
mov ax, word [0x435bc4]
mov word [0x435bc6], ax
mov dword [0x435be0], 1
mov byte [0x436110], 0
add esp, 0x1070
ret 0xc
Function at 0x404c00
Capabilities:
Get disk information

Disassembly:
push ecx
cmp byte [0x432d08], 0
jne 0x404cdf
mov al, byte [0x432d09]
push ebx
mov ebx, 0x41
mov dword [0x432d0c], 0x30004
mov word [0x432d11], 0x5c3a
mov byte [0x432d13], al
mov byte [0x432d08], 1
mov byte [esp + 7], 0x20
mov byte [esp + 6], 0x20
mov byte [0x432d10], bl
nop dword [eax + eax]
push 0x432d10
call sub.KERNEL32.dll_GetDriveTypeA
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x404c62
jmp dword [eax*4 + 0x404cf4]
mov al, byte [esp + 7]
mov dl, byte [esp + 6]
cmp al, 0x20
jne 0x404ca2
mov al, byte [0x432d10]
mov byte [esp + 7], al
jmp 0x404ca2
cmp byte [esp + 6], 0x20
movzx edx, byte [esp + 6]
movzx eax, byte [0x432d10]
cmove edx, eax
mov byte [esp + 6], dl
jmp 0x404c9e
mov dl, byte [esp + 6]
mov al, byte [esp + 7]
inc ebx
mov byte [0x432d10], bl
cmp ebx, 0x5a
jle 0x404c50
cmp al, 0x20
je 0x404cca
pop ebx
push dword [esp + 8]
mov byte [0x432d10], al
push 0x432d0c
call sym.downcase_dir.exe__string_copy_8
pop ecx
ret 4
cmp dl, 0x20
movzx eax, dl
mov ecx, 0x43
cmovne ecx, eax
mov byte [0x432d10], cl
pop ebx
push dword [esp + 8]
push 0x432d0c
call sym.downcase_dir.exe__string_copy_8
pop ecx
ret 4
Function at 0x4050d0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x106c
call fcn.00408570
cmp byte [0x432b68], 0
jne 0x4051f9
lea eax, [esp + 4]
push eax
call sym.downcase_dir.exe__sys_error_none_4
push 0x432b6c
mov word [esp + 4], 0x7f7f
push dword [esp + 4]
mov word [0x432b6e], 0
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
je 0x4051f2
push ebx
mov word [esp + 4], 1
mov ebx, 1
push 0x432b6c
push dword [esp + 8]
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x40517f
call sub.WS2_32.dll_WSACleanup
test eax, eax
je 0x40517f
call sub.WS2_32.dll_WSAGetLastError
push 0
push 0x432d14
push str.err_netclose
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push 0x42ee20
push eax
call sym.downcase_dir.exe__sys_error_abort_20
mov al, byte [0x432b6e]
test al, al
jne 0x4051b7
inc ebx
mov byte [esp + 4], bl
cmp ebx, 0x7f
jle 0x405132
push 0
push 0x432d14
push str.err_netversion
push 0x42ee20
call sym.downcase_dir.exe__sys_message_bomb_16
pop ebx
mov byte [0x432b68], 1
add esp, 0x106c
ret
mov byte [esp + 4], al
mov al, byte [0x432b6f]
push 0x432b6c
mov byte [esp + 9], al
push dword [esp + 8]
call sub.WS2_32.dll_WSAStartup
push 0
push 0x432d14
push str.err_netstart
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push 0x42ee20
push eax
call sym.downcase_dir.exe__sys_error_abort_20
pop ebx
mov byte [0x432b68], 1
add esp, 0x106c
ret

Function at 0x4056f0
Capabilities:
Write file on windows

Disassembly:
push 1
call fcn.0040bbcc
push eax
push 0x21
push 1
push str._Program_aborted_on_error._
call fcn.0040be61
push 0x42f134
call fcn.00401cd0
add esp, 0x18
jmp sym.downcase_dir.exe__sys_exit_error_0

Function at 0x405750
Capabilities:
Get hostname

Disassembly:
mov eax, 0x146c
call fcn.00408570
lea eax, [esp]
mov dword [esp], 0x400
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_GetComputerNameA
test al, al
jne 0x4057aa
lea eax, [esp + 0x404]
push eax
call sym.downcase_dir.exe__sys_error_none_4
call sub.KERNEL32.dll_GetLastError
push 0
push 0x432d80
push str.node_name_get
mov dword [esp + 0x41c], eax
lea eax, [esp + 0x410]
push 0x42f138
push eax
call sym.downcase_dir.exe__sys_error_abort_20
push dword [esp]
lea eax, [esp + 8]
push eax
push dword [esp + 0x1478]
call sym.downcase_dir.exe__string_vstring_12
push dword [esp + 0x1470]
call sym.downcase_dir.exe__string_downcase_4
add esp, 0x146c
ret 4
Function at 0x405840
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x884
lea eax, [esp]
push dword [0x42f1dc]
push eax
push dword [esp + 0x890]
call sym.downcase_dir.exe__string_t_c_12
push dword [0x42f1e0]
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x4058a4
push dword [esp + 0x890]
push 2
push 0xffffffffffffffff
call sym.downcase_dir.exe__sys_stat_set_12
push dword [esp + 0x890]
push dword [esp + 0x88c]
call sym.downcase_dir.exe__sys_stat_parm_vstr_8
add esp, 0x884
ret 0xc
movzx eax, word [0x42f1e4]
push eax
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x894]
call sym.downcase_dir.exe__string_vstring_12
push dword [esp + 0x890]
call sym.downcase_dir.exe__sys_error_none_4
add esp, 0x884
ret 0xc

Function at 0x4058e0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x884
push esi
mov esi, dword [esp + 0x894]
push esi
call sym.downcase_dir.exe__sys_error_none_4
push 0x84
lea eax, [esp + 8]
push eax
push dword [esp + 0x894]
call sym.downcase_dir.exe__string_t_c_12
push 0x800
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x898]
call sym.downcase_dir.exe__string_t_c_12
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_SetEnvironmentVariableA
test al, al
jne 0x405941
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x884
ret 0xc

Function at 0x405950
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x88
push esi
push dword [0x42f1d8]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x98]
call sym.downcase_dir.exe__string_t_c_12
mov al, byte [0x432d84]
mov esi, dword [esp + 0x94]
push esi
mov byte [esp + 0xb], al
call sym.downcase_dir.exe__sys_error_none_4
lea eax, [esp + 7]
push eax
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_SetEnvironmentVariableA
test al, al
jne 0x40599f
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x88
ret 8
Function at 0x4059b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x58
push esi
mov esi, dword [esp + 0x68]
mov eax, 0x50
push edi
mov word [esp + 0xc], ax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x68]
mov byte [esi], 0
call sym.downcase_dir.exe__string_copy_8
lea eax, [esp + 0xc]
push eax
call sym.downcase_dir.exe__string_terminate_null_4
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x64]
push edi
push eax
push 1
call fcn.00405aa0
push edi
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x405a8e
push ebx
mov ebx, dword [esp + 0x6c]
movsx eax, word [ebx]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
push eax
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x7c]
call sub.ADVAPI32.dll_RegQueryValueExA
mov ecx, dword [esp + 0x70]
mov dword [edi + 0xc], eax
mov word [ebx + 2], cx
cmp dword [edi + 0xc], 0xea
jne 0x405a43
push edi
call sym.downcase_dir.exe__sys_error_none_4
jmp 0x405a5e
test cx, cx
jle 0x405a5e
movsx eax, cx
mov al, byte [eax + ebx + 3]
cmp al, byte [0x432d85]
jne 0x405a5e
lea eax, [ecx - 1]
mov word [ebx + 2], ax
push dword [esp + 0x68]
call sub.ADVAPI32.dll_RegCloseKey
push edi
call sym.downcase_dir.exe__sys_error_4
pop ebx
test al, al
jne 0x405a8e
mov eax, dword [esp + 8]
sub eax, 1
je 0x405a8b
sub eax, 1
jne 0x405a8e
or byte [esi], 2
pop edi
pop esi
add esp, 0x58
ret 0x10
or byte [esi], 1
pop edi
pop esi
add esp, 0x58
ret 0x10

Function at 0x405b90
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x54
mov eax, 0x50
push esi
mov word [esp + 4], ax
lea eax, [esp + 4]
push eax
push dword [esp + 0x60]
call sym.downcase_dir.exe__string_copy_8
lea eax, [esp + 4]
push eax
call sym.downcase_dir.exe__string_terminate_null_4
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x5c]
push esi
push eax
push 2
call fcn.00405aa0
push esi
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x405be8
push esi
call sym.downcase_dir.exe__sys_error_none_4
lea eax, [esp + 8]
push eax
push dword [esp + 0x60]
call sub.ADVAPI32.dll_RegDeleteValueA
mov dword [esi + 0xc], eax
pop esi
add esp, 0x54
ret 8
Function at 0x405bf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2068
call fcn.00408570
mov eax, 0x50
mov byte [esp + 3], 0
push ebx
mov bh, byte [esp + 0x2078]
mov word [esp + 0x14], ax
mov eax, 0x2000
push esi
mov word [esp + 0x6c], ax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x2078]
call sym.downcase_dir.exe__string_copy_8
lea eax, [esp + 0x18]
push eax
call sym.downcase_dir.exe__string_terminate_null_4
mov esi, dword [esp + 0x2080]
lea eax, [esp + 0xc]
push esi
push eax
push 3
call fcn.00405aa0
push esi
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x405dbc
movsx eax, word [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegQueryValueExA
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov word [esp + 0x6e], cx
cmp eax, 0xea
jne 0x405c9c
push esi
call sym.downcase_dir.exe__sys_error_none_4
jmp 0x405cb8
test cx, cx
jle 0x405cb8
movsx eax, cx
mov al, byte [esp + eax + 0x6f]
cmp al, byte [0x432d86]
jne 0x405cb8
lea eax, [ecx - 1]
mov word [esp + 0x6e], ax
mov bl, bh
push esi
and bl, 1
call sym.downcase_dir.exe__sys_error_4
test al, al
je 0x405cd1
mov dword [esp + 0x10], 1
jmp 0x405d01
mov eax, dword [esp + 0x10]
test bl, bl
je 0x405cde
cmp eax, 1
jne 0x405d01
test bh, 2
je 0x405ce8
cmp eax, 2
jne 0x405d01
push dword [esp + 0x2078]
lea eax, [esp + 0x70]
push eax
call sym.downcase_dir.exe__string_equal_8
test al, al
jne 0x405db3
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x207c]
call sym.downcase_dir.exe__string_copy_8
lea eax, [esp + 0x6c]
push eax
call sym.downcase_dir.exe__string_terminate_null_4
mov ecx, dword [esp + 0x10]
test bl, bl
mov eax, 1
cmovne ecx, eax
test bh, 2
mov eax, 2
cmovne ecx, eax
movsx eax, word [esp + 0x6e]
inc eax
mov dword [esp + 0x10], ecx
push eax
lea eax, [esp + 0x74]
push eax
push ecx
push dword [0x432d88]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegSetValueExA
push esi
mov dword [esi + 0xc], eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x405d9b
push dword [esp + 0xc]
mov byte [esp + 0xf], 1
call sub.ADVAPI32.dll_RegFlushKey
push esi
mov dword [esi + 0xc], eax
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x405d9b
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
mov dword [esi + 0xc], eax
mov al, 1
pop esi
pop ebx
add esp, 0x2068
ret 0x10
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
mov al, byte [esp + 0xb]
pop esi
pop ebx
add esp, 0x2068
ret 0x10
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
pop esi
xor al, al
pop ebx
add esp, 0x2068
ret 0x10
Function at 0x406440
Capabilities:
Write file on windows

Disassembly:
push 0x42f320
call sym.downcase_dir.exe__string_upcase_4
push 0x42f2c8
call sym.downcase_dir.exe__string_upcase_4
push 1
call fcn.0040bbcc
push eax
push 8
push 1
push str.Status__
call fcn.0040be61
mov ax, word [0x42f2ca]
add esp, 0x14
cmp ax, 0x50
jle 0x406496
cwde
push 0x432d91
sub eax, 0x50
push eax
push 0x42f904
call fcn.00401cd0
mov ax, word [0x42f2ca]
add esp, 0xc
push esi
test ax, ax
jle 0x4064ae
cmp ax, 0x50
jge 0x4064a7
movsx esi, ax
jmp 0x4064b0
mov esi, 0x50
jmp 0x4064b0
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
push 1
push 0x42f2cc
call fcn.0040be61
push 1
call fcn.0040bbcc
push eax
push 0x10
push 1
push str.__in_subsystem__
call fcn.0040be61
mov ax, word [0x42f322]
mov esi, 0x400
add esp, 0x28
cmp ax, si
jle 0x40650a
cwde
push 0x432d92
sub eax, esi
push eax
push 0x42f91c
call fcn.00401cd0
mov ax, word [0x42f322]
add esp, 0xc
test ax, ax
jle 0x406519
cmp ax, si
jge 0x40651b
movsx esi, ax
jmp 0x40651b
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
push 1
push 0x42f324
call fcn.0040be61
push 1
call fcn.0040bbcc
push eax
push 2
push 1
push 0x42f920
call fcn.0040be61
push 0x42f924
call fcn.00401cd0
add esp, 0x2c
mov byte [0x42f31c], 1
pop esi
ret

Function at 0x406560
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
mov ebx, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x114]
mov word [esi + 2], ax
test ebx, ebx
jne 0x40658d
pop esi
xor al, al
pop ebx
add esp, 0x104
ret 8
push ebp
push edi
cmp word [esi], ax
jle 0x406693
push 0
push dword [0x432d94]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push dword [0x42f978]
push ebx
push 0
push 0x11ff
call sub.KERNEL32.dll_FormatMessageA
test eax, eax
je 0x4065d9
push eax
push dword [esp + 0x14]
push esi
call sym.downcase_dir.exe__string_vstring_12
push dword [esp + 0x10]
call sub.KERNEL32.dll_LocalFree
jmp 0x40668d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4065e7
push eax
call sub.KERNEL32.dll_LocalFree
push str.RASAPI32.DLL
mov ebp, 1
call sub.KERNEL32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x40662c
push ebp
call fcn.0040bbcc
push eax
push 0x1c
push ebp
push str.Could_not_load_RASAIP32.DLL.
call fcn.0040be61
push 0x42f9b4
call fcn.00401cd0
add esp, 0x18
mov al, 1
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x104
ret 8
push str.RasGetErrorStringA
push edi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x406660
push 1
call fcn.0040bbcc
push eax
push 0x2e
push 1
push str.Could_not_find_RasGetErrorStringA_entry_point.
call fcn.0040be61
push 0x42f9e8
call fcn.00401cd0
add esp, 0x18
jmp 0x406670
push dword [0x42f98c]
lea ecx, [esp + 0x18]
push ecx
push ebx
call eax
mov ebp, eax
push edi
call sub.KERNEL32.dll_FreeLibrary
test ebp, ebp
jne 0x406693
movzx eax, word [0x42f990]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call sym.downcase_dir.exe__string_vstring_12
push esi
call sym.downcase_dir.exe__string_unpad_4
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x104
ret 8
Function at 0x406ae0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
call sym.downcase_dir.exe__sys_error_none_4
push dword [0x42fa44]
push dword [esp + 0xc]
call sub.KERNEL32.dll_TerminateProcess
test al, al
jne 0x406b06
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
ret 8

Function at 0x406b10
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x480c
call fcn.00408570
push esi
mov esi, dword [esp + 0x4818]
mov eax, 0x400
push edi
mov edi, dword [esp + 0x4818]
mov word [esp + 0xc], ax
mov eax, 0x2000
mov word [esp + 0x2810], ax
lea eax, [esp + 0xc]
push esi
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push edi
call sym.downcase_dir.exe__string_token_16
push esi
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x406c59
lea eax, [esp + 0x2810]
push eax
lea eax, [esp + 0x10]
push eax
call sym.downcase_dir.exe__string_treename_8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x2814]
push eax
call sym.downcase_dir.exe__string_token_make_8
push 0x400
lea eax, [esp + 0x414]
push eax
lea eax, [esp + 0x14]
push eax
call sym.downcase_dir.exe__string_t_c_12
xor eax, eax
mov word [esp + 0x2812], ax
lea eax, [esp + 0xc]
push esi
push eax
lea eax, [esp + 0x10]
push eax
push edi
call sym.downcase_dir.exe__string_token_16
push esi
call sym.downcase_dir.exe__string_eos_4
test al, al
jne 0x406c03
push esi
call sym.downcase_dir.exe__sys_error_4
test al, al
jne 0x406c59
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x2814]
push eax
call sym.downcase_dir.exe__string_append_token_8
push esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push edi
call sym.downcase_dir.exe__string_token_16
push esi
call sym.downcase_dir.exe__string_eos_4
test al, al
je 0x406bc8
push 0x2000
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x2818]
push eax
call sym.downcase_dir.exe__string_t_c_12
push dword [0x42fb48]
lea eax, [esp + 0x814]
push 0x432dac
push eax
lea eax, [esp + 0x41c]
push eax
push 0x432dac
push dword [0x432da8]
call sub.SHELL32.dll_ShellExecuteA
cmp eax, 0x20
ja 0x406c59
push esi
add eax, 0x64
push eax
push 0xffffffffffffffff
call sym.downcase_dir.exe__sys_stat_set_12
pop edi
pop esi
add esp, 0x480c
ret 8