joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401620
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x91c]
test eax, eax
jne 0x40168b
test byte [esi], 2
je 0x40165e
cmp byte [esi + 1], al
jne 0x40165e
push dword [esi + 0x920]
call sub.KERNEL32.dll_SetEndOfFile
test al, al
jne 0x40165e
push 0
push 0x4936b0
push str.truncate
push 0x42bb90
call sym.afont_font.exe__sys_sys_error_bomb_16
cmp byte [esi + 1], 6
je 0x401698
push dword [esi + 0x920]
call fcn.0040a874
test al, al
jne 0x401698
push 0
push 0x4936b0
push str.close
push 0x42bb90
call sym.afont_font.exe__sys_sys_error_bomb_16
jmp 0x401698
push esi
call eax
mov dword [esi + 0x91c], 0
add esi, 0x918
cmp dword [esi], 0
je 0x4016a9
push esi
call sym.afont_font.exe__sys_mem_dealloc_4
pop esi
ret 4

Function at 0x401950
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call sym.afont_font.exe__sys_error_none_4
push dword [0x4936b4]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
mov ebx, dword [esp + 0x18]
push eax
push edi
push dword [esp + 0x1c]
push dword [ebx + 0x920]
call sub.KERNEL32.dll_WriteFile
test al, al
jne 0x401992
call sub.KERNEL32.dll_GetLastError
pop edi
mov dword [esi + 0xc], eax
pop esi
pop ebx
ret 0x10
cmp dword [esp + 0x1c], edi
je 0x4019c0
push esi
push 9
push 0xfffffffffffffffd
call sym.afont_font.exe__sys_stat_set_12
push esi
lea eax, [ebx + 0x50c]
push eax
call sym.afont_font.exe__sys_stat_parm_vstr_8
push esi
push edi
call sym.afont_font.exe__sys_stat_parm_int_8
push esi
push dword [esp + 0x20]
call sym.afont_font.exe__sys_stat_parm_int_8
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x401ac0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call sym.afont_font.exe__sys_error_none_4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x401b59
push ebx
push dword [0x49370c]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push edi
push dword [esp + 0x24]
push dword [eax + 0x920]
call sub.KERNEL32.dll_ReadFile
mov ebx, dword [esp + 0x1c]
test al, al
jne 0x401b1b
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x401b25
mov dword [esi + 0xc], eax
mov eax, ebx
pop ebx
pop edi
pop esi
mov dword [eax], 0
ret 0x14
mov eax, dword [esp + 0x20]
mov dword [ebx], eax
test eax, eax
jne 0x401b3b
push esi
push 1
push 0xfffffffffffffffd
mov dword [ebx], 0
call sym.afont_font.exe__sys_stat_set_12
pop ebx
pop edi
pop esi
ret 0x14
cmp eax, edi
jae 0x401b58
push esi
push 0xa
push 0xfffffffffffffffd
call sym.afont_font.exe__sys_stat_set_12
push esi
push edi
call sym.afont_font.exe__sys_stat_parm_int_8
push esi
push dword [ebx]
call sym.afont_font.exe__sys_stat_parm_int_8
pop ebx
pop edi
pop esi
ret 0x14
Function at 0x402ba0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x1070
call fcn.00409f50
call sym.afont_font.exe__sys_init_0
call sym.afont_font.exe__util_init_0
mov eax, 4
mov dword [0x4967a4], 0x400
mov word [esp], ax
movzx eax, word [0x42bda4]
push eax
push dword [esp + 0x1080]
mov dword [0x496ba8], 0x100
push 0x496ba8
mov dword [0x496cac], 0x20
mov dword [0x494780], 0x2000
call sym.afont_font.exe__string_vstring_12
mov byte [0x49371c], 1
call sub.KERNEL32.dll_GetCommandLineA
test eax, eax
je 0x402c21
movzx ecx, word [0x42bda4]
push ecx
push eax
push 0x494780
call sym.afont_font.exe__string_vstring_12
mov eax, 1
mov word [0x496784], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x496784
push 0x494780
call sym.afont_font.exe__string_token_16
mov ax, word [0x496784]
mov word [0x496786], ax
mov dword [0x4967a0], 1
mov byte [0x496cd0], 0
add esp, 0x1070
ret 0xc
Function at 0x404c80
Capabilities:
Write file on windows

Disassembly:
push 1
call fcn.0040d33c
push eax
push 0x21
push 1
push str._Program_aborted_on_error._
call fcn.0040d5d1
push 0x42c034
call fcn.004015f0
add esp, 0x18
jmp sym.afont_font.exe__sys_exit_error_0
Function at 0x404fa0
Capabilities:
Write file on windows

Disassembly:
push 0x42c090
call sym.afont_font.exe__string_upcase_4
push 0x42c038
call sym.afont_font.exe__string_upcase_4
push 1
call fcn.0040d33c
push eax
push 8
push 1
push str.Status__
call fcn.0040d5d1
mov ax, word [0x42c03a]
add esp, 0x14
cmp ax, 0x50
jle 0x404ff6
cwde
push 0x493729
sub eax, 0x50
push eax
push 0x42c674
call fcn.004015f0
mov ax, word [0x42c03a]
add esp, 0xc
push esi
test ax, ax
jle 0x40500e
cmp ax, 0x50
jge 0x405007
movsx esi, ax
jmp 0x405010
mov esi, 0x50
jmp 0x405010
xor esi, esi
push 1
call fcn.0040d33c
push eax
push esi
push 1
push 0x42c03c
call fcn.0040d5d1
push 1
call fcn.0040d33c
push eax
push 0x10
push 1
push str.__in_subsystem__
call fcn.0040d5d1
mov ax, word [0x42c092]
mov esi, 0x400
add esp, 0x28
cmp ax, si
jle 0x40506a
cwde
push 0x49372a
sub eax, esi
push eax
push 0x42c68c
call fcn.004015f0
mov ax, word [0x42c092]
add esp, 0xc
test ax, ax
jle 0x405079
cmp ax, si
jge 0x40507b
movsx esi, ax
jmp 0x40507b
xor esi, esi
push 1
call fcn.0040d33c
push eax
push esi
push 1
push 0x42c094
call fcn.0040d5d1
push 1
call fcn.0040d33c
push eax
push 2
push 1
push 0x42c690
call fcn.0040d5d1
push 0x42c694
call fcn.004015f0
add esp, 0x2c
mov byte [0x42c08c], 1
pop esi
ret

Function at 0x405150
Capabilities:
Get disk information

Disassembly:
push ecx
cmp byte [0x4938d0], 0
jne 0x40522f
mov al, byte [0x4938d1]
push ebx
mov ebx, 0x41
mov dword [0x4938d4], 0x30004
mov word [0x4938d9], 0x5c3a
mov byte [0x4938db], al
mov byte [0x4938d0], 1
mov byte [esp + 7], 0x20
mov byte [esp + 6], 0x20
mov byte [0x4938d8], bl
nop dword [eax + eax]
push 0x4938d8
call sub.KERNEL32.dll_GetDriveTypeA
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x4051b2
jmp dword [eax*4 + 0x405244]
mov al, byte [esp + 7]
mov dl, byte [esp + 6]
cmp al, 0x20
jne 0x4051f2
mov al, byte [0x4938d8]
mov byte [esp + 7], al
jmp 0x4051f2
cmp byte [esp + 6], 0x20
movzx edx, byte [esp + 6]
movzx eax, byte [0x4938d8]
cmove edx, eax
mov byte [esp + 6], dl
jmp 0x4051ee
mov dl, byte [esp + 6]
mov al, byte [esp + 7]
inc ebx
mov byte [0x4938d8], bl
cmp ebx, 0x5a
jle 0x4051a0
cmp al, 0x20
je 0x40521a
pop ebx
push dword [esp + 8]
mov byte [0x4938d8], al
push 0x4938d4
call sym.afont_font.exe__string_copy_8
pop ecx
ret 4
cmp dl, 0x20
movzx eax, dl
mov ecx, 0x43
cmovne ecx, eax
mov byte [0x4938d8], cl
pop ebx
push dword [esp + 8]
push 0x4938d4
call sym.afont_font.exe__string_copy_8
pop ecx
ret 4
Function at 0x405620
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x106c
call fcn.00409f50
cmp byte [0x493730], 0
jne 0x405749
lea eax, [esp + 4]
push eax
call sym.afont_font.exe__sys_error_none_4
push 0x493734
mov word [esp + 4], 0x7f7f
push dword [esp + 4]
mov word [0x493736], 0
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
call sym.afont_font.exe__sys_error_4
test al, al
je 0x405742
push ebx
mov word [esp + 4], 1
mov ebx, 1
push 0x493734
push dword [esp + 8]
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
call sym.afont_font.exe__sys_error_4
test al, al
jne 0x4056cf
call sub.WS2_32.dll_WSACleanup
test eax, eax
je 0x4056cf
call sub.WS2_32.dll_WSAGetLastError
push 0
push 0x4938dc
push str.err_netclose
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push 0x42c698
push eax
call sym.afont_font.exe__sys_error_abort_20
mov al, byte [0x493736]
test al, al
jne 0x405707
inc ebx
mov byte [esp + 4], bl
cmp ebx, 0x7f
jle 0x405682
push 0
push 0x4938dc
push str.err_netversion
push 0x42c698
call sym.afont_font.exe__sys_message_bomb_16
pop ebx
mov byte [0x493730], 1
add esp, 0x106c
ret
mov byte [esp + 4], al
mov al, byte [0x493737]
push 0x493734
mov byte [esp + 9], al
push dword [esp + 8]
call sub.WS2_32.dll_WSAStartup
push 0
push 0x4938dc
push str.err_netstart
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push 0x42c698
push eax
call sym.afont_font.exe__sys_error_abort_20
pop ebx
mov byte [0x493730], 1
add esp, 0x106c
ret
Function at 0x4066a0
Capabilities:
Get hostname

Disassembly:
mov eax, 0x146c
call fcn.00409f50
lea eax, [esp]
mov dword [esp], 0x400
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_GetComputerNameA
test al, al
jne 0x4066fa
lea eax, [esp + 0x404]
push eax
call sym.afont_font.exe__sys_error_none_4
call sub.KERNEL32.dll_GetLastError
push 0
push 0x4939b4
push str.node_name_get
mov dword [esp + 0x41c], eax
lea eax, [esp + 0x410]
push 0x42e340
push eax
call sym.afont_font.exe__sys_error_abort_20
push dword [esp]
lea eax, [esp + 8]
push eax
push dword [esp + 0x1478]
call sym.afont_font.exe__string_vstring_12
push dword [esp + 0x1470]
call sym.afont_font.exe__string_downcase_4
add esp, 0x146c
ret 4

Function at 0x406750
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x884
lea eax, [esp]
push dword [0x42e3e4]
push eax
push dword [esp + 0x890]
call sym.afont_font.exe__string_t_c_12
push dword [0x42e3e8]
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x4067b4
push dword [esp + 0x890]
push 2
push 0xffffffffffffffff
call sym.afont_font.exe__sys_stat_set_12
push dword [esp + 0x890]
push dword [esp + 0x88c]
call sym.afont_font.exe__sys_stat_parm_vstr_8
add esp, 0x884
ret 0xc
movzx eax, word [0x42e3ec]
push eax
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x894]
call sym.afont_font.exe__string_vstring_12
push dword [esp + 0x890]
call sym.afont_font.exe__sys_error_none_4
add esp, 0x884
ret 0xc

Function at 0x4067f0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x884
push esi
mov esi, dword [esp + 0x894]
push esi
call sym.afont_font.exe__sys_error_none_4
push 0x84
lea eax, [esp + 8]
push eax
push dword [esp + 0x894]
call sym.afont_font.exe__string_t_c_12
push 0x800
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x898]
call sym.afont_font.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 0x406851
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x884
ret 0xc

Function at 0x406860
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x88
push esi
push dword [0x42e3e0]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x98]
call sym.afont_font.exe__string_t_c_12
mov al, byte [0x4939b8]
mov esi, dword [esp + 0x94]
push esi
mov byte [esp + 0xb], al
call sym.afont_font.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 0x4068af
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x88
ret 8
Function at 0x4068c0
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.afont_font.exe__string_copy_8
lea eax, [esp + 0xc]
push eax
call sym.afont_font.exe__string_terminate_null_4
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x64]
push edi
push eax
push 1
call fcn.004069b0
push edi
call sym.afont_font.exe__sys_error_4
test al, al
jne 0x40699e
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 0x406953
push edi
call sym.afont_font.exe__sys_error_none_4
jmp 0x40696e
test cx, cx
jle 0x40696e
movsx eax, cx
mov al, byte [eax + ebx + 3]
cmp al, byte [0x4939b9]
jne 0x40696e
lea eax, [ecx - 1]
mov word [ebx + 2], ax
push dword [esp + 0x68]
call sub.ADVAPI32.dll_RegCloseKey
push edi
call sym.afont_font.exe__sys_error_4
pop ebx
test al, al
jne 0x40699e
mov eax, dword [esp + 8]
sub eax, 1
je 0x40699b
sub eax, 1
jne 0x40699e
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 0x406aa0
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.afont_font.exe__string_copy_8
lea eax, [esp + 4]
push eax
call sym.afont_font.exe__string_terminate_null_4
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x5c]
push esi
push eax
push 2
call fcn.004069b0
push esi
call sym.afont_font.exe__sys_error_4
test al, al
jne 0x406af8
push esi
call sym.afont_font.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 0x406b00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2068
call fcn.00409f50
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.afont_font.exe__string_copy_8
lea eax, [esp + 0x18]
push eax
call sym.afont_font.exe__string_terminate_null_4
mov esi, dword [esp + 0x2080]
lea eax, [esp + 0xc]
push esi
push eax
push 3
call fcn.004069b0
push esi
call sym.afont_font.exe__sys_error_4
test al, al
jne 0x406ccc
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 0x406bac
push esi
call sym.afont_font.exe__sys_error_none_4
jmp 0x406bc8
test cx, cx
jle 0x406bc8
movsx eax, cx
mov al, byte [esp + eax + 0x6f]
cmp al, byte [0x4939ba]
jne 0x406bc8
lea eax, [ecx - 1]
mov word [esp + 0x6e], ax
mov bl, bh
push esi
and bl, 1
call sym.afont_font.exe__sys_error_4
test al, al
je 0x406be1
mov dword [esp + 0x10], 1
jmp 0x406c11
mov eax, dword [esp + 0x10]
test bl, bl
je 0x406bee
cmp eax, 1
jne 0x406c11
test bh, 2
je 0x406bf8
cmp eax, 2
jne 0x406c11
push dword [esp + 0x2078]
lea eax, [esp + 0x70]
push eax
call sym.afont_font.exe__string_equal_8
test al, al
jne 0x406cc3
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x207c]
call sym.afont_font.exe__string_copy_8
lea eax, [esp + 0x6c]
push eax
call sym.afont_font.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 [0x4939bc]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegSetValueExA
push esi
mov dword [esi + 0xc], eax
call sym.afont_font.exe__sys_error_4
test al, al
jne 0x406cab
push dword [esp + 0xc]
mov byte [esp + 0xf], 1
call sub.ADVAPI32.dll_RegFlushKey
push esi
mov dword [esi + 0xc], eax
call sym.afont_font.exe__sys_error_4
test al, al
jne 0x406cab
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 0x407330
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
call sym.afont_font.exe__sys_error_none_4
push dword [0x42e664]
push dword [esp + 0xc]
call sub.KERNEL32.dll_TerminateProcess
test al, al
jne 0x407356
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
ret 8
Function at 0x407360
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x480c
call fcn.00409f50
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.afont_font.exe__string_token_16
push esi
call sym.afont_font.exe__sys_error_4
test al, al
jne 0x4074a9
lea eax, [esp + 0x2810]
push eax
lea eax, [esp + 0x10]
push eax
call sym.afont_font.exe__string_treename_8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x2814]
push eax
call sym.afont_font.exe__string_token_make_8
push 0x400
lea eax, [esp + 0x414]
push eax
lea eax, [esp + 0x14]
push eax
call sym.afont_font.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.afont_font.exe__string_token_16
push esi
call sym.afont_font.exe__string_eos_4
test al, al
jne 0x407453
push esi
call sym.afont_font.exe__sys_error_4
test al, al
jne 0x4074a9
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x2814]
push eax
call sym.afont_font.exe__string_append_token_8
push esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push edi
call sym.afont_font.exe__string_token_16
push esi
call sym.afont_font.exe__string_eos_4
test al, al
je 0x407418
push 0x2000
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x2818]
push eax
call sym.afont_font.exe__string_t_c_12
push dword [0x42e768]
lea eax, [esp + 0x814]
push 0x4939d4
push eax
lea eax, [esp + 0x41c]
push eax
push 0x4939d4
push dword [0x4939d0]
call sub.SHELL32.dll_ShellExecuteA
cmp eax, 0x20
ja 0x4074a9
push esi
add eax, 0x64
push eax
push 0xffffffffffffffff
call sym.afont_font.exe__sys_stat_set_12
pop edi
pop esi
add esp, 0x480c
ret 8
Function at 0x4079f0
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 0x407a1d
pop esi
xor al, al
pop ebx
add esp, 0x104
ret 8
push ebp
push edi
cmp word [esi], ax
jle 0x407b23
push 0
push dword [0x4939e0]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push dword [0x42e7c0]
push ebx
push 0
push 0x11ff
call sub.KERNEL32.dll_FormatMessageA
test eax, eax
je 0x407a69
push eax
push dword [esp + 0x14]
push esi
call sym.afont_font.exe__string_vstring_12
push dword [esp + 0x10]
call sub.KERNEL32.dll_LocalFree
jmp 0x407b1d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407a77
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 0x407abc
push ebp
call fcn.0040d33c
push eax
push 0x1c
push ebp
push str.Could_not_load_RASAIP32.DLL.
call fcn.0040d5d1
push 0x42e7fc
call fcn.004015f0
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 0x407af0
push 1
call fcn.0040d33c
push eax
push 0x2e
push 1
push str.Could_not_find_RasGetErrorStringA_entry_point.
call fcn.0040d5d1
push 0x42e830
call fcn.004015f0
add esp, 0x18
jmp 0x407b00
push dword [0x42e7d4]
lea ecx, [esp + 0x18]
push ecx
push ebx
call eax
mov ebp, eax
push edi
call sub.KERNEL32.dll_FreeLibrary
test ebp, ebp
jne 0x407b23
movzx eax, word [0x42e7d8]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call sym.afont_font.exe__string_vstring_12
push esi
call sym.afont_font.exe__string_unpad_4
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x104
ret 8
Function at 0x407ef0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0x14]
push esi
call sym.afont_font.exe__sys_error_none_4
cmp byte [0x4939c5], 0
jne 0x407f15
push 0x496cf0
call sub.KERNEL32.dll_InitializeCriticalSection
mov byte [0x4939c5], 1
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [0x4939ec]
push dword [0x4939e8]
call sub.KERNEL32.dll_CreateThread
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x407f47
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
ret 0x10
Function at 0x4083f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
mov eax, 0x10
mov ebx, 0x400
push 1
mov word [esp + 0x10], ax
mov word [esp + 0x24], bx
call fcn.0040d33c
push eax
push 0x2e
push 1
push str.Error_reading_global.env_environment_file_set.
call fcn.0040d5d1
push 0x42eaf8
call fcn.004015f0
add esp, 0x18
xor eax, eax
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
push 0x42ea28
push eax
call sym.afont_font.exe__string_appends_8
push 0x20
lea eax, [esp + 0x24]
push eax
call sym.afont_font.exe__string_append1_8
mov edi, dword [esp + 0x428]
lea eax, [esp + 0xc]
push dword [edi + 0x914]
push eax
call sym.afont_font.exe__string_f_int_8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
call sym.afont_font.exe__string_append_8
push 0x42ea78
lea eax, [esp + 0x24]
push eax
call sym.afont_font.exe__string_appends_8
mov ax, word [esp + 0x22]
cmp ax, bx
jle 0x4084ac
cwde
push 0x493a72
sub eax, ebx
push eax
push 0x42eafc
call fcn.004015f0
mov ax, word [esp + 0x2e]
add esp, 0xc
test ax, ax
jle 0x4084bf
cmp ax, bx
jge 0x4084bb
movsx esi, ax
jmp 0x4084c1
mov esi, ebx
jmp 0x4084c1
xor esi, esi
push 1
call fcn.0040d33c
push eax
push esi
lea eax, [esp + 0x30]
push 1
push eax
call fcn.0040d5d1
push 0x42eb00
call fcn.004015f0
movzx ecx, word [edi + 0x50e]
add esp, 0x18
mov eax, ecx
cmp cx, bx
jle 0x408513
movsx eax, cx
push 0x493a73
sub eax, 0x400
push eax
push 0x42eb04
call fcn.004015f0
movzx eax, word [edi + 0x50e]
add esp, 0xc
test ax, ax
jle 0x408526
cmp ax, bx
jge 0x408522
movsx esi, ax
jmp 0x408528
mov esi, ebx
jmp 0x408528
xor esi, esi
push 1
call fcn.0040d33c
push eax
push esi
lea eax, [edi + 0x510]
push 1
push eax
call fcn.0040d5d1
push 0x42eb08
call fcn.004015f0
add esp, 0x18
call sym.afont_font.exe__sys_bomb_0
pop edi
pop esi
pop ebx
add esp, 0x418
ret 4
Function at 0x408bf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
cmp byte [0x4939c4], 0
mov eax, 0x20
mov word [esp + 4], ax
jne 0x408c0b
call sym.afont_font.exe__sys_read_env_global_0
push esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x34]
call sym.afont_font.exe__string_copy_8
lea eax, [esp + 8]
push eax
call sym.afont_font.exe__string_upcase_4
mov eax, dword [0x496cec]
mov esi, 0x496cec
mov dword [esp + 4], eax
test eax, eax
je 0x408c56
add eax, 4
push eax
lea eax, [esp + 0xc]
push eax
call sym.afont_font.exe__string_equal_8
test al, al
jne 0x408cb7
mov esi, dword [esp + 4]
mov eax, dword [esi]
mov dword [esp + 4], eax
test eax, eax
jne 0x408c36
lea eax, [esp + 4]
push eax
push 0x108
call sym.afont_font.exe__sys_mem_alloc_8
mov eax, dword [esp + 4]
test eax, eax
jne 0x408c99
push 1
call fcn.0040d33c
push eax
push 0x3a
push 1
push str.Unable_to_allocate_more_virtual_memory.__The_disk_is_full.
call fcn.0040d5d1
push 0x42eb48
call fcn.004015f0
add esp, 0x18
call sym.afont_font.exe__sys_bomb_0
mov eax, dword [esp + 4]
add eax, 4
push eax
lea eax, [esp + 0xc]
push eax
call sym.afont_font.exe__sys_read_env_lang_8
mov eax, dword [esp + 4]
mov dword [eax], 0
mov eax, dword [esp + 4]
mov dword [esi], eax
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x34]
add ecx, 4
pop esi
mov dword [eax], ecx
add esp, 0x28
ret 8