joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459734
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x459810
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
test eax, eax
jl 0x459810
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x459804
inc eax
mov dword [ebp - 0x18], eax
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.00428dd8
mov ecx, esi
mov edx, dword [ebp - 0x10]
call fcn.00424904
mov edi, eax
mov eax, edi
call fcn.00407130
xor ebx, ebx
mov bl, al
imul ebx, dword [ebp - 8]
mov eax, edi
call fcn.00407134
and eax, 0xff
imul dword [ebp - 0xc]
add ebx, eax
mov eax, edi
call fcn.00407138
and eax, 0xff
imul dword [ebp + 8]
add ebx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
add edx, dword [ebp + 8]
mov ecx, edx
cdq
idiv ecx
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, ebx
call fcn.00407114
push eax
mov eax, dword [ebp - 4]
call fcn.00428dd8
mov ecx, esi
mov edx, dword [ebp - 0x10]
call fcn.00424930
inc esi
dec dword [ebp - 0x18]
jne 0x459787
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x459771
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45e064
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45e092
mov eax, ebx
call fcn.0045eb1c
cmp dword [ebx + 0x3c], 0
je 0x45e08b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x45e103
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x45e0f5
cmp dword [ebx + 8], 0
je 0x45e0b4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x45e0c6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45e0f5
cmp dword [ebx + 8], 0
je 0x45e0a7
cmp eax, 3
je 0x45e0d9
dec eax
jne 0x45e0a7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45e0a7
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x45e0a7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x45e121
cmp dword [ebx + 0x10], 0xcc
je 0x45e121
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045e12c
pop ebx
ret
Function at 0x4026c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1150
call fcn.00403e50
mov eax, dword [0x425034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
push 0
lea eax, [ebp - 0x1004]
push eax
call fcn.00405f10
add esp, 0xc
push str....exe
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1150], 0
lea edx, [ebp - 0x1144]
push edx
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x114c], eax
cmp dword [ebp - 0x114c], 0xffffffff
jne 0x402742
mov byte [0x4258e4], 1
jmp 0x402820
mov ecx, 1
test ecx, ecx
je 0x4027ea
push str.settings.exe
lea edx, [ebp - 0x1118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4027a6
lea eax, [ebp - 0x1118]
push eax
push 0
push 0x143
mov ecx, dword [0x42a8f8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x1118]
push edx
push 0
push 0xc
mov eax, dword [0x42a8f8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x1148]
add ecx, 1
mov dword [ebp - 0x1148], ecx
push 0x4278e8
lea edx, [ebp - 0x1118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4027cb
mov eax, dword [ebp - 0x1148]
sub eax, 1
mov dword [ebp - 0x1150], eax
lea ecx, [ebp - 0x1144]
push ecx
mov edx, dword [ebp - 0x114c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4027e5
jmp 0x4027ea
jmp 0x402742
mov eax, dword [ebp - 0x114c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
mov ecx, dword [ebp - 0x1150]
push ecx
push 0x14e
mov edx, dword [0x42a8f8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
mov eax, dword [0x42a8f8]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e3e
mov esp, ebp
pop ebp
ret

Function at 0x402830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00403e50
mov eax, dword [0x425034]
xor eax, ebp
mov dword [ebp - 4], eax
push str.The_most_common_mistake_when_trying_to_install_Kitserver_is_that_nyou_didnt_extract_all_the_files_from_the_zip_file_to_your_installation_nfolder_of_PES6___WE:PES2007_but_try_to_start_the_setup.exe_from_nelsewhere._This_is_NO_usual_installer_like_other_programms_have._nYou_have_to_extract_the_files_manually._n_nFor_more_information_on_what_Kitserver_is__what_you_can_do_with_nit_and_how_you_install_it_correctly__please_read_the_manual.html_nwhich_is_located_in_the_in_the__docs__subfolder._n_nDo_you_want_to_open_the_manual_now_
lea eax, [ebp - 0x1004]
push eax
call fcn.004074c0
add esp, 8
push 4
push str.Kitserver_6_short_help
lea ecx, [ebp - 0x1004]
push ecx
mov edx, dword [0x4258e0]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402897
push 1
push 0
push 0
push str..docsmanual.html
push str.open
mov eax, dword [0x4258e0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e3e
mov esp, ebp
pop ebp
ret
Function at 0x402fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x425034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 9
mov esi, str.00000000_0000_0000_0000_000000000000
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x41dce8
mov eax, dword [ebp + 8]
push eax
call fcn.00407a16
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x403026
or eax, 0xffffffff
jmp 0x4030c5
mov dword [ebp - 0x30], 0
jmp 0x403038
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 3
jae 0x4030c2
push 0
mov edx, dword [ebp - 0x30]
mov eax, dword [edx*4 + 0x425024]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0040800a
add esp, 0xc
mov edx, dword [ebp - 0x34]
push edx
push 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax*4 + 0x425018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00407c13
add esp, 0x10
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax*4 + 0x425018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx*4 + 0x425018]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040de50
add esp, 0xc
test eax, eax
jne 0x4030bd
mov edx, dword [ebp - 0x34]
push edx
call fcn.0040775b
add esp, 4
mov eax, dword [ebp - 0x30]
jmp 0x4030c5
jmp 0x40302f
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e3e
mov esp, ebp
pop ebp
ret

Function at 0x403690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x425034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040800a
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x6c]
push edx
call fcn.00407c13
add esp, 0x10
push 1
mov eax, dword [ebp - 0x30]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040800a
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x164]
push eax
call fcn.00407c13
add esp, 0x10
push 1
movzx ecx, word [ebp - 0x150]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040800a
add esp, 0xc
mov ax, word [ebp - 0x15e]
mov word [ebp - 0x16c], ax
xor ecx, ecx
mov word [ebp - 0x168], cx
jmp 0x403734
mov dx, word [ebp - 0x168]
add dx, 1
mov word [ebp - 0x168], dx
movzx eax, word [ebp - 0x168]
movzx ecx, word [ebp - 0x16c]
cmp eax, ecx
jge 0x40377a
mov edx, dword [ebp + 8]
push edx
push 1
push 0x28
lea eax, [ebp - 0x2c]
push eax
call fcn.00407c13
add esp, 0x10
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x20]
jb 0x403778
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x24]
cmp dword [ebp + 0xc], edx
jae 0x403778
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
jmp 0x40377c
jmp 0x403722
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e3e
mov esp, ebp
pop ebp
ret
Function at 0x403790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x425034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040800a
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x6c]
push edx
call fcn.00407c13
add esp, 0x10
push 1
mov eax, dword [ebp - 0x30]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040800a
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x164]
push eax
call fcn.00407c13
add esp, 0x10
push 1
movzx ecx, word [ebp - 0x150]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040800a
add esp, 0xc
mov ax, word [ebp - 0x15e]
mov word [ebp - 0x16c], ax
xor ecx, ecx
mov word [ebp - 0x168], cx
jmp 0x403834
mov dx, word [ebp - 0x168]
add dx, 1
mov word [ebp - 0x168], dx
movzx eax, word [ebp - 0x168]
movzx ecx, word [ebp - 0x16c]
cmp eax, ecx
jge 0x4038af
mov edx, dword [ebp + 8]
push edx
push 1
push 0x28
lea eax, [ebp - 0x2c]
push eax
call fcn.00407c13
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040ded0
add esp, 4
test eax, eax
je 0x403896
push 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004049dd
add esp, 0xc
test eax, eax
je 0x403896
push 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0040de50
add esp, 0xc
test eax, eax
jne 0x4038aa
push 1
push 0xffffffffffffffd8
mov eax, dword [ebp + 8]
push eax
call fcn.0040800a
add esp, 0xc
mov al, 1
jmp 0x4038b1
jmp 0x403822
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e3e
mov esp, ebp
pop ebp
ret

Function at 0x403910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x425034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040800a
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x44]
push edx
call fcn.00407c13
add esp, 0x10
push 1
mov eax, dword [ebp - 8]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040800a
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x13c]
push eax
call fcn.00407c13
add esp, 0x10
movzx ecx, word [ebp - 0x128]
test ecx, ecx
jle 0x4039e2
push 1
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.0040800a
add esp, 0xc
push 1
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0040800a
add esp, 0xc
push 1
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040800a
add esp, 0xc
push 1
push 4
mov edx, dword [ebp + 8]
push edx
call fcn.0040800a
add esp, 0xc
push 1
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.0040800a
add esp, 0xc
push 1
push 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040800a
add esp, 0xc
mov al, 1
jmp 0x4039e4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e3e
mov esp, ebp
pop ebp
ret
Function at 0x403a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x425034]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x144], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040800a
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x44]
push edx
call fcn.00407c13
add esp, 0x10
push 1
mov eax, dword [ebp - 8]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040800a
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x13c]
push eax
call fcn.00407c13
add esp, 0x10
movzx ecx, word [ebp - 0x128]
test ecx, ecx
jle 0x403b3a
push 1
push 0x68
mov edx, dword [ebp + 8]
push edx
call fcn.0040800a
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
push 4
lea ecx, [ebp - 0x140]
push ecx
call fcn.00407c13
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 1
push 4
lea eax, [ebp - 0x144]
push eax
call fcn.00407c13
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403690
add esp, 8
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040800a
add esp, 0xc
mov eax, dword [ebp - 0x144]
jmp 0x403b3c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e3e
mov esp, ebp
pop ebp
ret
Function at 0x403b50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x425034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040ded0
add esp, 4
test eax, eax
je 0x403b83
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040ded0
add esp, 4
test eax, eax
jne 0x403b8a
xor eax, eax
jmp 0x403d75
mov edx, dword [ebp + 8]
push edx
call fcn.00403a50
add esp, 4
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
xor edx, edx
mov ecx, 0x14
div ecx
mov dword [ebp - 0x22c], eax
xor edx, edx
mov word [ebp - 0x21c], dx
jmp 0x403bce
mov ax, word [ebp - 0x21c]
add ax, 1
mov word [ebp - 0x21c], ax
movzx ecx, word [ebp - 0x21c]
cmp ecx, dword [ebp - 0x22c]
jae 0x403d73
mov edx, dword [ebp + 8]
push edx
push 1
push 0x14
lea eax, [ebp - 0x218]
push eax
call fcn.00407c13
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040e55c
add esp, 4
mov dword [ebp - 0x234], eax
push 0
mov edx, dword [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00403690
add esp, 8
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040800a
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call fcn.00407c13
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.0040f7ad
add esp, 8
test eax, eax
jne 0x403d59
push 0
mov eax, dword [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403690
add esp, 8
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040800a
add esp, 0xc
xor eax, eax
mov word [ebp - 0x220], ax
jmp 0x403ca0
mov cx, word [ebp - 0x220]
add cx, 1
mov word [ebp - 0x220], cx
mov edx, dword [ebp + 8]
push edx
push 1
push 4
lea eax, [ebp - 0x224]
push eax
call fcn.00407c13
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040e55c
add esp, 4
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x224], 0
jne 0x403cd7
jmp 0x403d59
push 0
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00403690
add esp, 8
add eax, 2
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040800a
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
push eax
call fcn.00407c13
add esp, 0x10
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x204]
push edx
call fcn.0040f7ad
add esp, 8
test eax, eax
jne 0x403d3f
movzx eax, word [ebp - 0x220]
mov ecx, dword [ebp - 0x208]
lea eax, [ecx + eax*4]
jmp 0x403d75
push 0
mov edx, dword [ebp - 0x230]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040800a
add esp, 0xc
jmp 0x403c8e
push 0
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040800a
add esp, 0xc
jmp 0x403bbc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403e3e
mov esp, ebp
pop ebp
ret

Function at 0x411a19
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041188f
Function at 0x4079a0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422058
push 0x40a7d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x42b9c8], eax
mov eax, dword [0x42b9c8]
shr eax, 8
and eax, 0xff
mov dword [0x42b9d4], eax
mov ecx, dword [0x42b9c8]
and ecx, 0xff
mov dword [0x42b9d0], ecx
mov edx, dword [0x42b9d0]
shl edx, 8
add edx, dword [0x42b9d4]
mov dword [0x42b9cc], edx
mov eax, dword [0x42b9c8]
shr eax, 0x10
and eax, 0xffff
mov dword [0x42b9c8], eax
call fcn.0040a730
test eax, eax
jne 0x407a2f
push 0x1c
call fcn.00407b50
add esp, 4
call fcn.0040a480
test eax, eax
jne 0x407a42
push 0x10
call fcn.00407b50
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040a0b0
call fcn.0040a0a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42d464], eax
call fcn.004096e0
mov dword [0x42b9b4], eax
cmp dword [0x42b9b4], 0
je 0x407a7a
cmp dword [0x42d464], 0
jne 0x407a84
push 0xffffffffffffffff
call fcn.00408a40
add esp, 4
call fcn.00408f60
call fcn.00408e20
call fcn.00408a00
mov ecx, dword [0x42b9e4]
mov dword [0x42b9e8], ecx
mov edx, dword [0x42b9e4]
push edx
mov eax, dword [0x42b9dc]
push eax
mov ecx, dword [0x42b9d8]
push ecx
call fcn.0040106e
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00408a40
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x407b04
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov dword [ebp - 8], 0
jmp 0x40a91e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x12
jae 0x40a937
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx*8 + 0x427ab0]
jne 0x40a935
jmp 0x40a937
jmp 0x40a915
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax*8 + 0x427ab0]
jne 0x40aaea
cmp dword [ebp + 8], 0xfc
je 0x40a974
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x427ab4]
push eax
push 0
push 0
push 0
push 1
call fcn.0040bfa0
add esp, 0x14
cmp eax, 1
jne 0x40a974
int3
cmp dword [0x42b9bc], 1
je 0x40a98f
cmp dword [0x42b9bc], 0
jne 0x40a9fa
cmp dword [0x42766c], 1
jne 0x40a9fa
cmp dword [0x42bfc0], 0
je 0x40a9b5
mov ecx, dword [0x42bfc0]
cmp dword [ecx + 0x48], 0xffffffff
je 0x40a9b5
mov edx, dword [0x42bfc0]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x1b4], eax
jmp 0x40a9c3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x1b4], eax
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x427ab4]
push eax
call fcn.00410930
add esp, 4
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x427ab4]
push edx
mov eax, dword [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40aaea
cmp dword [ebp + 8], 0xfc
je 0x40aaea
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aa33
push str._program_name_unknown_
lea edx, [ebp - 0x110]
push edx
call fcn.00408500
add esp, 8
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00410930
add esp, 4
add eax, 1
cmp eax, 0x3c
jbe 0x40aa7c
lea edx, [ebp - 0x110]
push edx
call fcn.00410930
add esp, 4
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax - 0x3b]
mov dword [ebp - 0xc], edx
push 3
push 0x4223e4
mov eax, dword [ebp - 0xc]
push eax
call fcn.00412370
add esp, 0xc
push str.Runtime_Error__n_nProgram:
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00408500
add esp, 8
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x1b0]
push eax
call fcn.00408510
add esp, 8
push 0x4223c4
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00408510
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x427ab4]
push eax
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00408510
add esp, 8
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
lea edx, [ebp - 0x1b0]
push edx
call fcn.004122b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419700
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x42bf6c], 0
jne 0x419752
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41972d
mov dword [0x42bf6c], 1
jmp 0x419752
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41974b
mov dword [0x42bf6c], 2
jmp 0x419752
xor eax, eax
jmp 0x41986d
cmp dword [0x42bf6c], 1
jne 0x419776
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41986d
cmp dword [0x42bf6c], 2
jne 0x41986d
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 0
jne 0x419799
mov ecx, dword [0x42bde0]
mov dword [ebp + 0x18], ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4197bb
xor eax, eax
jmp 0x41986d
push 0x64
push str.aw_loc.c
push 2
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040d460
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4197e0
xor eax, eax
jmp 0x41986d
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4197fc
jmp 0x41985d
cmp dword [ebp + 0x14], 0
jne 0x419825
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x419823
jmp 0x41985d
jmp 0x41984a
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41984a
jmp 0x41985d
push 2
mov eax, dword [ebp - 8]
push eax
call fcn.0040def0
add esp, 8
mov eax, dword [ebp - 0xc]
jmp 0x41986d
push 2
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040def0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret