joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dcf4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45de9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45de80
mov dl, 1
mov eax, dword [0x4180d4]
call fcn.004034c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404284
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45de6f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044a9a4
test al, al
je 0x45de62
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45deb0
lea eax, [ebp - 0x254]
call fcn.00409858
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45de62
xor eax, eax
push ebp
push 0x45de5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45dee8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45de44
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044fc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45de44
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45de62
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45dd65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c684
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dea6
lea eax, [ebp - 0x260]
call fcn.00404284
ret

Function at 0x45e7d4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x48cc38]
cmp byte [eax + 0xa5], 0
jne 0x45e845
cmp dword [0x48cc50], 0
jne 0x45e806
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45e790
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48cc50], eax
cmp dword [0x48cc4c], 0
jne 0x45e821
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48cc4c], eax
cmp dword [0x48cc54], 0
jne 0x45e845
push esp
push 0
push 0
push 0x45e734
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48cc54], eax
pop edx
ret
Function at 0x403c70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x466c74]
push esi
mov esi, dword [0x466c60]
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [0x466168]
push 1
mov dword [ebp - 0x10], esi
movss dword [ebp - 0x14], xmm0
call edi
movss xmm1, dword [0x460ca0]
movzx edx, ax
shr edx, 0xf
and dl, 1
cmp byte [0x466c6e], 1
jne 0x403cdb
mov eax, dword [0x466c5c]
mov ebx, dword [0x466c58]
mov dword [ebp - 0x10], eax
movss dword [ebp - 0x14], xmm1
cmp byte [0x466c78], 0
mov esi, dword [0x466b74]
je 0x403cf7
xor eax, eax
test dl, dl
cmove esi, eax
mov dword [0x466b74], esi
cmp byte [0x466b82], 0
mov byte [0x466c78], dl
je 0x403d1e
imul ecx, dword [0x466b7c], 0x7530
imul eax, esi, 0x3e8
cmp eax, ecx
jge 0x403e2b
test dl, dl
je 0x403e2b
movd xmm0, esi
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [0x466b74], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp byte [0x466c6c], 0
je 0x403d5c
push 2
call edi
bt ax, 0xf
jae 0x403e2b
mov eax, dword [0x466c68]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jle 0x403d6e
push eax
call esi
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [ebp - 0x10]
mulss xmm0, dword [ebp - 0x14]
mulss xmm0, dword [0x46616c]
movss dword [ebp - 0x10], xmm0
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
xorps xmm0, xmm0
cvtsi2ss xmm0, ebx
fstp dword [ebp - 0x10]
mulss xmm0, dword [ebp - 0x14]
cvttss2si edi, dword [ebp - 0x10]
mulss xmm0, dword [0x46616c]
movss dword [ebp - 0x10], xmm0
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp dword [ebp - 0x10]
cvttss2si ebx, dword [ebp - 0x10]
add esp, 8
cmp byte [0x466c6d], 0
je 0x403dfc
mov esi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call esi
cdq
mov ecx, 5
idiv ecx
dec edi
add edi, edx
call esi
cdq
mov ecx, 5
idiv ecx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
add ebx, edx
cmp byte [0x466c70], 0
je 0x403e15
push 0
push 0
push ebx
push edi
push 1
call dword [sym.imp.USER32.dll_mouse_event]
jmp 0x403e27
mov eax, dword [ebp - 8]
add eax, ebx
push eax
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
push 0x14
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004571c9
mov esp, ebp
pop ebp
ret
Function at 0x403e40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movss xmm0, dword [0x466c30]
mov eax, dword [0x466c34]
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
movss dword [ebp - 0x14], xmm1
movss dword [ebp - 0xc], xmm0
mov dword [ebp - 8], eax
call edi
bt ax, 0xf
jae 0x403fc8
push ebx
push esi
nop dword [eax + eax]
movss xmm0, dword [ebp - 0xc]
sub esp, 8
mulss xmm0, dword [0x466158]
movss dword [ebp - 4], xmm0
fld dword [ebp - 4]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [0x466c74]
fstp dword [ebp - 4]
mulss xmm0, dword [0x466168]
cvttss2si esi, dword [ebp - 4]
mulss xmm0, dword [0x46616c]
movss dword [ebp - 4], xmm0
fld dword [ebp - 4]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
xor ebx, ebx
fstp dword [ebp - 4]
test esi, esi
js 0x403faf
push 1
call edi
mov ecx, 0x8000
test cx, ax
je 0x403f41
movd xmm1, esi
movd xmm0, ebx
cvtdq2ps xmm1, xmm1
push 0
push 0
cvtdq2ps xmm0, xmm0
cvttss2si eax, dword [ebp - 4]
divss xmm0, xmm1
push eax
push ecx
mulss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
fld dword [ebp - 0x10]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
add esp, 4
call fcn.00458660
push eax
push 1
call dword [sym.imp.USER32.dll_mouse_event]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, esi
jle 0x403ee3
test esi, esi
js 0x403faf
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x10], xmm0
push 1
call edi
mov ecx, 0x8000
test cx, ax
je 0x403faf
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push 0
push 0
cvttss2si eax, dword [ebp - 4]
divss xmm0, dword [ebp - 0x10]
push eax
push ecx
mulss xmm0, dword [ebp - 0x10]
movss dword [ebp - 0x14], xmm0
fld dword [ebp - 0x14]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
fstp dword [ebp - 0x14]
cvttss2si eax, dword [ebp - 0x14]
add esp, 4
neg eax
push eax
push 1
call dword [sym.imp.USER32.dll_mouse_event]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jns 0x403f51
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call edi
bt ax, 0xf
jb 0x403e80
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x408760
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov ecx, dword [ebp + 0x1c]
add esp, 4
cmp ecx, 0x10
jb 0x4087ae
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4087a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4087a4
jmp dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00457642
add esp, 8
pop ebp
ret

Function at 0x409400
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x466c6d], 1
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.Lightning_Macros__32_Bit_
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x409435
push 0
push 0x4092b0
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
push str.ConsoleWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4109a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4109cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
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__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4109f4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4109fa
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x410a62
jg 0x410a11
test esi, esi
je 0x410a62
test ecx, ecx
jl 0x410a5d
jg 0x410a1b
test eax, eax
je 0x410a5d
cmp edi, ecx
jg 0x410a2f
jl 0x410a25
cmp esi, eax
jae 0x410a2f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x410a65
mov ecx, dword [ebp + 8]
jmp 0x410a6f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x410a89
jg 0x410a6f
test esi, esi
je 0x410a89
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x410a89
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x410acc
jl 0x410ac0
test ecx, ecx
jne 0x410acc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x410ae5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x410b2d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x410b33
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x410b33
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x410ba6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x410b5c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x410b94
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x410ba6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x410b70
test edi, edi
je 0x410ba6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x410f60
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004571c9
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x410f9c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x410f9c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004571c9
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x411073
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x410fc4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x410fd0
movsx eax, bl
jmp 0x411008
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x411032
sub eax, 1
je 0x411032
sub eax, 2
jne 0x411073
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004571c9
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x411050
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x411073
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004571c9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004571c9
mov esp, ebp
pop ebp
ret 4
Function at 0x411ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x411d9c
cmp byte [esi + 0x3d], 0
je 0x411d9c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x411d8a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x411d51
sub eax, 1
je 0x411d55
sub eax, 2
jne 0x411d8a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004571c9
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x411d73
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x411d8a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004571c9
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004571c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004571c9
mov esp, ebp
pop ebp
ret
Function at 0x415c40
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x415ca1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x415c84
cmp edi, 2
jb 0x415c84
cmp byte [esi], cl
jne 0x415c84
cmp byte [esi + 1], cl
jne 0x415c84
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x45c408]
jmp 0x415c55
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x45c408]
test edi, edi
jne 0x415c55
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x415cd0
cmp cl, 0x23
jne 0x415cb7
cmp byte [esi], cl
jne 0x415cb7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x45c408]
test cl, cl
jne 0x415ca8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x415de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x415df4
mov dword [ebx], 0
mov edx, 0x45c1e8
call fcn.00415ce0
mov esi, eax
test esi, esi
je 0x415ee2
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x415ed8
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x415ed8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x415ed8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x415ed8
mov eax, dword [0x466c90]
test eax, eax
je 0x415e6c
inc dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x415ed8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x415ebd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x466c90]
add esp, 4
test eax, eax
je 0x415eaa
dec dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x415ecf
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417f80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ebp - 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
mov dword [ebp - 8], edi
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x45c408]
sub esi, 1
jne 0x417fb3
mov eax, dword [0x466c90]
not ebx
cmp dword [eax + 0x1be0], ebx
jne 0x417fe2
mov dword [eax + 0x1be4], ebx
cmp dword [eax + 0x1c1c], ebx
jne 0x417ff1
mov byte [eax + 0x1c20], 1
cmp dword [eax + 0x1bc8], ebx
jne 0x41800a
push ecx
push edi
mov edx, 4
mov ecx, ebx
call fcn.00428810
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004571c9
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0xe0]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0xe4]
subss xmm0, xmm1
mov ecx, dword [edx + 0xc4]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xcc]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x45c408]
sub edi, 1
jne 0x4180a0
mov eax, dword [0x466c90]
not edx
cmp dword [eax + 0x1be0], edx
jne 0x4180cf
mov dword [eax + 0x1be4], edx
cmp dword [eax + 0x1c1c], edx
jne 0x4180de
mov byte [eax + 0x1c20], 1
mov ecx, dword [ebp - 8]
mov eax, edx
pop edi
xor ecx, ebp
pop esi
call fcn.004571c9
mov esp, ebp
pop ebp
ret 4
Function at 0x41c7e0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x41c81d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41c803
cmp byte [esi], bl
jne 0x41c803
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x45c408]
test bl, bl
jne 0x41c7f4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0041c780

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x466c90]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1ba8]
mov esi, 4
mov eax, dword [edi + 0xc4]
add edi, 0xc4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x45c408]
sub esi, 1
jne 0x421e11
mov eax, dword [0x466c90]
not ebx
cmp dword [eax + 0x1bc8], ebx
jne 0x421e4b
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.00428810
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x421e76
inc esi
test ecx, ecx
je 0x421e64
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x421e69
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.00429210
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004571c9
mov esp, ebp
pop ebp
ret