joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b540
Capabilities:
Create thread

Disassembly:
call fcn.100c6990
push 0x10134d50
push 0x10023f30
push dword [0x10134b28]
call fcn.100c6ad0
push 0x10134bbc
push 0x1002b720
push dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.100c6ad0
push 0
call fcn.100c6ef0
push 0
push 0
push 0
push 0x1001e280
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x1001cdb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101344c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x101134b0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov ebx, dword [ebp - 8]
add esp, 0xc
test ebx, ebx
jne 0x1001cdfc
lea eax, [ebx - 3]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c9684
mov esp, ebp
pop ebp
ret 4
push esi
push 2
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x1001ce16
mov esi, 0xfffffffd
jmp 0x1001ce8d
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
js 0x1001ce0f
jne 0x1001ce2c
xor esi, esi
jmp 0x1001ce8d
push edi
lea eax, [esi + 1]
push 0x101287f8
push eax
call fcn.100ca076
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001ce49
lea esi, [eax - 2]
jmp 0x1001ce8c
push 0
push 0
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push ebx
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x1c
cmp eax, esi
je 0x1001ce77
push edi
call fcn.100c98ab
mov esi, 0xfffffffd
jmp 0x1001ce89
mov ecx, dword [ebp - 0xc]
push eax
push edi
call fcn.1001cc30
push edi
mov esi, eax
call fcn.100c98ab
add esp, 4
pop edi
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.100c9684
mov esp, ebp
pop ebp
ret 4
Function at 0x10020ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101344c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100210ac
cmp byte [esi + 0x3d], 0
je 0x100210ac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1002109a
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 0x10021061
sub eax, 1
je 0x10021065
sub eax, 2
jne 0x1002109a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c9684
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10021083
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 0x1002109a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c9684
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c9684
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100c9684
mov esp, ebp
pop ebp
ret

Function at 0x10023140
Capabilities:
Execute command
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cd175
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101344c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x3c]
push str.start_cmd__C__color_b__title_Error__echo
push eax
call fcn.1000f1d0
push str.__timeout__t_5__nul_2_1
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
call fcn.1000f0f0
add esp, 0x18
mov ecx, eax
call fcn.100218b0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.100069d0
lea ecx, [ebp - 0x3c]
call fcn.100069d0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1002ecd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cdbe5
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x101344c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.100758b0
mov edi, eax
xorps xmm0, xmm0
test edi, edi
jne 0x1002ed6b
push 4
movups xmmword [esi], xmm0
push str.null
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.100040e0
mov ecx, dword [ebp + 0x20]
cmp ecx, 0xf
jbe 0x1002eea0
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ed5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002ed5c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100c9894
add esp, 8
jmp 0x1002eea0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movaps xmm0, xmmword [str._LMJH]
xor ecx, ecx
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 4], 1
movaps xmm0, xmmword [str.3_g__b__9cez]
movups xmmword [ebp - 0x48], xmm0
mov byte [ebp - 0x38], 1
lea eax, [ecx + 0x37]
xor byte [ebp + ecx - 0x58], al
inc ecx
cmp ecx, 0x1f
jb 0x1002eda1
lea eax, [ebp - 0x58]
mov byte [ebp - 0x38], 0
push eax
push 0x2712
push edi
call fcn.10078e70
push 0
push 0x40
push edi
call fcn.10078e70
push 0
push 0x51
push edi
call fcn.10078e70
cmp dword [ebp + 0x20], 0xf
lea eax, [ebp + 0xc]
cmova eax, dword [ebp + 0xc]
push eax
push 0x271f
push edi
call fcn.10078e70
push 0x10032880
push 0x4e2b
push edi
call fcn.10078e70
lea eax, [ebp - 0x2c]
push eax
push 0x2711
push edi
call fcn.10078e70
add esp, 0x48
push edi
call fcn.10075910
add esp, 4
test eax, eax
je 0x1002ee31
push 0x10
push 0
push eax
call fcn.100750a0
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.10075870
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x200002
push edi
call fcn.10075890
add esp, 0x10
cmp dword [ebp - 0x14], 0x1ad
je 0x1002eebd
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x14], 0
mov byte [ebp - 0x2c], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
call fcn.100069d0
lea ecx, [ebp + 0xc]
call fcn.100069d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c9684
mov esp, ebp
pop ebp
ret
sub esp, 0x18
mov ecx, esp
push str.Youre_connecting_too_fast_to_loader__slow_down.
call fcn.10006000
call fcn.10023140
int3
Function at 0x100328a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test ecx, ecx
jg 0x100328ca
jl 0x100328be
test eax, eax
jne 0x100328ca
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100328e3
push ecx
push eax
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
push edi
mov ecx, ebx
mov edi, eax
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov ecx, eax
test ecx, ecx
je 0x10032928
mov esi, dword [ebp + 0xc]
cmp ecx, esi
cmovb esi, ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov edi, dword [ebp - 4]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, esi
add esp, 0xc
mov dword [ebp - 4], edi
mov ecx, ebx
mov edi, dword [ebp + 0xc]
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
mov esi, dword [ebp - 4]
cmp dword [ebx + 0x4c], 0
je 0x10032998
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x1003294d
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x10032986
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10032998
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10032960
test ecx, ecx
je 0x10032998
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 0x100329b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100329d5
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 ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
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 ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x10032a40
jg 0x100329fb
test esi, esi
je 0x10032a40
test ecx, ecx
jl 0x10032a7a
jg 0x10032a05
test eax, eax
je 0x10032a7a
cmp edi, ecx
jg 0x10032a15
jl 0x10032a0f
cmp esi, eax
jae 0x10032a15
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x10032a67
jg 0x10032a4d
test esi, esi
je 0x10032a67
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x10032a67
push ecx
push esi
push 1
push eax
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 [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x10032a4d
Function at 0x100375b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, dword [0x10135110]
mov esi, dword [edi + 0x1a6c]
mov dword [ebp - 8], esi
test cl, 0x10
jne 0x1003770c
mov ebx, dword [esi + 0x114]
lea eax, [edi + 0x1aa4]
test ebx, ebx
je 0x100375f3
cmp dword [eax], ebx
jne 0x10037703
cmp byte [edi + 0xec], 0
je 0x10037703
test ebx, ebx
jne 0x10037690
test cl, 8
je 0x10037703
test byte [esi + 0x118], 1
jne 0x1003762e
cmp dword [eax], ebx
je 0x10037703
cmp dword [edi + 0x1ad0], esi
jne 0x10037703
mov ecx, dword [ebp - 8]
add esi, 0x11c
push esi
call fcn.1003b020
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push esi
mov dword [eax + 0x114], ebx
call fcn.1003d150
mov esi, dword [ebp - 8]
mov cl, al
add esp, 8
mov byte [ebp - 1], cl
test cl, cl
je 0x1003767a
cmp byte [edi + 0x3d8], 0
je 0x1003767a
push esi
push ebx
call fcn.10044a90
push esi
call fcn.1003a8d0
mov cl, byte [ebp - 1]
add esp, 0xc
cmp dword [edi + 0x1aa4], ebx
lea eax, [edi + 0x1aa4]
jne 0x10037703
mov byte [edi + 0x1ab1], cl
jmp 0x10037697
mov byte [edi + 0x1ab1], 0
cmp dword [eax], ebx
jne 0x10037703
mov ecx, dword [esi + 0xc4]
mov eax, dword [esi + 0xcc]
mov eax, dword [eax + ecx*4 - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x10135110]
cmp byte [eax + 0xec], 0
jne 0x100376c0
xor al, al
jmp 0x100376d7
movss xmm1, dword [eax + 0x30]
movss xmm0, dword [eax + 0x444]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
mov dword [edi + 0x1ab8], 0xffffffff
mov dword [edi + 0x1abc], 0xffffffff
mov dword [edi + 0x1ac0], 0xffffffff
mov dword [edi + 0x1ac4], 0xffffffff
test al, al
jne 0x1003774c
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
or ebx, 0xffffffff
mov dword [ebp - 8], esi
mov al, 0x23
mov edx, 0x10114f05
or esi, 0xffffffff
nop
cmp al, 0x23
jne 0x1003772e
cmp byte [edx], al
jne 0x1003772e
cmp byte [edx + 1], al
cmove ebx, esi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x10114940]
test al, al
jne 0x10037720
mov esi, dword [ebp - 8]
not ebx
cmp byte [edi + 0x1e64], 0
jne 0x10037792
call fcn.10038a70
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x1e80], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x1e7c], ebx
mov byte [edi + 0x1e64], 1
mov dword [edi + 0x1e68], eax
mov dword [edi + 0x1e70], 0
cmp ebx, dword [edi + 0x1aa4]
jne 0x10037792
mov byte [edi + 0x1ab2], 1
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x1a10]
mov dword [edi + 0x1e6c], eax
mov byte [edi + 0x1e65], 1
test bl, 1
jne 0x100377e5
push 0
push 0
call fcn.10037ae0
add esp, 8
cmp dword [edi + 0x1ecc], 0
je 0x100377e5
test dword [edi + 0x1ec0], 0x1000
je 0x100377e5
mov eax, dword [edi + 0x1a6c]
mov byte [eax + 0x87], 1
mov dword [eax + 0xa0], 1
test bl, 0x12
jne 0x100377f1
and dword [esi + 0x118], 0xfffffffe
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003af50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0xc4]
mov eax, dword [ecx + 0xcc]
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 + 0x10114940]
sub edi, 1
jne 0x1003af70
mov ecx, dword [0x10135110]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1aa4], eax
jne 0x1003afa2
mov dword [ecx + 0x1aa8], eax
cmp dword [ecx + 0x1adc], eax
jne 0x1003afb1
mov byte [ecx + 0x1ae0], 1
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101344c0]
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 + 0xc4]
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 + 0xcc]
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 + 0x10114940]
sub edi, 1
jne 0x1003b094
mov eax, dword [0x10135110]
not edx
pop edi
pop esi
cmp dword [eax + 0x1aa4], edx
jne 0x1003b0c5
mov dword [eax + 0x1aa8], edx
cmp dword [eax + 0x1adc], edx
jne 0x1003b0d4
mov byte [eax + 0x1ae0], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.100c9684
mov esp, ebp
pop ebp
ret 4
Function at 0x1003b8d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1003b8e2
mov dword [edi], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003ba10
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003b8fa
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
je 0x1003b9f1
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 0x1003b9f1
push esi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1003b9f1
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1003b9f1
mov eax, dword [0x10135110]
test eax, eax
je 0x1003b960
inc dword [eax + 0x370]
push dword [0x10135118]
mov eax, dword [ebp + 0x14]
add eax, ebx
push eax
call dword [0x101334f0]
add esp, 8
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1003b9f1
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x1003b9c1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x10135110]
add esp, 4
test eax, eax
je 0x1003b9a7
dec dword [eax + 0x370]
push dword [0x10135118]
mov eax, dword [ebp + 0x10]
push eax
call dword [0x101334f4]
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x1003b9d9
push eax
mov eax, dword [ebp + 0x10]
add eax, ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x1003b9e9
mov dword [edi], ebx
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1003bc20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
not ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
test edi, edi
je 0x1003bc83
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1003bc66
cmp edi, 2
jb 0x1003bc66
cmp byte [esi], cl
jne 0x1003bc66
cmp byte [esi + 1], cl
jne 0x1003bc66
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10114940]
jmp 0x1003bc37
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10114940]
test edi, edi
jne 0x1003bc37
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1003bcb8
nop word [eax + eax]
cmp cl, 0x23
jne 0x1003bc9f
cmp byte [esi], cl
jne 0x1003bc9f
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 + 0x10114940]
test cl, cl
jne 0x1003bc90
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x1003bef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x1003bf10
cmp eax, esi
jae 0x1003c088
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x1003c088
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x10114d80]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x1003bf42
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp - 3]
mov byte [ebp - 4], cl
cmp esi, edx
jae 0x1003bf5a
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x1003bf5e
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x1003bf69
mov ch, byte [esi]
jmp 0x1003bf6b
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x1003bf79
mov bl, byte [ebx]
jmp 0x1003bf7b
xor bl, bl
movzx esi, byte [ebp - 1]
movzx edx, ch
movzx ecx, cl
movzx edi, bl
mov byte [ebp - 2], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x10114da0]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x10114dc8]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x10114db4]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x10114ddc]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x1003c06f
xor edx, edx
cmp byte [ebp - 4], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1003befe
add eax, ebx
test esi, esi
je 0x1003c07e
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1003befe
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret