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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100d0040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10079cec
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10079cec
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1008369d
cmp word [ecx], dx
je 0x1008369d
mov eax, dword [0x100b8084]
push edi
dec eax
push eax
push 0x100b7f70
call fcn.100835c5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10083710
cmp word [eax], dx
je 0x10083710
mov eax, dword [edi]
test eax, eax
je 0x100836c1
cmp word [eax], dx
je 0x100836c1
lea eax, [ebp - 0x10]
push eax
call fcn.10082fa8
jmp 0x100836ca
lea eax, [ebp - 0x10]
push eax
call fcn.10083043
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1008373a
mov eax, dword [0x100b7f6c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100b7c60
call fcn.100835c5
add esp, 0xc
test al, al
je 0x1008373a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10083705
cmp word [eax], di
je 0x10083705
lea eax, [ebp - 0x10]
push eax
call fcn.10082fa8
pop ecx
jmp 0x1008373c
lea eax, [ebp - 0x10]
push eax
call fcn.10083043
jmp 0x10083702
mov eax, dword [edi]
test eax, eax
je 0x10083727
cmp word [eax], dx
je 0x10083727
lea eax, [ebp - 0x10]
push eax
call fcn.10082f5d
pop ecx
jmp 0x1008373a
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10083805
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1008344a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10083805
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10083805
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10083805
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10083792
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1007d1f8
test ebx, ebx
je 0x10083800
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1007d1f8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10083805
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10083805
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1008872d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10083807
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cfa2
leave
ret
Function at 0x10089f20
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x456030]
jne 0x401073
repz ret
jmp fcn.00401e51

Function at 0x408b0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d5a
and dword [ebp - 4], 0
cmp dword [0x458b68], 0
mov ebx, eax
jne 0x408bbc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c6d
push eax
call fcn.00404ce8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x458b68], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x458b6c], eax
call esi
push eax
call fcn.00404ce8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x458b70], eax
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x458b78], eax
test eax, eax
je 0x408bbc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ce8
pop ecx
mov dword [0x458b74], eax
mov eax, dword [0x458b74]
cmp eax, ebx
je 0x408c14
cmp dword [0x458b78], ebx
je 0x408c14
push eax
call fcn.00404d63
push dword [0x458b78]
mov esi, eax
call fcn.00404d63
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408c14
test edi, edi
je 0x408c14
call esi
test eax, eax
je 0x408c0b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408c0b
test byte [ebp - 0xc], 1
jne 0x408c14
or dword [ebp + 0x10], 0x200000
jmp 0x408c4d
mov eax, dword [0x458b6c]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c4d
mov eax, dword [0x458b70]
cmp eax, ebx
je 0x408c4d
push eax
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x458b68]
call fcn.00404d63
pop ecx
test eax, eax
je 0x408c6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40af60
Capabilities:
Set console window title

Disassembly:
sub esp, 0x820
mov eax, dword [0x456030]
xor eax, esp
mov dword [esp + 0x81c], eax
mov eax, dword [0x855c3c]
push ebx
mov ebx, dword [0x855960]
push esi
mov esi, dword [0x456f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40afa1
push str.bubaburebuwa
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x855c3c]
mov dword [0x458d0c], esi
cmp eax, 0x114e
jne 0x40afcb
lea eax, [esp + 0xc]
push eax
push str.bipozineferutiji_gazisunepezoh_wavalinozepenujolakahasosod_sopelovudevafocodofojuvugi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x855c3c]
cmp eax, 0x2f
jne 0x40afeb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
call fcn.0040ae60
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401069
add esp, 0x820
ret
Function at 0x110050f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push edi
push str..ddraw.ini
mov edi, ecx
call fcn.1100a210
mov ecx, eax
call fcn.1100a300
test eax, eax
je 0x1100513e
lea ecx, [esp + 8]
push ecx
push str.ConsoleWindow
push str.Debugging
mov ecx, eax
call fcn.11003200
test al, al
je 0x1100513e
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x14], 0x10
jb 0x11005137
mov ecx, dword [ecx]
call fcn.11011f90
jmp 0x11005140
xor eax, eax
mov dword [edi], eax
test eax, eax
je 0x1100529b
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x1100516f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push str.Failed_to_allocate_console:_0x_x_n
call fcn.1100ff40
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret
push str..ddraw.ini
call fcn.1100a210
mov ecx, eax
call fcn.1100a300
test eax, eax
je 0x110051ba
lea ecx, [esp + 8]
push ecx
push str.ConsoleCodePage
push str.Debugging
mov ecx, eax
call fcn.11003200
test al, al
je 0x110051ba
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x14], 0x10
jb 0x110051aa
mov ecx, dword [ecx]
call fcn.11011f90
test eax, eax
jle 0x110051ba
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 1
call fcn.11088466
add esp, 4
push eax
push 0x110ae8a4
push str.CONOUT_
call fcn.11088376
add esp, 0xc
test byte [edi], 1
je 0x11005224
mov edx, str.Displaying_debug_printf_output._n
mov ecx, 0x110c5400
call fcn.110081a0
lea eax, [esp + 8]
push eax
push 0x40
push 4
push 0x4c6f78
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x110050d0
sub eax, 0x4c6f7c
mov dword [0x4c6f78], eax
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 4
push 0x4c6f78
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test byte [edi], 2
je 0x11005238
mov edx, str.Displaying_sfall_debug_output._n
mov ecx, 0x110c5400
call fcn.110081a0
test byte [edi], 4
je 0x1100524c
mov edx, str.Displaying_debug_msg_output._n
mov ecx, 0x110c5400
call fcn.110081a0
test byte [edi], 8
je 0x11005260
mov edx, str.Displaying_display_msg_output._n
mov ecx, 0x110c5400
call fcn.110081a0
push 0x110c5400
call fcn.11008430
add esp, 4
call fcn.11004be0
sub esp, 0x28
mov ecx, 0x110e5154
mov eax, esp
mov dword [eax], 0x110ae9a0
mov dword [eax + 4], edi
mov dword [eax + 0x24], eax
lea eax, [esp + 0x34]
push eax
call fcn.110053e0
lea ecx, [esp + 0xc]
call fcn.110052a0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x11007e40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1109dc96
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1107e2d6
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1107d3fb
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x11009b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1109e20a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.1107d64a
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x11009bed
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
mov dword [ebp - 0x18], str.bad_locale_name
mov byte [ebp - 0x14], 1
call fcn.1108083e
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x110beb08
push eax
call fcn.11080d17
push eax
push esi
call fcn.1107d4fe
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1100abd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x18]
push ebx
push ebp
push esi
mov eax, dword [edx + 0x14]
mov ebp, ecx
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x14], eax
push edi
cmp eax, 0x10
jb 0x1100abf0
mov edi, dword [edx]
jmp 0x1100abf2
mov edi, edx
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x1100ac11
lea ecx, [ecx]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x1100ac00
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
and eax, esi
mov esi, dword [ecx + eax*8]
add eax, eax
mov edi, dword [ecx + eax*4]
inc eax
mov dword [esp + 0x10], edi
mov edi, dword [ebp + 4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], edi
jne 0x1100ac3a
mov eax, edi
jmp 0x1100ac3e
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x1100ad05
cmp dword [edx + 0x14], 0x10
lea ecx, [esi + 8]
jb 0x1100ac51
mov edx, dword [edx]
cmp dword [ecx + 0x14], 0x10
lea ebp, [ecx + 0x10]
jb 0x1100ac5c
mov ecx, dword [ecx]
mov ebp, dword [ebp]
mov eax, ebx
cmp ebp, ebx
cmovb eax, ebp
push eax
call fcn.1100c510
add esp, 4
test eax, eax
jne 0x1100ac79
cmp ebp, ebx
jb 0x1100ac79
jbe 0x1100ac85
mov esi, dword [esi]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
jmp 0x1100ac30
mov eax, esi
mov dword [esp + 0x1c], eax
jmp 0x1100ac90
cmp dword [esp + 0x10], edi
jne 0x1100ac9a
mov eax, edi
jmp 0x1100aca2
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x1100ace8
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
lea ebp, [edx + 0x10]
jb 0x1100acb4
mov edx, dword [edx]
cmp dword [esp + 0x18], 0x10
jb 0x1100acc3
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
jmp 0x1100acc7
mov ecx, dword [esp + 0x28]
mov ebp, dword [ebp]
cmp ebx, ebp
mov eax, ebp
cmovb eax, ebx
push eax
call fcn.1100c510
add esp, 4
test eax, eax
jne 0x1100ace8
cmp ebx, ebp
jb 0x1100ace8
ja 0x1100ace8
mov esi, dword [esi]
jmp 0x1100ac90
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x1100ad05
mov ecx, dword [esp + 0x24]
pop edi
mov dword [ecx + 4], esi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x1100ad20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x18], ebx
cmp dword [ebp + 0x14], 0x10
mov edi, dword [ebp + 0x10]
jb 0x1100ad3f
mov esi, dword [ebp]
jmp 0x1100ad41
mov esi, ebp
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x1100ad61
lea esp, [esp]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1100ad50
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x10], edx
lea eax, [ecx + eax*4]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x24], edx
jne 0x1100ad8e
mov eax, edx
jmp 0x1100ad92
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x1100ae29
cmp dword [ebp + 0x14], 0x10
lea ecx, [esi + 8]
jb 0x1100ada8
mov edx, dword [ebp]
jmp 0x1100adaa
mov edx, ebp
cmp dword [ecx + 0x14], 0x10
lea ebx, [ecx + 0x10]
jb 0x1100adb5
mov ecx, dword [ecx]
mov ebx, dword [ebx]
mov eax, edi
cmp ebx, edi
cmovb eax, ebx
push eax
call fcn.1100c510
add esp, 4
test eax, eax
jne 0x1100add1
cmp ebx, edi
jb 0x1100add1
jbe 0x1100addd
mov esi, dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
jmp 0x1100ad84
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
lea ebx, [edx + 0x10]
jb 0x1100adeb
mov edx, dword [edx]
cmp dword [ebp + 0x14], 0x10
jb 0x1100adf4
mov ebp, dword [ebp]
mov ebx, dword [ebx]
mov ecx, ebp
cmp edi, ebx
mov eax, ebx
cmovb eax, edi
push eax
call fcn.1100c510
add esp, 4
test eax, eax
jne 0x1100ae12
cmp edi, ebx
jb 0x1100ae12
jbe 0x1100ae19
mov esi, dword [esp + 0x18]
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x20]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0xc
ret 8
Function at 0x1100af40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebp, ecx
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
jb 0x1100af58
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x1100af74
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x1100af63
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
and eax, esi
lea edx, [eax*8]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x1100afa7
cmp dword [ecx], edi
jne 0x1100af9f
mov eax, dword [ebp + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
mov dword [ecx + edx + 4], eax
jmp 0x1100afaf
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x1100afaf
cmp dword [ecx], edi
jne 0x1100afb3
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push ecx
lea ecx, [edi + 8]
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ebp + 8]
call fcn.1100bc40
push 0x24
mov edx, 1
mov ecx, edi
call fcn.11004ac0
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x1100c640
Capabilities:
Encode data using xor
Get file size
Read file on windows
Terminate process

Disassembly:
sub esp, 0x214
push ebp
push esi
push 0
push 0
push 3
push 0
push 1
mov ebp, ecx
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1100c81c
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.1107e661
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
xor esi, esi
test edi, edi
je 0x1100c6bb
movzx edx, byte [esi + ebx]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x110aead8]
cmp esi, edi
jb 0x1100c6a3
not eax
push ebx
mov dword [esp + 0x14], eax
call fcn.1107e309
mov esi, dword [esp + 0x14]
add esp, 4
xor eax, eax
cmp esi, dword [eax + 0x110aeed8]
je 0x1100c80f
add eax, 4
cmp eax, 8
jb 0x1100c6d0
sub esp, 0xc
lea ecx, [esp + 0x20]
call fcn.1100a7a0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp ecx, edx
je 0x1100c76f
lea eax, [esp + 0x20]
mov dword [esp + 0x20], esi
push eax
call fcn.1100c850
mov ecx, dword [esp + 0x14]
mov bl, al
test ecx, ecx
je 0x1100c75e
push dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
call fcn.11008d80
mov edx, dword [esp + 0x1c]
mov eax, 0x2aaaaaab
mov ecx, dword [esp + 0x14]
sub edx, ecx
imul edx
push 0x18
mov eax, edx
sar eax, 2
mov edx, eax
shr edx, 0x1f
add edx, eax
call fcn.11004ac0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
test bl, bl
je 0x1100c7b9
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
add esp, 0x214
ret
test ecx, ecx
je 0x1100c7b9
push dword [esp + 0x20]
push ecx
call fcn.11008d80
mov edx, dword [esp + 0x1c]
mov eax, 0x2aaaaaab
mov ecx, dword [esp + 0x14]
sub edx, ecx
imul edx
push 0x18
mov eax, edx
sar eax, 2
mov edx, eax
shr edx, 0x1f
add edx, eax
call fcn.11004ac0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push dword [esp + 0x10]
lea eax, [esp + 0x28]
push 0xe1680293
push ebp
push str.Youre_trying_to_use_sfall_with_an_incompatible_version_of_Fallout._nWas_expecting_Fallout_2_v1.02_US._n_n_s_has_an_unexpected_CRC._nExpected_0x_x_but_got_0x_x.
push eax
call fcn.1100c830
add esp, 0x14
cmp edi, 0x122800
jne 0x1100c826
push 0x2032
push str.CRC_Mismatch
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 3
je 0x1100c807
sub eax, 1
jne 0x1100c80f
mov esi, dword [esp + 0x10]
jmp 0x1100c6e4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0x214
ret
mov ecx, str.Cannot_open_the_game_executable_for_CRC_check.
call fcn.1100c620
lea ecx, [esp + 0x24]
call fcn.1100c620
int3
Function at 0x1100d570
Capabilities:
Get keyboard layout

Disassembly:
push str.dinput.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1100d594
cmp eax, 0xffffffff
je 0x1100d594
push 0x110b2ee8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1100d59a
or eax, 0xffffffff
ret 0x10
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [esp + 0x18]
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
call eax
mov esi, eax
test esi, esi
js 0x1100d604
cmp byte [0x110c6943], 0
je 0x1100d5d3
cmp byte [0x110e58be], 0
jne 0x1100d5d3
push dword [0x51e434]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xc
call fcn.1107e2d6
mov ecx, dword [edi]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [eax], 0x110b2f10
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
push 0
mov dword [edi], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x110e58d4], eax
mov eax, esi
pop edi
pop esi
ret 0x10

Function at 0x1100dcf0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
call fcn.11017560
call fcn.110178b0
call fcn.11015860
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push 5
push 0x4716e8
call esi
mov eax, 0x11015be0
mov byte [0x4716e8], 0xe9
sub eax, 0x4716ed
mov dword [0x4716e9], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 5
push 0x4716e8
call esi
call fcn.110160d0
lea eax, [esp + 4]
push eax
push 0x40
push 5
push 0x4b40fc
call esi
mov eax, 0x11016260
mov byte [0x4b40fc], 0xe9
sub eax, 0x4b4101
mov dword [0x4b40fd], eax
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push 5
push 0x4b40fc
call esi
call fcn.11016570
call fcn.11016d20
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1100ef40
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
sub esp, 0x110
push esi
lea eax, [esp + 4]
mov dword [esp + 8], 0x104
push eax
mov eax, dword [esp + 0x11c]
mov esi, edx
or eax, 0x20001
push eax
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1100f02c
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1100f022
cmp dword [esp + 8], eax
je 0x1100f022
mov eax, dword [esp + 0xc]
cmp eax, 2
je 0x1100efba
cmp eax, 7
je 0x1100efba
cmp eax, 1
jne 0x1100f022
lea eax, [esp + 0x10]
push str.256COLOR
push eax
call fcn.110808c0
add esp, 8
test eax, eax
jne 0x1100effc
lea eax, [esp + 0x10]
push str.640X480
push eax
call fcn.110808c0
add esp, 8
test eax, eax
jne 0x1100effc
lea eax, [esp + 0x10]
push 0x110b32b0
push eax
call fcn.110808c0
add esp, 8
test eax, eax
je 0x1100f022
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x2010
push 0
push str.Fallout_appears_to_be_running_in_compatibility_mode._nPlease_check_the_compatibility_tab_of_fallout2.exe__and_ensure_that_the_following_settings_are_unchecked:_nRun_this_program_in_compatibility_mode_for...__run_in_256_colours__and_run_in_640x480_resolution._nIf_these_options_are_disabled__click_the_change_settings_for_all_users_button_and_see_if_that_enables_them.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x110
ret 4