joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b2b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4311a0]
cmp eax, 0x1c00
jle 0x40b2e8
push esi
lea eax, [ebp - 4]
push 0
mov esi, 0x42e894
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
xor eax, eax
pop esi
mov dword [0x4311a0], eax
lea ecx, [ebp + 0x10]
lea eax, [eax + 0x42e894]
push ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [0x4311a0], eax
leave
ret

Function at 0x40b304
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4210a0
push 0x413444
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0xc]
xor esi, esi
cmp ebx, esi
jne 0x40b36b
mov dword [ebp - 4], esi
push str.raising_exception_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push esi
push esi
push esi
push 0x80000003
call dword [sym.imp.KERNEL32.DLL_RaiseException]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, esi
je 0x40b3c0
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40b3c0
push str.writing_minidump_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b3cf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
lea eax, [ebp - 0x48]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ebx, dword [ebp - 0x44]
mov eax, 0x40000000
xor edx, edx
push 0
div ebx
pop edi
mov dword [ebp - 4], 1
mov dword [ebp - 8], edi
mov esi, eax
shl esi, 2
je 0x40b460
lea eax, [ebp - 0x24]
push 0x1c
push eax
mov eax, edi
imul eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40b451
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x40b451
xor edx, edx
div ebx
add edi, eax
cmp dword [ebp - 0x14], 0x1000
jne 0x40b45c
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jbe 0x40b45c
push dword [ebp - 4]
mov dword [ebp - 8], eax
push eax
push dword [ebp + 8]
call fcn.0040b465
add esp, 0xc
test al, al
je 0x40b45c
inc dword [ebp - 4]
jmp 0x40b45c
mov eax, 0x10000
xor edx, edx
div ebx
add edi, eax
cmp edi, esi
jb 0x40b402
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b7ac
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push dword [ebp - 8]
push eax
call fcn.0040b731
mov esi, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push str.Error_occurred_at__s._r_n
push esi
call fcn.0040b2b2
push 0x208
lea eax, [ebp - 0x324]
push 0
push eax
call fcn.004109d0
add esp, 0x18
lea eax, [ebp - 0x324]
push 0x206
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
ja 0x40b82a
lea eax, [ebp - 0x324]
push str.Unknown
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x324]
push eax
push str._s._r_n
push esi
call fcn.0040b2b2
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0040c6ad
add esp, 0x18
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x84]
push eax
push str.Operating_system:___s___s_._r_n
push esi
call fcn.0040b2b2
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str._d_processor_s___type__d._r_n
push esi
call fcn.0040b2b2
add esp, 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x20
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
push dword [ebp - 0x24]
push str._d___memory_in_use._r_n
push esi
call fcn.0040b2b2
mov eax, dword [ebp - 0x20]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory._r_n
push esi
call fcn.0040b2b2
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory_free._r_n
push esi
call fcn.0040b2b2
mov eax, dword [ebp - 0x18]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file._r_n
push esi
call fcn.0040b2b2
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file_free._r_n
push esi
call fcn.0040b2b2
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space._r_n
push esi
call fcn.0040b2b2
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space_free._r_n
push esi
call fcn.0040b2b2
add esp, 0xc
pop esi
leave
ret
Function at 0x40c1f9
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
xor edi, edi
mov eax, dword [ebp + 8]
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 0xc]
mov dword [esi], eax
mov dword [ebp - 4], edi
add esi, 4
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c252
lea eax, [ebp - 4]
push edi
push eax
lea eax, [esi + 4]
push dword [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [ebp - 4]
pop edi
mov dword [esi], eax
pop esi
add eax, 8
pop ebx
leave
ret

Function at 0x40c3d4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
lea ecx, [ebp - 4]
push edi
lea eax, [esi + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x40c4ce
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.004119f5
push ebx
push 0
push eax
mov dword [esi], eax
call fcn.004109d0
add esp, 0x10
lea eax, [esi + 0x28]
push dword [esi]
push edi
push dword [ebp - 4]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop ebx
je 0x40c4ce
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.0040c5de
test eax, eax
je 0x40c4ce
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x2c]
shr ecx, 0x10
mov word [esi + 8], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
mov word [esi + 0xc], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
mov word [esi + 0x10], cx
mov ecx, eax
mov word [esi + 0x16], ax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x230]
shr ecx, 0x10
mov word [esi + 0x14], cx
push eax
push str.CompanyName
mov ecx, esi
call fcn.0040c61e
lea eax, [esi + 0x640]
mov ecx, esi
push eax
push str.FileDescription
call fcn.0040c61e
lea eax, [esi + 0x438]
mov ecx, esi
push eax
push str.ProductName
call fcn.0040c61e
push 1
pop eax
jmp 0x40c4d0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40c6ad
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x40c8f0
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40c8f0
cmp dword [ebp + 0x10], ebx
je 0x40c8f0
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push str.unknown_Windows_version
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x9c]
mov dword [edi], ebx
push eax
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x40c8f0
mov eax, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x94]
and ebx, 0xffff
push ebx
push eax
push ecx
push str._u._u._u
push dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp dword [ebp - 8], 1
jne 0x40c83a
cmp dword [ebp - 4], 4
jne 0x40c8eb
cmp dword [ebp + 0xc], 0xa
jae 0x40c7bb
mov eax, 0x3b6
cmp ebx, eax
jne 0x40c77c
push str.Windows_95
push dword [ebp + 8]
call esi
mov dword [edi], 1
jmp 0x40c8eb
cmp ebx, eax
mov ecx, 0x438
jbe 0x40c79e
cmp ebx, ecx
ja 0x40c7a2
push str.Windows_95_SP1
push dword [ebp + 8]
call esi
mov dword [edi], 2
jmp 0x40c8eb
cmp ebx, ecx
jbe 0x40c7b7
push str.Windows_95_OSR2
push dword [ebp + 8]
call esi
mov dword [edi], 3
jmp 0x40c8eb
cmp dword [ebp + 0xc], 0xa
jne 0x40c81b
mov eax, 0x7ce
cmp ebx, eax
jne 0x40c7db
push str.Windows_98
push dword [ebp + 8]
call esi
mov dword [edi], 4
jmp 0x40c8eb
jbe 0x40c7fa
cmp ebx, 0x887
jae 0x40c806
push str.Windows_98_SP1
push dword [ebp + 8]
call esi
mov dword [edi], 5
jmp 0x40c8eb
cmp ebx, 0x887
jb 0x40c8eb
push str.Windows_98_SE
push dword [ebp + 8]
call esi
mov dword [edi], 6
jmp 0x40c8eb
cmp dword [ebp + 0xc], 0x5a
jne 0x40c8eb
push str.Windows_ME
push dword [ebp + 8]
call esi
mov dword [edi], 7
jmp 0x40c8eb
cmp dword [ebp - 8], 2
jne 0x40c8d5
cmp dword [ebp - 4], 3
jne 0x40c869
cmp dword [ebp + 0xc], 0x33
jne 0x40c8eb
push str.Windows_NT_3.51
push dword [ebp + 8]
call esi
mov dword [edi], 0x65
jmp 0x40c8eb
cmp dword [ebp - 4], 4
jne 0x40c887
cmp dword [ebp + 0xc], 0
jne 0x40c8eb
push str.Windows_NT_4
push dword [ebp + 8]
call esi
mov dword [edi], 0x66
jmp 0x40c8eb
cmp dword [ebp - 4], 5
jne 0x40c8eb
cmp dword [ebp + 0xc], 0
jne 0x40c8a5
push str.Windows_2000
push dword [ebp + 8]
call esi
mov dword [edi], 0x67
jmp 0x40c8eb
cmp dword [ebp + 0xc], 1
jne 0x40c8bd
push str.Windows_XP
push dword [ebp + 8]
call esi
mov dword [edi], 0x68
jmp 0x40c8eb
cmp dword [ebp + 0xc], 2
jne 0x40c8eb
push str.Windows_2003_Server
push dword [ebp + 8]
call esi
mov dword [edi], 0x69
jmp 0x40c8eb
cmp dword [ebp - 8], 3
jne 0x40c8eb
push str.Windows_CE
push dword [ebp + 8]
call esi
mov dword [edi], 0xc9
push 1
pop eax
jmp 0x40c8f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c8f7
Capabilities:
Terminate process

Disassembly:
push esi
call fcn.0040d13d
push eax
mov esi, 0x426950
push dword [esp + 0xc]
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to_me_at:_jseward_acm.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks.__Julian_Seward__30_December_2001._n_n
push esi
call fcn.0041351c
add esp, 0x10
cmp dword [esp + 8], 0x3ef
jne 0x40c92c
push str._n_A_special_note_about_internal_error_number_1007__n_nExperience_suggests_that_a_common_cause_of_i.e._1007_nis_unreliable_memory_or_other_hardware.__The_1007_assertion_njust_happens_to_cross_check_the_results_of_huge_numbers_of_nmemory_reads_writes__and_so_acts__unintendedly__as_a_stress_ntest_of_your_memory_system._n_nI_suggest_the_following:_try_compressing_the_file_again__npossibly_monitoring_progress_in_detail_with_the__vv_flag._n_n_If_the_error_cannot_be_reproduced__and_or_happens_at_different_n__points_in_compression__you_may_have_a_flaky_memory_system._n__Try_a_memory_test_program.__I_have_used_Memtest86_n___www.memtest86.com_.__At_the_time_of_writing_it_is_free__GPLd_._n__Memtest86_tests_memory_much_more_thorougly_than_your_BIOSs_n__power_on_test__and_may_find_failures_that_the_BIOS_doesnt._n_n_If_the_error_can_be_repeatably_reproduced__this_is_a_bug_in_n__bzip2__and_I_would_very_much_like_to_hear_about_it.__Please_n__let_me_know__and__ideally__save_a_copy_of_the_file_causing_the_n__problem____without_which_I_will_be_unable_to_investigate_it._n_n
push esi
call fcn.0041351c
pop ecx
pop ecx
push 3
call fcn.00413585
pop esi
Function at 0x40cd3f
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edx, dword [eax + 0x38]
mov cl, byte [eax + 0x34]
test edx, edx
jle 0x40cd78
push ebx
mov edi, edx
movzx esi, cl
mov edx, dword [eax + 0x260]
mov ebx, edx
shr ebx, 0x18
xor ebx, esi
shl edx, 8
mov ebx, dword [ebx*4 + 0x425a14]
xor ebx, edx
dec edi
mov dword [eax + 0x260], ebx
jne 0x40cd55
pop ebx
mov edx, dword [eax + 0x34]
mov byte [eax + edx + 0x58], 1
mov edx, dword [eax + 0x38]
mov esi, edx
dec esi
je 0x40ce15
dec esi
je 0x40cdfb
dec esi
je 0x40cdd8
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
inc dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
jmp 0x40ce1e
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
jmp 0x40ce1e
mov esi, dword [eax + 0x24]
mov edi, dword [eax + 0x44]
lea edx, [eax + 0x44]
mov byte [esi + edi], cl
mov eax, dword [eax + 0x24]
inc dword [edx]
mov esi, dword [edx]
mov byte [eax + esi], cl
inc dword [edx]
jmp 0x40ce21
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
inc dword [eax + 0x44]
pop edi
pop esi
ret
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000cd63
pop dword [ebp - 0x44]
mov eax, 0xe62e66d6
sub eax, 0xd62d9973
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x36cff
push 0
mov eax, 0x9863cc90
sub eax, 0x88628c2c
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x3f36
xor edx, edx
add edx, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x44]
mov esi, 0xac3dca65
add esi, 0x1b9c63fc
xor dword [ebp - 0x1c], eax
mov edi, dword [ebx]
add dword [ebp - 0x40], 0x8341aa56
xor edi, esi
add dword [ebp - 0x34], edi
mov dword [edx], edi
sub dword [ebp - 4], eax
add edx, 4
add ebx, 0xece68bd9
sub ebx, 0xece68bd5
loop 0x1000cdb8
add eax, 0xefab
xor ebx, ebx
add ebx, eax
add eax, 0x8b90658a
sub eax, 0x8b906585
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x402e1c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e75
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cb8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cb8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e5f
inc ebx
jmp 0x402e48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e7c
lea eax, [ebp - 8]
call fcn.00404648
ret

Function at 0x402e84
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404648
test esi, esi
jne 0x402ebb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404738
jmp 0x402edc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cb8
mov dword [esp], eax
test esi, esi
je 0x402edc
cmp dword [ebx], 0
je 0x402edc
dec esi
jmp 0x402ec3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4031dc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a5008], 0x8088405
inc edx
mov dword [ebx + 0x4a5008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a5024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403744
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403724
xor eax, eax
push ebp
push 0x40371d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403760
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403724
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a5024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a5024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a804c], 0
je 0x404505
cmp word [0x4a8220], 0xd7b2
jne 0x4044cd
cmp dword [0x4a8228], 0
jbe 0x4044cd
mov eax, 0x4a821c
call dword [0x4a8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a5070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40452c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a5034], 0
jne 0x404521
push 0
push 0x4a5068
push 0x4a5070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4065e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406646
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004048b8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031f8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406630
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40664d
lea eax, [ebp - 0x10]
call fcn.00404648
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b24
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40929d
test al, 0x10
jne 0x4092a1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409390
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b24
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4093a4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404b24
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4093c6
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c6b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c6f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404738
jmp 0x40c6fa
mov eax, ebx
mov edx, esi
call fcn.0040469c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c704
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c725
mov al, byte [esp]
jmp 0x40c727
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret