joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003bd20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [0x102b717c]
mov dword [ebp - 0xc], esi
push edi
mov edi, dword [esi + 0x198c]
test cl, 0x10
jne 0x1003be5c
mov ebx, dword [edi + 0x10c]
lea eax, [esi + 0x19ac]
test ebx, ebx
je 0x1003bd63
cmp dword [eax], ebx
jne 0x1003be53
cmp byte [esi + 0xe8], 0
je 0x1003be53
test ebx, ebx
jne 0x1003be0c
test cl, 8
je 0x1003be53
mov cl, byte [edi + 0x110]
and cl, 1
mov byte [ebp - 1], cl
jne 0x1003bdbb
cmp dword [eax], ebx
je 0x1003be53
cmp dword [esi + 0x19d4], edi
jne 0x1003be53
lea eax, [edi + 0x114]
mov ecx, edi
push eax
call fcn.1003f8a0
mov ebx, eax
mov dword [edi + 0x10c], ebx
jmp 0x1003bdf3
lea eax, [edi + 0x114]
mov ecx, edi
push eax
call fcn.1003f8a0
mov ebx, eax
push ebx
mov dword [edi + 0x10c], ebx
call fcn.10047db0
add esp, 4
cmp byte [esi + 0x3d0], 0
je 0x1003bdf3
push edi
push ebx
call fcn.10047880
push edi
call fcn.1003ef20
add esp, 0xc
cmp dword [esi + 0x19ac], ebx
lea eax, [esi + 0x19ac]
jne 0x1003be53
mov cl, byte [ebp - 1]
mov byte [esi + 0x19bd], cl
jmp 0x1003be13
mov byte [esi + 0x19bd], 0
cmp dword [eax], ebx
jne 0x1003be53
mov ecx, dword [edi + 0x1c0]
mov eax, dword [edi + 0x1c8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x102b717c]
cmp byte [eax + 0xe8], 0
je 0x1003be53
movss xmm1, dword [eax + 0x30]
movss xmm0, dword [eax + 0x434]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
test al, al
jne 0x1003be9c
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
or ebx, 0xffffffff
mov edx, 0x100d535d
mov al, 0x23
or esi, 0xffffffff
nop dword [eax + eax]
cmp al, 0x23
jne 0x1003be7e
cmp byte [edx], al
jne 0x1003be7e
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 + 0x100d4e68]
test al, al
jne 0x1003be70
mov esi, dword [ebp - 0xc]
not ebx
cmp byte [esi + 0x1c68], 0
jne 0x1003bed5
call fcn.1003ce20
mov eax, dword [ebp - 8]
mov dword [esi + 0x1c80], ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x1c84], eax
mov byte [esi + 0x1c68], 1
mov dword [esi + 0x1c6c], ebx
mov dword [esi + 0x1c74], 0
jmp 0x1003bed8
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x1940]
mov dword [esi + 0x1c70], eax
mov byte [esi + 0x1c69], 1
test bl, 1
jne 0x1003bf1e
call fcn.1003c2c0
cmp dword [esi + 0x1cd0], 0
je 0x1003bf1e
test dword [esi + 0x1cc4], 0x1000
je 0x1003bf1e
mov eax, dword [esi + 0x198c]
mov byte [eax + 0x7f], 1
mov dword [eax + 0xa4], 1
test bl, 0x12
jne 0x1003bf2a
and dword [edi + 0x110], 0xfffffffe
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003d8d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [0x102b717c]
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov edi, dword [esi + 0x2c5c]
mov ecx, dword [esi + 0x2c60]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 0
cmp edi, ecx
jne 0x1003d9c7
inc edi
test ecx, ecx
je 0x1003d931
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1003d936
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x1003d9c7
test esi, esi
je 0x1003d94d
inc dword [esi + 0x36c]
push dword [0x102b7180]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call dword [0x1014c208]
mov ebx, eax
add esp, 8
mov eax, dword [esi + 0x2c64]
test eax, eax
je 0x1003d9bb
mov ecx, dword [esi + 0x2c5c]
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
push edx
push eax
push ebx
call fcn.100a0150
mov ecx, dword [esi + 0x2c64]
add esp, 0xc
test ecx, ecx
je 0x1003d9ab
mov eax, dword [0x102b717c]
test eax, eax
je 0x1003d9ab
dec dword [eax + 0x36c]
push dword [0x102b7180]
push ecx
call dword [0x1014c20c]
add esp, 8
mov dword [esi + 0x2c64], ebx
mov dword [esi + 0x2c60], edi
mov eax, dword [esi + 0x2c5c]
mov ecx, dword [esi + 0x2c64]
movups xmm0, xmmword [ebp - 0x1c]
mov edi, dword [ebp + 8]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp - 4]
movups xmmword [ecx + edx*4], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [ecx + edx*4 + 0x10], xmm0
mov dword [ecx + edx*4 + 0x18], eax
inc dword [esi + 0x2c5c]
mov eax, dword [esi + 0x2c5c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x2c64]
mov esi, edi
lea ebx, [eax + ecx*4]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003da20
mov eax, dword [0x102b717c]
sub esi, ecx
test eax, eax
je 0x1003da38
inc dword [eax + 0x36c]
push dword [0x102b7180]
inc esi
push esi
call dword [0x1014c208]
push esi
push edi
push eax
call fcn.100a0150
mov dword [ebx - 0x1c], eax
lea esi, [edi + 1]
mov al, byte [edi]
add esp, 0x14
or edx, 0xffffffff
test al, al
je 0x1003da8a
or edi, 0xffffffff
cmp al, 0x23
jne 0x1003da71
cmp byte [esi], al
jne 0x1003da71
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x100d4e68]
test al, al
jne 0x1003da63
pop edi
not edx
lea eax, [ebx - 0x1c]
pop esi
mov dword [ebx - 0x18], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003ee10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
push ebx
push esi
push edi
mov bl, byte [ecx]
lea esi, [ecx + 1]
or ecx, 0xffffffff
test bl, bl
je 0x1003ee55
cmp bl, 0x23
jne 0x1003ee37
cmp byte [esi], bl
jne 0x1003ee37
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x100d4e68]
test bl, bl
jne 0x1003ee28
mov ecx, dword [0x102b717c]
not eax
mov esi, dword [ecx + 0x197c]
mov edi, dword [ecx + 0x1984]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1003ee8e
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1003ee88
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1003ee8a
mov esi, edx
test esi, esi
jne 0x1003ee70
cmp edi, ebx
je 0x1003ee9e
cmp dword [edi], eax
jne 0x1003ee9e
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x1c0]
mov eax, dword [ecx + 0x1c8]
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 + 0x100d4e68]
sub edi, 1
jne 0x1003f850
mov ecx, dword [0x102b717c]
not eax
pop edi
pop esi
cmp dword [ecx + 0x19ac], eax
jne 0x1003f882
mov dword [ecx + 0x19b4], eax
cmp dword [ecx + 0x19b0], eax
jne 0x1003f891
mov byte [ecx + 0x19c0], 1
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
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 + 0x1c0]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 8], eax
cvttss2si eax, xmm0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1c8]
lea esi, [ebp - 0x10]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100d4e68]
sub edi, 1
jne 0x1003f910
mov eax, dword [0x102b717c]
not edx
pop edi
pop esi
cmp dword [eax + 0x19ac], edx
jne 0x1003f941
mov dword [eax + 0x19b4], edx
cmp dword [eax + 0x19b0], edx
jne 0x1003f950
mov byte [eax + 0x19c0], 1
mov eax, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x10040000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10040012
mov dword [edi], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10040100
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004002a
pop edi
pop esi
pop ebp
ret
push ebx
push 2
push 0
push esi
call fcn.100a9e45
add esp, 0xc
test eax, eax
jne 0x100400f0
push esi
call fcn.100aa569
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x100400f0
push 0
push 0
push esi
call fcn.100a9e45
add esp, 0xc
test eax, eax
jne 0x100400f0
mov eax, dword [ebp + 0x14]
add eax, ebx
push eax
call fcn.10041f70
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
je 0x100400f0
push esi
push ebx
push 1
push eax
call fcn.100a99e7
add esp, 0x10
cmp eax, ebx
je 0x100400c1
push esi
call fcn.100a97de
mov eax, dword [0x102b717c]
add esp, 4
test eax, eax
je 0x100400a7
dec dword [eax + 0x36c]
push dword [0x102b7180]
mov eax, dword [ebp + 0x10]
push eax
call dword [0x1014c20c]
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x100400d9
push eax
mov eax, dword [ebp + 0x10]
add eax, ebx
push 0
push eax
call fcn.100a06d0
add esp, 0xc
push esi
call fcn.100a97de
add esp, 4
test edi, edi
je 0x100400e8
mov dword [edi], ebx
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call fcn.100a97de
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x100410e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
or eax, 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], str.Window
mov esi, 0x100d52a9
mov cl, 0x57
or edi, 0xffffffff
cmp cl, 0x23
jne 0x10041112
cmp byte [esi], cl
jne 0x10041112
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100d4e68]
test cl, cl
jne 0x10041103
mov esi, dword [ebp + 8]
not eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x10048340
mov dword [ebp - 0xc], 0x10048280
mov edi, dword [esi + 0x2c50]
mov ecx, dword [esi + 0x2c54]
mov dword [ebp - 8], 0x100483e0
cmp edi, ecx
jne 0x100411f9
inc edi
test ecx, ecx
je 0x1004116c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x10041171
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x100411f9
mov eax, dword [0x102b717c]
test eax, eax
je 0x10041189
inc dword [eax + 0x36c]
push ebx
push dword [0x102b7180]
lea eax, [edi + edi*2]
shl eax, 3
push eax
call dword [0x1014c208]
mov ebx, eax
add esp, 8
mov eax, dword [esi + 0x2c58]
test eax, eax
je 0x100411ec
mov ecx, dword [esi + 0x2c50]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push eax
push ebx
call fcn.100a0150
mov ecx, dword [esi + 0x2c58]
add esp, 0xc
test ecx, ecx
je 0x100411dc
mov eax, dword [0x102b717c]
test eax, eax
je 0x100411dc
dec dword [eax + 0x36c]
push dword [0x102b7180]
push ecx
call dword [0x1014c20c]
add esp, 8
mov dword [esi + 0x2c58], ebx
mov dword [esi + 0x2c54], edi
pop ebx
mov eax, dword [esi + 0x2c50]
movups xmm0, xmmword [ebp - 0x18]
pop edi
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x2c58]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 8]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi + 0x2c50]
mov byte [esi], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10041bb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x102b717c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], edx
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x10041bda
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10041bd1
sub esi, ecx
test edx, edx
je 0x10041be4
inc dword [edx + 0x36c]
push dword [0x102b7180]
lea eax, [esi + 1]
push eax
call dword [0x1014c208]
mov ebx, eax
push esi
push edi
push ebx
lea ecx, [ebx + esi]
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0xc], ecx
call fcn.100a0150
mov edx, dword [ebp + 0xc]
xor ecx, ecx
add esp, 0x14
mov dword [ebp - 4], ecx
xor esi, esi
mov byte [edx], 0
cmp ebx, edx
jae 0x10041d6a
nop
mov al, byte [ebx]
cmp al, 0xa
je 0x10041da1
cmp al, 0xd
je 0x10041da1
mov edi, ebx
cmp ebx, edx
jae 0x10041c47
mov al, byte [edi]
cmp al, 0xa
je 0x10041c47
cmp al, 0xd
je 0x10041c47
inc edi
cmp edi, edx
jb 0x10041c38
mov byte [edi], 0
mov al, byte [ebx]
cmp al, 0x3b
je 0x10041d5f
cmp al, 0x5b
jne 0x10041d43
cmp edi, ebx
jbe 0x10041d43
cmp byte [edi - 1], 0x5d
lea eax, [edi - 1]
mov dword [ebp - 0x10], eax
jne 0x10041d43
lea esi, [ebx + 1]
mov byte [eax], 0
sub eax, esi
push eax
push 0x5d
push esi
call fcn.100a0ac0
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x10041cb1
mov edx, dword [ebp - 0x10]
lea ecx, [eax + 1]
sub edx, ecx
push edx
push 0x5b
push ecx
call fcn.100a0ac0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10041cb1
mov eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x10041cb8
mov esi, str.Window
mov ecx, ebx
mov ebx, dword [0x102b717c]
lea eax, [ecx + 1]
mov cl, byte [esi]
inc esi
mov dword [ebp - 0x10], eax
or eax, 0xffffffff
test cl, cl
je 0x10041cff
or ebx, 0xffffffff
cmp cl, 0x23
jne 0x10041ce0
cmp byte [esi], cl
jne 0x10041ce0
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 + 0x100d4e68]
test cl, cl
jne 0x10041cd1
mov ebx, dword [0x102b717c]
mov edx, dword [ebx + 0x2c50]
xor ecx, ecx
not eax
test edx, edx
jle 0x10041d20
mov esi, dword [ebx + 0x2c58]
cmp dword [esi + 4], eax
je 0x10041d29
inc ecx
add esi, 0x18
cmp ecx, edx
jl 0x10041d13
xor esi, esi
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x10041d5c
test esi, esi
je 0x10041d22
push dword [ebp - 0x10]
mov eax, dword [esi + 8]
push esi
push dword [ebp - 8]
call eax
mov ecx, eax
add esp, 0xc
mov dword [ebp - 4], ecx
jmp 0x10041d5c
test esi, esi
je 0x10041d5f
test ecx, ecx
je 0x10041d5f
mov eax, dword [esi + 0xc]
push ebx
push ecx
push esi
push dword [ebp - 8]
call eax
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, dword [ebp + 0xc]
lea ebx, [edi + 1]
cmp ebx, edx
jb 0x10041c20
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x10041d83
mov eax, dword [0x102b717c]
test eax, eax
je 0x10041d83
dec dword [eax + 0x36c]
push dword [0x102b7180]
push ecx
call dword [0x1014c20c]
mov eax, dword [ebp - 8]
add esp, 8
mov byte [eax + 0x2c3c], 1
mov esp, ebp
pop ebp
ret
inc ebx
jmp 0x10041c20
Function at 0x10046240
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x102b717c]
lea edx, [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [eax + 0x198c]
mov esi, 4
mov ebx, dword [eax + 0x1c8]
lea edi, [eax + 0x1c0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [edi]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100d4e68]
sub esi, 1
jne 0x10046277
mov eax, dword [ebp - 4]
not ebx
mov esi, dword [edi]
mov ecx, dword [eax + 0x1c4]
cmp esi, ecx
jne 0x100462c7
inc esi
test ecx, ecx
je 0x100462b2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100462b7
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.1004a7b0
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
mov eax, dword [eax + 0x1c8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006d0c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100ca030
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.1009e5f2
mov edi, eax
add esp, 4
test edi, edi
je 0x1006d15c
push 1
mov dword [ebp - 4], 0
call fcn.1009d01d
add esp, 4
mov dword [edi + 4], eax
jmp 0x1006d15e
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.1006f970
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1006d6a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cab2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.1009cdeb
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x1006d72b
push eax
push esi
call fcn.1009d11b
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.1009cd9e
int3
Function at 0x100730f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100cb0bd
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1009e5f2
mov edi, eax
add esp, 4
test edi, edi
je 0x10073182
push 1
mov dword [ebp - 4], 0
call fcn.1009d01d
add esp, 4
mov dword [edi + 4], eax
jmp 0x10073184
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
push ebx
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.1006cbb0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x100731e0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x100731e0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
pop ebx
jne 0x100731fd
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1007321e
cmp byte [ebp + 0xc], 0
je 0x1007320c
push esi
call fcn.1009d526
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1007322a
mov esi, str.ios_base::badbit_set
jmp 0x1007323a
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.100734d0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.1006d960
push 0x101481ec
lea eax, [ebp - 0x28]
push eax
call fcn.1009fd29
int3

Function at 0x1007af20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1007af58
sub eax, 1
jne 0x1007af6f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x1007ac10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
jne 0x1007af6f
call fcn.10032b00
call fcn.100321e0
mov ecx, eax
call fcn.1007fe50
mov eax, 1
pop ebp
ret 0xc
Function at 0x10086e90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x102b983c]
test eax, eax
je 0x10086eac
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x10086f02
mov eax, dword [eax]
test eax, eax
jne 0x10086ea0
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10086eff
push esi
push edi
xor edi, edi
mov dword [eax + 8], 0
lea edx, [eax + 0x20]
lea esi, [edi + 0x20]
mov dword [edx], edi
mov ecx, edx
mov dword [eax + 4], edx
add esi, 0x20
add edx, 0x20
mov edi, ecx
cmp esi, 0xfe0
jbe 0x10086ed5
mov ecx, dword [0x102b983c]
mov dword [eax], ecx
mov dword [0x102b983c], eax
pop edi
pop esi
test eax, eax
jne 0x10086f02
xor eax, eax
ret
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
Function at 0x100878a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
push edi
add esi, dword [0x102b9830]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp + 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100878e8
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1008790d
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1008792e
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1008792e
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10087928
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1008792e
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
shl bl, 2
add cl, cl
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
xor eax, eax
mov byte [esi + 0x14], bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret