joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009f20b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1009f232
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1009f235
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1009f1e7
pop esi
leave
ret 8

Function at 0x100a469f
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x100a46c2
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x100a46b0
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x100b151d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.100c84aa
mov eax, dword [eax + 0x14]
test eax, eax
je 0x100b1560
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x100b1560
sub eax, 1
je 0x100b155b
sub eax, 1
je 0x100b1557
xor eax, eax
leave
ret
push 3
jmp 0x100b1562
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x100d05d5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f892c
push 0x100f8924
push str.FlsAlloc
push 0x1e
call fcn.100d0402
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d0609
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e733c]
call esi
jmp 0x100d060f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100d0653
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f893c
push 0x100f8934
push str.FlsGetValue
push 0x20
call fcn.100d0402
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d068a
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e733c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100d3abc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100d3b59
push ebx
push esi
call fcn.100d3a85
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100d21ec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d3b06
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d3b58
push edi
push eax
call fcn.100cedb0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100d3b26
call fcn.100ced76
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d3b57
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100d21ec
add esp, 0x20
test eax, eax
jne 0x100d3b45
push edi
call fcn.100ced76
jmp 0x100d3b4d
push ebx
call fcn.100ced76
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100d3b5c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100d3b6d
pop esi
ret
push ebx
push edi
push esi
call fcn.100d3a85
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100cedb0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100d3b95
push ebx
push esi
push edi
call fcn.100b30c0
add esp, 0xc
push 0
call fcn.100ced76
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100d3f59
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d3baa
Function at 0x100dbd00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100dbd2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100dbd2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401016
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, 0x400
push edi
push esi
call fcn.00402961
push dword [ebp + 8]
mov edi, eax
call fcn.00402d70
push eax
call fcn.00402961
add esp, 0xc
mov ebx, eax
push dword [ebp + 0xc]
push str.USERPROFILE
call fcn.00402cf1
pop ecx
push eax
push str._s_s
push edi
call fcn.00402c9f
push dword [ebp + 8]
push ebx
call fcn.00401e2a
push 0x409078
push edi
call fcn.00402c8c
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x4010a3
push esi
call fcn.00402961
push edi
mov esi, eax
push dword [ebp + 0xc]
push str.Unable_to_write_to_the_log_file_named__s_in_location__s.
push esi
call fcn.00402c9f
push 0xfffffffffffffffd
push 0x10
push str.Error
push esi
call fcn.00401e56
add esp, 0x24
push 0xfffffffffffffffe
call fcn.00402b97
push dword [ebp + 8]
push 0x409030
push ebx
call fcn.00402b38
push ebx
call fcn.00402a2b
push ebx
call fcn.004029d5
add esp, 0x14
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401324
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 0x32
call fcn.00402961
mov dword [esp], 0x1f4
call fcn.00402961
call fcn.00401208
mov esi, 0x40a89c
mov dword [esp], str.Comparing_the_compname_and_Sid_to_license_Sid._n
push esi
mov edi, eax
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
push edi
push str.CompName_and_sid:__s.__n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
push dword [esp + 0x30]
push str.LicenseCompname_and_Sid:__s._n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
push dword [esp + 0x44]
push edi
call fcn.00402df0
add esp, 0x40
test eax, eax
pop edi
pop esi
je 0x4013c4
push 0x6a5bd
push 0x30
push str.Not_Licensed
push str.This_does_not_appear_to_be_the_machine_for_which_this_document_was_licensed._nPlease_rerun_this_program_on_the_correct_computer.
call fcn.00401e56
add esp, 0x10
push 0xfffffffffffffffd
call fcn.00402b97
ret
Function at 0x40153d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x400
call fcn.00402961
pop ecx
mov ebx, eax
push dword [ebp + 0xc]
push str.USERPROFILE
call fcn.00402cf1
pop ecx
push eax
push str._s_s
push ebx
call fcn.00402c9f
push dword [0x40a898]
mov esi, 0x40a89c
push esi
call fcn.00401016
push ebx
push str.Attempting_to_write_the_resource_file_at_path:__s._n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
mov edi, dword [ebp + 8]
lea eax, [edi + 0x266]
push eax
push str.Writing_the_following_values_to_the_rc_file:_InputKey:__s._n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
add esp, 0x40
lea eax, [edi + 0x258]
push eax
push str.Writing_the_following_values_to_the_rc_file:_LicenseKey:__s._n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
lea eax, [edi + 0x25f]
push eax
push str.Writing_the_following_values_to_the_rc_file:_Prepared:__s._n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
push edi
push str.Writing_the_following_values_to_the_rc_file:_TheSid:__s._n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
push edi
call fcn.004011d0
add esp, 0x40
push 0x40931c
push ebx
call fcn.00402c8c
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
jne 0x40165d
push ebx
push str.Unable_to_write_the_resource_file_to_path:__s._n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
push 3
push 0x10
push str.Error
push str.Unable_to_write_the_RC_file.
call fcn.00401e56
add esp, 0x24
push 0xfffffffffffffffe
call fcn.00402b97
push eax
push 1
push 0x26d
push edi
call fcn.00402f5c
push dword [ebp + 0xc]
call fcn.00402a2b
push dword [ebp + 0xc]
call fcn.004029d5
add esp, 0x18
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401892
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
mov dword [esp + 0x10], 1
xor ebx, ebx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Password
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push str.Mot_de_passe
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push str.Kennwort
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push str.Contrase
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push str.Contrasena
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push 0x40952c
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push 0x409520
push ebx
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push 0x409518
push ebx
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push str.Senha
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push 0x4094fc
push ebx
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push str.Adgangskode
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push str.Wachtwoord
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push str.Passord
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push str.Heslo
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
push str.Salasana
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4019c7
mov eax, 0xe10
cmp dword [esp + 0x10], eax
jge 0x4019c7
inc dword [esp + 0x10]
cmp dword [esp + 0x10], eax
jle 0x4018ad
push 0xffffffffffffffff
call fcn.00402b97
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push esi
call edi
test eax, eax
jne 0x4019e1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push esi
jmp 0x4019cf
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401a09
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 5
pop ecx
mov esi, str._shellopencommand
lea edi, [ebp - 0x1c]
push 0x100
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0xec
call fcn.00402961
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 4]
mov edi, 0x80000000
push eax
push ebx
push str..pdf
push edi
call esi
test eax, eax
mov dword [ebp + 8], eax
jne 0x401a8b
push ebx
push 0x409030
push dword [ebp - 8]
call fcn.00402c9f
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
lea eax, [eax + ebx - 1]
push eax
call fcn.00403070
add esp, 0x14
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push ebx
push ebx
push edi
call esi
mov dword [ebp + 8], eax
push ebx
push str.Appname:__s._n
push 0x40a89c
call fcn.00402c9f
push dword [0x40a898]
push 0x40a89c
call fcn.00401016
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x401b07
and dword [ebp + 8], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
push str._s._d_s
push ebx
call fcn.00402c9f
add esp, 0x14
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push edi
call esi
test eax, eax
je 0x401b07
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x64
jle 0x401ab8
test eax, eax
je 0x401b07
push 1
push 0x10
push str.Problem
push str.Adobes_Acrobat_Reader_is_required__but_is_not_installed.
call fcn.00401e56
add esp, 0x10
push 1
call fcn.00402b97
push dword [ebp + 0xc]
push ebx
call fcn.00401bef
push dword [ebp + 0xc]
mov esi, 0x40a89c
push str.Path_extracted_in_findAcrobat:__s._n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
add esp, 0x1c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401b37
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x40965c
push dword [ebp + 8]
call fcn.00403080
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403080
add esp, 0x10
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [ebp - 0x10]
xor edi, edi
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x28], 1
push dword [ebp + 8]
mov word [ebp - 0x24], 5
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401bac
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret
push dword [ebp + 0x10]
mov esi, 0x40a89c
push str.Unable_to_start_Acrobat_Reader_at_location__s.
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
push 1
push edi
push str.Unable_to_start_Acrobat
push esi
call fcn.00401e56
add esp, 0x24
push 1
call fcn.00402b97
Function at 0x401e2a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
xor esi, esi
push edi
mov cl, byte [eax]
mov edi, dword [esp + 0xc]
test cl, cl
je 0x401e4f
mov edx, edi
sub edx, eax
xor cl, 0xa
inc esi
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401e40
and byte [esi + edi], 0
pop edi
pop esi
ret

Function at 0x401ea1
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, 0x6400
push edi
push esi
call fcn.00402961
push esi
call fcn.00402961
mov ebx, dword [esp + 0x18]
push str._title_
push ebx
mov edi, eax
call fcn.00403680
add esp, 0x10
test eax, eax
jne 0x401f3f
push ebx
mov esi, 0x40a89c
push str.String_producing_error:__s_n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
push str.dCloneOrder
push ebx
call fcn.00403680
add esp, 0x1c
test eax, eax
je 0x401f3b
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x50024
push str.Confirm
push str.All_of_the_licenses_have_been_used_for_this_particular_document._nPlease_press_the_Yes_button_to_be_directed_to_our_site_nwhere_you_can_purchase_additional_copies.
push 0
call esi
cmp eax, 7
jne 0x401f34
push 0x50010
push str.Use_not_wanted
push str.You_have_chosen_not_to_authenticate_this_document._n_nThe_program_will_now_exit.
push 0
call esi
push 1
call fcn.00402b97
push ebx
call fcn.004022cc
pop ecx
xor eax, eax
jmp 0x401f7f
push dword [esp + 0x14]
push eax
call fcn.00403680
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x401f3b
push str.__title_
push esi
call fcn.00403680
push eax
call fcn.00402d70
push 0xfffffffffffffff7
pop ebx
push esi
sub ebx, eax
call fcn.00402d70
add ebx, eax
add esi, 9
push ebx
push esi
push edi
call fcn.00403580
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x402280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00403700
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.00403700
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop esi
neg eax
leave
ret

Function at 0x4022cc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, 0x100
push edi
push esi
call fcn.00402961
push esi
call fcn.00402961
push 0x400
mov edi, eax
call fcn.00402961
push 0x409b28
mov ebx, eax
push dword [esp + 0x20]
call fcn.00403680
mov esi, eax
add esp, 0x14
test esi, esi
je 0x402360
push ebp
push 0x409b24
push esi
call fcn.00403680
push eax
call fcn.00402d70
push esi
mov ebp, eax
call fcn.00402d70
sub eax, ebp
push eax
push esi
push edi
call fcn.00403580
push edi
push str.rundll32.exe_url.dll_FileProtocolHandler_http:__articleworks.cadmus.com_s
push ebx
call fcn.00402c9f
push ebx
call fcn.00402280
add esp, 0x2c
test al, al
pop ebp
jne 0x402359
push 0xd
push 0x10
push str.Unable_to_start_Browser
push str.An_error_occurred_while_attempting_to_start_your_web_browser._Please_retry_the_operation_later.
call fcn.00401e56
add esp, 0x10
push 0xffffffffffffffff
call fcn.00402b97
pop edi
pop esi
pop ebx
ret

Function at 0x402364
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00403700
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4023d1
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
jne 0x4023d1
push 0xffffffffffffffff
push eax
push str.Error
push str.Unable_to_determine_OS_version.
call fcn.00401e56
add esp, 0x10
push 0xffffffffffffffff
call fcn.00402b97
push dword [ebp - 0x94]
mov esi, 0x40a89c
push dword [ebp - 0x98]
push str.Winmajor:__d._Winminor:__d._n
push esi
call fcn.00402c9f
push dword [0x40a898]
push esi
call fcn.00401016
add esp, 0x18
cmp dword [ebp - 0x98], 5
jae 0x402422
push 0xffffffffffffffff
push 0
push str.Unable_to_run_program
push str.This_program_requires_Windows_2000__Windows_XP__or_Windows_Vista_to_run.
call fcn.00401e56
add esp, 0x10
push 0xffffffffffffffff
call fcn.00402b97
pop esi
leave
ret
Function at 0x406295
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a490
cmp edx, dword [eax]
je 0x4062b7
add eax, 8
inc ecx
cmp eax, 0x40a520
jl 0x4062a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a490]
jne 0x4063e5
mov eax, dword [0x4238fc]
cmp eax, 1
je 0x4063bf
test eax, eax
jne 0x4062e8
cmp dword [0x409f44], 1
je 0x4063bf
cmp edx, 0xfc
je 0x4063e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40631f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403070
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402d70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406362
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402d70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408494
push edi
call fcn.00403580
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403070
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403080
lea eax, [ebp - 0xa0]
push 0x408474
push eax
call fcn.00403080
push dword [esi + 0x40a494]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403080
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407960
add esp, 0x2c
pop edi
jmp 0x4063e5
lea eax, [ebp + 8]
lea esi, [esi + 0x40a494]
push 0
push eax
push dword [esi]
call fcn.00402d70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x48e1e0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00406e40
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.004049e0
mov eax, dword [0x48fc68]
test eax, eax
je 0x402099
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x402198
cmp dword [ebx], 2
jl 0x4020dd
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.0045013d
add esp, 4
push eax
push 1
push esi
push edi
call fcn.004529ca
push 2
call fcn.0045013d
add esp, 0x14
push eax
call fcn.004505e4
add esp, 4
lea esi, [ebx + 0xc]
lea edi, [ebx + 8]
call fcn.00401df0
test al, al
je 0x40210c
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x48fc6c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x402198
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x402144
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0044ba40
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00414620
add esp, 4
cmp dword [0x48fc74], 0
je 0x40218e
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.004049e0
lea eax, [esp + 0x28]
push eax
call dword [0x48fc74]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x402198
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.00404b50
jmp 0x402198
cmp byte [0x490bc8], 0
jne 0x4021ea
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x4021b0
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.00404b50
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00402930
push esi
mov dword [esi], 0x4891f4
call fcn.004494d5
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044a31d
mov esp, ebp
pop ebp
ret
push 1
call fcn.00454f55
int3