joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d5b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc0], 0
jg 0x1002d5d7
push 0x686
push str.C:UsersKarosDesktopdownloaded_filesFRONTENDIMGUIimgui.h
push str.Size___0
call fcn.10081f72
add esp, 0xc
mov ecx, dword [esi + 0xc0]
mov edi, 4
mov eax, dword [esi + 0xc8]
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100a6370]
sub edi, 1
jne 0x1002d5f1
mov ecx, dword [0x101c8228]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1bc8], eax
jne 0x1002d623
mov dword [ecx + 0x1bcc], eax
cmp dword [ecx + 0x1c04], eax
jne 0x1002d632
mov byte [ecx + 0x1c08], 1
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10104a40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc0], 0
jg 0x1002d6f4
push 0x686
push str.C:UsersKarosDesktopdownloaded_filesFRONTENDIMGUIimgui.h
push str.Size___0
call fcn.10081f72
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edi, 0x10
movss xmm0, dword [ecx]
subss xmm0, dword [esi + 0xc]
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0xc]
subss xmm0, dword [esi + 0x10]
mov ecx, dword [esi + 0xc0]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc8]
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 + 0x100a6370]
sub edi, 1
jne 0x1002d754
mov eax, dword [0x101c8228]
not edx
pop edi
pop esi
cmp dword [eax + 0x1bc8], edx
jne 0x1002d785
mov dword [eax + 0x1bcc], edx
cmp dword [eax + 0x1c04], edx
jne 0x1002d794
mov byte [eax + 0x1c08], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.100734be
mov esp, ebp
pop ebp
ret 4
Function at 0x1002e140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1002e153
test esi, esi
jne 0x1002e16a
push 0x61a
push str.C:UsersKarosDesktopdownloaded_filesFRONTENDIMGUIimgui.cpp
push str.filename__mode
call fcn.10081f72
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1002e177
mov dword [eax], 0
push esi
push edi
call fcn.1002e290
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002e18b
pop edi
pop esi
pop ebp
ret
push ebx
push esi
call fcn.1008286c
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1002e276
push 2
push 0
push esi
call fcn.100800bb
add esp, 0xc
test eax, eax
jne 0x1002e276
push esi
call fcn.1008286c
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x1002e276
push 0
push ebx
push esi
call fcn.100800bb
add esp, 0xc
test eax, eax
jne 0x1002e276
mov eax, dword [0x101c8228]
test eax, eax
je 0x1002e1ec
inc dword [eax + 0x370]
push dword [0x101c8230]
mov eax, dword [ebp + 0x14]
add eax, edi
push eax
call dword [0x10102208]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1002e276
push esi
push edi
push 1
push ebx
call fcn.1007fc22
add esp, 0x10
cmp eax, edi
je 0x1002e247
push esi
call fcn.1007f362
mov eax, dword [0x101c8228]
add esp, 4
test eax, eax
je 0x1002e230
dec dword [eax + 0x370]
push dword [0x101c8230]
push ebx
call dword [0x1010220c]
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x1002e25d
push eax
lea eax, [edi + ebx]
push 0
push eax
call fcn.100759f0
add esp, 0xc
push esi
call fcn.1007f362
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x1002e26f
mov dword [eax], edi
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call fcn.1007f362
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1002e4d0
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 0x1002e533
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1002e516
cmp edi, 2
jb 0x1002e516
cmp byte [esi], cl
jne 0x1002e516
cmp byte [esi + 1], cl
jne 0x1002e516
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100a6370]
jmp 0x1002e4e7
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100a6370]
test edi, edi
jne 0x1002e4e7
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1002e568
nop word [eax + eax]
cmp cl, 0x23
jne 0x1002e54f
cmp byte [esi], cl
jne 0x1002e54f
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 + 0x100a6370]
test cl, cl
jne 0x1002e540
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x1002e7b0
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 0x1002e7d0
cmp eax, esi
jae 0x1002e948
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x1002e948
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x100a6a68]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x1002e802
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 0x1002e81a
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x1002e81e
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x1002e829
mov ch, byte [esi]
jmp 0x1002e82b
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x1002e839
mov bl, byte [ebx]
jmp 0x1002e83b
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 + 0x100a6a88]
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 + 0x100a6ab0]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x100a6a9c]
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 + 0x100a6ac4]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x1002e92f
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 0x1002e7be
add eax, ebx
test esi, esi
je 0x1002e93e
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1002e7be
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
Function at 0x1002e9c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
dec eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x10], ecx
lea eax, [ebx + eax*2]
mov dword [ebp - 0x18], eax
cmp ebx, eax
mov eax, dword [ebp + 0x10]
jae 0x1002eb7e
push esi
mov esi, dword [ebp + 0x14]
push edi
nop dword [eax]
test esi, esi
je 0x1002e9fc
cmp eax, esi
jae 0x1002eb79
mov bl, byte [eax]
mov byte [ebp + 0xf], bl
test bl, bl
je 0x1002eb79
movzx ecx, bl
mov edx, esi
shr ecx, 3
xor ebx, ebx
movsx ecx, byte [ecx + 0x100a6a68]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x1002ea2e
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp + 0xf]
mov byte [ebp - 3], cl
cmp esi, edx
jae 0x1002ea43
mov bh, byte [esi]
jmp 0x1002ea45
xor bh, bh
lea esi, [eax + 2]
mov byte [ebp - 2], bh
cmp esi, edx
jae 0x1002ea53
mov ch, byte [esi]
jmp 0x1002ea55
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 1], ch
cmp esi, edx
jae 0x1002ea63
mov bl, byte [esi]
jmp 0x1002ea65
xor bl, bl
movzx edx, ch
movzx ecx, cl
movzx esi, bh
movzx edi, bl
mov byte [ebp + 0xf], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x100a6a88]
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 + 0x100a6ab0]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x100a6a9c]
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 + 0x100a6ac4]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x1002eb56
xor edx, edx
mov esi, 0xfffd
cmp byte [ebp + 0xf], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
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
cmp ebx, edx
cmovl edx, ebx
add eax, edx
jmp 0x1002eb5c
add eax, ebx
test esi, esi
je 0x1002eb76
mov ecx, dword [ebp - 0x10]
mov word [ecx], si
add ecx, 2
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x18]
jb 0x1002e9f0
jmp 0x1002eb79
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
pop edi
pop esi
xor edx, edx
mov word [ecx], dx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x1002eb8c
mov dword [edx], eax
sub ecx, ebx
sar ecx, 1
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10035840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101c8228]
push ebx
push esi
push edi
mov esi, dword [eax + 0x1b94]
mov eax, dword [ebp + 8]
add esi, 0xc0
mov dword [ebp + 8], eax
cmp dword [esi], 0
jg 0x10035879
push 0x686
push str.C:UsersKarosDesktopdownloaded_filesFRONTENDIMGUIimgui.h
push str.Size___0
call fcn.10081f72
add esp, 0xc
mov eax, dword [esi]
lea edx, [ebp + 8]
mov ebx, dword [esi + 8]
mov edi, 4
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100a6370]
sub edi, 1
jne 0x10035890
mov edi, dword [esi + 4]
not ebx
mov ecx, dword [esi]
cmp ecx, edi
jne 0x100358d7
inc ecx
test edi, edi
je 0x100358c5
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x100358ca
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1003b2a0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
pop edi
mov dword [eax + ecx*4], ebx
inc dword [esi]
pop esi
pop ebx
pop ebp
ret

Function at 0x10039aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x101c8228]
cmp byte [esi + 0x2e91], 0
jne 0x10039bda
cmp dword [esi + 0x2eb0], 0
je 0x10039ada
push 0x2813
push str.C:UsersKarosDesktopdownloaded_filesFRONTENDIMGUIimgui.cpp
push str.g.SettingsWindows.empty__
call fcn.10081f72
add esp, 0xc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10039bd3
push edi
push 0x100a9d74
push eax
call fcn.1002e290
mov edi, eax
add esp, 8
test edi, edi
je 0x10039bd2
push ebx
push edi
call fcn.1008286c
add esp, 4
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x10039bc8
push 2
push 0
push edi
call fcn.100800bb
add esp, 0xc
test eax, eax
jne 0x10039bc8
push edi
call fcn.1008286c
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x10039bc8
push 0
push dword [ebp - 8]
push edi
call fcn.100800bb
add esp, 0xc
test eax, eax
jne 0x10039bc8
mov eax, dword [0x101c8228]
test eax, eax
je 0x10039b61
inc dword [eax + 0x370]
push dword [0x101c8230]
push ebx
call dword [0x10102208]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10039bc8
push edi
push dword [ebp - 4]
push 1
push ebx
call fcn.1007fc22
add esp, 0x10
push edi
cmp eax, dword [ebp - 4]
je 0x10039b96
call fcn.1007f362
add esp, 4
jmp 0x10039ba7
call fcn.1007f362
push dword [ebp - 4]
push ebx
call fcn.10030290
add esp, 0xc
mov eax, dword [0x101c8228]
test eax, eax
je 0x10039bb6
dec dword [eax + 0x370]
push dword [0x101c8230]
push ebx
call dword [0x1010220c]
add esp, 8
jmp 0x10039bd1
push edi
call fcn.1007f362
add esp, 4
pop ebx
pop edi
mov byte [esi + 0x2e91], 1
movss xmm0, dword [esi + 0x2e94]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x10039c2c
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x2e94], xmm0
jb 0x10039c2c
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10039c1b
push eax
call fcn.10037ad0
add esp, 4
mov dword [esi + 0x2e94], 0
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x358], 1
mov dword [esi + 0x2e94], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10043b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x10043b27
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.100309e0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10043b4c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.100309e0
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10043b71
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.100309e0
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10043bb2
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.100309e0
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10043bd7
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.100309e0
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x10043bfc
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.100309e0
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1003e8a0
Function at 0x1006c4b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a31d7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10104a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x1006c50d
lea ecx, [edi + 0x78]
mov dword [edi], 0x100a5e6c
mov dword [edi + 0x10], 0x100a5e74
call fcn.10015c10
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea esi, [edi + 0x18]
mov ecx, edi
push esi
call fcn.10015c90
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [edi + eax + 0x10], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0xc], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 4
mov dword [ebp + 8], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ecx + edi - 4], eax
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.100733a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1006c5ee
push 1
mov byte [ebp - 4], 5
call fcn.1007268f
add esp, 4
mov dword [ebx + 4], eax
jmp 0x1006c5f0
xor ebx, ebx
mov ecx, esi
mov dword [esi + 0x34], ebx
call fcn.10019db0
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
mov byte [esi + 0x48], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea edx, [esi + 0x14]
mov byte [esi + 0x3d], 0
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
lea ebx, [esi + 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ebx
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax], 0
mov dword [esi + 4], 0
mov dword [edx], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x101b59bc]
mov ecx, dword [0x101b59c0]
mov dword [esi + 0x40], eax
mov eax, edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100721d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x1007224f
cmp dword [edi + 0xc], 0
je 0x1007224f
push esi
mov esi, dword [edi]
mov esi, dword [esi]
mov dword [ebp - 4], esi
cmp byte [esi + 0xd], 0
jne 0x10072247
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop word [eax + eax]
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0xc]
push 0x40
push 4
lea eax, [eax + ecx*4]
push eax
call ebx
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [ecx + edx*4], eax
lea eax, [ebp - 0xc]
mov ecx, dword [esi + 0x10]
push eax
mov eax, dword [edi + 0xc]
push dword [ebp - 8]
push 4
lea eax, [eax + ecx*4]
push eax
call ebx
lea ecx, [ebp - 4]
call fcn.100720c0
mov esi, dword [ebp - 4]
cmp byte [esi + 0xd], 0
je 0x10072200
pop ebx
mov ecx, edi
call fcn.10072260
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1008262f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100734d0
mov eax, dword [0x10104a40]
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.1009068b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10082671
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100827cd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10074270
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 + 0x101c91a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100937d7
mov ecx, dword [esi*4 + 0x101c91a0]
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 0x100827c6
cmp eax, dword [ecx + edi + 0x24]
jne 0x100827c6
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 0x100827c6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100937d7
add esp, 0x14
test edx, edx
jl 0x100827c6
jg 0x1008273c
test eax, eax
jb 0x100827c6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100827c6
jl 0x10082756
cmp dword [ebp - 0x1008], eax
ja 0x100827c6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10082774
test ebx, ebx
je 0x100827ad
cmp ecx, edi
jae 0x100827ad
mov al, byte [ecx]
cmp al, 0xd
jne 0x1008278e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1008279a
cmp byte [ecx + 1], 0xa
jne 0x1008279a
inc ecx
jmp 0x1008279a
movzx eax, al
movsx eax, byte [eax + 0x10104ce8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10082774
cmp edx, ebx
jne 0x10082774
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100827cb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100734be
leave
ret

Function at 0x1008b55d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1008b59c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008b59c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008b59c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1008b59c
cmp dword [ecx + 0x74], 0xe
jbe 0x1008b59c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10091097
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bd7b4
push 0x100bd7ac
push str.FlsAlloc
push 0x1f
call fcn.10090e82
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100910cb
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a5214]
call esi
jmp 0x100910d1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10091115
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bd7c4
push 0x100bd7bc
push str.FlsGetValue
push 0x21
call fcn.10090e82
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009114c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a5214]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10091154
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100bd7cc
push 0x100bd7c4
push str.FlsSetValue
push 0x22
call fcn.10090e82
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009118e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100a5214]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]