joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028c0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2008
call fcn.0040a630
push esi
mov esi, dword [esp + 0x2018]
mov eax, 0x2000
push edi
push esi
mov word [esp + 0x10], ax
call sym.get_newer.exe__sys_error_none_4
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x2018]
call sym.get_newer.exe__string_copy_8
movzx eax, word [0x42f184]
push eax
push 0x42f180
lea eax, [esp + 0x14]
push eax
call sym.get_newer.exe__string_appendn_12
lea eax, [esp + 0xc]
push eax
call sym.get_newer.exe__string_terminate_null_4
push dword [0x43506c]
lea eax, [esp + 0x14]
push 0x8000080
push 3
push dword [0x435068]
push 1
push connect
push eax
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x402953
call sub.KERNEL32.dll_GetLastError
pop edi
mov dword [esi + 0xc], eax
pop esi
add esp, 0x2008
ret 0xc
push dword [0x435070]
movsx eax, word [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_ReadFile
test al, al
jne 0x40298c
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [esi + 0xc], eax
call fcn.0040b1ee
pop edi
pop esi
add esp, 0x2008
ret 0xc
movsx edx, word [esp + 0xc]
mov ecx, dword [esp + 8]
cmp edx, ecx
movzx eax, word [esp + 0xc]
movzx esi, cx
cmovb esi, eax
push edi
mov word [esp + 0x12], si
call fcn.0040b1ee
mov edx, dword [esp + 0x2018]
mov cx, word [esp + 0xe]
movzx eax, word [edx]
cmp ax, cx
cwde
jl 0x4029c5
movsx eax, cx
movzx eax, ax
mov ecx, 1
movsx esi, ax
mov word [edx + 2], ax
cmp esi, ecx
jl 0x4029ff
mov al, byte [esp + ecx + 0xf]
cmp al, 0x1f
jbe 0x4029f8
cmp al, 0x7f
je 0x4029f8
mov byte [ecx + edx + 3], al
inc ecx
cmp ecx, esi
jle 0x4029d8
pop edi
pop esi
add esp, 0x2008
ret 0xc
lea eax, [ecx - 1]
mov word [edx + 2], ax
pop edi
pop esi
add esp, 0x2008
ret 0xc
Function at 0x402a10
Capabilities:
Clear file content
Delete file
Write file on windows

Disassembly:
mov eax, 0x2510
call fcn.0040a630
mov eax, 0x400
mov word [esp + 0x108], ax
mov eax, pe_nt_image_headers32
push esi
push edi
mov edi, dword [esp + 0x2528]
mov word [esp + 0xc], ax
mov eax, 0x2000
push edi
mov word [esp + 0x518], ax
call sym.get_newer.exe__sys_error_none_4
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x2524]
call sym.get_newer.exe__string_pathname_split_12
lea eax, [esp + 0x110]
push eax
push eax
call sym.get_newer.exe__string_treename_8
lea eax, [esp + 0x514]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push eax
call sym.get_newer.exe__string_pathname_join_12
test byte [esp + 0x2524], 1
mov esi, 1
je 0x402ad6
lea eax, [esp + 0x514]
mov esi, 2
push eax
call sym.get_newer.exe__string_terminate_null_4
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x402ad6
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [edi + 0xc], eax
call sym.get_newer.exe__file_not_found_4
test al, al
je 0x402b6b
movzx eax, word [0x42f174]
push eax
push 0x42f170
lea eax, [esp + 0x51c]
push eax
call sym.get_newer.exe__string_appendn_12
lea eax, [esp + 0x514]
push eax
call sym.get_newer.exe__string_terminate_null_4
push dword [0x435060]
lea eax, [esp + 0x51c]
push 0x8000080
push esi
push dword [0x43505c]
push 1
push 0x40000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x402b63
push dword [0x435064]
mov eax, dword [esp + 0x2524]
lea edx, [esp + 0xc]
push edx
movsx ecx, word [eax + 2]
add eax, 4
push ecx
push eax
push esi
call sub.KERNEL32.dll_WriteFile
test al, al
je 0x402b76
push esi
call sub.KERNEL32.dll_SetEndOfFile
test al, al
je 0x402b76
push esi
call fcn.0040b1ee
test al, al
jne 0x402b6b
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x2510
ret 0x10
call sub.KERNEL32.dll_GetLastError
push esi
mov dword [edi + 0xc], eax
call fcn.0040b1ee
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
pop edi
pop esi
add esp, 0x2510
ret 0x10
Function at 0x402ba0
Capabilities:
Delete file

Disassembly:
mov eax, 0x250c
call fcn.0040a630
mov eax, 0x400
mov word [esp + 0x104], ax
mov eax, pe_nt_image_headers32
push esi
mov esi, dword [esp + 0x2518]
mov word [esp + 4], ax
mov eax, 0x2000
push esi
mov word [esp + 0x510], ax
call sym.get_newer.exe__sys_error_none_4
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10c]
push eax
push dword [esp + 0x251c]
call sym.get_newer.exe__string_pathname_split_12
lea eax, [esp + 0x108]
push eax
push eax
call sym.get_newer.exe__string_treename_8
lea eax, [esp + 0x50c]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x110]
push eax
call sym.get_newer.exe__string_pathname_join_12
movzx eax, word [0x42f17c]
push eax
push 0x42f178
lea eax, [esp + 0x514]
push eax
call sym.get_newer.exe__string_appendn_12
lea eax, [esp + 0x50c]
push eax
call sym.get_newer.exe__string_terminate_null_4
lea eax, [esp + 0x510]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x402c5d
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x250c
ret 8
Function at 0x402ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x2008
call fcn.0040a630
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.get_newer.exe__sys_error_none_4
mov esi, dword [esp + 0x2020]
mov edx, 0x400
mov ebp, dword [esp + 0x201c]
lea ebx, [esi + 0x50c]
mov ecx, pe_nt_image_headers32
mov word [ebx], dx
mov word [esi + 4], dx
mov word [esi + 0x408], cx
cmp word [ebp + 2], 0
jg 0x402d0f
push edi
push 4
push 0xfffffffffffffffd
call sym.get_newer.exe__sys_stat_set_12
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2008
ret 0xc
push ebx
push ebp
call sym.get_newer.exe__string_treename_8
lea eax, [esi + 4]
push eax
push ebp
call sym.get_newer.exe__string_copy_8
lea eax, [esi + 0x408]
push eax
push 0x435078
push ebp
call sym.get_newer.exe__string_generic_fnam_12
lea eax, [esp + 0x14]
push eax
push ebx
call sym.get_newer.exe__string_copy_8
lea eax, [esp + 0x14]
push eax
call sym.get_newer.exe__string_terminate_null_4
lea eax, [esp + 0x18]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x402d6b
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 0x402d8d
push edi
push 2
push 0xfffffffffffffffd
call sym.get_newer.exe__sys_stat_set_12
push edi
push ebx
call sym.get_newer.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 0x402da5
push 0x5c
lea eax, [esp + 0x18]
push eax
call sym.get_newer.exe__string_append1_8
push 0x2a
lea eax, [esp + 0x18]
push eax
call sym.get_newer.exe__string_append1_8
lea eax, [esp + 0x14]
push eax
call sym.get_newer.exe__string_terminate_null_4
lea eax, [esp + 0x10]
push eax
push 0x144
call sym.get_newer.exe__sys_mem_alloc_8
push 0
push 0x4350c8
push 0x435078
push 0x435078
push dword [esp + 0x20]
call sym.get_newer.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 0x402e67
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
cmp eax, 0x12
je 0x402e49
cmp word [esi + 0x50e], 3
jne 0x402e32
mov al, byte [esi + 0x510]
sub al, 0x41
cmp al, 0x19
ja 0x402e32
cmp byte [esi + 0x511], 0x3a
jne 0x402e32
cmp byte [esi + 0x512], 0x5c
je 0x402e49
lea eax, [esp + 0x10]
push eax
call sym.get_newer.exe__sys_mem_dealloc_4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2008
ret 0xc
push edi
call sym.get_newer.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 0x402e7d
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], 0x402fc0
pop esi
pop ebp
pop ebx
add esp, 0x2008
ret 0xc
Function at 0x402ec0
Capabilities:
Delete file

Disassembly:
sub esp, 0x404
push esi
mov esi, dword [esp + 0x410]
mov eax, 0x400
push esi
mov word [esp + 8], ax
call sym.get_newer.exe__sys_error_none_4
lea eax, [esp + 4]
push eax
push dword [esp + 0x410]
call sym.get_newer.exe__string_treename_8
lea eax, [esp + 4]
push eax
call sym.get_newer.exe__string_terminate_null_4
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x402f0f
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x404
ret 8

Function at 0x402f20
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x91c]
test eax, eax
jne 0x402f8b
test byte [esi], 2
je 0x402f5e
cmp byte [esi + 1], al
jne 0x402f5e
push dword [esi + 0x920]
call sub.KERNEL32.dll_SetEndOfFile
test al, al
jne 0x402f5e
push 0
push 0x4350cc
push str.truncate
push 0x42f188
call sym.get_newer.exe__sys_sys_error_bomb_16
cmp byte [esi + 1], 6
je 0x402f98
push dword [esi + 0x920]
call fcn.0040b1ee
test al, al
jne 0x402f98
push 0
push 0x4350cc
push str.close
push 0x42f188
call sym.get_newer.exe__sys_sys_error_bomb_16
jmp 0x402f98
push esi
call eax
mov dword [esi + 0x91c], 0
add esi, 0x918
cmp dword [esi], 0
je 0x402fa9
push esi
call sym.get_newer.exe__sys_mem_dealloc_4
pop esi
ret 4

Function at 0x404170
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x1070
call fcn.0040a630
call sym.get_newer.exe__sys_init_0
call sym.get_newer.exe__util_init_0
mov eax, 4
mov dword [0x4381c4], 0x400
mov word [esp], ax
movzx eax, word [0x42f6b0]
push eax
push dword [esp + 0x1080]
mov dword [0x4385c8], 0x100
push 0x4385c8
mov dword [0x4386cc], 0x20
mov dword [0x4361a0], 0x2000
call sym.get_newer.exe__string_vstring_12
mov byte [0x4350dc], 1
call sub.KERNEL32.dll_GetCommandLineA
test eax, eax
je 0x4041f1
movzx ecx, word [0x42f6b0]
push ecx
push eax
push 0x4361a0
call sym.get_newer.exe__string_vstring_12
mov eax, 1
mov word [0x4381a4], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x4381a4
push 0x4361a0
call sym.get_newer.exe__string_token_16
mov ax, word [0x4381a4]
mov word [0x4381a6], ax
mov dword [0x4381c0], 1
mov byte [0x4386f0], 0
add esp, 0x1070
ret 0xc
Function at 0x405e10
Capabilities:
Write file on windows

Disassembly:
push 0x42f978
call sym.get_newer.exe__string_upcase_4
push 0x42f920
call sym.get_newer.exe__string_upcase_4
push 1
call fcn.0040dc9c
push eax
push 8
push 1
push str.Status__
call fcn.0040df31
mov ax, word [0x42f922]
add esp, 0x14
cmp ax, 0x50
jle 0x405e66
cwde
push 0x4350e5
sub eax, 0x50
push eax
push 0x42ff5c
call fcn.00401b30
mov ax, word [0x42f922]
add esp, 0xc
push esi
test ax, ax
jle 0x405e7e
cmp ax, 0x50
jge 0x405e77
movsx esi, ax
jmp 0x405e80
mov esi, 0x50
jmp 0x405e80
xor esi, esi
push 1
call fcn.0040dc9c
push eax
push esi
push 1
push 0x42f924
call fcn.0040df31
push 1
call fcn.0040dc9c
push eax
push 0x10
push 1
push str.__in_subsystem__
call fcn.0040df31
mov ax, word [0x42f97a]
mov esi, 0x400
add esp, 0x28
cmp ax, si
jle 0x405eda
cwde
push 0x4350e6
sub eax, esi
push eax
push 0x42ff74
call fcn.00401b30
mov ax, word [0x42f97a]
add esp, 0xc
test ax, ax
jle 0x405ee9
cmp ax, si
jge 0x405eeb
movsx esi, ax
jmp 0x405eeb
xor esi, esi
push 1
call fcn.0040dc9c
push eax
push esi
push 1
push 0x42f97c
call fcn.0040df31
push 1
call fcn.0040dc9c
push eax
push 2
push 1
push 0x42ff78
call fcn.0040df31
push 0x42ff7c
call fcn.00401b30
add esp, 0x2c
mov byte [0x42f974], 1
pop esi
ret
Function at 0x407390
Capabilities:
Get disk information

Disassembly:
push ecx
cmp byte [0x435308], 0
jne 0x40746f
mov al, byte [0x435309]
push ebx
mov ebx, 0x41
mov dword [0x43530c], 0x30004
mov word [0x435311], 0x5c3a
mov byte [0x435313], al
mov byte [0x435308], 1
mov byte [esp + 7], 0x20
mov byte [esp + 6], 0x20
mov byte [0x435310], bl
nop dword [eax + eax]
push 0x435310
call sub.KERNEL32.dll_GetDriveTypeA
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x4073f2
jmp dword [eax*4 + 0x407484]
mov al, byte [esp + 7]
mov dl, byte [esp + 6]
cmp al, 0x20
jne 0x407432
mov al, byte [0x435310]
mov byte [esp + 7], al
jmp 0x407432
cmp byte [esp + 6], 0x20
movzx edx, byte [esp + 6]
movzx eax, byte [0x435310]
cmove edx, eax
mov byte [esp + 6], dl
jmp 0x40742e
mov dl, byte [esp + 6]
mov al, byte [esp + 7]
inc ebx
mov byte [0x435310], bl
cmp ebx, 0x5a
jle 0x4073e0
cmp al, 0x20
je 0x40745a
pop ebx
push dword [esp + 8]
mov byte [0x435310], al
push 0x43530c
call sym.get_newer.exe__string_copy_8
pop ecx
ret 4
cmp dl, 0x20
movzx eax, dl
mov ecx, 0x43
cmovne ecx, eax
mov byte [0x435310], cl
pop ebx
push dword [esp + 8]
push 0x43530c
call sym.get_newer.exe__string_copy_8
pop ecx
ret 4
Function at 0x407860
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x106c
call fcn.0040a630
cmp byte [0x435168], 0
jne 0x407989
lea eax, [esp + 4]
push eax
call sym.get_newer.exe__sys_error_none_4
push 0x43516c
mov word [esp + 4], 0x7f7f
push dword [esp + 4]
mov word [0x43516e], 0
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
call sym.get_newer.exe__sys_error_4
test al, al
je 0x407982
push ebx
mov word [esp + 4], 1
mov ebx, 1
push 0x43516c
push dword [esp + 8]
call sub.WS2_32.dll_WSAStartup
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
call sym.get_newer.exe__sys_error_4
test al, al
jne 0x40790f
call sub.WS2_32.dll_WSACleanup
test eax, eax
je 0x40790f
call sub.WS2_32.dll_WSAGetLastError
push 0
push 0x435314
push str.err_netclose
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push 0x431b10
push eax
call sym.get_newer.exe__sys_error_abort_20
mov al, byte [0x43516e]
test al, al
jne 0x407947
inc ebx
mov byte [esp + 4], bl
cmp ebx, 0x7f
jle 0x4078c2
push 0
push 0x435314
push str.err_netversion
push 0x431b10
call sym.get_newer.exe__sys_message_bomb_16
pop ebx
mov byte [0x435168], 1
add esp, 0x106c
ret
mov byte [esp + 4], al
mov al, byte [0x43516f]
push 0x43516c
mov byte [esp + 9], al
push dword [esp + 8]
call sub.WS2_32.dll_WSAStartup
push 0
push 0x435314
push str.err_netstart
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push 0x431b10
push eax
call sym.get_newer.exe__sys_error_abort_20
pop ebx
mov byte [0x435168], 1
add esp, 0x106c
ret

Function at 0x407be0
Capabilities:
Get hostname

Disassembly:
mov eax, 0x146c
call fcn.0040a630
lea eax, [esp]
mov dword [esp], 0x400
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_GetComputerNameA
test al, al
jne 0x407c3a
lea eax, [esp + 0x404]
push eax
call sym.get_newer.exe__sys_error_none_4
call sub.KERNEL32.dll_GetLastError
push 0
push 0x43537c
push str.node_name_get
mov dword [esp + 0x41c], eax
lea eax, [esp + 0x410]
push 0x431e00
push eax
call sym.get_newer.exe__sys_error_abort_20
push dword [esp]
lea eax, [esp + 8]
push eax
push dword [esp + 0x1478]
call sym.get_newer.exe__string_vstring_12
push dword [esp + 0x1470]
call sym.get_newer.exe__string_downcase_4
add esp, 0x146c
ret 4

Function at 0x407c80
Capabilities:
Write file on windows

Disassembly:
push 1
call fcn.0040dc9c
push eax
push 0x21
push 1
push str._Program_aborted_on_error._
call fcn.0040df31
push 0x431ec4
call fcn.00401b30
add esp, 0x18
jmp sym.get_newer.exe__sys_exit_error_0
Function at 0x407ce0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x884
lea eax, [esp]
push dword [0x431ecc]
push eax
push dword [esp + 0x890]
call sym.get_newer.exe__string_t_c_12
push dword [0x431ed0]
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x407d44
push dword [esp + 0x890]
push 2
push 0xffffffffffffffff
call sym.get_newer.exe__sys_stat_set_12
push dword [esp + 0x890]
push dword [esp + 0x88c]
call sym.get_newer.exe__sys_stat_parm_vstr_8
add esp, 0x884
ret 0xc
movzx eax, word [0x431ed4]
push eax
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x894]
call sym.get_newer.exe__string_vstring_12
push dword [esp + 0x890]
call sym.get_newer.exe__sys_error_none_4
add esp, 0x884
ret 0xc

Function at 0x407d80
Capabilities:
Set environment variable

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

Function at 0x407df0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x88
push esi
push dword [0x431ec8]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x98]
call sym.get_newer.exe__string_t_c_12
mov al, byte [0x435384]
mov esi, dword [esp + 0x94]
push esi
mov byte [esp + 0xb], al
call sym.get_newer.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 0x407e3f
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x88
ret 8
Function at 0x407e50
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.get_newer.exe__string_copy_8
lea eax, [esp + 0xc]
push eax
call sym.get_newer.exe__string_terminate_null_4
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x64]
push edi
push eax
push 1
call fcn.00407f40
push edi
call sym.get_newer.exe__sys_error_4
test al, al
jne 0x407f2e
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 0x407ee3
push edi
call sym.get_newer.exe__sys_error_none_4
jmp 0x407efe
test cx, cx
jle 0x407efe
movsx eax, cx
mov al, byte [eax + ebx + 3]
cmp al, byte [0x435385]
jne 0x407efe
lea eax, [ecx - 1]
mov word [ebx + 2], ax
push dword [esp + 0x68]
call sub.ADVAPI32.dll_RegCloseKey
push edi
call sym.get_newer.exe__sys_error_4
pop ebx
test al, al
jne 0x407f2e
mov eax, dword [esp + 8]
sub eax, 1
je 0x407f2b
sub eax, 1
jne 0x407f2e
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 0x408030
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.get_newer.exe__string_copy_8
lea eax, [esp + 4]
push eax
call sym.get_newer.exe__string_terminate_null_4
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x5c]
push esi
push eax
push 2
call fcn.00407f40
push esi
call sym.get_newer.exe__sys_error_4
test al, al
jne 0x408088
push esi
call sym.get_newer.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 0x408090
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2068
call fcn.0040a630
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.get_newer.exe__string_copy_8
lea eax, [esp + 0x18]
push eax
call sym.get_newer.exe__string_terminate_null_4
mov esi, dword [esp + 0x2080]
lea eax, [esp + 0xc]
push esi
push eax
push 3
call fcn.00407f40
push esi
call sym.get_newer.exe__sys_error_4
test al, al
jne 0x40825c
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 0x40813c
push esi
call sym.get_newer.exe__sys_error_none_4
jmp 0x408158
test cx, cx
jle 0x408158
movsx eax, cx
mov al, byte [esp + eax + 0x6f]
cmp al, byte [0x435386]
jne 0x408158
lea eax, [ecx - 1]
mov word [esp + 0x6e], ax
mov bl, bh
push esi
and bl, 1
call sym.get_newer.exe__sys_error_4
test al, al
je 0x408171
mov dword [esp + 0x10], 1
jmp 0x4081a1
mov eax, dword [esp + 0x10]
test bl, bl
je 0x40817e
cmp eax, 1
jne 0x4081a1
test bh, 2
je 0x408188
cmp eax, 2
jne 0x4081a1
push dword [esp + 0x2078]
lea eax, [esp + 0x70]
push eax
call sym.get_newer.exe__string_equal_8
test al, al
jne 0x408253
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x207c]
call sym.get_newer.exe__string_copy_8
lea eax, [esp + 0x6c]
push eax
call sym.get_newer.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 [0x435388]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegSetValueExA
push esi
mov dword [esi + 0xc], eax
call sym.get_newer.exe__sys_error_4
test al, al
jne 0x40823b
push dword [esp + 0xc]
mov byte [esp + 0xf], 1
call sub.ADVAPI32.dll_RegFlushKey
push esi
mov dword [esi + 0xc], eax
call sym.get_newer.exe__sys_error_4
test al, al
jne 0x40823b
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 0x409280
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 0x4092ad
pop esi
xor al, al
pop ebx
add esp, 0x104
ret 8
push ebp
push edi
cmp word [esi], ax
jle 0x4093b3
push 0
push dword [0x43539c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push dword [0x432310]
push ebx
push 0
push 0x11ff
call sub.KERNEL32.dll_FormatMessageA
test eax, eax
je 0x4092f9
push eax
push dword [esp + 0x14]
push esi
call sym.get_newer.exe__string_vstring_12
push dword [esp + 0x10]
call sub.KERNEL32.dll_LocalFree
jmp 0x4093ad
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409307
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 0x40934c
push ebp
call fcn.0040dc9c
push eax
push 0x1c
push ebp
push str.Could_not_load_RASAIP32.DLL.
call fcn.0040df31
push 0x43234c
call fcn.00401b30
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 0x409380
push 1
call fcn.0040dc9c
push eax
push 0x2e
push 1
push str.Could_not_find_RasGetErrorStringA_entry_point.
call fcn.0040df31
push 0x432380
call fcn.00401b30
add esp, 0x18
jmp 0x409390
push dword [0x432324]
lea ecx, [esp + 0x18]
push ecx
push ebx
call eax
mov ebp, eax
push edi
call sub.KERNEL32.dll_FreeLibrary
test ebp, ebp
jne 0x4093b3
movzx eax, word [0x432328]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call sym.get_newer.exe__string_vstring_12
push esi
call sym.get_newer.exe__string_unpad_4
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x104
ret 8