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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x100014f8
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x100014e6
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x1000370c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x1027c500]
sub esp, 0x14
mov eax, dword [ecx]
push ebx
push esi
push edi
call dword [eax + 0x20]
mov esi, eax
jmp 0x10003783
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10003780
mov ecx, dword [esi + 8]
xor eax, eax
mov ebx, dword [0x1027c50c]
cmp byte [ecx], al
je 0x10003748
inc eax
cmp byte [ecx + eax], 0
jne 0x10003741
lea edx, [eax + 1]
mov edi, 0x811c9dc5
test edx, edx
je 0x10003765
movsx eax, byte [ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
sub edx, 1
jne 0x10003754
lea eax, [esp + 0x10]
mov dword [esp + 0x14], edi
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + 4]
call fcn.10004192
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x10003727
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004891
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x1000489d
pop esi
mov eax, edx
ret 4

Function at 0x1000dea7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 8
jb 0x1000deb3
pop esi
mov eax, edx
ret 4

Function at 0x1000e959
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebx, ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x10], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x10], edi
mov esi, edi
cmp edi, ebp
jge 0x1000e9bf
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0xd160
add ecx, ebx
lea eax, [ecx - 0xd160]
push eax
push ecx
call fcn.10007860
movzx eax, al
xor eax, 1
imul ecx, edi, 0xd160
inc eax
add esi, eax
imul eax, esi, 0xd160
add ecx, ebx
add eax, ebx
push eax
call fcn.1000e359
mov edi, esi
cmp esi, ebp
jl 0x1000e97c
mov eax, dword [esp + 0x1c]
cmp esi, ebp
jne 0x1000e9e6
test al, 1
jne 0x1000e9e6
imul eax, eax, 0xd160
imul ecx, edi, 0xd160
add eax, 0xffff2ea0
add eax, ebx
add ecx, ebx
push eax
call fcn.1000e359
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x10], edi
jge 0x1000ea1d
push dword [esp + 0x20]
lea esi, [edi - 1]
sar esi, 1
imul ebp, esi, 0xd160
add ebp, ebx
push ebp
call fcn.10007860
test al, al
je 0x1000ea1d
imul ecx, edi, 0xd160
push ebp
add ecx, ebx
call fcn.1000e359
mov edi, esi
cmp dword [esp + 0x10], esi
jl 0x1000e9ec
push dword [esp + 0x20]
imul ecx, edi, 0xd160
add ecx, ebx
call fcn.1000e359
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x100132d2
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
lea esi, [eax - 1]
mov dword [esp + 0xc], edx
mov ebp, esi
mov dword [esp + 0x10], esi
push edi
mov edi, edx
sar ebp, 1
mov ebx, ecx
mov ecx, edi
cmp edi, ebp
jge 0x1001332d
lea esi, [ecx + ecx]
lea ecx, [ebx + 8]
lea ecx, [ecx + esi*4]
lea eax, [ecx - 4]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.10012a33
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, esi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edi*4], eax
mov edi, ecx
cmp ecx, ebp
jl 0x100132f5
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp ecx, ebp
jne 0x1001333e
test al, 1
jne 0x1001333e
mov eax, dword [ebx + eax*4 - 4]
mov dword [ebx + edi*4], eax
mov edi, esi
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
cmp edx, edi
jge 0x10013373
lea esi, [edi - 1]
sar esi, 1
lea ecx, [esp + 0x1c]
push ebp
lea eax, [ebx + esi*4]
push eax
call fcn.10012a33
test al, al
je 0x10013373
mov eax, dword [ebx + esi*4]
mov dword [ebx + edi*4], eax
mov edi, esi
cmp dword [esp + 0x10], esi
jl 0x1001334e
mov eax, dword [ebp]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x1001ae0f
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 2
jb 0x1001ae1b
pop esi
mov eax, edx
ret 4
Function at 0x1003dace
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 0x10
mov esi, ecx
call fcn.1010e464
mov edx, dword [esp + 0x1c]
lea edi, [esi + 4]
mov ecx, dword [esp + 0x18]
xor ebx, ebx
push edi
mov dword [eax], 0x1012f3d4
mov edx, dword [edx]
push ebx
mov dword [eax + 4], edx
mov ecx, dword [ecx]
push eax
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
push 0x1003df0a
push ebx
push ebx
mov ecx, dword [ecx]
mov dword [eax + 0xc], ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x1003db21
pop edi
mov eax, esi
pop esi
pop ebx
ret 0x10
push 6
mov dword [edi], ebx
call fcn.100f7f2d
int3

Function at 0x1003db2b
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x24
mov edi, ecx
call fcn.1010e464
pop ecx
push dword [esp + 0x20]
mov esi, eax
mov ecx, esi
call fcn.10003fda
mov edx, dword [esp + 0x1c]
lea ebx, [edi + 4]
mov eax, dword [esp + 0x14]
xor ebp, ebp
push ebx
push ebp
mov ecx, dword [edx]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x20]
push esi
push 0x1003df55
push ebp
mov ecx, dword [ecx]
mov dword [esi + 0x1c], ecx
mov eax, dword [eax]
push ebp
mov dword [esi + 0x20], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x1003db88
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push 6
mov dword [ebx], ebp
call fcn.100f7f2d
int3

Function at 0x1003db92
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 0xc
mov esi, ecx
call fcn.1010e464
mov edx, dword [esp + 0x1c]
lea edi, [esi + 4]
push edi
xor ebx, ebx
push ebx
mov edx, dword [edx]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
push eax
push 0x1003df7b
push ebx
mov ecx, dword [edx]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
push ebx
mov ecx, dword [ecx]
mov dword [eax + 8], ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x1003dbde
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc
push 6
mov dword [edi], ebx
call fcn.100f7f2d
int3
Function at 0x10047971
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
mov edx, dword [esp + 8]
push edi
mov edi, ecx
not edx
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10131e30]
inc edi
sub esi, 1
jne 0x1004797d
pop edi
not edx
pop esi
mov eax, edx
ret

Function at 0x1004799c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov edx, ebx
test edi, edi
je 0x100479fe
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x100479c6
cmp edi, 2
jb 0x100479c6
cmp byte [esi], al
jne 0x100479c6
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10131e30]
test edi, edi
jne 0x100479af
jmp 0x10047a05
cmp al, 0x23
jne 0x100479ec
cmp byte [esi], al
jne 0x100479ec
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10131e30]
mov al, byte [esi]
inc esi
test al, al
jne 0x100479de
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret

Function at 0x10047b1f
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x10047b2e
and dword [edi], 0
mov edx, 0x10272728
call fcn.10047a0d
mov esi, eax
test esi, esi
je 0x10047b91
mov ecx, esi
call fcn.10047ac9
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10047b8a
mov ecx, ebx
call fcn.10049a25
mov ebp, eax
test ebp, ebp
je 0x10047b8a
push esi
push ebx
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov ecx, esi
cmp eax, ebx
je 0x10047b7b
call fcn.10047aba
mov ecx, ebp
call fcn.10049a3d
jmp 0x10047b91
call fcn.10047aba
test edi, edi
je 0x10047b86
mov dword [edi], ebx
mov eax, ebp
jmp 0x10047b93
mov ecx, esi
call fcn.10047aba
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10054d27
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [0x1027c41c]
push edi
cmp byte [esi + 0x2fa0], 0
je 0x10054d9e
cmp dword [esi + 0x2fa8], 0
lea edi, [esi + 0x2fac]
mov ecx, edi
je 0x10054d90
push 0
call fcn.10055e7f
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push dword [esp + 0x10]
call fcn.1004835e
mov edx, dword [edi]
mov ecx, 0x1027c41a
push dword [esi + 0x2fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2fb4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x10054d9e
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call fcn.1004835e
pop edi
pop esi
ret

Function at 0x1005533b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1027c41c]
push esi
mov esi, ecx
push edi
and dword [eax + 0x2f78], 0
test esi, esi
je 0x1005538a
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.1005538e
mov edx, 0x102726f8
mov ecx, esi
mov edi, eax
call fcn.10047a0d
mov esi, eax
test esi, esi
je 0x1005538a
push esi
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, esi
call fcn.10047aba
pop edi
pop esi
leave
ret
Function at 0x1006209f
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test byte [ebp + 4], 4
jne 0x100621f7
imul eax, dword [ebp + 0x46c], 0x1c
lea edx, [ebp + 0x68]
mov dword [esp + 0x18], edx
add eax, dword [ebp + 0x58]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
movzx esi, word [eax + 6]
movzx edi, word [eax]
add esi, ecx
imul esi, dword [ebp + 0x2c]
mov ebx, edi
movzx eax, word [eax + 4]
sub ebx, ecx
shr ebx, 1
push ebx
push 0
add esi, eax
add esi, dword [ebp + 0x24]
push esi
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x20]
add esi, ebx
push ecx
push 0xff
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x2c]
sub edi, ebx
sub edi, eax
add eax, esi
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x40]
lea esi, [esp + 0x44]
add esp, 0x24
movzx edx, word [ecx + 4]
movzx eax, word [ecx + 6]
add edx, ebx
mov ecx, dword [esp + 0x14]
add ecx, eax
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x102746c0]
lea eax, [edx - 1]
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x102746c0]
mov ecx, dword [esp + 0x14]
cvtpd2ps xmm0, xmm0
addss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, dword [ebp + 0x38]
addsd xmm0, qword [eax*8 + 0x102746c0]
lea eax, [ecx + 1]
add eax, edx
mulss xmm1, dword [0x10273e38]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x24], xmm1
mulss xmm0, dword [ebp + 0x34]
movss dword [esp + 0x2c], xmm1
movss dword [esp + 0x20], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
inc ecx
mov dword [esp + 0x14], ecx
addsd xmm0, qword [eax*8 + 0x102746c0]
mov eax, dword [esp + 0x18]
mov edi, eax
add eax, 0x10
cmp ecx, 0x40
mov dword [esp + 0x18], eax
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp + 0x34]
movss dword [esp + 0x28], xmm0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
jb 0x100620cd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x1007cbe7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1027c4d8]
sub esp, 0x1c
mov eax, dword [ecx]
push ebx
mov ebx, dword [0x1027c41c]
push esi
push edi
call dword [eax + 0x310]
test al, al
je 0x1007cc3c
lea eax, [ebp - 0x1c]
push eax
push dword [0x1027cd10]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
movd xmm1, eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0xc]
mov ecx, edi
sub ecx, dword [0x1027cd18]
mov esi, dword [ebp - 8]
mov edx, esi
sbb edx, dword [0x1027cd1c]
call fcn.1010ffd0
mov edx, dword [0x1027cd24]
mov ecx, dword [0x1027cd20]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 4], xmm0
call fcn.1010ffd0
movss xmm1, dword [ebp - 4]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x1027cd1c], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x1027cd18], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0x100], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0x101], al
call esi
shr eax, 0xf
and al, 1
mov byte [ebx + 0x103], 0
push 0xa0
mov byte [ebx + 0x102], al
call esi
shr eax, 0xf
and al, 1
push 0xa1
mov byte [ebx + 0x1a4], al
call esi
shr eax, 0xf
and al, 1
mov byte [ebx + 0x1a5], al
call fcn.1007cb2e
cmp byte [ebx + 0xb0], 0
pop edi
pop esi
pop ebx
je 0x1007cd0d
or eax, 0xffffffff
jmp 0x1007cd18
mov eax, dword [0x1027c41c]
mov eax, dword [eax + 0x1f64]
cmp dword [0x102796b0], eax
je 0x1007cd2a
mov dword [0x102796b0], eax
call fcn.1007ca8a
leave
ret
Function at 0x1007e130
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.1007d571
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x1007e151
mov ecx, dword [ecx]
xor eax, eax
cmp byte [ecx], al
je 0x1007e15e
inc eax
cmp byte [ecx + eax], 0
jne 0x1007e157
lea edx, [eax + 1]
mov ebx, 0x811c9dc5
test edx, edx
je 0x1007e17b
movsx eax, byte [ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
sub edx, 1
jne 0x1007e16a
lea ecx, [ebp - 0x1c]
call fcn.10001483
cmp ebx, dword [ebp + 8]
je 0x1007e18b
inc esi
jmp 0x1007e13d
cmp esi, dword [edi + 0x10]
ja 0x1007e19c
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1007e19c
mov eax, dword [eax + esi*4]
jmp 0x1007e19e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1007e388
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov edx, esi
lea ecx, [esp + 0x10]
call fcn.1007d571
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x1007e3ad
mov ecx, dword [ecx]
xor eax, eax
cmp byte [ecx], al
je 0x1007e3ba
inc eax
cmp byte [ecx + eax], 0
jne 0x1007e3b3
lea edx, [eax + 1]
mov ebx, 0x811c9dc5
test edx, edx
je 0x1007e3d7
movsx eax, byte [ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
sub edx, 1
jne 0x1007e3c6
lea ecx, [esp + 0x10]
call fcn.10001483
cmp ebx, dword [ebp + 8]
je 0x1007e3e8
inc esi
jmp 0x1007e398
cmp esi, dword [edi + 0x10]
ja 0x1007e3f9
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1007e3f9
mov eax, dword [eax + esi*4]
jmp 0x1007e3fb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10085e03
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi + 4], edx
mov eax, dword [edx]
mov dword [edi + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [edx]
push ecx
mov esi, dword [eax + 0xc]
mov eax, esp
mov dword [eax], ecx
mov ecx, edi
call esi
mov dword [edi + 0x10], eax
xor ecx, ecx
push 4
inc eax
pop ebx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010e56c
mov ecx, dword [edi + 0x10]
shl ecx, 2
push ecx
push dword [edi + 0xc]
mov dword [edi + 8], eax
add eax, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0xc]
add esp, 0x10
mov ecx, dword [edi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [eax - 4]
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 8]
add ecx, ebx
mov dword [eax], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call esi
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4
Function at 0x10085e94
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x10085ecc
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
leave
ret

Function at 0x10085ecf
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.1007d571
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x10085ef0
mov ecx, dword [ecx]
xor eax, eax
cmp byte [ecx], al
je 0x10085efd
inc eax
cmp byte [ecx + eax], 0
jne 0x10085ef6
lea edx, [eax + 1]
mov ebx, 0x811c9dc5
test edx, edx
je 0x10085f1a
movsx eax, byte [ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
sub edx, 1
jne 0x10085f09
lea ecx, [ebp - 0x18]
call fcn.10001483
cmp ebx, dword [ebp + 0xc]
je 0x10085f2a
inc esi
jmp 0x10085edc
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10085f4b
cmp dword [edi + 0xc], 0
je 0x10085f4b
cmp esi, dword [edi + 0x10]
ja 0x10085f4b
mov eax, dword [ebp + 8]
mov dword [ecx + esi*4 + 4], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax + esi*4]
jmp 0x10085f4d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10089e85
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 1
push esi
mov esi, dword [esp + 8]
mov dword [0x1027c488], esi
jne 0x10089ec3
push 0x10087a54
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push esi
push 0x10087b9a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10089ed1
jmp 0x10089ed4
cmp dword [esp + 0xc], 0
jne 0x10089ed1
and dword [0x1027c488], 0
xor eax, eax
inc eax
pop esi
ret 0xc

Function at 0x1008a3ee
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 8
mov esi, edx
call fcn.1010e464
mov ecx, dword [esp + 0x18]
lea edi, [esi + 4]
push edi
xor ebx, ebx
push ebx
mov ecx, dword [ecx]
push eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
push 0x1003dfc4
push ebx
push ebx
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x1008a42d
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], ebx
call fcn.100f7f2d
int3
Function at 0x10096a61
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10096a88
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1008010f
jmp 0x10096b52
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10096ab0
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10096ab6
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10096b1e
jg 0x10096acd
test esi, esi
je 0x10096b1e
test ecx, ecx
jl 0x10096b19
jg 0x10096ad7
test eax, eax
je 0x10096b19
cmp edi, ecx
jg 0x10096aeb
jl 0x10096ae1
cmp esi, eax
jae 0x10096aeb
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10096b21
mov ecx, dword [ebp + 8]
jmp 0x10096b2b
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10096b46
jg 0x10096b2b
test esi, esi
je 0x10096b46
cmp dword [ebx + 0x4c], 0
je 0x10096b46
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10096b5b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
push edi
test esi, esi
jg 0x10096b84
jl 0x10096b7b
test ebx, ebx
jne 0x10096b84
xor eax, eax
xor edx, edx
jmp 0x10096c50
cmp dword [ecx + 0x38], 0
je 0x10096b99
push esi
push ebx
push dword [ebp + 8]
call fcn.10080203
jmp 0x10096c50
mov eax, dword [ecx + 0x1c]
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x10096bde
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x10096bde
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push edx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x10096be5
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x4c], 0
je 0x10096c47
call fcn.10097093
mov ecx, dword [esp + 0x10]
mov edx, edi
cmp edi, 0xfff
jbe 0x10096c2d
mov eax, dword [esp + 0x14]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10096c47
jmp 0x10096bf6
test edx, edx
je 0x10096c47
mov eax, dword [esp + 0x14]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc