joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cd530
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.10138dd0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
shld esi, eax, 3
shld edi, ecx, 3
shl eax, 3
shl ecx, 3
cmp dword [ebx + 0x168], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ecx
jne 0x100cd57e
cmp dword [ebx + 0x16c], 0
je 0x100cd596
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.100cdd50
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], ecx
mov ecx, eax
mov dword [ebx + 0x34], esi
mov eax, esi
shrd ecx, eax, 8
mov dword [ebx + 0x3c], edi
movzx eax, cl
cdq
mov ebx, eax
mov ecx, dword [esp + 0x14]
mov ebp, edx
movzx eax, cl
cdq
shld edx, eax, 8
shl eax, 8
or ebp, edx
or ebx, eax
mov eax, esi
shrd ecx, eax, 0x10
shld ebp, ebx, 8
movzx eax, cl
mov ecx, dword [esp + 0x14]
cdq
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, esi
shrd ecx, eax, 0x18
shld ebp, ebx, 8
movzx eax, cl
mov ecx, dword [esp + 0x1c]
cdq
shl ebx, 8
or ebp, edx
or ebx, eax
movzx eax, cl
cdq
shld ebp, ebx, 8
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
cdq
shld ebp, ebx, 8
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
cdq
shld ebp, ebx, 8
shr ecx, 0x18
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, edi
shld ebp, ebx, 8
shl ebx, 8
or ebx, ecx
mov ecx, dword [esp + 0x10]
shrd ecx, eax, 8
movzx eax, cl
mov ecx, dword [esp + 0x10]
cdq
mov esi, eax
mov edi, edx
movzx eax, cl
cdq
shld edx, eax, 8
shl eax, 8
or edi, edx
or esi, eax
mov eax, dword [esp + 0x18]
shld edi, esi, 8
shl esi, 8
shrd ecx, eax, 0x10
movzx eax, cl
mov ecx, dword [esp + 0x10]
cdq
or esi, eax
or edi, edx
mov eax, dword [esp + 0x18]
shrd ecx, eax, 0x18
shld edi, esi, 8
movzx eax, cl
mov ecx, dword [esp + 0x18]
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, cl
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
mov eax, ecx
shld edi, esi, 8
shr eax, 8
movzx eax, al
cdq
shl esi, 8
or edi, edx
or esi, eax
mov eax, ecx
shld edi, esi, 8
shr eax, 0x10
movzx eax, al
shl esi, 8
cdq
or esi, eax
shr ecx, 0x18
or edi, edx
shld edi, esi, 8
shl esi, 8
or esi, ecx
mov ecx, dword [esp + 0x24]
add ecx, 0x40
xor dword [ecx], ebx
mov ebx, dword [esp + 0x24]
xor dword [ecx + 4], ebp
xor dword [ebx + 0x48], esi
lea eax, [ebx + 0x60]
xor dword [ebx + 0x4c], edi
push eax
push ecx
call fcn.100cdd50
mov eax, dword [ebx + 0x20]
lea ecx, [ebx + 0x40]
xor dword [ecx], eax
add esp, 8
mov eax, dword [ebx + 0x24]
xor dword [ecx + 4], eax
mov eax, dword [ebx + 0x28]
xor dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x2c]
xor dword [ebx + 0x4c], eax
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
test edx, edx
je 0x100cd73e
mov eax, dword [esp + 0x1c]
cmp eax, 0x10
ja 0x100cd73e
add esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
jmp fcn.10065ec0
or eax, 0xffffffff
add esp, 0x10
ret
Function at 0x100d1ac0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x100d1ad4
mov dword [esp + 0x18], fcn.100d02a0
jmp fcn.100cbe90
mov dword [esp + 0x18], fcn.100cf540
jmp fcn.100cbbd0
Function at 0x100db210
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.10138dd0
mov eax, dword [0x101d6480]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x100db2f9
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
lea esi, [edx + 2]
lea edi, [ebp + 3]
sub ebp, edx
nop dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.100db630
mov al, byte [edi - 3]
lea edi, [edi + 8]
xor al, byte [esp + 0x28]
lea esi, [esi + 8]
mov byte [esi - 0xa], al
add esp, 0xc
mov byte [esp + 0x14], al
mov al, byte [edi - 0xa]
xor al, byte [esp + 0x1d]
mov byte [esi - 9], al
mov byte [esp + 0x15], al
mov al, byte [esi + ebp - 8]
xor al, byte [esp + 0x1e]
mov byte [esi - 8], al
mov byte [esp + 0x16], al
mov al, byte [edi - 8]
xor al, byte [esp + 0x1f]
mov byte [esi - 7], al
mov byte [esp + 0x17], al
mov al, byte [edi - 7]
xor al, byte [esp + 0x20]
mov byte [esi - 6], al
mov byte [esp + 0x18], al
mov al, byte [edi - 6]
xor al, byte [esp + 0x21]
mov byte [esi - 5], al
mov byte [esp + 0x19], al
mov al, byte [edi - 5]
xor al, byte [esp + 0x22]
mov byte [esi - 4], al
mov byte [esp + 0x1a], al
mov al, byte [edi - 4]
xor al, byte [esp + 0x23]
mov byte [esi - 3], al
mov byte [esp + 0x1b], al
sub ebx, 1
jne 0x100db260
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
pop ebx
xor ecx, esp
call fcn.10138217
add esp, 0x18
ret
Function at 0x100e94f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x100e9519
mov eax, edi
jmp 0x100e9523
push eax
push edi
call fcn.10051ec0
add esp, 8
test eax, eax
jne 0x100e952b
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x100e9549
mov eax, dword [ebp]
mov ecx, dword [ebx]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x100e9533
mov eax, dword [ebx + 4]
cmp esi, eax
jge 0x100e9562
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebx + 4]
cmp esi, eax
jl 0x100e9550
mov dword [edi + 4], eax
pop esi
test eax, eax
jle 0x100e9585
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + eax*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x100e9580
dec eax
test eax, eax
jg 0x100e9572
mov dword [edi + 4], eax
test eax, eax
jne 0x100e958e
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x100ea580
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 4
call fcn.10138dd0
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push ebp
xor edi, edi
call fcn.10071210
push ebp
call fcn.10071080
mov esi, eax
add esp, 8
test esi, esi
je 0x100ea796
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x100ea5bf
mov eax, esi
jmp 0x100ea5c9
push eax
push esi
call fcn.10051ec0
add esp, 8
test eax, eax
je 0x100ea795
mov eax, dword [ebx + 4]
lea ecx, [eax - 1]
test ecx, ecx
js 0x100ea751
mov ebp, ecx
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
sub ebp, 1
jns 0x100ea5e1
mov eax, dword [ebx + 4]
mov ebp, dword [esp + 0x24]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x100ea775
mov edx, dword [esi]
add edx, 0xfffffffc
lea edx, [edx + eax*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x100ea770
dec eax
test eax, eax
jg 0x100ea762
mov dword [esi + 4], eax
test eax, eax
jne 0x100ea77a
mov dword [esi + 0xc], edi
push dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.100e95a0
add esp, 0xc
mov ecx, 1
test eax, eax
cmovne edi, ecx
pop ebx
push ebp
call fcn.10070fa0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x1010a5b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.10138dd0
mov eax, dword [0x101d6480]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x30], eax
mov esi, dword [esi + 4]
mov dword [esp + 0x1c], esi
sub esi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0xc8], edi
jae 0x1010a614
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.10066190
add esp, 0xc
cmp edi, 0x40
jbe 0x1010a630
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.10066190
add esp, 0xc
mov ecx, dword [esp + 0xc8]
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ebx
cmp ecx, eax
jbe 0x1010a65e
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 + 0x38], esi
call fcn.1013a6c0
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x1010a73b
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 + 0xc0]
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
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 + 0x28], 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 + 0x28]
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 + 0xc8]
jb 0x1010a6c1
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor edx, edx
test edi, edi
je 0x1010a76f
mov ebp, dword [esp + 0x30]
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 0x1010a745
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10138217
add esp, 0xa8
ret
Function at 0x1010b290
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.10138dd0
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x14]
inc ebx
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x1010b35c
mov edx, dword [esp + 0x20]
lea eax, [ebx + edx]
cmp eax, ecx
ja 0x1010b364
add dword [edi + 0xc], edx
add dword [edi + 0x10], edx
sub ecx, edx
mov dword [edi + 4], ecx
test dword [esi + 0x100], 0x200
mov eax, dword [edi + 0xc]
movzx ebx, byte [eax + ecx - 1]
je 0x1010b32a
cmp dword [esi + 0x88], 0
jne 0x1010b32a
mov eax, dword [esi + 0x58]
push 8
add eax, 8
push 0x101aca34
push eax
call fcn.10065ec0
add esp, 0xc
test eax, eax
jne 0x1010b31d
test bl, 1
jne 0x1010b31d
mov eax, dword [esi + 0x58]
or dword [eax], 8
mov eax, dword [esi + 0x58]
test byte [eax], 8
je 0x1010b32a
test ebx, ebx
je 0x1010b32a
dec ebx
mov eax, dword [esi + 0x80]
push ebp
push dword [eax]
call fcn.10069f10
mov ebp, dword [edi + 4]
add esp, 4
mov dword [esp + 0x14], ebp
and eax, 0x200000
je 0x1010b36d
sub ebp, ebx
mov eax, 1
dec ebp
mov dword [edi + 4], ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp ebx, ecx
jbe 0x1010b2db
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x28]
mov edx, ebp
add ecx, ebx
mov eax, ebp
sub edx, ecx
xor eax, ecx
xor edx, ecx
mov ecx, 0xff
or edx, eax
lea eax, [ebp - 1]
xor edx, ebp
shr edx, 0x1f
dec edx
cmp eax, ecx
mov dword [esp + 0x1c], edx
cmovb ecx, eax
xor esi, esi
test ecx, ecx
je 0x1010b3f3
mov eax, ebx
shr eax, 0x1f
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
lea edi, [ebp - 1]
add edi, eax
mov ebp, ecx
nop
mov al, byte [esp + 0x28]
lea edi, [edi - 1]
mov edx, ebx
mov ecx, esi
sub edx, esi
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc esi
or dl, al
movzx eax, byte [edi + 1]
xor dl, byte [esp + 0x28]
xor eax, ebx
dec dl
movzx ecx, dl
mov edx, dword [esp + 0x1c]
and ecx, eax
not ecx
and edx, ecx
mov dword [esp + 0x1c], edx
cmp esi, ebp
jb 0x1010b3b0
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
not edx
lea eax, [ebx + 1]
movzx ecx, dl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub ebp, eax
shl eax, 8
or dword [edi], eax
mov dword [edi + 4], ebp
mov dword [esp + 0x28], ecx
not ecx
pop ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x10119540
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101669a7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101d6480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x10119595
mov dword [ebx], 0x101ad888
mov dword [ebx + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 4]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.10004510
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1013822a
mov esi, eax
add esp, 4
test esi, esi
je 0x101195f2
push 1
mov byte [ebp - 4], 2
call fcn.101373e8
add esp, 4
mov dword [esi + 4], eax
jmp 0x101195f4
xor esi, esi
lea eax, [ebx + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov esi, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], 0
mov dword [edx], 0
and ecx, 1
shl ecx, 2
mov eax, ebx
mov edx, ecx
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
or edx, 8
mov dword [esi + 0x38], 0
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10144a00
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101d6480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x101b0318
push esi
call fcn.1014b067
pop ecx
pop ecx
test eax, eax
jne 0x10144a2e
xor al, al
jmp 0x10144aab
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.10144702
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10144a68
push dword [ebp - 0x210]
call fcn.1013ee01
xor al, al
jmp 0x10144aa9
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10144a6e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10144a8e
push edx
call fcn.10144937
pop ecx
test al, al
je 0x10144a59
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10144a9c
mov bl, 1
push dword [ebp - 0x210]
call fcn.1013ee01
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10138217
leave
ret
Function at 0x1014ab20
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10138dd0
mov eax, dword [0x101d6480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1014bc50
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1014ab62
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1014acbe
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10138d20
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x101df8c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1014baea
mov ecx, dword [esi*4 + 0x101df8c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1014acb7
cmp eax, dword [ecx + edi + 0x24]
jne 0x1014acb7
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1014acb7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1014baea
add esp, 0x14
test edx, edx
jl 0x1014acb7
jg 0x1014ac2d
test eax, eax
jb 0x1014acb7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1014acb7
jl 0x1014ac47
cmp dword [ebp - 0x1008], eax
ja 0x1014acb7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1014ac65
test ebx, ebx
je 0x1014ac9e
cmp ecx, edi
jae 0x1014ac9e
mov al, byte [ecx]
cmp al, 0xd
jne 0x1014ac7f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1014ac8b
cmp byte [ecx + 1], 0xa
jne 0x1014ac8b
inc ecx
jmp 0x1014ac8b
movzx eax, al
movsx eax, byte [eax + 0x101d6600]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1014ac65
cmp edx, ebx
jne 0x1014ac65
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1014acbc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10138217
leave
ret

Function at 0x1014db6d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1014dbac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1014dbac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014dbac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1014dbac
cmp dword [ecx + 0x74], 0xe
jbe 0x1014dbac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10151a6d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101df8c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10151aad
cmp byte [ebx], 0xa
jne 0x10151aad
or byte [edi + eax + 0x28], 4
jmp 0x10151ab2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10151bb1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10151b94
inc eax
cmp dl, 0xd
je 0x10151ade
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10151b04
cmp eax, ecx
jae 0x10151b12
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10151ac6
jmp 0x10151bb1
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10151b8f
cmp dword [ebp - 0x10], 0
je 0x10151b8f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101df8c0]
test byte [eax + edi + 0x28], 0x48
je 0x10151b69
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10151b54
mov byte [esi], dl
jmp 0x10151b65
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101df8c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10151bb1
cmp byte [ebp - 1], 0xa
jne 0x10151b78
cmp esi, ebx
jne 0x10151b78
mov byte [esi], 0xa
jmp 0x10151bb0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1014bb08
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10151bb1
mov byte [esi], 0xd
jmp 0x10151bb0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101df8c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10151bae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10151bb1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret