joyce8/EMBER2024-capa huggingface dataset:
Function at 0x800667f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x414]
and ecx, 0xfffffff7
test eax, eax
mov dword [esi + 8], ecx
jne 0x800669e1
push edi
push ebx
xor edi, edi
push ebp
mov eax, dword [0x80070af8]
test eax, eax
mov ebp, edi
je 0x80066821
mov ebp, 3
push ebp
push edi
push esi
call fcn.8006afa0
mov ebx, eax
push ebx
push ebp
push edi
push esi
call fcn.8006a600
xor edx, edx
cmp ebx, edx
jne 0x8006683e
cmp edi, edx
jne 0x8006684a
inc edi
cmp ebx, edx
je 0x8006684a
cmp ebp, 3
jb 0x80066811
xor edx, edx
cmp edi, 8
pop ebp
mov dword [esi + 0x594], edi
pop ebx
jae 0x80066876
mov ecx, 8
lea eax, [esi + edi*4 + 0x570]
sub ecx, edi
mov dword [eax - 0x20], edx
mov dword [eax], edx
mov dword [eax - 0x60], edx
mov dword [eax - 0x40], edx
add eax, 4
dec ecx
jne 0x80066865
push esi
call fcn.80065a50
mov dword [eax], 0x41e60
mov dword [eax + 8], 0x200ac0
and edi, 0xff
mov dword [eax + 4], edi
mov ecx, dword [esi + 0x550]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x554]
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 0x558]
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x55c]
mov dword [eax + 0x18], edx
mov ecx, dword [esi + 0x560]
mov dword [eax + 0x1c], ecx
mov edx, dword [esi + 0x564]
mov dword [eax + 0x20], edx
mov ecx, dword [esi + 0x568]
mov dword [eax + 0x24], ecx
mov edx, dword [esi + 0x56c]
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], 0x201e40
mov ecx, dword [esi + 0x570]
mov dword [eax + 0x30], ecx
mov edx, dword [esi + 0x574]
mov dword [eax + 0x34], edx
mov ecx, dword [esi + 0x578]
mov dword [eax + 0x38], ecx
mov edx, dword [esi + 0x57c]
mov dword [eax + 0x3c], edx
mov ecx, dword [esi + 0x580]
mov dword [eax + 0x40], ecx
mov edx, dword [esi + 0x584]
mov dword [eax + 0x44], edx
mov ecx, dword [esi + 0x588]
mov dword [eax + 0x48], ecx
mov edx, dword [esi + 0x58c]
mov dword [eax + 0x4c], edx
mov dword [eax + 0x50], 0x200260
mov ecx, dword [esi + 0x510]
mov dword [eax + 0x54], ecx
mov edx, dword [esi + 0x514]
mov dword [eax + 0x58], edx
mov ecx, dword [esi + 0x518]
mov dword [eax + 0x5c], ecx
mov edx, dword [esi + 0x51c]
mov dword [eax + 0x60], edx
mov ecx, dword [esi + 0x520]
mov dword [eax + 0x64], ecx
mov edx, dword [esi + 0x524]
mov dword [eax + 0x68], edx
mov ecx, dword [esi + 0x528]
mov dword [eax + 0x6c], ecx
mov edx, dword [esi + 0x52c]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], 0x200aa0
mov ecx, dword [esi + 0x530]
mov dword [eax + 0x78], ecx
mov edx, dword [esi + 0x534]
mov dword [eax + 0x7c], edx
mov ecx, dword [esi + 0x538]
mov dword [eax + 0x80], ecx
mov edx, dword [esi + 0x53c]
mov dword [eax + 0x84], edx
mov ecx, dword [esi + 0x540]
mov dword [eax + 0x88], ecx
mov edx, dword [esi + 0x544]
mov dword [eax + 0x8c], edx
mov ecx, dword [esi + 0x548]
mov dword [eax + 0x90], ecx
mov edx, dword [esi + 0x54c]
mov dword [eax + 0x94], edx
add eax, 0x98
mov dword [esi], eax
pop edi
pop esi
ret 4
Function at 0x80069440
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [0x80070710]
push esi
mov dword [esp + 8], esi
call fcn.80065a50
mov ecx, dword [esp + 0xc]
dec ecx
je 0x8006946d
dec ecx
je 0x80069466
sub ecx, 2
mov ecx, 0xa
jmp 0x80069472
mov ecx, 4
jmp 0x80069472
mov ecx, 1
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
and ecx, 0xffff
shl edx, 0x10
or ecx, edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], 0x108300
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
add eax, 0x14
mov dword [esi], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x80069537
push ebx
push ebp
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
jmp 0x800694c0
push esi
call fcn.80065a50
mov ebp, dword [edi]
mov ebx, dword [edi + 4]
mov edx, ebp
mov ecx, ebx
shl ecx, 0x10
and edx, 0xffff
or edx, ecx
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx + 4]
mov ecx, dword [ecx]
and ecx, 0xffff
shl esi, 0x10
or esi, ecx
mov ecx, dword [edi + 8]
sub ecx, ebp
mov ebp, dword [edi + 0xc]
and ecx, 0xffff
sub ebp, ebx
shl ebp, 0x10
xor ecx, ebp
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x10]
mov dword [eax], 0xc6300
mov dword [eax + 4], edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x18]
add ecx, 8
add edi, 0x10
dec eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], eax
jne 0x800694c0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 0x20
Function at 0x41e112
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41e0d9
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41e0f7
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
invalid
ja 0x41e155
mov esp, 0xd78b4077
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x41e13c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x41e145
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x41e14f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41e131
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x41e0bb
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x41e1a2
dec eax
je 0x41e199
sub eax, 3
je 0x41e190
mov dword [ebp - 4], 0x40
jmp 0x41e1bf
mov dword [ebp - 4], 4
jmp 0x41e1a5
mov dword [ebp - 4], 0x20
jmp 0x41e1a5
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x41e1f1
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x41e171
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0041da02
rol dword [ebx], 0xb6
cdq
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x41e1fd
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ed9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x41fb95
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0041d973
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x41ee0f
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x41ee58
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x41ee02
call fcn.0041da02
in al, 0xf3
pop esi
pop dword [eax - 0x72b5b]
inc dword [eax]
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0041da02
dec ebx
xchg dword [esi], ebp
ror dword [ebp - 0x72b7b], 1
call dword [eax - 0x18]
pop ss
jmp 0x41eef9
invalid
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41f3c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
jne 0x41f57d
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
invalid
movsd dword es:[edi], dword [esi]
invalid
Function at 0x1000dfe0
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100194dd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1001f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.1000ee30
mov dword [ebp - 4], 0
sub esp, 8
mov ebx, dword [ebp + 0x1c]
mov ecx, edi
fld1
mov dword [edi], vtable.Scroll.0
fstp qword [esp]
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], ebx
call fcn.1000e580
mov eax, dword [edi + 0x4c]
mov ecx, edi
push 0
push 0
push 4
mov dword [edi + 0x54], eax
mov dword [edi + 0x74], 0
mov byte [edi + 0x78], 0
mov dword [edi + 0x68], 1
call fcn.1000f300
push 1
push 0
push 0
push 0
push 0
push edi
push fcn.1000dee0
sub esp, 0x18
mov esi, esp
mov dword [ebp + 0x1c], esp
push 2
push 0x1001a644
push esi
mov dword [esi], 0
mov dword [esi + 0x10], 2
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 2], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x38]
mov dword [ebp + 8], 4
call fcn.10009320
mov esi, edi
mov eax, dword [eax]
mov ecx, dword [esi + 0x2c]
mov ecx, dword [ecx + eax*4]
mov byte [ebp - 4], 0
call fcn.1000cc30
push 1
mov dword [esi + 0x7c], eax
push 0
push 0
mov dword [eax + 0x38], 0xa5
mov dword [eax + 0x30], 0xc
mov dword [eax + 0x34], 0xc
mov dword [eax + 0x3c], 0
lea eax, [ebx - 0xc]
push eax
push 0
mov ebx, edi
push ebx
push fcn.1000df60
sub esp, 0x18
mov esi, esp
mov dword [ebp + 0x1c], esp
push 4
mov dword [esi], 0
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], 0xf
push str.down
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 4], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x38]
mov dword [ebp + 8], 4
call fcn.10009320
mov ecx, dword [ebx + 0x2c]
mov eax, dword [eax]
mov ecx, dword [ecx + eax*4]
mov byte [ebp - 4], 0
call fcn.1000cc30
mov dword [ebx + 0x80], eax
mov dword [eax + 0x38], 0xa7
mov dword [eax + 0x30], 0xc
mov dword [eax + 0x34], 0xc
mov dword [eax + 0x3c], 0
mov eax, dword [ebx + 0x7c]
mov byte [eax + 0x1b], 0
mov eax, dword [ebx + 0x80]
mov byte [eax + 0x1b], 0
mov esi, dword [ebx + 0x58]
lea eax, [esi - 0x18]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul qword [ebx + 0x60]
fldz
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1000e1bb
fstp st(0)
jmp 0x1000e1bd
fstp st(1)
call fcn.10018f00
mov ecx, dword [ebx + 0x54]
sub esi, eax
sub ecx, dword [ebx + 0x4c]
sub esi, 0x18
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
mov ecx, dword [ebx + 0x50]
sub ecx, dword [ebx + 0x4c]
mov dword [ebp + 8], ecx
mov dword [ebx + 0x6c], eax
fidiv dword [ebp + 8]
mov dword [ebp + 8], esi
fimul dword [ebp + 8]
call fcn.10018f00
mov dword [ebx + 0x70], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x1000ee30
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019518
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1001f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000eb10
mov dword [ebp - 4], 0
mov dword [edi], vtable.GUIParent.0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
lea esi, [edi + 0x38]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp + 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10017f3a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100128f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019834
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1001f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10
call fcn.10017f3a
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x3bec
mov dword [esi + 8], 1
mov dword [esi], 0
mov dword [esi + 4], 4
call fcn.1001849f
mov dword [esi + 0xc], eax
add esp, 8
mov edx, dword [esi + 4]
lea ecx, [edx + 1]
cmp ecx, 0x3bea
jae 0x10012965
mov byte [eax + edx], 0xa8
inc dword [esi + 4]
mov edx, dword [esi + 4]
inc dword [esi]
lea eax, [edx + 1]
cmp eax, 0x3bea
jae 0x1001297b
mov eax, dword [esi + 0xc]
mov byte [edx + eax], 1
inc dword [esi + 4]
inc dword [esi]
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x1001298f
mov ecx, dword [esi + 0xc]
mov ax, word [esi]
mov word [ecx + 2], ax
jmp 0x100129b3
cmp eax, 2
jne 0x100129aa
mov eax, dword [esi + 0xc]
mov dword [eax + 2], 0x75bcd15
mov ecx, dword [esi + 0xc]
mov ax, word [esi]
mov word [ecx + 6], ax
jmp 0x100129b3
mov ecx, dword [esi + 0xc]
mov ax, word [esi]
mov word [ecx], ax
mov ecx, esi
call fcn.10015f00
mov ecx, dword [esi + 0xc]
push 0
movzx eax, word [ecx]
add eax, 2
push eax
push ecx
push dword [0x1001f7b4]
call dword [sym.imp.WS2_32.dll_send]
push dword [esi + 0xc]
call fcn.10018180
push 0x10
push esi
call fcn.10017f6a
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10012a00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019874
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1001f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10
call fcn.10017f3a
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x3bec
mov dword [esi + 8], 1
mov dword [esi], 0
mov dword [esi + 4], 4
call fcn.1001849f
mov ebx, eax
add esp, 8
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
cmp ecx, 0x3bea
jae 0x10012a84
mov byte [ebx + eax], 0x32
inc dword [esi + 4]
mov ecx, dword [esi + 4]
inc dword [esi]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
jmp 0x10012a86
mov ecx, eax
lea eax, [ecx + 1]
cmp eax, 0x3bea
jae 0x10012aa2
mov byte [ecx + ebx], 0xc9
inc dword [esi + 4]
mov ecx, dword [esi + 4]
inc dword [esi]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 0xc]
mov edx, edi
lea eax, [edx + 1]
mov dword [ebp + 0xc], eax
lea ecx, [ecx]
mov al, byte [edx]
inc edx
test al, al
jne 0x10012ab0
sub edx, dword [ebp + 0xc]
lea eax, [edx + 2]
add eax, ecx
cmp eax, 0x3bea
jae 0x10012b09
cmp edx, 0x2000
ja 0x10012b09
lea eax, [ecx + 2]
cmp eax, 0x3bea
jae 0x10012aeb
mov eax, dword [esi + 0xc]
mov word [ecx + eax], dx
add dword [esi + 4], 2
mov eax, dword [esi + 4]
add dword [esi], 2
jmp 0x10012aee
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10012af3
add dword [esi + 4], edx
add dword [esi], edx
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x10012b1a
mov ax, word [esi]
mov word [ebx + 2], ax
jmp 0x10012b38
cmp eax, 2
jne 0x10012b32
mov dword [ebx + 2], 0x75bcd15
mov ecx, dword [esi + 0xc]
mov ax, word [esi]
mov word [ecx + 6], ax
jmp 0x10012b38
mov ax, word [esi]
mov word [ebx], ax
mov ecx, esi
call fcn.10015f00
mov ecx, dword [esi + 0xc]
push 0
movzx eax, word [ecx]
add eax, 2
push eax
push ecx
push dword [0x1001f7b4]
call dword [sym.imp.WS2_32.dll_send]
push dword [esi + 0xc]
call fcn.10018180
push 0x10
push esi
call fcn.10017f6a
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10015f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1001f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x768c7c]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x768c80]
mov dword [ebp - 0x10], eax
mov eax, dword [0x768c84]
cmp dword [edi + 8], 2
mov esi, dword [edi]
sete dl
mov dword [ebp - 0xc], eax
mov eax, dword [0x768c88]
mov dword [ebp - 0x30], edi
mov dword [ebp - 8], eax
lea edx, [edx*4 + 2]
add esi, edx
mov dword [ebp - 0x34], edx
mov ecx, esi
mov dword [ebp - 0x1c], esi
and ecx, 0x80000007
jns 0x10015f63
dec ecx
or ecx, 0xfffffff8
add ecx, 1
je 0x10015f71
mov eax, 8
sub eax, ecx
add esi, eax
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0xc]
mov eax, esi
add ecx, edx
xor ebx, ebx
cdq
and edx, 3
mov dword [ebp - 0x2c], ecx
add eax, edx
mov dword [ebp - 0x18], ebx
sar eax, 2
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x10016018
mov esi, dword [ecx + ebx*4]
lea eax, [ecx + ebx*4]
lea ebx, [ebx + 1]
mov dword [ebp - 0x20], eax
mov edi, dword [ecx + ebx*4]
lea eax, [ecx + ebx*4]
mov dword [ebp - 0x24], eax
xor eax, eax
lea ebx, [eax + 0x20]
mov edi, edi
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xd
add edx, esi
and ecx, 3
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
xor edx, ecx
add edi, edx
sub ebx, 1
jne 0x10015fb0
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
add ebx, 2
mov dword [ebp - 0x18], ebx
mov dword [eax], esi
mov eax, dword [ebp - 0x24]
mov dword [eax], edi
cmp ebx, dword [ebp - 0x28]
jl 0x10015f94
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edi + 0xc]
add ecx, 0xfffffffe
add ecx, esi
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10017d2f
mov esp, ebp
pop ebp
ret
Function at 0x10016040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1001f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x768c7c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x768c80]
mov dword [ebp - 0x10], eax
mov eax, dword [0x768c84]
mov dword [ebp - 0xc], eax
mov eax, dword [0x768c88]
mov dword [ebp - 8], eax
mov eax, edx
cdq
and edx, 3
push ebx
lea ebx, [ecx + 2]
mov dword [ebp - 0x28], ebx
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
test ecx, ecx
jle 0x1001611c
push esi
push edi
mov esi, dword [ebx + eax*4]
lea ecx, [ebx + eax*4]
lea eax, [eax + 1]
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebx + eax*4]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x20], eax
mov ebx, 0x20
mov eax, 0xc6ef3720
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xd
add edx, esi
and ecx, 3
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebp + ecx*4 - 0x14]
add ecx, eax
xor edx, ecx
sub esi, edx
sub ebx, 1
jne 0x100160b4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
mov dword [eax], esi
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x24]
jl 0x10016095
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10017d2f
mov esp, ebp
pop ebp
ret
Function at 0x10017280
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 0x100172ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x100172d4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100172da
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 0x10017342
jg 0x100172f1
test esi, esi
je 0x10017342
test ecx, ecx
jl 0x1001733d
jg 0x100172fb
test eax, eax
je 0x1001733d
cmp edi, ecx
jg 0x1001730f
jl 0x10017305
cmp esi, eax
jae 0x1001730f
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 0x10017345
mov ecx, dword [ebp + 8]
jmp 0x1001734f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10017369
jg 0x1001734f
test esi, esi
je 0x10017369
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10017369
push eax
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 0x10017380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x100173a4
jl 0x10017399
test ecx, ecx
jne 0x100173a4
xor eax, eax
xor edx, edx
pop edi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x38], 0
je 0x100173be
push eax
push ecx
push dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
push esi
mov esi, ecx
mov ebx, dword [eax]
test ebx, ebx
je 0x1001740a
mov eax, dword [edi + 0x2c]
lea edx, [edi + 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10017410
cmp eax, ecx
jb 0x100173e6
mov eax, ecx
mov dword [ebp - 4], ecx
push eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 4]
add ebx, ecx
mov esi, dword [ebp + 0xc]
sub esi, ecx
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10017413
lea eax, [edi + 0x2c]
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
cmp dword [edi + 0x4c], 0
je 0x10017486
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [ecx], eax
jne 0x1001743c
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp esi, 0xfff
jbe 0x10017474
lea esp, [esp]
push dword [edi + 0x4c]
push 0xfff
push 1
push ebx
call eax
add esp, 0x10
add ebx, eax
sub esi, eax
cmp eax, 0xfff
jne 0x10017486
cmp esi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10017450
test esi, esi
je 0x10017486
push dword [edi + 0x4c]
push esi
push 1
push ebx
call eax
add esp, 0x10
sub esi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, esi
pop esi
pop ebx
sbb edx, 0
pop edi
mov esp, ebp
pop ebp
ret 0xc