joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430157
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x430179
cmp dword [edi + 0x3c], 0
jne 0x430179
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004364d8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004301a6
pop edi
pop esi
pop ebx
ret 8

Function at 0x4304e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4387cc
call fcn.0041fc14
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004364d8
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x430525
call fcn.004364d8
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x430533
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x430541
or eax, 0xffffffff
jmp 0x430629
mov ecx, esi
call fcn.0043045c
mov dword [ebp - 0x14], eax
call fcn.00431272
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x430578
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x430578
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00431226
push dword [ebp - 0x14]
call fcn.00430d74
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004301f4
cmp eax, edi
je 0x4305eb
test byte [esi + 0x24], 0x10
je 0x4305b9
push 4
mov ecx, esi
pop ebx
call fcn.004334ff
test ah, 1
je 0x4305b1
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00432ef3
cmp dword [esi + 0x1c], edi
je 0x4305eb
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00433575
jmp 0x4305eb
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4305ff
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x430618
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x430618
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00430496
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x431769
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4317a1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042ef77
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042ef4f
jmp 0x4317ad
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x432da1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x432de3
call fcn.004364d8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x432de3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x432dda
xor eax, eax
jmp 0x432deb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00432df1
pop edi
pop esi
pop ebx
ret 4
Function at 0x405fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov ebx, dword [ebp + 8]
push 0x51cfd8
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
movdqa xmmword [esp], xmm0
mov dword [esp + 0x60], 0xffffffff
test eax, eax
je 0x4060f6
mov esi, eax
mov edi, esp
push eax
push 1
push 0x10
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x406047
movdqa xmm0, xmmword [esp]
pcmpeqb xmm0, xmmword [0x51c120]
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x406117
push 2
push 0xffffffffffffffe7
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
push esi
push 1
push 0x19
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, 1
jne 0x406098
movdqa xmm0, xmmword [esp]
movzx eax, byte [esp + 0x10]
movd xmm1, eax
pcmpeqb xmm0, xmmword [0x51c130]
pcmpeqb xmm1, xmmword [0x51c140]
pand xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
je 0x406127
push 2
push 0xffffffffffffffea
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
push esi
push 1
push 0x16
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
movdqa xmm0, xmmword [esp]
movd ecx, xmm0
cmp ecx, 0x6054b50
jne 0x4060ce
mov edi, 3
cmp eax, 1
je 0x40612c
xor edi, edi
cmp dword [ebp + 0xc], 0
je 0x40612c
test eax, eax
jne 0x40612c
push 0
push ebx
push str._.zip
call fcn.00435e10
add esp, 0xc
xor ecx, ecx
test eax, eax
sete cl
lea edi, [ecx + ecx*2]
jmp 0x40612c
cmp dword [ebp + 0xc], 0
je 0x406110
push 0
push ebx
push str._.zip
call fcn.00435e10
add esp, 0xc
test eax, eax
je 0x40613f
mov edi, 1
jmp 0x406135
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov edi, 1
jmp 0x406135
mov edi, 2
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 3
jmp 0x406135
Function at 0x407bb0
Capabilities:
Terminate process
Write file on windows

Disassembly:
test ecx, ecx
je 0x407bb5
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x15
push str.Error:_out_of_memory_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [eax]

Function at 0x407be0
Capabilities:
Terminate process

Disassembly:
push edi
push esi
mov esi, edx
mov edi, dword [esp + 0xc]
cmp edi, ecx
je 0x407bf2
mov eax, dword [esi + edi*4]
pop esi
pop edi
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [esi + edi*4 - 4]
push dword [esi]
push str._s:_Error:_missing_argument_to__s_n
push eax
call fcn.004014c0
add esp, 0x10
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [eax + eax]
Function at 0x408740
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call esi
add esp, 4
push dword [0x53ddb4]
push str.Usage:__s__OPTIONS__FILENAME__SQL__nFILENAME_is_the_name_of_an_SQLite_database._A_new_database_is_created_nif_the_file_does_not_previously_exist._n
push eax
call fcn.004014c0
add esp, 0xc
push 2
call esi
add esp, 4
push str.____append______________append_the_database_to_the_end_of_the_file_n____ascii_______________set_output_mode_to_ascii_n____bail________________stop_after_hitting_an_error_n____batch_______________force_batch_I_O_n____box_________________set_output_mode_to_box_n____column______________set_output_mode_to_column_n____cmd_COMMAND_________run__COMMAND__before_reading_stdin_n____csv_________________set_output_mode_to_csv_n____deserialize_________open_the_database_using_sqlite3_deserialize___n____echo________________print_inputs_before_execution_n____init_FILENAME_______read_process_named_file_n_____no_header__________turn_headers_on_or_off_n____help________________show_this_message_n____html________________set_output_mode_to_HTML_n____interactive_________force_interactive_I_O_n____json________________set_output_mode_to_json_n____line________________set_output_mode_to_line_n____list________________set_output_mode_to_list_n____lookaside_SIZE_N____use_N_entries_of_SZ_bytes_for_lookaside_memory_n____markdown____________set_output_mode_to_markdown_n____maxsize_N___________maximum_size_for_a___deserialize_database_n____memtrace____________trace_all_memory_allocations_and_deallocations_n____mmap_N______________default_mmap_size_set_to_N_n____newline_SEP_________set_output_row_separator._Default:__n_n____nofollow____________refuse_to_open_symbolic_links_to_database_files_n____nonce_STRING________set_the_safe_mode_escape_nonce_n____nullvalue_TEXT______set_text_string_for_NULL_values._Default__n____pagecache_SIZE_N____use_N_slots_of_SZ_bytes_each_for_page_cache_memory_n____quote_______________set_output_mode_to_quote_n____readonly____________open_the_database_read_only_n____safe________________enable_safe_mode_n____separator_SEP_______set_output_column_separator._Default:__n____stats_______________print_memory_stats_before_each_finalize_n____table_______________set_output_mode_to_table_n____tabs________________set_output_mode_to_tabs_n____version_____________show_SQLite_version_n____vfs_NAME____________use_NAME_as_the_default_VFS_n
push str.OPTIONS_include:_n_s
push eax
call fcn.004014c0
add esp, 0xc
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop word cs:[eax + eax]
Function at 0x410b30
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov esi, dword [0x53de08]
test ecx, ecx
je 0x410b54
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [0x53de08], 0
xor esi, esi
jmp 0x410bc1
test esi, esi
jne 0x410bc1
push str.USERPROFILE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov edi, eax
mov dword [0x53de08], eax
test eax, eax
jne 0x410b88
push str.HOME
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov edi, eax
mov dword [0x53de08], eax
test eax, eax
je 0x410bc7
mov ebx, 0xffffffff
nop dword [eax]
cmp byte [edi + ebx + 1], 0
lea ebx, [ebx + 1]
jne 0x410b90
and ebx, 0x3fffffff
inc ebx
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
test eax, eax
je 0x410bbb
push ebx
push edi
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [0x53de08], esi
mov eax, esi
pop esi
pop edi
pop ebx
ret
push str.HOMEDRIVE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov esi, eax
push str.HOMEPATH
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov edi, 0x5263b9
test esi, esi
je 0x410b88
mov ebx, eax
test eax, eax
je 0x410b88
mov eax, 0xffffffff
nop word [eax + eax]
cmp byte [esi + eax + 1], 0
lea eax, [eax + 1]
jne 0x410c00
mov ecx, 0xffffffff
nop
cmp byte [ebx + ecx + 1], 0
lea ecx, [ecx + 1]
jne 0x410c10
and eax, 0x3fffffff
and ecx, 0x3fffffff
lea edi, [eax + ecx]
inc edi
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [0x53de08], eax
test eax, eax
je 0x410c57
push ebx
push esi
push 0x521e14
push eax
push edi
call fcn.00428750
add esp, 0x14
mov esi, dword [0x53de08]
jmp 0x410bc1
xor esi, esi
jmp 0x410bc1
Function at 0x411230
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, edx
mov edi, ecx
mov eax, dword [ecx + 0x80]
test eax, eax
je 0x411256
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [edi + 0x80], 0
test esi, esi
je 0x411345
movzx ebx, byte [esi]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
add esp, 4
test eax, eax
jne 0x411278
cmp bl, 0x5f
je 0x411278
mov bl, 0x22
jmp 0x4112c7
mov dword [esp], edi
xor ebp, ebp
test bl, bl
je 0x4112b0
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
jmp 0x41129a
movzx ebx, byte [esi + ebp + 1]
inc ebp
test bl, bl
je 0x4112b0
movzx eax, bl
push eax
call edi
add esp, 4
test eax, eax
jne 0x411290
cmp bl, 0x5f
je 0x411290
mov bl, 0x22
jmp 0x4112c4
push ebp
push esi
call fcn.004380f0
add esp, 8
test eax, eax
mov ebx, 0x22
cmove ebx, eax
mov edi, dword [esp]
mov eax, 0xffffffff
nop dword [eax]
cmp byte [esi + eax + 1], 0
lea eax, [eax + 1]
jne 0x4112d0
and eax, 0x3fffffff
test bl, bl
lea ecx, [eax + eax + 2]
cmove ecx, eax
inc ecx
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [edi + 0x80], eax
test eax, eax
je 0x41134d
test bl, bl
je 0x411309
mov byte [eax], bl
mov ecx, 1
jmp 0x41130b
xor ecx, ecx
movzx edx, byte [esi]
test dl, dl
je 0x411339
inc esi
jmp 0x41132f
mov byte [eax + ecx + 1], bl
add ecx, 2
movzx edx, byte [esi]
inc esi
test dl, dl
je 0x411339
mov byte [eax + ecx], dl
cmp dl, bl
je 0x411320
inc ecx
jmp 0x411327
test bl, bl
je 0x411341
mov byte [eax + ecx], bl
inc ecx
mov byte [eax + ecx], 0
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x15
push str.Error:_out_of_memory_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop word cs:[eax + eax]
Function at 0x411380
Capabilities:
Execute command

Disassembly:
push edi
push esi
mov esi, ecx
cmp byte [ecx + 0x118], 0x7c
mov edi, dword [ecx + 0x38]
jne 0x41139f
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
add esp, 4
jmp 0x411471
test edi, edi
je 0x4113ca
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp eax, edi
je 0x4113ca
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp eax, edi
je 0x4113ca
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
cmp byte [esi + 0xa], 0
je 0x411471
push dword [esi + 0x84]
push str.start
push str._s__s
call fcn.00428600
add esp, 0xc
mov edi, eax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
add esp, 4
test eax, eax
je 0x411417
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push edi
push str.Failed:___s__n
push eax
call fcn.004014c0
add esp, 0xc
jmp 0x411424
push 0x7d0
call fcn.0043d5c0
add esp, 4
push edi
call fcn.00424f10
add esp, 4
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x44], eax
mov dword [esi + 0x6c], ecx
movups xmm0, xmmword [esi + 0xce]
movups xmmword [esi + 0xa6], xmm0
mov eax, dword [esi + 0xde]
mov dword [esi + 0xb6], eax
movups xmm0, xmmword [esi + 0xe2]
movups xmmword [esi + 0xba], xmm0
mov eax, dword [esi + 0xf2]
mov dword [esi + 0xca], eax
mov byte [esi + 0xa], 0
mov byte [esi + 0x118], 0
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esi + 0x38], eax
pop esi
pop edi
ret

Function at 0x4116c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, dword [ecx + 0x640]
mov eax, dword [ecx + 0x644]
dec edx
movzx ecx, byte [ecx + eax]
cmp eax, edx
jne 0x4116e0
xor cl, 0x86
mov byte [esi + eax], cl
jmp 0x411718
xor cl, 6
mov byte [esi + eax], cl
mov eax, dword [esi + 0x640]
mov ecx, dword [esi + 0x644]
inc ecx
mov dword [esi + 0x644], ecx
cmp ecx, eax
jne 0x41170a
mov ecx, esi
call fcn.00411780
mov eax, dword [esi + 0x640]
lea ecx, [eax - 1]
mov dword [esi + 0x644], ecx
xor byte [esi + eax - 1], 0x80
mov eax, dword [esi + 0x640]
mov ecx, dword [esi + 0x644]
inc ecx
mov dword [esi + 0x644], ecx
cmp ecx, eax
jne 0x411746
mov ecx, esi
call fcn.00411780
mov dword [esi + 0x644], 0
mov eax, dword [esi + 0x640]
test eax, eax
je 0x41176e
xor ecx, ecx
nop dword [eax]
mov edx, dword [esi + 0x648]
xor edx, ecx
movzx edx, byte [esi + edx]
add eax, esi
mov byte [ecx + eax], dl
inc ecx
mov eax, dword [esi + 0x640]
cmp ecx, eax
jb 0x411750
jmp 0x411770
xor eax, eax
add esi, eax
mov eax, esi
pop esi
ret
Function at 0x416630
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, ecx
push 0x51cfd8
push edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
test eax, eax
je 0x416693
mov esi, eax
push 2
push 0
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
add esp, 4
mov ebx, eax
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_rewind
add esp, 4
push edi
call fcn.004315a0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
call fcn.0043b890
add esp, 0xc
cmp ebx, eax
jle 0x416698
push 0x12
push edi
call fcn.004313c0
add esp, 8
jmp 0x416705
add esp, 4
jmp 0x41670e
mov ebp, ebx
sar ebp, 0x1f
test ebx, ebx
mov eax, 1
cmovne eax, ebx
mov ecx, ebp
cmove ecx, ebx
push ecx
push eax
call fcn.00424ee0
add esp, 8
test eax, eax
je 0x4166e7
push esi
push ebx
push 1
mov dword [esp + 0xc], eax
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
xor eax, ebx
or eax, ebp
jne 0x4166ef
push fcn.00424f10
push ebp
push ebx
push dword [esp + 0xc]
push edi
call fcn.00430b10
add esp, 0x14
jmp 0x416705
push edi
call fcn.00431440
jmp 0x416702
push 0xa
push edi
call fcn.004313c0
add esp, 8
push dword [esp]
call fcn.00424f10
add esp, 4
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x419c30
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, edx
push 0x51cfd8
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
xor edi, edi
test eax, eax
je 0x419cd1
mov ebx, eax
mov dword [esp], esi
push 2
push 0
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
add esp, 0xc
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
add esp, 4
mov ebp, eax
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_rewind
add esp, 4
lea eax, [ebp + 1]
mov ecx, eax
sar ecx, 0x1f
push ecx
push eax
call fcn.00424ee0
add esp, 8
test eax, eax
je 0x419cbb
mov esi, eax
push ebx
push 1
push ebp
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
mov edi, eax
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
cmp edi, 1
jne 0x419cc6
mov byte [esi + ebp], 0
mov eax, dword [esp]
test eax, eax
je 0x419cb7
mov dword [eax], ebp
mov edi, esi
jmp 0x419cd1
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
jmp 0x419cd1
push esi
call fcn.00424f10
add esp, 4
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41a590
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x14]
cmp byte [edi + 0xd], 0
jne 0x41a5a5
add esp, 4
pop esi
pop edi
pop ebx
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
mov dword [esp], ecx
push ecx
push eax
call fcn.00428540
add esp, 8
mov esi, eax
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call ebx
add esp, 4
push dword [edi + 0x2c]
push str.line__d:
push eax
call fcn.004062d0
add esp, 0xc
push 2
call ebx
add esp, 4
push esi
push 0x51e066
push eax
call fcn.004014c0
add esp, 0xc
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop word [eax + eax]

Function at 0x41af40
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, edx
mov esi, ecx
mov dword [esp], 0
mov eax, esp
push eax
push ecx
push 0x41d760
push edx
push dword [ecx]
call fcn.00435e30
add esp, 0x14
cmp eax, 0xb
jne 0x41b02f
mov ebp, 0xffffffff
nop word cs:[eax + eax]
cmp byte [edi + ebp + 1], 0
lea ebp, [ebp + 1]
jne 0x41af80
and ebp, 0x3fffffff
push dword [esi + 0x38]
push 1
push 0x22
push str.__CORRUPTION_ERROR___n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov eax, dword [esp]
test eax, eax
je 0x41afce
push eax
push str.___s___n
push dword [esi + 0x38]
call fcn.004014c0
add esp, 0xc
push dword [esp]
call fcn.00424f10
add esp, 4
mov dword [esp], 0
add ebp, 0x64
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x41b02f
mov ebx, eax
push edi
push str._s_ORDER_BY_rowid_DESC
push eax
push ebp
call fcn.00428750
add esp, 0x10
mov eax, esp
push eax
push esi
push 0x41d760
push ebx
push dword [esi]
call fcn.00435e30
add esp, 0x14
test eax, eax
je 0x41b01b
push dword [esp]
push str.__ERROR:__s___n
push dword [esi + 0x38]
call fcn.004014c0
add esp, 0xc
push dword [esp]
call fcn.00424f10
add esp, 4
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41b040
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, edx
mov esi, ecx
mov dword [esp], 0xffffffff
mov eax, esp
push 0
push eax
push 0xffffffffffffffff
push edx
push dword [ecx]
call fcn.0042be00
add esp, 0x14
mov ebx, eax
test eax, eax
jne 0x41b168
mov eax, dword [esp]
test eax, eax
je 0x41b168
push eax
call fcn.0042be30
add esp, 4
mov ebx, eax
push dword [esp]
call fcn.00431a20
add esp, 4
cmp ebx, 0x64
jne 0x41b1a1
mov edi, eax
mov dword [esp + 4], eax
jmp 0x41b0c8
push dword [esi + 0x38]
push 1
push 3
push 0x521ef3
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push dword [esp]
call fcn.0042be30
add esp, 4
cmp eax, 0x64
jne 0x41b1a1
push 0
push dword [esp + 4]
call fcn.00431d90
add esp, 8
mov ebx, eax
push eax
push 0x51d22f
push dword [esi + 0x38]
call fcn.004014c0
add esp, 0xc
cmp edi, 2
jl 0x41b128
mov ebp, 1
nop word cs:[eax + eax]
mov edi, dword [esi + 0x38]
push ebp
push dword [esp + 4]
call fcn.00431d90
add esp, 8
push eax
push 0x521eef
push edi
mov edi, dword [esp + 0x10]
call fcn.004014c0
add esp, 0xc
inc ebp
cmp edi, ebp
jne 0x41b100
test ebx, ebx
mov eax, 0x51cfd7
cmove ebx, eax
jmp 0x41b149
cmp byte [ebx], 0x2d
je 0x41b0a0
inc ebx
movzx eax, byte [ebx - 1]
cmp eax, 0x2d
je 0x41b140
test eax, eax
jne 0x41b149
push dword [esi + 0x38]
push 1
push 2
push 0x521dd7
jmp 0x41b0ac
mov edx, dword [esi]
mov ecx, edi
call fcn.0041e420
mov edi, eax
mov ebp, dword [esi + 0x38]
push dword [esi]
call fcn.004362c0
add esp, 4
push edi
push eax
push ebx
push str.__ERROR:___d___s___n_s
push ebp
call fcn.004014c0
add esp, 0x14
push edi
call fcn.00424f10
add esp, 4
cmp bl, 0xb
jne 0x41b1d8
jmp 0x41b1db
push dword [esp]
call fcn.0042d1d0
add esp, 4
test eax, eax
je 0x41b1db
mov ebx, eax
mov edi, esi
mov esi, dword [esi + 0x38]
push dword [edi]
call fcn.004362c0
add esp, 4
push eax
push ebx
push str.__ERROR:___d___s___n
push esi
mov esi, edi
call fcn.004014c0
add esp, 0x10
cmp bl, 0xb
je 0x41b1db
inc dword [esi + 0x40]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41bb20
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, ecx
mov ecx, dword [ecx + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [ecx + 1]
cmp edx, eax
jge 0x41bb38
mov eax, dword [esi + 0xc]
jmp 0x41bb5f
add eax, eax
add eax, 0x64
mov dword [esi + 0x14], eax
mov ecx, eax
sar ecx, 0x1f
push ecx
push eax
push dword [esi + 0xc]
call fcn.00425220
add esp, 0xc
mov dword [esi + 0xc], eax
test eax, eax
je 0x41bb68
mov ecx, dword [esi + 0x10]
lea edx, [ecx + 1]
mov dword [esi + 0x10], edx
mov byte [eax + ecx], bl
pop esi
pop ebx
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x15
push str.Error:_out_of_memory_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [eax]