joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013cf0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x10017d80
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
mov eax, dword [0x10023a8c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 8]
push eax
call fcn.10013890
mov ecx, dword [esp + 0x68]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x6c], 0
call fcn.10013b30
add esp, 0xc
mov eax, dword [esp + 8]
test eax, eax
mov byte [esp + 0x60], 2
je 0x10013d56
push eax
call dword [0x10023c64]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10013890
mov edx, dword [esp + 0x6c]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x6c], 3
call fcn.10013b30
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x60], 5
je 0x10013d95
push eax
call dword [0x10023c64]
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.MSVCR80.dll_rename]
add esp, 8
test eax, eax
je 0x10013e45
mov esi, dword [sym.imp.MSVCR80.dll__errno]
call esi
mov eax, dword [eax]
sub eax, 2
je 0x10013e1a
sub eax, 0xb
je 0x10013def
call esi
mov ecx, dword [eax]
push 0
push 0
push ecx
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Rename:_Unknown_error
lea ecx, [esp + 0x3c]
call fcn.10001660
push 0x1001db9c
lea edx, [esp + 0x2c]
push edx
call sub.MSVCR80.dll__CxxThrowException
call esi
mov eax, dword [eax]
push 0
push 0
push eax
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Rename:_Permission_denied
lea ecx, [esp + 0x4c]
call fcn.10001660
push 0x1001db9c
lea ecx, [esp + 0x3c]
push ecx
call sub.MSVCR80.dll__CxxThrowException
call esi
mov edx, dword [eax]
push 0
push 0
push edx
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Rename:_Invalid_filename
lea ecx, [esp + 0x5c]
call fcn.10001660
push 0x1001db9c
lea eax, [esp + 0x4c]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [esp + 0x60], 2
je 0x10013e5c
push eax
call dword [0x10023c64]
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x60], 0xffffffff
je 0x10013e76
push eax
call dword [0x10023c64]
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x5c
ret 8
Function at 0x10013e90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10017db0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x10023a8c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.10013890
mov ecx, dword [esp + 0x58]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x5c], 0
call fcn.10013b30
add esp, 0xc
mov eax, dword [esp + 8]
test eax, eax
mov byte [esp + 0x50], 2
je 0x10013ef4
push eax
call dword [0x10023c64]
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR80.dll_remove]
add esp, 4
test eax, eax
je 0x10013f9f
mov esi, dword [sym.imp.MSVCR80.dll__errno]
call esi
mov eax, dword [eax]
sub eax, 2
je 0x10013f74
sub eax, 0xb
je 0x10013f49
call esi
mov edx, dword [eax]
push 0
push 0
push edx
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Delete:_Unknown_error
lea ecx, [esp + 0x2c]
call fcn.10001660
push 0x1001db9c
lea eax, [esp + 0x1c]
push eax
call sub.MSVCR80.dll__CxxThrowException
call esi
mov ecx, dword [eax]
push 0
push 0
push ecx
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Delete:_Permission_denied
lea ecx, [esp + 0x3c]
call fcn.10001660
push 0x1001db9c
lea edx, [esp + 0x2c]
push edx
call sub.MSVCR80.dll__CxxThrowException
call esi
mov eax, dword [eax]
push 0
push 0
push eax
push str.BIBUtilsDir
push str.BIBUtilsDirImpl::Delete:_Invalid_filename
lea ecx, [esp + 0x4c]
call fcn.10001660
push 0x1001db9c
lea ecx, [esp + 0x3c]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x50], 0xffffffff
je 0x10013fb9
push eax
call dword [0x10023c64]
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x4c
ret 4

Function at 0x10013fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10017df9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x10023a8c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call fcn.10013890
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], 1
call fcn.10013b30
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
mov byte [esp + 0x24], 3
je 0x1001403c
push eax
call dword [0x10023c64]
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
push 0
push ecx
mov ecx, esi
call fcn.100015c0
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 8], 1
mov byte [esp + 0x24], 0
je 0x1001406d
push eax
call dword [0x10023c64]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 8

Function at 0x10014282
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10023a8c]
jne 0x1001428c
repz ret
jmp fcn.100147ff
Function at 0x10004020
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0x2c]
sub esp, 0x1c
mov ecx, dword [0x10106354]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10106390]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, dword [ecx + 4]
jle 0x10004086
push 0x10106390
call fcn.100d8ed3
add esp, 4
cmp dword [0x10106390], 0xffffffff
jne 0x10004086
push str.client.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add eax, 0x151a0
push 0x10106390
mov dword [0x10106394], eax
call fcn.100d8e89
add esp, 4
mov eax, dword [0x10106394]
mov ecx, edi
call eax
push str.Claws
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.10007b20
lea edx, [ebx + 0x56]
mov ecx, eax
call fcn.10007000
mov ecx, dword [esp + 0x24]
mov byte [esp + 0xf], al
cmp ecx, 0x10
jb 0x100040e9
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100040db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100040db
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d8ffc
mov al, byte [esp + 0x17]
add esp, 8
test al, al
je 0x1000414c
test dword [esi + 0x24], 0x800
jne 0x1000410d
push dword [0x101055c0]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100041eb
mov eax, dword [0x10107740]
mov edx, dword [esi + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x100f509c]
movss xmm0, dword [eax + edi]
comiss xmm0, dword [ecx + 0xc]
jb 0x1000413a
and edx, 0xfffff7ff
mov dword [esi + 0x24], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or edx, 0x800
mov dword [esi + 0x24], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.Claws
lea ecx, [esp + 0x14]
call fcn.10007b20
lea edx, [ebx + 0x56]
mov ecx, eax
call fcn.10007000
mov ecx, dword [esp + 0x24]
mov bl, al
cmp ecx, 0x10
jb 0x1000419e
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004194
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004194
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d8ffc
add esp, 8
test bl, bl
jne 0x100041eb
test byte [esi + 0x24], 1
jne 0x100041bb
push dword [0x101055c0]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100041eb
mov eax, dword [0x10107740]
mov edx, dword [esi + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x100f509c]
movss xmm0, dword [eax + edi]
comiss xmm0, dword [ecx + 0xc]
jb 0x100041e5
and edx, 0xfffffffe
mov dword [esi + 0x24], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or edx, 1
mov dword [esi + 0x24], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ff70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1000ff8e
push 0
push 0
push 0
push 0x1000fd40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x100477c0
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 0x100477ec
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 0x10047814
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1004781a
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 0x10047882
jg 0x10047831
test esi, esi
je 0x10047882
test ecx, ecx
jl 0x1004787d
jg 0x1004783b
test eax, eax
je 0x1004787d
cmp edi, ecx
jg 0x1004784f
jl 0x10047845
cmp esi, eax
jae 0x1004784f
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 0x10047885
mov ecx, dword [ebp + 8]
jmp 0x1004788f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x100478a9
jg 0x1004788f
test esi, esi
je 0x100478a9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100478a9
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 0x100478c0
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 0x100478ec
jl 0x100478e0
test ecx, ecx
jne 0x100478ec
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10047905
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 0x1004794d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10047953
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 0x10047953
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x100479c6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1004797c
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 0x100479b4
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 0x100479c6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10047990
test edi, edi
je 0x100479c6
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 0x10047e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1010502c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10047e50
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10047e80
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10047e80
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10047f58
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10047ea9
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 0x10047eb5
movsx eax, bl
jmp 0x10047eed
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 0x10047f17
sub eax, 1
je 0x10047f17
sub eax, 2
jne 0x10047f58
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.100d8a78
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10047f35
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 0x10047f58
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.100d8a78
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.100d8a78
mov esp, ebp
pop ebp
ret 4
Function at 0x100483b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010502c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1004846c
cmp byte [esi + 0x3d], 0
je 0x1004846c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1004845a
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 0x10048421
sub eax, 1
je 0x10048425
sub eax, 2
jne 0x1004845a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10048443
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 0x1004845a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100d8a78
mov esp, ebp
pop ebp
ret
Function at 0x1004b630
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 0x1004b691
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1004b674
cmp edi, 2
jb 0x1004b674
cmp byte [esi], cl
jne 0x1004b674
cmp byte [esi + 1], cl
jne 0x1004b674
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100e7dd0]
jmp 0x1004b645
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100e7dd0]
test edi, edi
jne 0x1004b645
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1004b6c0
cmp cl, 0x23
jne 0x1004b6a7
cmp byte [esi], cl
jne 0x1004b6a7
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 + 0x100e7dd0]
test cl, cl
jne 0x1004b698
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x1004b7d0
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 0x1004b7e4
mov dword [ebx], 0
mov edx, 0x100e7ca4
call fcn.1004b6d0
mov esi, eax
test esi, esi
je 0x1004b8d2
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 0x1004b8c8
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 0x1004b8c8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x1004b8c8
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 0x1004b8c8
mov eax, dword [0x101075c0]
test eax, eax
je 0x1004b85c
inc dword [eax + 0x374]
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 0x1004b8c8
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 0x1004b8ad
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x101075c0]
add esp, 4
test eax, eax
je 0x1004b89a
dec dword [eax + 0x374]
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 0x1004b8bf
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 0x1004cfd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0xbc]
mov eax, dword [ecx + 0xc4]
push esi
push edi
lea esi, [ebp + 8]
mov edi, 4
mov eax, dword [eax + edx*4 - 4]
not eax
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100e7dd0]
sub edi, 1
jne 0x1004cff0
mov ecx, dword [0x101075c0]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1a3c], eax
jne 0x1004d022
mov dword [ecx + 0x1a40], eax
cmp dword [ecx + 0x1a74], eax
jne 0x1004d031
mov byte [ecx + 0x1a78], 1
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1010502c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movss xmm0, dword [edx]
mov edi, 0x10
subss xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0xbc]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc4]
lea esi, [ebp - 0x14]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100e7dd0]
sub edi, 1
jne 0x1004d0b4
mov eax, dword [0x101075c0]
not edx
pop edi
pop esi
cmp dword [eax + 0x1a3c], edx
jne 0x1004d0e5
mov dword [eax + 0x1a40], edx
cmp dword [eax + 0x1a74], edx
jne 0x1004d0f4
mov byte [eax + 0x1a78], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.100d8a78
mov esp, ebp
pop ebp
ret 4
Function at 0x1004f3d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
or edx, 0xffffffff
mov dword [ebp - 0x18], 0
mov edi, ecx
mov dword [ebp - 0x24], str.Window
mov esi, 0x100fa435
mov al, 0x57
or ebx, 0xffffffff
cmp al, 0x23
jne 0x1004f404
cmp byte [esi], al
jne 0x1004f404
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x100e7dd0]
test al, al
jne 0x1004f3f6
mov esi, dword [edi + 0x2e14]
not edx
mov ecx, dword [edi + 0x2e18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0x1005a780
mov dword [ebp - 0x14], 0x1005a800
mov dword [ebp - 0x10], 0x1005a850
mov dword [ebp - 0xc], 0x1005a920
mov dword [ebp - 8], 0x1005a9e0
cmp esi, ecx
jne 0x1004f4e8
inc esi
test ecx, ecx
je 0x1004f469
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1004f46e
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1004f4e8
mov eax, dword [0x101075c0]
test eax, eax
je 0x1004f486
inc dword [eax + 0x374]
lea eax, [esi + esi*8]
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [edi + 0x2e1c]
test eax, eax
je 0x1004f4dc
mov ecx, dword [edi + 0x2e14]
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2e1c]
add esp, 0xc
test ecx, ecx
je 0x1004f4d2
mov eax, dword [0x101075c0]
test eax, eax
je 0x1004f4d2
dec dword [eax + 0x374]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi + 0x2e1c], ebx
mov dword [edi + 0x2e18], esi
mov eax, dword [edi + 0x2e14]
movups xmm0, xmmword [ebp - 0x24]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x2e1c]
movups xmmword [eax + ecx*4], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x20], 0
inc dword [edi + 0x2e14]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10055030
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1010502c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101075c0]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1a08]
mov esi, 4
mov eax, dword [edi + 0xbc]
add edi, 0xbc
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100e7dd0]
sub esi, 1
jne 0x10055070
mov esi, dword [edi + 4]
not ebx
mov ecx, dword [edi]
cmp ecx, esi
jne 0x100550b7
inc ecx
test esi, esi
je 0x100550a5
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x100550aa
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1005b300
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.100d8a78
mov esp, ebp
pop ebp
ret