joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406418
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40643c
xor eax, eax
test eax, eax
je 0x40644f
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40644f
xor ecx, ecx
jmp 0x406452
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406539
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x406570
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40654a
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x406545
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065a1
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x406583
pop edi
not eax
pop esi
ret 0xc

Function at 0x43b64c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
add esi, esi
dec edi
call fcn.0043b68f
sub esp, 4
mov dword [esp], 0x18b5d253
pop edi
mov edi, 0xae69430c
inc edi
xor dword [ecx], eax
add esi, 0x97d3a14
sub esp, 4
mov dword [esp], edi
pop esi
mov edi, esi
inc ecx
inc esi
dec esi
sub esi, edi
cmp ecx, ebx
jne fcn.0043b64c
sub edi, edi
push 0xd325c493
pop esi
ret
Function at 0x401b80
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
push 0
push 0
push 0
push 0
push str.amnesia_load_screen_tool
mov esi, ecx
mov dword [ebp - 0x18], eax
movq qword [ebp - 0x10], xmm0
mov word [ebp - 8], 0
mov byte [ebp - 6], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
jne 0x401bdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_when_using_InternetOpenA:__d_n
jmp 0x401cf9
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push str.raw.githubusercontent.com
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx], eax
test eax, eax
jne 0x401c0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_when_using_InternetConnectA:__d_n
jmp 0x401cf9
push 0
push 0x800000
push 0
push 0
push 0
push str._speedrun_program_amnesia_load_screen_tool_main_readme.md
push 0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi], eax
test eax, eax
jne 0x401c40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_when_using_HttpOpenRequestA:__d_n
jmp 0x401cf9
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x401c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_when_using_HttpSendRequestA:__d_n
jmp 0x401cf9
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
xor esi, esi
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
mov eax, 0xa
sub eax, esi
push eax
lea eax, [ebp - 0x10]
add eax, esi
push eax
push dword [edi]
call ebx
test eax, eax
je 0x401ced
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401c9d
add esi, eax
cmp esi, 0xa
jb 0x401c73
jmp 0x401ca2
cmp esi, 0xa
jb 0x401ced
push 0xa
lea eax, [ebp - 0x10]
push eax
push str.2024_01_05
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov edx, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
sete cl
mov byte [edx], cl
test eax, eax
je 0x401cda
push str.2024_01_05
lea eax, [ebp - 0x10]
push eax
push str.a_newer_version_of_this_tool_released_on__s_is_available._this_versions_date_is__s._n
call fcn.00401010
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044d2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.couldnt_determine_the_date_of_the_most_recent_version_of_this_tool_using_InternetReadFile._Error_number:__d_n
call fcn.00401010
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor al, al
pop edi
pop esi
pop ebx
call fcn.004044d2
mov esp, ebp
pop ebp
ret
Function at 0x40806b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b400]
jne 0x408075
repz ret
jmp fcn.0040de9c

Function at 0x40aea1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406410
and dword [ebp - 0x14], 0
cmp dword [0x44e510], 0
mov dword [ebp - 0x18], eax
jne 0x40af54
push 0x402228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40affc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40221c
push ebx
call edi
test eax, eax
je 0x40affc
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40220c
push ebx
mov dword [0x44e510], eax
call edi
push eax
call esi
push 0x4021f8
push ebx
mov dword [0x44e514], eax
call edi
push eax
call esi
push 0x4021dc
push ebx
mov dword [0x44e518], eax
call edi
push eax
call esi
mov dword [0x44e520], eax
test eax, eax
je 0x40af54
push 0x4021c4
push ebx
call edi
push eax
call esi
mov dword [0x44e51c], eax
mov eax, dword [0x44e51c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40afad
cmp dword [0x44e520], ecx
je 0x40afad
push eax
call esi
push dword [0x44e520]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40afad
test ebx, ebx
je 0x40afad
call edi
test eax, eax
je 0x40afa4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40afa4
test byte [ebp - 8], 1
jne 0x40afad
or dword [ebp + 0x10], 0x200000
jmp 0x40afe0
mov eax, dword [0x44e514]
cmp eax, dword [ebp - 0x18]
je 0x40afe0
push eax
call esi
test eax, eax
je 0x40afe0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40afe0
mov eax, dword [0x44e518]
cmp eax, dword [ebp - 0x18]
je 0x40afe0
push eax
call esi
test eax, eax
je 0x40afe0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44e510]
call esi
test eax, eax
je 0x40affc
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40affe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040806b
leave
ret
Function at 0x4149e0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Get uefi variable
Read pipe
Write pipe

Disassembly:
mov eax, 0x1004
call fcn.0040ed70
cmp dword [0x58de64], 0x37
jne 0x414aac
push 0x4035a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
lea eax, [esp + 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x403564
push 0x40358c
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0x403620
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
lea eax, [esp + 0x408]
push eax
push 0x40363c
push 0x403668
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDevicePowerState]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea ecx, [esp + 0xc08]
push ecx
push 0x4036b4
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x58e278]
mov ecx, dword [0x58d948]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x1004
ret
Function at 0x4150f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x58de64]
sub esp, 0x884
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x415176
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x403980
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x4039c0
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x44dbc8]
mov dword [0x58de64], eax
jne 0x415115
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x44dbbc]
mov dword [0x58e278], edx
call fcn.00414d40
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405090
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, 0x203c
call fcn.004163d0
mov eax, dword [0x70b7f4]
mov ecx, dword [0x7086fc]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x405218
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateActCtxA]
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x70b7f4], 0x959
jne 0x4051fe
push 0
push 0
call edi
push 0
lea eax, [esp + 0x4c]
push eax
push 0
call ebx
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xc4c]
push eax
push 0x403770
call dword [sym.imp.KERNEL32.dll_DnsHostnameToComputerNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x84c]
push edx
push 0
push 0x403780
push 0x4037a0
push 0x4037c0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
push 0
lea ecx, [esp + 0x1850]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea edx, [esp + 0x144c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
call esi
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0x4037d0
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
push 0
push 0x4037d4
push 0x4037e0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push 0
push 0
push 0
call esi
mov eax, dword [esp + 0x14]
push eax
call fcn.00404eb0
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x4050d4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x203c
ret
Function at 0x408bfd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a208]
jne 0x408c07
repz ret
jmp fcn.00410b3c

Function at 0x414611
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.0040e1e6
and dword [ebp - 4], 0
cmp dword [0x44da30], 0
mov ebx, eax
jne 0x4146c2
push 0x402dd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414773
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402dc4
push edi
call esi
test eax, eax
je 0x414773
push eax
call fcn.0040e174
mov dword [esp], 0x402db4
push edi
mov dword [0x44da30], eax
call esi
push eax
call fcn.0040e174
mov dword [esp], 0x402da0
push edi
mov dword [0x44da34], eax
call esi
push eax
call fcn.0040e174
mov dword [esp], 0x402d84
push edi
mov dword [0x44da38], eax
call esi
push eax
call fcn.0040e174
pop ecx
mov dword [0x44da40], eax
test eax, eax
je 0x4146c2
push 0x402d6c
push edi
call esi
push eax
call fcn.0040e174
pop ecx
mov dword [0x44da3c], eax
mov eax, dword [0x44da3c]
cmp eax, ebx
je 0x41471a
cmp dword [0x44da40], ebx
je 0x41471a
push eax
call fcn.0040e1ef
push dword [0x44da40]
mov esi, eax
call fcn.0040e1ef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41471a
test edi, edi
je 0x41471a
call esi
test eax, eax
je 0x414711
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414711
test byte [ebp - 0xc], 1
jne 0x41471a
or dword [ebp + 0x10], 0x200000
jmp 0x414753
mov eax, dword [0x44da34]
cmp eax, ebx
je 0x414753
push eax
call fcn.0040e1ef
pop ecx
test eax, eax
je 0x414753
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414753
mov eax, dword [0x44da38]
cmp eax, ebx
je 0x414753
push eax
call fcn.0040e1ef
pop ecx
test eax, eax
je 0x414753
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44da30]
call fcn.0040e1ef
pop ecx
test eax, eax
je 0x414773
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414775
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x51a070], 1
mov dword [0x51a06c], 1
mov dword [0x51a068], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x51a00c], eax
mov eax, dword [0x51a07c]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x51a090]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x51a078]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x4cc084], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x4028a0
Capabilities:
Get common file path

Disassembly:
push ebx
sub esp, 0x138
lea ebx, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x14
test eax, eax
jns 0x4028e8
add esp, 0x138
xor eax, eax
pop ebx
ret
mov dword [esp], ebx
call sym._strlen
lea edx, [ebx + eax]
lea eax, [ebx + eax + 0xc]
mov dword [edx], 0x6574775c
mov dword [edx + 4], 0x2d78696c
mov dword [edx + 8], 0x5c337477
mov edx, dword [esp + 0x148]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._strcpy
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.getInitFileOrCreateIfNotExists_char_const__char_const_
test eax, eax
je 0x4028db
mov dword [esp], eax
call sym.processFile__iobuf_
add esp, 0x138
xor eax, eax
pop ebx
ret
Function at 0x40295a
Capabilities:
Get common file path
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x158
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x140], eax
lea eax, [ebx + 0xf]
shr eax, 4
shl eax, 4
call fcn.0040f8e0
pxor xmm0, xmm0
sub esp, eax
lea edi, [ebp - 0x11c]
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x120], 0
lea eax, [esp + 0x1c]
mov dword [ebp - 0x13c], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x14
test eax, eax
jns 0x4029f0
lea esp, [ebp - 0x10]
xor edi, edi
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp], edi
call sym._strlen
lea ecx, [edi + eax]
lea eax, [edi + eax + 0xc]
mov dword [ecx], 0x6574775c
mov dword [ecx + 4], 0x2d78696c
mov dword [ecx + 8], 0x5c337477
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000080
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x4029da
lea eax, [ebp - 0x130]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [ebx - 1]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x402ab8
xor edi, edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x13c]
mov byte [eax + ebx], 0
mov dword [esp + 4], 0x4ce1d1
mov dword [esp], eax
call sym._strtok
test eax, eax
jne 0x402af8
jmp 0x402a99
mov dword [esp + 4], 0x4ce1d1
mov dword [esp], 0
call sym._strtok
test eax, eax
je 0x402a99
mov dword [esp + 4], str._Dfile.encoding
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x402ae0
mov dword [esp + 4], 0x4ce29e
mov dword [esp], eax
call sym._strtok
mov ecx, eax
test eax, eax
je 0x402a99
mov edx, 0xffffffff
xor edi, edi
jmp 0x402b5a
mov dword [ebp - 0x13c], edx
mov dword [esp + 4], 0x4ce29e
mov dword [esp], 0
call sym._strtok
mov edx, dword [ebp - 0x13c]
test eax, eax
mov ecx, eax
je 0x402a9b
add edx, 1
cmp edx, 1
jne 0x402b30
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x144], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov edi, dword [ebp - 0x140]
mov dword [esp], edi
call sym._memset
mov ecx, dword [ebp - 0x144]
mov dword [esp], edi
mov edi, ebx
mov dword [esp + 4], ecx
call sym._strcpy
mov edx, dword [ebp - 0x13c]
jmp 0x402b30
Function at 0x40eb60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40ebc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x51a084]
test esi, esi
jle 0x40ece0
mov eax, dword [0x51a088]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40ebf4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40ec77
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40ebe0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x40ed07
mov eax, dword [0x51a088]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x51a088]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40ece7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40ec70
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x40ec80
add dword [0x51a084], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x51a088]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40ec70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40ebfe
mov eax, dword [0x51a088]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop