joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d0259
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d00d8

Function at 0x5d5a24
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d56e4

Function at 0x5dbc50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 1
push edi
push edi
push str.RANDFILE
mov dword [ebp - 8], str.RANDFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
jne 0x5dbce1
push edi
push edi
push str.HOME
mov dword [ebp - 8], str.HOME
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x5dbce1
push eax
push eax
push str.USERPROFILE
mov dword [ebp - 8], str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x5dbce1
push eax
push eax
push str.SYSTEMROOT
mov dword [ebp - 8], str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x5dbd59
lea eax, [esi + esi]
call fcn.0052eac0
mov eax, esp
push esi
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jae 0x5dbd47
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 8], eax
test eax, eax
je 0x5dbd47
call fcn.0052eac0
mov esi, esp
push 0
push 0
push dword [ebp - 8]
push esi
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, esi
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x5dbd62
test edi, edi
jne 0x5dbd66
mov edi, 0x698b08
jmp 0x5dbd6b
mov edx, edi
mov edi, 0x698b08
jmp 0x5dbd6b
test edi, edi
je 0x5dbdd8
cmp byte [edi], 0
je 0x5dbdd8
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5dbd70
sub ecx, esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x5dbdac
lea eax, [ecx + 1]
cmp eax, esi
jae 0x5dbdac
push esi
push edi
push ebx
call fcn.004958d0
add esp, 0xc
cmp eax, esi
jb 0x5dbddb
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, esi
jae 0x5dbddb
push esi
push edi
push ebx
call fcn.004958d0
push esi
push 0x64d948
push ebx
call fcn.00495870
push esi
push str..rnd
push ebx
call fcn.00495870
add esp, 0x24
jmp 0x5dbddb
mov byte [ebx], 0
mov eax, ebx
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
Function at 0x5dbe00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x44], edi
test eax, eax
je 0x5dbf62
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5dbf62
push 0x65d920
push eax
call fcn.004ce200
mov ebx, eax
add esp, 8
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x5dbf4b
push 0x30
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.005b1170
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.005c844a
add esp, 4
push eax
call fcn.005cd625
add esp, 8
test eax, eax
js 0x5dbf42
lea eax, [edi + 8]
call fcn.0052e070
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.004a2790
add esp, 0x10
test dword [esp + 0x4e], 0x2000
je 0x5dbec6
mov eax, 0x800
cmp esi, 0xffffffff
push edi
push ebx
cmove esi, eax
call fcn.00606d12
add esp, 8
mov edi, 0x400
test esi, esi
jle 0x5dbed4
cmp esi, edi
cmovl edi, esi
push ebx
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.005c863c
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x5dbf28
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.0052e070
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push ebx
push eax
call fcn.004a2790
add dword [esp + 0x54], ebx
add esp, 0x10
mov ebx, dword [esp + 0x40]
test esi, esi
jle 0x5dbec6
sub esi, edi
test esi, esi
jg 0x5dbec6
lea eax, [esp + 0x78]
push 0x400
push eax
call fcn.0048cdf0
mov ebx, dword [esp + 0x48]
add esp, 8
mov edi, dword [esp + 0x44]
push ebx
call fcn.005c0386
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x47c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052e057
mov esp, ebp
pop ebp
ret
Function at 0x601f00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xac
call fcn.0052e070
mov eax, dword [0x6c0924]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb0]
push ebx
push ebp
mov dword [esp + 0x2c], eax
xor ebp, ebp
mov eax, dword [esp + 0xbc]
push esi
push edi
mov edi, dword [esp + 0xc8]
mov esi, dword [eax + 8]
mov dword [esp + 0x1c], esi
sub esi, edi
mov dword [esp + 0x10], esi
cmp dword [eax + 0xc], edi
jae 0x601f60
push 0x4c7
push 0x69cb94
push str.assertion_failed:_rec__orig_len___md_size
call fcn.00491400
add esp, 0xc
cmp edi, 0x40
jbe 0x601f7c
push 0x4c8
push 0x69cb94
push str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.00491400
add esp, 0xc
lea eax, [esp + 0x38]
neg eax
lea ebx, [esp + 0x38]
and eax, 0x3f
add ebx, eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax + 0xc]
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jbe 0x601fb1
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x3c], esi
call fcn.005b1170
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0x20]
jae 0x602088
mov ecx, dword [esp + 0x1c]
mov esi, ebx
mov edx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x1f
sub ebp, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc4]
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x14]
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
lea ebx, [ecx + ebp]
shr ebx, 0x1f
lea ecx, [edi + ebp]
shr ecx, 0x1f
xor cl, dl
xor dl, bl
or cl, dl
mov edx, ebp
xor cl, bl
shr edx, 0x1f
xor dl, byte [esp + 0x14]
dec cl
mov dword [esp + 0x2c], ecx
mov cl, byte [eax + ebp]
mov al, bl
xor al, byte [esp + 0x14]
inc ebp
or dl, al
xor dl, bl
mov ebx, dword [esp + 0x18]
neg dl
and dl, cl
and dl, byte [esp + 0x2c]
or byte [ebx + esi], dl
inc ebx
mov edx, dword [esp + 0x10]
mov ecx, ebx
sub ecx, edi
mov eax, ebx
xor ecx, edi
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
lea eax, [ecx + ebp]
cmp eax, dword [esp + 0x20]
jb 0x602011
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
xor edx, edx
test edi, edi
je 0x6020bc
mov ebp, dword [esp + 0x34]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x602092
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052e057
add esp, 0xac
ret
Function at 0x602c00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.0052e070
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 1
je 0x602c8a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x602c8e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0xb0]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.0048ce30
push eax
call fcn.0048cfb0
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x602c97
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x602c42
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x602d14
mov eax, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr eax, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x10]
lea edi, [edi - 1]
mov edx, esi
mov ecx, ebp
sub edx, ebp
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc ebp
movzx ecx, byte [esp + 0x2c]
or dl, al
movzx eax, byte [edi + 1]
dec dl
movzx edx, dl
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
cmp ebp, dword [esp + 0x14]
jb 0x602cd5
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov eax, ecx
pop ebx
mov dword [edi + 8], esi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x410a37
Capabilities:
Parse pe header

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

Function at 0x4131d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4131fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4131fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x111b9f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x94a000]
push edi
or ebp, 0xffffffff
jmp 0x111ba12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x111ba19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x111ba08
mov eax, 1
add ebx, ebx
jne 0x111ba2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x111ba3c
jne 0x111ba5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x111ba5b
dec eax
add ebx, ebx
jne 0x111ba48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x111ba20
add ebx, ebx
jne 0x111ba57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x111baad
xor ecx, ecx
sub eax, 3
jb 0x111ba73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x111bae2
sar eax, 1
mov ebp, eax
jmp 0x111ba7e
add ebx, ebx
jne 0x111ba7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x111ba4c
inc ecx
add ebx, ebx
jne 0x111ba8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x111ba4c
add ebx, ebx
jne 0x111ba99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x111ba8e
jne 0x111baaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x111ba8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x111bacc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x111babe
jmp 0x111ba0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x111bacc
add edi, ecx
jmp 0x111ba0e
pop esi
mov edi, esi
mov ecx, 0x360bf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x111baea
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x111baef
lea edi, [esi + 0xcbd000]
mov eax, dword [edi]
or eax, eax
je 0x111bb60
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd228a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd22b30]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x111bb15
mov ecx, edi
jns 0x111bb44
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd22b38]
or eax, eax
je 0x111bb5a
mov dword [ebx], eax
add ebx, 4
jmp 0x111bb32
call dword [esi + 0xd22b34]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x111bb9a
cmp al, 0xef
ja 0x111bb84
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x111bb66
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x111bb73
mov eax, dword [edi]
add edi, 4
jmp 0x111bb73
mov ebp, dword [esi + 0xd22b3c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x111bbce
sub esp, 0xffffff80
jmp 0xc94a88
Function at 0x10005570
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jb 0x1000558e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x100055b4
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x100055a0
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.10007950
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
test eax, eax
je 0x100055d4
add eax, 0x20
mov esp, ebp
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
int3
Function at 0x1000e5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10137008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000e66c
cmp byte [esi + 0x3d], 0
je 0x1000e66c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000e65a
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 0x1000e621
sub eax, 1
je 0x1000e625
sub eax, 2
jne 0x1000e65a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100eeb4d
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000e643
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 0x1000e65a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100eeb4d
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100eeb4d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100eeb4d
mov esp, ebp
pop ebp
ret

Function at 0x1001ac50
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 0x1001ac9c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1001ac7f
cmp edi, 2
jb 0x1001ac7f
cmp byte [esi], cl
jne 0x1001ac7f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1010c458]
test edi, edi
jne 0x1001ac65
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1001accb
cmp cl, 0x23
jne 0x1001acb2
cmp byte [esi], cl
jne 0x1001acb2
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 + 0x1010c458]
test cl, cl
jne 0x1001aca3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x1001adb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1001adc4
mov dword [edi], 0
mov edx, 0x10111ef8
call fcn.1001ace0
mov esi, eax
test esi, esi
je 0x1001aec0
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 - 4], eax
cmp eax, 0xffffffff
je 0x1001aeb6
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 0x1001aeb6
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x1001aeb6
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 0x1001aeb6
mov eax, dword [0x10141c24]
test eax, eax
je 0x1001ae40
inc dword [eax + 0x36c]
push dword [0x10141c1c]
push ebx
call fcn.1001a570
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1001aeb6
push esi
push dword [ebp + 8]
push 1
push ebx
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 0x1001ae9b
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x10141c24]
add esp, 4
test eax, eax
je 0x1001ae83
dec dword [eax + 0x36c]
push dword [0x10141c1c]
push ebx
call fcn.1001a590
add esp, 8
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 edi, edi
je 0x1001aead
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
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 0x1001aed0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov bl, byte [edx]
movzx eax, bl
shr eax, 3
mov dword [ebp - 0xc], ecx
push esi
push edi
movsx ecx, byte [eax + 0x10111ffc]
xor eax, eax
test ecx, ecx
mov dword [ebp - 8], ecx
sete al
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x1001af04
lea ecx, [eax + edx]
cmp edx, ecx
lea esi, [edx + 1]
sbb al, al
and al, bl
mov byte [ebp - 3], al
cmp esi, ecx
jae 0x1001af18
mov ah, byte [esi]
jmp 0x1001af1a
xor ah, ah
lea esi, [edx + 2]
mov byte [ebp - 2], ah
cmp esi, ecx
jae 0x1001af28
mov bl, byte [esi]
jmp 0x1001af2a
xor bl, bl
add edx, 3
mov byte [ebp - 1], bl
cmp edx, ecx
jae 0x1001af38
mov cl, byte [edx]
jmp 0x1001af3a
xor cl, cl
mov edx, dword [ebp - 8]
movzx edi, ah
movzx eax, al
movzx esi, bl
movzx ebx, cl
mov byte [ebp + 0xb], cl
mov ecx, dword [edx*4 + 0x1011201c]
and ecx, eax
mov eax, edi
and eax, 0x3f
shl ecx, 6
or ecx, eax
and edi, 0xc0
shl ecx, 6
mov eax, esi
and eax, 0x3f
and esi, 0xc0
or ecx, eax
mov eax, ebx
and eax, 0x3f
shr ebx, 2
or ebx, esi
shl ecx, 6
mov esi, dword [ebp - 8]
or ecx, eax
mov eax, dword [edx*4 + 0x10111fe8]
shrx edx, ecx, eax
mov eax, dword [ebp - 0xc]
shr ebx, 2
or ebx, edi
mov edi, 0x80
shr ebx, 2
cmp edx, dword [esi*4 + 0x10112030]
mov dword [eax], edx
sbb eax, eax
xor ecx, ecx
and eax, 0x40
or ebx, eax
mov eax, edx
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0xffff
cmove ecx, edi
or ebx, ecx
cmp eax, edx
pop edi
sbb eax, eax
and eax, 0x100
or ebx, eax
mov eax, dword [esi*4 + 0x10112044]
xor ebx, 0x2a
sarx eax, ebx, eax
pop esi
pop ebx
test eax, eax
je 0x1001b028
xor ecx, ecx
cmp byte [ebp + 0xb], cl
setne cl
xor eax, eax
cmp byte [ebp - 1], al
setne al
add ecx, eax
xor eax, eax
cmp byte [ebp - 2], al
setne al
add ecx, eax
xor eax, eax
cmp byte [ebp - 3], al
setne al
add ecx, eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], ecx
cmovl ecx, dword [ebp - 0x10]
mov dword [eax], 0xfffd
mov eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret