joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x468674], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x401741
push str.ADVAPI32.DLL
mov dword [0x468688], 0xc
mov dword [0x468690], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401737
push str.ConvertStringSecurityDescriptorToSecurityDescriptorW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x401737
push 0
push 0x46868c
push 1
push 0x42a6c8
call ebx
mov dword [0x468674], eax
jmp 0x401741
mov dword [0x46868c], 0
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
push dword [esi + 4]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 4
push 0x468688
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
test eax, eax
je 0x401823
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401823
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 0
push 6
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x401823
mov ecx, dword [esi + 0xc]
xor edi, edi
test ecx, ecx
jle 0x4017ed
mov edx, dword [esi + 8]
lea ebx, [edi + 1]
mov eax, dword [esi + 0x1c]
imul edx, ebx
add eax, 0xfffffffc
add eax, edx
mov dword [ebp - 4], eax
lea eax, [ecx - 1]
xor ecx, ecx
cmp edi, eax
cmovne ecx, edx
mov edx, dword [ebp - 4]
mov dword [edx], ecx
test edi, edi
jne 0x4017da
mov edi, dword [esi + 0xc]
lea eax, [edi - 1]
mov edi, ebx
imul eax, dword [esi + 8]
mov dword [edx - 4], eax
mov ecx, dword [esi + 0xc]
cmp edi, ecx
jl 0x4017b0
mov eax, dword [esi + 8]
imul eax, ecx
xor ecx, ecx
add eax, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
cmp dword [esi + 0x10], ecx
jle 0x401810
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, dword [esi + 0x10]
jl 0x401800
mov eax, dword [esi + 0x14]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401830
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
push 1
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edx, eax
mov dword [esi + 0x18], edx
test edx, edx
je 0x401879
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
lea eax, [eax + ecx*4]
push eax
push 0
push 0
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x401879
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
add ecx, eax
mov dword [esi + 0x14], ecx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x401f80
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x431100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x40217a
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea eax, [ebp - 0x20c]
push 0x103
push esi
push eax
call ebx
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402179
push edi
push esi
call fcn.004022e0
add esp, 8
lea eax, [ebp - 0x20c]
push 0x42a7c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
je 0x402172
nop dword [eax]
lea ecx, [ebp - 0x34c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x402166
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
test byte [ebp - 0x34c], 0x10
je 0x402125
add esp, 0xc
lea eax, [ebp - 0x320]
mov ecx, 0x42a7c8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402084
test dl, dl
je 0x402080
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402084
add eax, 2
add ecx, 2
test dl, dl
jne 0x402064
xor eax, eax
jmp 0x402089
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x350]
je 0x402020
mov eax, 0x42a7cc
lea ecx, [ebp - 0x320]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4020c0
test dl, dl
je 0x4020bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4020c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4020a0
xor eax, eax
jmp 0x4020c5
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x350]
je 0x402020
push 0x103
lea eax, [ebp - 0x108]
push esi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004022e0
push edi
mov edx, fcn.004022e0
lea ecx, [ebp - 0x108]
call fcn.00401f80
mov eax, dword [ebp - 0x350]
add esp, 0xc
jmp 0x402020
push 0x103
lea eax, [ebp - 0x108]
push esi
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004022e0
mov eax, dword [ebp - 0x350]
add esp, 8
jmp 0x402020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00422c66
mov esp, ebp
pop ebp
ret
Function at 0x402e50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x431100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x40], ecx
mov ecx, 0xb
mov esi, str._pipediscord_ipc_0
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x44], 0x15
mov eax, 2
imul ecx, eax, 0x15
mov edx, 0x30
mov word [ebp + ecx - 0x34], dx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x38]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0xffffffff
je 0x402ec7
mov ecx, dword [ebp - 0x38]
mov byte [ecx], 1
mov al, 1
jmp 0x402f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jne 0x402f0a
mov edx, 2
imul eax, edx, 0x15
movzx ecx, word [ebp + eax - 0x34]
cmp ecx, 0x39
jge 0x402f08
mov edx, 2
imul eax, edx, 0x15
mov cx, word [ebp + eax - 0x34]
add cx, 1
mov edx, 2
imul eax, edx, 0x15
mov word [ebp + eax - 0x34], cx
jmp 0x402e95
jmp 0x402f2f
cmp dword [ebp - 0x3c], 0xe7
jne 0x402f2f
push 0x2710
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x402f2a
xor al, al
jmp 0x402f38
jmp 0x402e95
xor al, al
jmp 0x402f38
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422c66
mov esp, ebp
pop ebp
ret

Function at 0x402f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0xc], 0
jne 0x402fa3
mov al, 1
jmp 0x403012
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402fb3
xor al, al
jmp 0x403012
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0xffffffff
jne 0x402fc0
xor al, al
jmp 0x403012
cmp dword [ebp + 8], 0
jne 0x402fca
xor al, al
jmp 0x403012
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x403008
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jne 0x403008
mov dword [ebp - 0x10], 1
jmp 0x40300f
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x403180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaa0
mov eax, dword [0x431100]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20
lea eax, [ebp - 0x84]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20
lea edx, [ebp - 0x44]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0xa9c]
push ecx
push 0x20019
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa94], eax
cmp dword [ebp - 0xa94], 0
je 0x403213
push str.Error_opening_Steam_key_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00403820
add esp, 8
jmp 0x40331d
mov dword [ebp - 0xa98], 0x208
lea edx, [ebp - 0xa98]
push edx
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push str.SteamExe
mov ecx, dword [ebp - 0xa9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xa94], eax
mov edx, dword [ebp - 0xa9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa94], 0
jne 0x403266
cmp dword [ebp - 0xa98], 1
jae 0x403284
push str.Error_reading_SteamExe_key_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00403820
add esp, 8
jmp 0x40331d
mov eax, dword [ebp - 0xa98]
shr eax, 1
mov dword [ebp - 0xaa0], eax
mov dword [ebp - 0xa90], 0
jmp 0x4032ad
mov ecx, dword [ebp - 0xa90]
add ecx, 1
mov dword [ebp - 0xa90], ecx
mov edx, dword [ebp - 0xa90]
cmp edx, dword [ebp - 0xaa0]
jae 0x4032e3
mov eax, dword [ebp - 0xa90]
movzx ecx, word [ebp + eax*2 - 0x28c]
cmp ecx, 0x2f
jne 0x4032e1
mov edx, 0x5c
mov eax, dword [ebp - 0xa90]
mov word [ebp + eax*2 - 0x28c], dx
jmp 0x40329e
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x28c]
push edx
push str.__s__steam:__rungameid__s
push 0x800
lea eax, [ebp - 0xa8c]
push eax
call fcn.00403790
add esp, 0x14
lea ecx, [ebp - 0xa8c]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.004034b0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422c66
mov esp, ebp
pop ebp
ret
Function at 0x403410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x403471
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx]
test ecx, ecx
je 0x403471
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40346b
mov eax, dword [ebp - 8]
jmp 0x4034ab
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x4034a8
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
je 0x4034a8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x405990
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424bbd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x431100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00405fd0
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x4058d0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x405a39
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edx
jmp 0x405a4a
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004069e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4091c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x24
ja 0x409200
cmp dword [ebp - 4], 0x24
je 0x40933d
mov ecx, dword [ebp - 4]
sub ecx, 3
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x11
ja case.0x4091f9.1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x40939c]
jmp dword [eax*4 + 0x409388]
cmp dword [ebp - 4], 0x112
je 0x409269
cmp dword [ebp - 4], 0x218
je 0x40922e
cmp dword [ebp - 4], 0x232
je 0x409315
jmp case.0x4091f9.1
mov eax, 1
jmp 0x40937f
cmp dword [ebp + 0x10], 0
jne 0x409240
mov eax, 0x424d5144
jmp 0x40937f
cmp dword [ebp + 0x10], 9
jne 0x40925a
push 0
push str.Warning_
push str.Battery_power_is_low
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x40937f
mov ecx, dword [ebp + 0x10]
and ecx, 0xfffffff0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0xf020
je 0x40928f
cmp dword [ebp - 8], 0xf030
je 0x40928f
cmp dword [ebp - 8], 0xf120
je 0x40928f
jmp 0x4092d9
mov ecx, dword [sym.imp.Engine.dll_class_cWeb_g_web]
call dword [sym.imp.Engine.dll_public:_int___thiscall_cWeb::IsWebHandle_void_]
test eax, eax
je 0x4092d9
mov ecx, dword [sym.imp.Engine.dll_class_cWeb_g_web]
call dword [sym.imp.Engine.dll_public:_struct_HWND______thiscall_cWeb::GetWebHandle_void_]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [sym.imp.Engine.dll_class_cWeb_g_web]
call dword [sym.imp.Engine.dll_public:_int___thiscall_cWeb::CloseWebPage_struct_HWND____]
cmp eax, 1
jne 0x4092cf
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp case.0x4091f9.1
call fcn.00409050
jmp case.0x4091f9.1
mov ecx, dword [sym.imp.Engine.dll_class_cWeb_g_web]
call dword [sym.imp.Engine.dll_public:_struct_HWND______thiscall_cWeb::GetWebHandle_void_]
test eax, eax
je 0x409311
mov ecx, dword [sym.imp.Engine.dll_class_cWeb_g_web]
call dword [sym.imp.Engine.dll_public:_void___thiscall_cWeb::UpdatePos_void_]
mov ecx, dword [sym.imp.Engine.dll_class_cWeb_g_web]
call dword [sym.imp.Engine.dll_public:_struct_HWND______thiscall_cWeb::GetWebHandle_void_]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x4091f9.1
mov edx, dword [sym.imp.Engine.dll_long_int_sam_bFullScreenActive]
cmp dword [edx], 1
je 0x409332
movzx eax, byte [0x457ff4]
test eax, eax
je 0x409332
mov byte [0x457ff4], 0
jmp case.0x4091f9.1
mov byte [0x457ff4], 1
jmp case.0x4091f9.1
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x20], 0x898
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x24], 0x5dc
cmp dword [0x457ff8], 0
je 0x409363
mov dword [ebp - 0x10], 0
jmp 0x40937c
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.USER32.dll_DefWindowProcA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x431100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x410347
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x41034e
mov al, 1
jmp 0x410454
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x2c]
call dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x40], 0xffffffff
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x50]
jne 0x410391
mov dword [ebp - 0x44], 1
jmp 0x410398
mov dword [ebp - 0x44], 0
mov cl, byte [ebp - 0x44]
mov byte [ebp - 0x2d], cl
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x4103ad
xor al, al
jmp 0x410454
mov dword [ebp - 0x64], 0x20
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x54]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4103f0
cmp dword [ebp - 0x34], 1
je 0x4103f7
cmp dword [ebp - 0x34], 3
je 0x410447
jmp 0x410452
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x410427
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x410427
xor al, al
jmp 0x410454
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x41043b
mov dword [ebp - 0x48], 1
jmp 0x410442
mov dword [ebp - 0x48], 0
mov al, byte [ebp - 0x48]
jmp 0x410454
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x410454
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422c66
mov esp, ebp
pop ebp
ret
Function at 0x411cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x411d1c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x411e08
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x10], 0
jl 0x411db9
jg 0x411d45
cmp dword [ebp + 0xc], 0
jbe 0x411db9
cmp dword [ebp - 0xc], 0
jl 0x411db9
jg 0x411d53
cmp dword [ebp - 0x10], 0
jbe 0x411db9
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0xc]
jg 0x411d71
jl 0x411d65
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x10]
jae 0x411d71
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x411dfc
jg 0x411dc7
cmp dword [ebp + 0xc], 0
jbe 0x411dfc
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x411dfc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x424368
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4243a7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4243a7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4243a7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4243a7
cmp dword [ecx + 0x74], 0xe
jbe 0x4243a7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100144f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10014502
pop dword [ebp - 0x20]
mov eax, 0x10014502
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x39bd3
push 0
mov eax, 0x1eecf700
add eax, 0xf1146a40
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x4745
mov edx, eax
mov ebx, 0x10024400
add ebx, dword [ebp - 0x20]
mov edi, 0x3ca14858
sub edi, 0xcbb73db5
xor dword [ebp - 8], 0x8426c209
mov esi, dword [ebx]
sub dword [ebp - 8], 0x7d1b37d
xor esi, edi
xor dword [ebp - 0x10], 0x28cba426
mov dword [edx], esi
add dword [ebp - 4], edi
add edx, 0xb090c8f5
add edx, 0x4f6f370f
add ebx, 0xf8597b49
add ebx, 0x7a684bb
loop 0x10014550
add eax, 0x25913404
sub eax, 0x2590241d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6b94b45e
sub ecx, 0x5b94b45e
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41ff02
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x41ff11
pop dword [ebp - 0x30]
mov eax, 0x22769f7d
sub eax, 0x2234a06c
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xba47b602
add dword [ebp - 0x40], 0x940a8f49
mov dword [ebp - 0x3c], 0xc1b74a84
sub dword [ebp - 0x3c], 0x8f83fe3f
mov dword [ebp - 0x38], 0xcdcb620
sub dword [ebp - 0x38], 0xc09071f2
mov dword [ebp - 0x34], 0xa1c0e17d
sub dword [ebp - 0x34], 0xa1c0e17d
lea eax, [ebp - 0x40]
push eax
mov eax, 0x7f6ca763
sub eax, 0x7f2a76ef
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xa8e6f5a8
sub dword [ebp - 0x40], 0x34748c52
mov dword [ebp - 0x3c], 0xb081519a
add dword [ebp - 0x3c], 0x90eb0fdb
mov dword [ebp - 0x38], 0x88002f29
add dword [ebp - 0x38], 0xdb6f3d43
mov dword [ebp - 0x34], 0x9413f169
add dword [ebp - 0x34], 0x6bec0e97
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xfcb925f1
add eax, 0x3890b33
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3f0d3
push 0
call eax
mov ecx, 0x2e77cfa2
sub ecx, 0x2e778245
xor esi, esi
add esi, eax
mov edx, 0x91f82cac
add edx, 0x6e4b1754
add edx, dword [ebp - 0x30]
mov ebx, 0x9df1f097
add ebx, 0xd292f72b
xor dword [ebp - 0x28], 0x9a44d5d7
mov edi, dword [edx]
mov dword [ebp - 0x24], 0xca37fd7f
add edi, ebx
mov dword [esi], edi
add esi, 4
add edx, 0x2349cea5
add edx, 0xdcb6315f
loop 0x420035
add eax, 0x9cbcd8dc
sub eax, 0x9cbbb095
mov ebx, eax
add eax, 0x25831dd
sub eax, 0x25831d8
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret