joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x10], al
mov esi, dword [edi]
cmp esi, dword [esp + 0x18]
je 0x1001cd83
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x24]
nop word [eax + eax]
mov cl, byte [esi + 5]
test cl, 0x18
je 0x1001cd38
mov eax, dword [esi]
mov dword [edi], eax
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x1001cc57.11
movzx eax, byte [eax + 0x1001cdb0]
jmp dword [eax*4 + 0x1001cd88]
push esi
push ebx
call fcn.1001a540
add esp, 8
jmp case.0x1001cc57.11
lea eax, [esi + 0x10]
cmp dword [esi + 8], eax
je 0x1001cc7e
push esi
call fcn.1001a830
add esp, 4
push 0x20
push esi
push ebx
call fcn.10026d30
add esp, 0xc
jmp case.0x1001cc57.11
movzx eax, byte [esi + 6]
lea eax, [eax*4 + 0x10]
push eax
push esi
push ebx
call fcn.10026d30
add esp, 0xc
jmp case.0x1001cc57.11
movzx eax, byte [esi + 6]
inc eax
shl eax, 4
push eax
push esi
push ebx
call fcn.10026d30
add esp, 0xc
jmp case.0x1001cc57.11
push esi
push ebx
call fcn.1001e2a0
add esp, 8
jmp case.0x1001cc57.11
push esi
push ebx
call fcn.10013330
add esp, 8
jmp case.0x1001cc57.11
movzx eax, word [esi + 6]
test ax, ax
jne 0x1001ccf0
mov ecx, 0x10
jmp 0x1001ccf8
mov ecx, eax
shl ecx, 4
add ecx, 0x18
mov eax, dword [esi + 8]
add eax, ecx
push eax
push esi
push ebx
call fcn.10026d30
add esp, 0xc
jmp case.0x1001cc57.11
push esi
push ebx
call fcn.1001dd70
movzx eax, byte [esi + 7]
add eax, 0x11
push eax
push esi
push ebx
call fcn.10026d30
add esp, 0x14
jmp case.0x1001cc57.11
mov eax, dword [esi + 0xc]
add eax, 0x11
push eax
push esi
push ebx
call fcn.10026d30
add esp, 0xc
jmp case.0x1001cc57.11
test cl, 7
jne 0x1001cd4c
and cl, 0xc1
and al, 0x18
or cl, al
or cl, 1
mov byte [esi + 5], cl
jmp 0x1001cd6f
movzx eax, cl
and cl, 0xf8
and eax, 7
or cl, byte [eax + 0x10154998]
mov byte [esi + 5], cl
and cl, 7
cmp cl, 3
jne 0x1001cd6f
cmp dword [ebp], 0
jne 0x1001cd6f
mov dword [ebp], esi
mov edi, esi
mov esi, dword [edi]
mov al, byte [esp + 0x18]
cmp esi, dword [esp + 0x20]
jne 0x1001cc30
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x1001da80
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor eax, dword [esp + 0x10]
test esi, esi
je 0x1001daaf
push edi
mov edi, dword [esp + 0xc]
movzx edx, byte [edi + esi - 1]
mov ecx, eax
shl ecx, 5
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
sub esi, 1
jne 0x1001da94
pop edi
pop esi
ret
Function at 0x1003ed60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014996c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1024b600]
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 0x1003edb6
lea ecx, [edi + 0x68]
mov dword [edi], 0x10157bd0
call fcn.1000571f
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.10005cf4
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 2
mov dword [ebp + 8], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
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.1006d8ad
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1003ee7f
push 1
mov byte [ebp - 4], 3
call fcn.1006a0cd
add esp, 4
mov dword [ebx + 4], eax
jmp 0x1003ee81
xor ebx, ebx
mov ecx, esi
mov dword [esi + 0x34], ebx
call fcn.10005cb7
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 [0x1024f2d4]
mov ecx, dword [0x1024f2d8]
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 0x10040930
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 0x10040951
jl 0x10040947
test esi, esi
jne 0x10040951
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x10040a04
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.1000570d
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x100409c1
jg 0x10040989
test esi, esi
je 0x100409c1
cmp ebp, eax
jg 0x10040999
jl 0x10040993
cmp edi, esi
jae 0x10040999
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.1006f830
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x100409e0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x100409f0
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x10040970
jl 0x100409f0
test edi, edi
jne 0x10040970
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x10040a49
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x10040a50
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.1006f830
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 0x10040a50
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x10040ab9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10040a7a
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
cmp edi, 0xfff
jbe 0x10040aa4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.1007429e
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10040ab9
cmp edi, eax
ja 0x10040a82
test edi, edi
je 0x10040ab9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.1007429e
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 0x10041d10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
push 0
lea edi, [ecx + 8]
mov dword [esp + 0x14], 0x46464952
push 4
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.10040610
push 0
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov ecx, edi
call fcn.10040610
push 0
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x45564157
push eax
mov ecx, edi
call fcn.10040610
push 0
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x20746d66
push eax
mov ecx, edi
call fcn.10040610
push 0
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10
push eax
mov ecx, edi
call fcn.10040610
push 0
push 2
lea eax, [esp + 0x14]
mov word [esp + 0x14], 1
push eax
mov ecx, edi
call fcn.10040610
mov ebx, dword [esp + 0x28]
mov ecx, edi
movzx esi, bx
mov eax, esi
mov byte [esp + 0x28], bl
shr eax, 8
push 0
mov byte [esp + 0x2d], al
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.10040610
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x29], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2a], al
mov eax, ecx
shr eax, 0x18
push 0
mov byte [esp + 0x2f], al
lea eax, [esp + 0x2c]
push 4
mov byte [esp + 0x30], cl
mov ecx, edi
push eax
call fcn.10040610
mov ecx, dword [esp + 0x24]
imul ecx, ebx
mov dword [esp + 0x24], ecx
add ecx, ecx
mov byte [esp + 0x24], cl
mov eax, ecx
shr eax, 8
mov byte [esp + 0x25], al
mov eax, ecx
shr eax, 0x10
push 0
shr ecx, 0x18
mov byte [esp + 0x2a], al
lea eax, [esp + 0x28]
push 4
mov byte [esp + 0x2f], cl
mov ecx, edi
push eax
call fcn.10040610
lea eax, [esi + esi]
mov ecx, edi
movzx eax, ax
mov byte [esp + 0x24], al
shr eax, 8
push 0
mov byte [esp + 0x29], al
lea eax, [esp + 0x28]
push 2
push eax
call fcn.10040610
push 0
push 2
lea eax, [esp + 0x2c]
mov word [esp + 0x2c], 0x10
push eax
mov ecx, edi
call fcn.10040610
push 0
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x61746164
push eax
mov ecx, edi
call fcn.10040610
push 0
push 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
mov ecx, edi
call fcn.10040610
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x14
ret 8

Function at 0x100438a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x100438bf
push eax
push dword [esp + 0xc]
push 1
push dword [esp + 0x10]
call fcn.1007429e
add esp, 0x10
xor edx, edx
ret 0xc
or eax, 0xffffffff
or edx, eax
ret 0xc
Function at 0x1004c4e0
Capabilities:
Log keystrokes
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
add eax, 0xfffffff8
cmp eax, 0xd6
ja case.0x1004c4f9.10
movzx eax, byte [eax + 0x1004c970]
jmp dword [eax*4 + 0x1004c7e4]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10251fa8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10251854]
cmp eax, dword [ecx + 8]
jg 0x1004c7a6
mov eax, dword [esp + 8]
sar eax, 0x10
movzx ecx, al
xor eax, eax
cmp ecx, dword [0x10251850]
setne al
lea eax, [eax*4 + 0x26]
ret
mov eax, dword [esp + 8]
shr eax, 0x10
and eax, 0x100
neg eax
sbb eax, eax
and eax, 4
add eax, 0x27
ret
mov eax, dword [esp + 8]
shr eax, 0x10
and eax, 0x100
neg eax
sbb eax, eax
and eax, 4
add eax, 0x25
ret
mov eax, 0x28
ret
mov eax, 0x2c
ret
mov eax, 0x2d
ret
mov eax, 0x30
ret
mov eax, 0x34
ret
mov eax, 0x37
ret
mov eax, 0x38
ret
mov eax, 0x2e
ret
mov eax, 0x2f
ret
mov eax, 0x31
ret
mov eax, 0x32
ret
mov eax, 0x33
ret
mov eax, 0x35
ret
mov eax, 0x36
ret
mov eax, 0x24
ret
mov eax, 0x39
ret
mov eax, 0x3a
ret
mov eax, 0x3b
ret
mov eax, 0x3c
ret
mov eax, 0x3d
ret
mov eax, 0x3e
ret
mov eax, 0x3f
ret
mov eax, 0x40
ret
mov eax, 0x41
ret
mov eax, 0x42
ret
mov eax, 0x43
ret
mov eax, 0x44
ret
mov eax, 0x45
ret
mov eax, 0x46
ret
mov eax, 0x64
ret
mov eax, 0x55
ret
mov eax, 0x56
ret
mov eax, 0x57
ret
mov eax, 0x58
ret
mov eax, 0x59
ret
mov eax, 0x5a
ret
mov eax, 0x5b
ret
mov eax, 0x5c
ret
mov eax, 0x5d
ret
mov eax, 0x5e
ret
mov eax, 0x5f
ret
mov eax, 0x60
ret
mov eax, 0x61
ret
mov eax, 0x62
ret
mov eax, 0x63
ret
mov eax, 0x47
ret
mov eax, 0x48
ret
mov eax, 0x49
ret
mov eax, 0x4a
ret
mov eax, 0x4b
ret
mov eax, 0x4c
ret
mov eax, 0x4d
ret
mov eax, 0x4e
ret
mov eax, 0x4f
ret
mov eax, 0x50
ret
mov eax, 0x51
ret
mov eax, 0x52
ret
mov eax, 0x53
ret
mov eax, 0x54
ret
xor eax, eax
ret
mov eax, 0x19
ret
mov eax, 4
ret
mov eax, 0x11
ret
mov eax, 0x13
ret
mov eax, 0x18
ret
mov eax, 0x14
ret
mov eax, 8
ret
mov eax, 0xe
ret
mov eax, 0xf
ret
mov eax, 0x10
ret
mov eax, 0x12
ret
mov eax, 3
ret
mov eax, 5
ret
mov eax, 6
ret
mov eax, 7
ret
mov eax, 9
ret
mov eax, 0xa
ret
mov eax, 0xb
ret
mov eax, 0xc
ret
mov eax, 0x16
ret
mov eax, 0x17
ret
mov eax, 2
ret
mov eax, 0x15
ret
mov eax, 1
ret
mov eax, 0xd
ret
mov eax, 0x1a
ret
mov eax, 0x1b
ret
mov eax, 0x1c
ret
mov eax, 0x1d
ret
mov eax, 0x1e
ret
mov eax, 0x1f
ret
mov eax, 0x20
ret
mov eax, 0x21
ret
mov eax, 0x22
ret
mov eax, 0x23
ret
or eax, 0xffffffff
ret
push 0x10251854
call fcn.1006d849
add esp, 4
cmp dword [0x10251854], 0xffffffff
jne 0x1004c520
push 0
push 0xa0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0x10251854
mov dword [0x10251850], eax
call fcn.1006d7f8
add esp, 4
jmp 0x1004c520
Function at 0x1005eb20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push esi
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 4]
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], edx
push 4
push 0x80
mov dword [edi + 4], 0x80
mov dword [edi + 8], 0x40
mov ecx, dword [eax + 0xb74]
mov dword [edi], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 0xa4], 0x80
mov eax, dword [eax + 4]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0xb0], eax
call fcn.10081926
mov dword [edi + 0x24], eax
lea eax, [edi + 0x10]
push 0x80
push eax
call fcn.1005e0d0
add esp, 0x10
xor esi, esi
nop dword [eax]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x101d7318]
mulsd xmm0, qword [0x101d7308]
call fcn.1007b630
mov eax, dword [edi + 0x24]
cvtsd2ss xmm0, xmm0
movss dword [eax + esi*4], xmm0
mov eax, dword [edi + 0x24]
movss xmm0, dword [eax + esi*4]
mulss xmm0, xmm0
movss dword [eax + esi*4], xmm0
inc esi
cmp esi, 0x80
jl 0x1005eb90
mov dword [edi + 0x28], 2
lea esi, [edi + 0x34]
mov dword [edi + 0x2c], 4
mov dword [edi + 0x38], 4
mov dword [edi + 0x3c], 5
mov dword [edi + 0x48], 6
mov dword [edi + 0x4c], 6
mov dword [edi + 0x58], 9
mov dword [edi + 0x5c], 8
mov dword [edi + 0x68], 0xd
mov dword [edi + 0x6c], 8
mov dword [edi + 0x78], 0x11
mov dword [edi + 0x7c], 8
mov dword [edi + 0x88], 0x16
mov dword [edi + 0x8c], 8
mov dword [esp + 0x24], 7
nop word [eax + eax]
mov ebp, dword [esi - 8]
lea eax, [ebp*4]
push eax
call fcn.10081963
add esp, 4
mov edi, eax
xor ebx, ebx
mov dword [esi - 4], edi
test ebp, ebp
jle 0x1005ecc5
movd xmm1, ebp
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x14], xmm1
nop dword [eax]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [0x101592c0]
divsd xmm0, xmm1
mulsd xmm0, qword [0x101d7308]
call fcn.1007b630
movsd xmm1, qword [esp + 0x14]
cvtsd2ss xmm0, xmm0
movss dword [edi + ebx*4], xmm0
mov edi, dword [esi - 4]
movss xmm0, dword [edi + ebx*4]
inc ebx
addss xmm0, dword [esi]
movss dword [esi], xmm0
cmp ebx, ebp
jl 0x1005ec80
movss xmm0, dword [esi]
movsd xmm1, qword [0x10153e68]
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [esi], xmm0
add esi, 0x10
sub dword [esp + 0x24], 1
jne 0x1005ec50
mov ecx, dword [esp + 0x10]
push 0x90
lea eax, [ecx*8]
sub eax, ecx
push eax
call fcn.10081926
mov edi, dword [esp + 0x28]
push 4
push dword [edi + 0xa4]
mov dword [edi + 0x98], eax
call fcn.10081926
add esp, 0x10
mov dword [edi + 0xa0], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10067da0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
or ebx, 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov eax, dword [edi + 0x1c8]
lea ebp, [edi + 0x18]
mov ecx, dword [esp + 0x18]
lea esi, [edi + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], esi
nop dword [eax + eax]
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.100bab10
add esp, 8
test eax, eax
jns 0x10067e03
cdq
sub dword [esi], eax
lea eax, [edi + 8]
mov dword [esp + 0x18], eax
sbb dword [esi + 4], edx
mov esi, eax
jmp 0x10067de0
jne 0x10067e94
call fcn.1007382f
mov dword [eax], 0
cmp dword [edi + 0x2c0], 0
je 0x10067f8f
cmp dword [edi], 0
je 0x10067f8f
push 0x800
push ebp
call fcn.100ba850
push dword [edi]
push 0x800
push 1
push eax
mov eax, dword [edi + 0x2c0]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jle 0x10067e68
push esi
push ebp
call fcn.100bace0
lea eax, [edi + 8]
add esp, 8
mov esi, eax
mov dword [esp + 0x18], eax
jmp 0x10067de0
jne 0x10067e78
call fcn.1007382f
cmp dword [eax], 0
jne 0x10067f8f
test esi, esi
je 0x10067f8f
js 0x10067f8f
lea eax, [edi + 8]
mov esi, eax
mov dword [esp + 0x18], eax
jmp 0x10067de0
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 4]
cdq
add eax, dword [esp + 0x14]
mov dword [esi], eax
adc edx, ecx
mov dword [esi + 4], edx
test ecx, ecx
jl 0x10067f8f
jg 0x10067ebe
cmp dword [esp + 0x14], 0
jb 0x10067f8f
lea eax, [esp + 0x24]
push eax
call fcn.100b9b20
add esp, 4
test eax, eax
jne 0x10067f8f
lea eax, [esp + 0x24]
push eax
call fcn.100b9c50
add esp, 4
cmp eax, dword [esp + 0x20]
jne 0x10067dd7
lea ecx, [esp + 0x24]
lea eax, [edi + 0x78]
push ecx
push eax
call fcn.100ba320
lea eax, [esp + 0x3c]
push eax
lea eax, [edi + 0x78]
push eax
call fcn.100ba2e0
add esp, 0x10
test eax, eax
je 0x10067f5e
mov esi, dword [esp + 0x58]
lea ebp, [edi + 0x78]
jle 0x10067f41
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x60]
call fcn.10142350
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10067f41
cmp ebx, 0xffffffff
je 0x10067f3f
lea eax, [ecx + ebx]
sar eax, 2
cdq
add dword [esp + 0x10], eax
adc esi, edx
mov ebx, ecx
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.100ba2e0
add esp, 8
test eax, eax
jne 0x10067f14
mov dword [esp + 0x58], esi
lea ebp, [edi + 0x18]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.100b9bc0
and eax, edx
add esp, 4
cmp eax, 0xffffffff
je 0x10067dd7
lea eax, [esp + 0x24]
push eax
call fcn.100b9bc0
add esp, 4
sub eax, dword [esp + 0x10]
sbb edx, dword [esp + 0x58]
mov ecx, edx
jmp 0x10067f97
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
jg 0x10067fba
jl 0x10067fa5
test eax, eax
jae 0x10067fba
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
add esp, 0x44
ret
mov edx, ecx
add esp, 0x44
ret
Function at 0x1007888e
Capabilities:
Parse pe header

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

Function at 0x1007c68b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1006e630
mov eax, dword [0x1024b600]
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.10088f5e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007c6cd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1007c829
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1006e0f0
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 + 0x10252760]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100910f5
mov ecx, dword [esi*4 + 0x10252760]
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 0x1007c822
cmp eax, dword [ecx + edi + 0x24]
jne 0x1007c822
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 0x1007c822
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100910f5
add esp, 0x14
test edx, edx
jl 0x1007c822
jg 0x1007c798
test eax, eax
jb 0x1007c822
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007c822
jl 0x1007c7b2
cmp dword [ebp - 0x1008], eax
ja 0x1007c822
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1007c7d0
test ebx, ebx
je 0x1007c809
cmp ecx, edi
jae 0x1007c809
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007c7ea
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1007c7f6
cmp byte [ecx + 1], 0xa
jne 0x1007c7f6
inc ecx
jmp 0x1007c7f6
movzx eax, al
movsx eax, byte [eax + 0x1024b8b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1007c7d0
cmp edx, ebx
jne 0x1007c7d0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1007c827
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1006d7ba
leave
ret
Function at 0x10088787
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e455c
push 0x101e4554
push str.FlsAlloc
push 0x1f
call fcn.100885b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100887bb
push dword [ebp + 8]
mov ecx, esi
call dword [0x10152340]
call esi
jmp 0x100887c1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10088805
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e456c
push 0x101e4564
push str.FlsGetValue
push 0x21
call fcn.100885b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008883c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10152340]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10088844
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e4574
push 0x101e456c
push str.FlsSetValue
push 0x22
call fcn.100885b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008887e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10152340]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1008891c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x101e43d4
push str.GetTempPath2W
push 5
call fcn.100885b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10088956
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10152340]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]