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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040fd80
mov eax, dword [0x43e04c]
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.0041e246
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ff60
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4200bc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042cd10
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 + 0x43fde0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041fab3
mov ecx, dword [esi*4 + 0x43fde0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4200b5
cmp eax, dword [edi + ecx + 0x24]
jne 0x4200b5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4200b5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fab3
add esp, 0x14
test edx, edx
jl 0x4200b5
jg 0x42002b
test eax, eax
jb 0x4200b5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4200b5
jl 0x420045
cmp dword [ebp - 0x1008], eax
ja 0x4200b5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420063
test ebx, ebx
je 0x42009c
cmp ecx, edi
jae 0x42009c
mov al, byte [ecx]
cmp al, 0xd
jne 0x42007d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420089
cmp byte [ecx + 1], 0xa
jne 0x420089
inc ecx
jmp 0x420089
movzx eax, al
movsx eax, byte [eax + 0x43e2e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420063
cmp edx, ebx
jne 0x420063
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4200ba
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040eed8
leave
ret
Function at 0x42015b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x43fde0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42019b
cmp byte [ebx], 0xa
jne 0x42019b
or byte [eax + edi + 0x28], 4
jmp 0x4201a0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42029e
mov al, byte [edx]
cmp al, 0x1a
je 0x420280
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4201cf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4201f4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4201fe
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4201b1
jmp 0x42029e
push 0
lea eax, [ebp - 0xc]
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 0x42027b
cmp dword [ebp - 0xc], 0
je 0x42027b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43fde0]
test byte [eax + edi + 0x28], 0x48
je 0x420255
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420240
mov byte [esi], dl
jmp 0x420251
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43fde0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42029e
cmp byte [ebp - 1], 0xa
jne 0x420264
cmp esi, ebx
jne 0x420264
mov byte [esi], 0xa
jmp 0x42029d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041fad1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42029e
mov byte [esi], 0xd
jmp 0x42029d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43fde0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42029a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42029e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4202a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43fde0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4202ea
cmp word [esi], dx
jne 0x4202ea
or byte [edi + eax + 0x28], 4
jmp 0x4202ef
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x420442
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x420422
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x420331
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420367
cmp eax, edx
jae 0x420373
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x420309
jmp 0x420442
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42041e
cmp dword [ebp - 0x14], 0
je 0x42041e
mov eax, dword [ebx*4 + 0x43fde0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4203f6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4203bf
mov word [esi], cx
jmp 0x4203f2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43fde0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43fde0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43fde0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x420442
pop ebx
cmp word [ebp - 4], bx
jne 0x420407
cmp esi, dword [ebp + 0xc]
jne 0x420407
mov word [esi], bx
jmp 0x42043f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041fad1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420442
push 0xd
jmp 0x42043b
mov ecx, dword [ebx*4 + 0x43fde0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420439
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420442
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420ecc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432274
push 0x43226c
push str.FlsAlloc
push 0x1e
call fcn.00420d75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420f00
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e1d0]
call esi
jmp 0x420f06
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x420f4a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432284
push 0x43227c
push str.FlsGetValue
push 0x20
call fcn.00420d75
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420f81
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e1d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x424ef4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43e04c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x424f3f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00425093
test al, al
jne 0x424f39
sub edx, 2
cmp edx, edi
jne 0x424f1f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x424f61
lea eax, [edi + 2]
cmp edx, eax
je 0x424f61
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00424e40
add esp, 0x10
jmp 0x42505b
push esi
lea ecx, [ebp - 0x255]
call fcn.00425093
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x424fa4
push dword [ebp - 0x25c]
jmp 0x424f51
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x424fe1
cmp word [ebp - 0x226], 0
je 0x425002
cmp word [ebp - 0x226], ax
jne 0x424fe1
cmp word [ebp - 0x224], 0
je 0x425002
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00424e40
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42504e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x424fbb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x425036
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42505b
push 0x424c70
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042b780
add esp, 0x10
jmp 0x42502b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eed8
leave
ret
Function at 0x42c565
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042c4e1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42c6dd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42c6dd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42c68c
jg 0x42c5be
test eax, eax
je 0x42c682
push 1
push 0x1000
call fcn.0041f82d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42c5e4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42c679
push 0x8000
push ebx
call fcn.0041a886
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42c610
jg 0x42c60b
cmp ecx, 0x1000
jb 0x42c610
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041f62d
add esp, 0x10
cmp eax, 0xffffffff
je 0x42c655
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42c60b
jl 0x42c63c
test ecx, ecx
jne 0x42c5fd
push dword [ebp - 0xc]
push ebx
call fcn.0041a886
push esi
call fcn.0041d31b
add esp, 0xc
xor edi, edi
jmp 0x42c6ee
cmp byte [edi + 0x24], 0
je 0x42c66c
cmp dword [edi + 0x20], 5
jne 0x42c66c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42c677
mov edi, dword [edi + 0x18]
jmp 0x42c679
xor edi, edi
push esi
call fcn.0041d31b
pop ecx
jmp 0x42c6ee
test ecx, ecx
jg 0x42c64e
jl 0x42c68c
test eax, eax
jae 0x42c64e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fad1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42c6af
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42c64e
jmp 0x42c6e6
push ebx
call fcn.00425d97
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42c64e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42c6ee
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42c6eb
mov edi, dword [edi + 0x18]
jmp 0x42c6ee
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041fad1
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003410
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
push ebx
mov ebx, eax
mov dword [ebp - 8], eax
push esi
mov esi, eax
shr edx, 8
movzx eax, al
xor eax, 0x811c9dc5
shr ebx, 0x10
push edi
mov edi, ecx
shr esi, 0x18
imul ecx, eax, 0x1000193
movzx eax, dl
xor ecx, eax
movzx eax, bl
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x50]
xor eax, esi
imul esi, eax, 0x1000193
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1001c920
mov edx, dword [eax + 4]
test edx, edx
je 0x100034c9
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x5c]
and ecx, esi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x100034a6
cmp eax, edx
jne 0x1000349e
mov eax, dword [edi + 0x54]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x100034ae
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x100034ae
cmp eax, edx
jne 0x100034ae
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [edi + 0x58]
mov eax, dword [edx + 4]
push 0xc
push edx
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.10091115
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp + 8]
imul ebx, ecx, 0x1000193
lea ecx, [edi + 0x10]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1001c920
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10003518
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 0x14]
je 0x100035a3
mov eax, dword [ecx + 0x10]
cmp eax, 1
jne 0x1000359f
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [edi + 0x10]
call fcn.1001c920
mov edx, dword [eax + 4]
test edx, edx
je 0x100035a3
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x1c]
and ecx, ebx
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x10003569
cmp eax, edx
jne 0x10003561
mov eax, dword [edi + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x10003571
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x10003571
cmp eax, edx
jne 0x10003571
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [edi + 0x18]
mov eax, dword [edx + 4]
push 0x14
push edx
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.10091115
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10090ad6
mov esp, ebp
pop ebp
ret 8
dec eax
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10090ad6
mov esp, ebp
pop ebp
ret 8
Function at 0x10003940
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov edx, dword [esi + 4]
test edx, edx
jne 0x10003961
mov edx, dword [ecx + 0xc]
lea eax, [edx + 1]
mov dword [ecx + 0xc], eax
mov dword [esi + 4], edx
lea esi, [ecx + 0x10]
movzx eax, dl
xor eax, 0x811c9dc5
mov dword [ebp - 4], edx
imul ecx, eax, 0x1000193
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, edx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, esi
xor eax, edx
imul eax, eax, 0x1000193
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1001c920
mov eax, dword [eax + 4]
test eax, eax
je 0x100039cb
cmp eax, dword [esi + 4]
je 0x100039cb
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10006900
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9d77
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13a0
call fcn.10091c60
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13a8], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x13ac], esi
mov dword [ebp - 0x13a4], 0
call fcn.1008fd9f
mov edx, eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x139c], edx
mov eax, 1
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [ebp + eax*4 - 0x139c], edx
inc eax
cmp eax, 0x270
jb 0x10006980
xorps xmm0, xmm0
mov dword [ebp - 0x13a0], 0x270
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov edi, 0xc
mov dword [ebp - 0x13a4], 1
lea ecx, [ebp - 0x13a0]
call fcn.1001d870
mov ecx, 0x34
mul ecx
cmp eax, ecx
jae 0x10006a18
cmp eax, 0x30
jae 0x10006a18
mov esi, ecx
lea ecx, [ebp - 0x13a0]
call fcn.1001d870
mul esi
cmp eax, 0x30
jb 0x10006a00
mov esi, dword [ebp - 0x13a8]
mov al, byte [edx + 0x100ee234]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov byte [ebp - 0x18], al
cmp ecx, edx
jae 0x10006a47
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x10006a3a
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x18]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x10006a59
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x13ac]
push 1
call fcn.1001ba30
add edi, 0xffffffff
jne 0x100069e3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10090ad6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10017da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10017e5c
cmp byte [esi + 0x3d], 0
je 0x10017e5c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10017e4a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
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 edx
sub eax, 0
je 0x10017e12
sub eax, 1
je 0x10017e16
sub eax, 2
jne 0x10017e4a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10090ad6
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10017e33
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100999ae
add esp, 0x10
cmp edi, eax
jne 0x10017e4a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10090ad6
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10090ad6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10090ad6
mov esp, ebp
pop ebp
ret

Function at 0x10018060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba4d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100fc068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], 0x100bf5f0
call fcn.10090dc6
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1008f9c7
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10019c40
mov eax, dword [ebp - 0x10]
lea ebx, [edi + 4]
mov dword [edi + 0xc], ebx
lea esi, [edi + 8]
mov dword [edi], 0x100bf640
lea ecx, [eax + 0x18]
mov byte [edi + 0x48], 0
lea edx, [eax + 0x24]
mov byte [edi + 0x3d], 0
mov dword [edi + 0x10], esi
add edi, 0x14
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x101069a8]
mov edx, dword [0x101069ac]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 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