joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001608b
Capabilities:
Log keystrokes via polling

Disassembly:
cmp byte [0x101f5926], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x1001629c
mov ecx, dword [0x101bc294]
mov eax, dword [0x101f58d0]
cmp ecx, 3
ja case.0x10016072.0
jmp dword [ecx*4 + 0x100162a0]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x100160aa
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x100160aa
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x1001629c
mov edi, dword [0x101f565c]
test edi, edi
je 0x1001629c
mov eax, dword [0x101f5658]
test eax, eax
jne 0x100160f7
mov edx, 0xe80c2f78
mov ecx, 0x1014a9e5
call fcn.10003700
mov edx, 0xc10bf213
mov ecx, 0x1014a90d
mov esi, eax
call fcn.10003700
mov edx, esi
mov ecx, eax
call fcn.100aa660
mov dword [0x101f5658], eax
cmp dword [eax + edi], 0
jle 0x1001629c
call fcn.10009f10
cmp eax, 9
je 0x1001629c
cmp eax, 8
je 0x1001629c
cmp byte [0x101be5c1], 0
je 0x1001629c
mov eax, dword [0x101f5894]
mov ecx, dword [0x101bf740]
mov esi, dword [eax + 0x1c]
mov eax, dword fs:[0x2c]
dec esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101fae18]
cmp eax, dword [ecx + 4]
jle 0x10016181
push 0x101fae18
call fcn.1010e5e4
add esp, 4
cmp dword [0x101fae18], 0xffffffff
jne 0x10016181
mov edx, str.55_8B_EC_8B_4D___56_E8_________8B_75
mov ecx, str.client.dll
call fcn.10006670
push 0x101fae18
mov dword [0x101fae1c], eax
call fcn.1010e593
add esp, 4
push esi
push 0
call dword [0x101fae1c]
cmp byte [0x101be5c0], 0
jne 0x10016217
mov eax, dword [0x101be5c8]
cmp eax, dword [ebx + 8]
jge 0x100161c8
cmp byte [0x101f58e0], 0
je 0x100161bd
push str.solutional_print_pixelsurfed
push dword [0x101f56d4]
call fcn.10009ec0
add esp, 8
mov byte [0x101be5c0], 1
mov al, 1
jmp 0x100161ca
xor al, al
mov byte [0x101f5958], al
lea edx, [ebx + 0x30]
mov eax, dword [0x101be5d0]
mov eax, dword [eax + 0x30]
mov dword [edx], eax
mov ecx, dword [0x101be5d0]
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [0x101be5d0]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [0x101be5d0]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [0x101be5d0]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x2c], eax
jmp 0x1001621a
lea edx, [ebx + 0x30]
cmp byte [0x101be5c2], 0
mov eax, dword [edx]
je 0x1001622a
or eax, 4
jmp 0x1001622d
and eax, 0xfffffffb
mov dword [edx], eax
cmp byte [0x101be5c0], 0
je 0x1001629c
mov eax, dword [0x101f56d0]
mov edi, dword [0x101f565c]
test eax, eax
jne 0x10016275
mov edx, 0xe80c2f78
mov ecx, 0x10196741
call fcn.10003700
mov edx, 0xc10bf213
mov ecx, 0x1014a935
mov esi, eax
call fcn.10003700
mov edx, esi
mov ecx, eax
call fcn.100aa660
mov dword [0x101f56d0], eax
movss xmm0, dword [eax + edi + 8]
cvtps2pd xmm0, xmm0
ucomisd xmm0, qword [0x101b6658]
lahf
test ah, 0x44
jnp 0x1001629c
mov byte [0x101fadad], 0
mov word [0x101be5c0], 0
pop edi
pop esi
pop ebx
ret
Function at 0x1001609a
Capabilities:
Log keystrokes via polling

Disassembly:
cmp byte [0x101f5926], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x1001629c
mov ecx, dword [0x101bc294]
mov eax, dword [0x101f58d0]
cmp ecx, 3
ja case.0x10016072.0
jmp dword [ecx*4 + 0x100162a0]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x100160aa
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x100160aa
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x1001629c
mov edi, dword [0x101f565c]
test edi, edi
je 0x1001629c
mov eax, dword [0x101f5658]
test eax, eax
jne 0x100160f7
mov edx, 0xe80c2f78
mov ecx, 0x1014a9e5
call fcn.10003700
mov edx, 0xc10bf213
mov ecx, 0x1014a90d
mov esi, eax
call fcn.10003700
mov edx, esi
mov ecx, eax
call fcn.100aa660
mov dword [0x101f5658], eax
cmp dword [eax + edi], 0
jle 0x1001629c
call fcn.10009f10
cmp eax, 9
je 0x1001629c
cmp eax, 8
je 0x1001629c
cmp byte [0x101be5c1], 0
je 0x1001629c
mov eax, dword [0x101f5894]
mov ecx, dword [0x101bf740]
mov esi, dword [eax + 0x1c]
mov eax, dword fs:[0x2c]
dec esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101fae18]
cmp eax, dword [ecx + 4]
jle 0x10016181
push 0x101fae18
call fcn.1010e5e4
add esp, 4
cmp dword [0x101fae18], 0xffffffff
jne 0x10016181
mov edx, str.55_8B_EC_8B_4D___56_E8_________8B_75
mov ecx, str.client.dll
call fcn.10006670
push 0x101fae18
mov dword [0x101fae1c], eax
call fcn.1010e593
add esp, 4
push esi
push 0
call dword [0x101fae1c]
cmp byte [0x101be5c0], 0
jne 0x10016217
mov eax, dword [0x101be5c8]
cmp eax, dword [ebx + 8]
jge 0x100161c8
cmp byte [0x101f58e0], 0
je 0x100161bd
push str.solutional_print_pixelsurfed
push dword [0x101f56d4]
call fcn.10009ec0
add esp, 8
mov byte [0x101be5c0], 1
mov al, 1
jmp 0x100161ca
xor al, al
mov byte [0x101f5958], al
lea edx, [ebx + 0x30]
mov eax, dword [0x101be5d0]
mov eax, dword [eax + 0x30]
mov dword [edx], eax
mov ecx, dword [0x101be5d0]
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [0x101be5d0]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [0x101be5d0]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [0x101be5d0]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x2c], eax
jmp 0x1001621a
lea edx, [ebx + 0x30]
cmp byte [0x101be5c2], 0
mov eax, dword [edx]
je 0x1001622a
or eax, 4
jmp 0x1001622d
and eax, 0xfffffffb
mov dword [edx], eax
cmp byte [0x101be5c0], 0
je 0x1001629c
mov eax, dword [0x101f56d0]
mov edi, dword [0x101f565c]
test eax, eax
jne 0x10016275
mov edx, 0xe80c2f78
mov ecx, 0x10196741
call fcn.10003700
mov edx, 0xc10bf213
mov ecx, 0x1014a935
mov esi, eax
call fcn.10003700
mov edx, esi
mov ecx, eax
call fcn.100aa660
mov dword [0x101f56d0], eax
movss xmm0, dword [eax + edi + 8]
cvtps2pd xmm0, xmm0
ucomisd xmm0, qword [0x101b6658]
lahf
test ah, 0x44
jnp 0x1001629c
mov byte [0x101fadad], 0
mov word [0x101be5c0], 0
pop edi
pop esi
pop ebx
ret
Function at 0x10020670
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 0x1002069c
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 0x100206c4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100206ca
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 0x10020732
jg 0x100206e1
test esi, esi
je 0x10020732
test ecx, ecx
jl 0x1002072d
jg 0x100206eb
test eax, eax
je 0x1002072d
cmp edi, ecx
jg 0x100206ff
jl 0x100206f5
cmp esi, eax
jae 0x100206ff
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 0x10020735
mov ecx, dword [ebp + 8]
jmp 0x1002073f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10020759
jg 0x1002073f
test esi, esi
je 0x10020759
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10020759
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 0x10020770
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x10020791
jl 0x10020787
test esi, esi
jne 0x10020791
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100207a9
push eax
push esi
push dword [esp + 0x18]
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
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edx, dword [eax]
mov edi, esi
test edx, edx
je 0x100207f0
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x100207f7
cmp eax, dword [esp + 0x1c]
cmovb esi, eax
push esi
push edx
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x100207f7
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x10020866
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10020821
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 [esp + 0x10]
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 0x10020854
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call eax
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10020866
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10020830
test edi, edi
je 0x10020866
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call eax
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x10020be0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10020bfa
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10020c22
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx]
add ecx, eax
cmp eax, ecx
jae 0x10020c22
mov ecx, esi
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
add esp, 0x28
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10020cf2
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10020c4b
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 0x10020c57
movsx eax, bl
jmp 0x10020c97
lea eax, [esp + 0x38]
mov byte [esp + 0xf], bl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
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 0x10020cb7
sub eax, 1
je 0x10020cb7
sub eax, 2
jne 0x10020cf2
movsx eax, byte [esp + 0xf]
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x28
ret 4
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x14]
sub edi, eax
je 0x10020cd7
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 0x10020cf2
lea ecx, [esp + 0xf]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x10], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
add esp, 0x28
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 4
Function at 0x10021150
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100211e2
cmp byte [esi + 0x3d], 0
je 0x100211e2
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100211da
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
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 0x100211a9
sub eax, 1
je 0x100211ad
sub eax, 2
jne 0x100211da
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
add esp, 0x24
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x100211cd
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 0x100211da
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
add esp, 0x24
ret
pop edi
xor al, al
pop esi
add esp, 0x24
ret
mov al, 1
pop esi
add esp, 0x24
ret
Function at 0x100255f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, ebx
push esi
push edi
cmp dword [ebx + 0x14], 0xf
mov edi, dword [ebx + 0x10]
jbe 0x1002560c
mov edx, dword [ebx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x10025628
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x10025617
push esi
push ebx
lea eax, [esp + 0x40]
push eax
call fcn.10025480
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x1002564e
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x101bfa08], 0x71c71c7
jne 0x10025665
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
push 0x24
call fcn.1010e213
add esp, 4
mov edi, eax
lea ecx, [edi + 8]
push ebx
call fcn.1000eb00
mov ecx, dword [ebx + 0x18]
mov dword [edi + 0x20], ecx
mov ecx, dword [0x101bfa08]
mov ebx, dword [0x101bfa1c]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101b68e0]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x101b68e0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x101bfa00]
comiss xmm1, xmm0
jbe 0x1002573e
divss xmm2, xmm0
sub esp, 8
movss dword [esp + 0x40], xmm2
fld dword [esp + 0x40]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [esp + 0x38]
movss xmm0, dword [esp + 0x38]
call fcn.1010f560
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x1002571f
cmp ebx, 0x200
jae 0x1002571d
shl ebx, 3
cmp ebx, ecx
jae 0x1002571f
mov ebx, ecx
push ebx
call fcn.100257b0
push esi
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.10025480
mov ecx, dword [0x101bfa08]
mov edx, dword [eax]
jmp 0x10025742
mov edx, dword [esp + 0x38]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x101bfa08], ecx
mov dword [edi], edx
mov dword [edi + 4], ebx
mov dword [ebx], edi
mov dword [edx + 4], edi
mov eax, dword [0x101bfa18]
mov ecx, dword [0x101bfa0c]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [0x101bfa04]
jne 0x10025773
mov dword [ecx + eax*8], edi
jmp 0x10025792
cmp esi, edx
jne 0x1002578c
mov dword [ecx + eax*8], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ecx + eax*8 + 4], ebx
jne 0x10025796
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10047500
Capabilities:
Create thread

Disassembly:
sub esp, 0x4c
push esi
push edi
push 0x1014a740
push 0x64
mov esi, edx
call fcn.1010e81c
mov edi, eax
add esp, 8
test edi, edi
je 0x100476fa
push 0x64
push 0
push edi
call sub.VCRUNTIME140.dll_memset
lea eax, [edi + 4]
mov byte [edi], 1
add esp, 0xc
mov dword [eax + 4], 0
mov dword [eax + 8], 0
xorps xmm0, xmm0
movups xmmword [eax + 0xc], xmm0
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push 2
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 0xc
mov dword [0x101f12a0], edi
lea eax, [esp + 0x10]
xorps xmm0, xmm0
movq qword [edi + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push str.1023218247476195402
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [esp + 0x10]
call fcn.10046550
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x101bfbf4
mov dword [0x101f12a4], eax
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x100475d1
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [0x101bfc20]
cmp eax, 0x7fffffff
jne 0x100475eb
dec eax
push 6
mov dword [0x101bfc20], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
test esi, esi
je 0x10047600
movups xmm0, xmmword [esi]
movups xmmword [0x101f1188], xmm0
movq xmm0, qword [esi + 0x10]
jmp 0x1004760a
xorps xmm0, xmm0
movups xmmword [0x101f1188], xmm0
movq qword [0x101f1198], xmm0
xorps xmm0, xmm0
push 0x101bfbf4
movups xmmword [0x101f13a8], xmm0
movq qword [0x101f13b8], xmm0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
cmp dword [0x101f53c4], 0
jne 0x10047704
mov eax, str.1023218247476195402
mov dword [0x101e0c98], 0x101bc8a8
mov esi, 1
mov edx, 0x101e0ca8
sub esi, eax
nop word [eax + eax]
lea ecx, [eax + esi]
cmp ecx, 0x40
jae 0x10047673
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp byte [eax], 0
jne 0x10047660
mov esi, dword [0x101f12a0]
mov al, 1
mov byte [edx], 0
mov dword [0x101f53c4], 0x101e0c98
mov dword [0x101e0ca0], 0x10047ae0
mov dword [0x101e0ca4], 0x10047af0
xchg byte [esi], al
push 4
call fcn.1010e213
add esp, 4
lea ecx, [esp + 0xc]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10047d90
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [esp + 8], ecx
test ecx, ecx
je 0x100476ea
cmp dword [esi + 0x60], 0
je 0x100476da
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [esp + 0xc]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
add esp, 0x4c
ret
push 6
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [0x101f12a0], 0
pop edi
pop esi
add esp, 0x4c
ret
Function at 0x10048540
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [0x101f53c4]
push esi
push dword [esp + 0x18]
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x100485f7
mov eax, dword [edi]
test eax, eax
je 0x100485b2
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x100485b2
test ebx, ebx
je 0x100485b2
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x100485b2
cmp dword [esp + 0x18], esi
je 0x100485f7
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x100485d2
mov eax, dword [edi + 4]
cmp eax, 3
je 0x100485c6
cmp eax, 1
jne 0x100485d2
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
pop ecx
ret 8
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
ret 8
Function at 0x1004ce90
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1004ceee
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1004ced2
cmp edi, 2
jb 0x1004ced2
cmp byte [esi], cl
jne 0x1004ced2
cmp byte [esi + 1], cl
jne 0x1004ced2
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10188d38]
jmp 0x1004cea3
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10188d38]
test edi, edi
jne 0x1004cea3
pop edi
pop esi
not eax
pop ebx
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1004cf1d
cmp cl, 0x23
jne 0x1004cf04
cmp byte [esi], cl
jne 0x1004cf04
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 + 0x10188d38]
test cl, cl
jne 0x1004cef5
pop edi
pop esi
not eax
pop ebx
ret

Function at 0x1004d000
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
test ebx, ebx
je 0x1004d012
mov dword [ebx], 0
mov edx, 0x101ada40
call fcn.1004cf30
mov esi, eax
test esi, esi
je 0x1004d0f0
mov ebp, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebp
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x1004d0e6
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 0x1004d0e6
push esi
call ebp
mov ebp, eax
add esp, 4
cmp ebp, 0xffffffff
je 0x1004d0e6
push 0
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1004d0e6
mov eax, dword [0x101bf8f4]
test eax, eax
je 0x1004d084
inc dword [eax + 0x370]
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x1004d0e6
push esi
push ebp
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, ebp
je 0x1004d0d0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x101bf8f4]
add esp, 4
test eax, eax
je 0x1004d0bf
dec dword [eax + 0x370]
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 ebp
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x1004d0df
mov dword [ebx], ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret