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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
je 0x1005063f
push edi
mov edi, dword [esp + 0xc]
mov ecx, eax
lea edi, [edi + 1]
shr ecx, 8
shl eax, 8
movzx edx, byte [ecx + 0x10007d98]
movzx ecx, byte [edi - 1]
add ecx, eax
mov eax, edx
shl eax, 0xd
xor ecx, edx
xor eax, edx
shl eax, 2
xor eax, ecx
and eax, 0xffff
dec esi
jne 0x10050610
pop edi
pop esi
ret 8
Function at 0x1005c900
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x60
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [esi + 0xec], 0x10
mov ecx, esi
mov dword [esp + 0x10], eax
je 0x1005c986
push 0
call fcn.1005e0c0
mov ecx, esi
test eax, eax
je 0x1005c954
push 0
mov edi, 1
call fcn.1005fe30
jmp 0x1005c9c0
push 1
call fcn.1005e0c0
test eax, eax
je 0x1005c97f
push 1
mov ecx, esi
xor edi, edi
call fcn.1005fe30
and dword [esi + 0xec], 0xffffffef
mov ecx, ebp
push 0xee3
call fcn.10062ab0
jmp 0x1005c9c0
mov edi, 1
jmp 0x1005c9c0
push 1
call fcn.1005e0c0
test eax, eax
je 0x1005c99e
push 1
mov ecx, esi
xor edi, edi
call fcn.1005fe30
jmp 0x1005c9c0
push 0xee4
mov ecx, ebp
mov edi, 1
call fcn.10062ab0
or dword [esi + 0xec], 0x10
jmp 0x1005c9c0
mov dword [esi + 0x64], 1
jmp 0x1005c9d0
push dword [esi + 0x64]
mov ecx, ebx
mov dword [esp + 0x1c], 1
call fcn.10061ce0
cmp eax, 0x100
jb 0x1005cb08
mov ecx, dword [esi + 0x44]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x64]
push 1
cmp edi, 1
jne 0x1005ca16
add eax, 0x100000ff
push eax
call fcn.1006a600
mov ecx, dword [esi + 0x44]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x64]
push edi
add eax, sym.msjet40.dll_Ordinal_60
push eax
call fcn.1006a600
mov eax, dword [esp + 0x18]
test al, 1
jne 0x1005ca37
cmp dword [esp + 0x1c], 0xfffffbff
je 0x1005cb0c
test eax, 0xfffffffe
je 0x1005ca47
lea ecx, [esp + 0x18]
call fcn.100628d0
cmp dword [esi + 0x64], 0x100
jb 0x1005ca85
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x10]
sub ecx, eax
add ecx, 0x1388
cmp ecx, 0x80000000
jb 0x1005c9c0
cmp dword [esi + 0x64], 0x100
jb 0x1005ca85
push 1
push 0xfffffbdd
mov ecx, ebp
call fcn.10062a50
test byte [ebp], 8
jne 0x1005cb3f
push 0x40
lea eax, [esp + 0x30]
push 0x20
push eax
call fcn.10117460
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, 0x10137ca8
push ebp
push 0x20
push eax
call fcn.10082dd0
test byte [ebp], 8
jne 0x1005cb3f
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x20
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x1c]
call fcn.10115620
test eax, eax
js 0x1005cb31
mov ecx, dword [esi + 0x44]
lea eax, [esp + 0x2c]
push ebp
push 0x40
push eax
mov eax, dword [esi + 0x64]
dec eax
shl eax, 6
push eax
call fcn.1006ad60
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.1011720d
add esp, 0x60
ret 0xc
mov eax, dword [esp + 0x18]
test eax, 0xfffffffe
je 0x1005cb1c
lea ecx, [esp + 0x18]
call fcn.100628d0
inc dword [esi + 0x64]
cmp dword [esi + 0x64], 0x100
jb 0x1005c9d0
jmp 0x1005ca47
push 1
push 0xfffffc15
mov ecx, ebp
call fcn.10062a50
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011720d
add esp, 0x60
ret 0xc
Function at 0x1005e200
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x44], 0
je 0x1005e354
mov eax, dword [esi + 0x40]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 1
push edi
mov edi, dword [eax + 0x38]
mov eax, dword [eax + 0x5c]
mov dword [esp + 0x10], eax
call ebp
mov ebx, eax
mov ecx, esi
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.1005de90
mov ecx, dword [esp + 0x14]
test cl, 8
je 0x1005e299
nop
mov eax, edi
dec edi
test eax, eax
je 0x1005e299
lea ecx, [esp + 0x14]
call fcn.10062990
call ebp
sub ebx, eax
mov eax, dword [esp + 0x10]
add eax, ebx
cmp eax, 0x80000000
jae 0x1005e278
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
mov ebx, eax
mov ecx, esi
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.1005de90
mov ecx, dword [esp + 0x14]
test cl, 8
jne 0x1005e250
pop edi
pop ebp
pop ebx
test cl, 1
jne 0x1005e333
mov ecx, dword [esp + 0xc]
cmp ecx, 0xfffffbae
jl 0x1005e333
cmp ecx, 0xfffffbaf
jle 0x1005e2c5
cmp ecx, 0xfffffbb2
jne 0x1005e333
test byte [esi + 0xec], 0x10
je 0x1005e2e5
mov eax, dword [esp + 0x28]
test eax, eax
push 1
cmove eax, ecx
mov ecx, dword [esp + 0x30]
push eax
call fcn.10062a50
jmp 0x1005e341
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x24]
call fcn.1005ed00
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x1005e30d
test byte [esp + 8], 1
mov edx, 0
mov ecx, dword [esp + 0xc]
cmovne ecx, edx
test eax, eax
je 0x1005e325
cmp eax, dword [esi + 0x64]
je 0x1005e325
push dword [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.1005f710
jmp 0x1005e341
push 1
push ecx
mov ecx, dword [esp + 0x34]
call fcn.10062a50
jmp 0x1005e341
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 8]
push eax
call fcn.10062800
test dword [esp + 8], 0xfffffffe
je 0x1005e354
lea ecx, [esp + 8]
call fcn.100628d0
pop esi
add esp, 0x18
ret 0x10

Function at 0x1005ec30
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
add eax, 0x100000
shl eax, 9
cmp edx, 0xffffffff
je 0x1005ec47
add eax, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
jmp fcn.1005e200
Function at 0x10060a70
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [ecx + 4]
movzx eax, word [edi + 0xc]
cmp eax, dword [ecx + 0xc]
ja 0x10060b68
movzx edx, word [edi + eax*2 + 0xc]
push esi
mov esi, dword [esp + 0xc]
and edx, 0x3fff
cmp esi, eax
jae 0x10060b67
cmp dword [esp + 0x10], 0
push ebx
mov ebx, dword [esp + 0x18]
jne 0x10060ab2
movzx ecx, word [edi + esi*2 + 0xe]
and ecx, 0x3fff
jmp 0x10060ae6
test ebx, ebx
jle 0x10060ace
test esi, esi
jne 0x10060ac1
mov ecx, 0x1000
jmp 0x10060ae6
movzx ecx, word [edi + esi*2 + 0xc]
and ecx, 0x3fff
jmp 0x10060ae6
test esi, esi
jne 0x10060ad9
mov eax, 0x1000
jmp 0x10060ae3
movzx eax, word [edi + esi*2 + 0xc]
and eax, 0x3fff
lea ecx, [eax + ebx]
test ebx, ebx
js 0x10060aee
cmp edx, ebx
jb 0x10060b66
cmp ecx, edx
jb 0x10060b66
test ebx, ebx
js 0x10060b04
movzx eax, word [edi + esi*2 + 0xe]
and eax, 0x3fff
cmp eax, ebx
jl 0x10060b66
sub ecx, edx
lea eax, [edx + edi]
push ecx
sub edx, ebx
push eax
add edx, edi
push edx
call fcn.10117c10
movzx eax, word [edi + 0xc]
add esp, 0xc
cmp esi, eax
jae 0x10060b47
lea edx, [esi + 7]
lea edx, [edi + edx*2]
movzx eax, word [edx]
lea edx, [edx + 2]
mov ecx, eax
inc esi
sub ecx, ebx
xor ecx, eax
and ecx, 0x3fff
xor ecx, eax
mov word [edx - 2], cx
movzx eax, word [edi + 0xc]
cmp esi, eax
jb 0x10060b26
movzx ecx, word [edi + 0xc]
mov eax, 0x3fff
mov dx, word [edi + ecx*2 + 0xc]
and dx, ax
lea eax, [ecx + ecx]
sub dx, ax
sub dx, 0xe
mov word [edi + 2], dx
pop ebx
pop esi
pop edi
ret 0xc

Function at 0x100617d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x218
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x224]
push ebx
mov ebx, dword [ecx + 4]
lea ecx, [esp + 8]
push ebp
push esi
push edi
push 0x6b39dac7
mov dword [esp + 0x14], eax
call fcn.100626b0
push 0x6b39dac7
lea ecx, [esp + 0x120]
call fcn.100626b0
push 0x80
lea ebp, [ebx + 0x18]
push ebp
lea ecx, [esp + 0x1c]
call fcn.10062720
cvttsd2si edi, qword [ebx + 0x72]
lea esi, [ebx + 0x42]
mov edx, 4
mov ecx, esi
sub edx, esi
xor dword [ecx], edi
lea ecx, [ecx + 4]
lea eax, [edx + ecx]
cmp eax, 0x28
jle 0x10061838
mov edx, dword [esp + 0x230]
mov ecx, esi
mov edi, 0x24
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10061889
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10061853
mov eax, dword [esp + 0x22c]
movdqu xmm0, xmmword [eax]
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [esi + 0x10], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x20], xmm0
jmp 0x10061899
mov ecx, dword [esp + 0x10]
push 1
push 0xfffff88f
call fcn.10062a50
cvttsd2si edx, qword [ebx + 0x72]
mov ecx, 4
sub ecx, esi
xor dword [esi], edx
lea esi, [esi + 4]
lea eax, [ecx + esi]
cmp eax, 0x28
jle 0x100618a5
push 0x80
push ebp
lea ecx, [esp + 0x124]
call fcn.10062720
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011720d
add esp, 0x218
ret 0xc
Function at 0x10061a70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x210], eax
cmp dword [esp + 0x21c], 0x28
mov eax, dword [esp + 0x220]
push ebx
mov ebx, dword [ecx + 4]
push ebp
mov ebp, dword [esp + 0x220]
jae 0x10061ab4
push 1
push 0xfffffbe9
mov ecx, eax
call fcn.10062a50
jmp 0x10061b54
push esi
push edi
push 0x6b39dac7
lea ecx, [esp + 0x14]
call fcn.100626b0
push 0x6b39dac7
lea ecx, [esp + 0x11c]
call fcn.100626b0
lea eax, [ebx + 0x18]
push 0x80
push eax
lea ecx, [esp + 0x18]
call fcn.10062720
cvttsd2si edi, qword [ebx + 0x72]
lea ecx, [ebx + 0x42]
mov esi, 4
mov edx, ecx
sub esi, ecx
xor dword [edx], edi
lea edx, [edx + 4]
lea eax, [esi + edx]
cmp eax, 0x28
jle 0x10061af8
movdqu xmm0, xmmword [ecx]
mov edx, 4
sub edx, ecx
movdqu xmmword [ebp], xmm0
movdqu xmm0, xmmword [ecx + 0x10]
movdqu xmmword [ebp + 0x10], xmm0
movq xmm0, qword [ecx + 0x20]
movq qword [ebp + 0x20], xmm0
cvttsd2si esi, qword [ebx + 0x72]
mov edi, edi
xor dword [ecx], esi
lea ecx, [ecx + 4]
lea eax, [edx + ecx]
cmp eax, 0x28
jle 0x10061b30
push 0x80
lea eax, [ebx + 0x18]
push eax
lea ecx, [esp + 0x120]
call fcn.10062720
pop edi
pop esi
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
xor ecx, esp
call fcn.1011720d
add esp, 0x214
ret 0xc

Function at 0x10061b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push esi
mov esi, dword [ecx + 4]
mov ecx, 0x20
push edi
add esi, 0x18
lea edi, [esp + 0x10]
cmp dword [ebp + 8], 0
rep movsd dword es:[edi], dword [esi]
je 0x10061bed
push 0x6b39dac7
lea ecx, [esp + 0x94]
call fcn.100626b0
push 0x80
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x98]
call fcn.10062720
cvttsd2si edx, qword [esp + 0x6a]
mov ecx, 4
lea eax, [esp + 0x3a]
lea ebx, [ebx]
xor dword [eax], edx
lea eax, [eax + 4]
add ecx, 4
cmp ecx, 0x28
jle 0x10061be0
mov eax, dword [esp + 0x6a]
xor ebx, ebx
mov dword [esp + 0xc], eax
jmp 0x10061c00
movzx edi, byte [esp + ebx*2 + 0x42]
lea esi, [ebx + 3]
lea ecx, [esi + 1]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, ebx
shr edx, 4
lea eax, [edx + edx*2]
shl eax, 3
sub ecx, eax
mov eax, 0xaaaaaaab
add ecx, 4
shl edi, cl
lea ecx, [esi - 2]
mul ecx
mov ecx, ebx
shr edx, 4
lea eax, [edx + edx*2]
shl eax, 3
sub ecx, eax
movzx eax, byte [esp + ebx*2 + 0x3c]
inc ecx
shl eax, cl
lea ecx, [esi - 1]
xor edi, eax
mov eax, 0xaaaaaaab
mul ecx
mov ecx, ebx
shr edx, 4
lea eax, [edx + edx*2]
shl eax, 3
sub ecx, eax
movzx eax, byte [esp + ebx*2 + 0x3e]
add ecx, 2
shl eax, cl
mov ecx, ebx
xor edi, eax
mov eax, 0xaaaaaaab
mul esi
shr edx, 4
lea eax, [edx + edx*2]
shl eax, 3
sub ecx, eax
movzx eax, byte [esp + ebx*2 + 0x40]
add ecx, 3
shl eax, cl
mov ecx, ebx
xor edi, eax
mov eax, 0xaaaaaaab
mul ebx
shr edx, 4
lea eax, [edx + edx*2]
movzx edx, byte [esp + ebx*2 + 0x3a]
shl eax, 3
add ebx, 5
sub ecx, eax
mov eax, dword [esp + 0xc]
shl edx, cl
xor edi, edx
xor eax, edi
mov dword [esp + 0xc], eax
cmp ebx, 0x28
jb 0x10061c00
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011720d
mov esp, ebp
pop ebp
ret 4
Function at 0x10061e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x18c], eax
push esi
mov esi, dword [ecx + 4]
lea ecx, [esp + 0x84]
push edi
push 0x6b39dac7
call fcn.100626b0
add esi, 0x18
lea edi, [esp + 8]
mov ecx, 0x20
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push 0x80
push eax
lea ecx, [esp + 0x90]
call fcn.10062720
cvttsd2si edx, qword [esp + 0x62]
mov ecx, 4
lea eax, [esp + 0x32]
xor dword [eax], edx
lea eax, [eax + 4]
add ecx, 4
cmp ecx, 0x28
jle 0x10061e63
mov ecx, dword [esp + 0x194]
xor eax, eax
cmp word [esp + 0x32], ax
pop edi
setne al
pop esi
xor ecx, esp
call fcn.1011720d
mov esp, ebp
pop ebp
ret 4
Function at 0x10061e90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x118
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x18]
push 0x6b39dac7
call fcn.100626b0
mov ebx, dword [esi + 4]
push 0x1000
push 0
push ebx
call fcn.10117460
mov esi, dword [esp + 0x134]
lea edi, [ebx + 0xe00]
mov eax, 0x1000100
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [ebx], 0x100
add esp, 0xc
mov eax, dword [esi + 4]
mov dword [ebx + 0x14], eax
mov eax, dword [esi]
cmp eax, 1
jne 0x10061f00
movdqu xmm0, xmmword [0x10008a60]
jmp 0x10061f17
cmp eax, 4
jne 0x10061f0f
movdqu xmm0, xmmword [0x10008a40]
jmp 0x10061f17
movdqu xmm0, xmmword [0x10008a50]
movdqu xmmword [ebx + 4], xmm0
mov eax, dword [esi + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi]
cmp eax, 3
je 0x10061f3d
cmp eax, 4
je 0x10061f3d
mov dword [ebx + 0x3e], 0
jmp 0x10061f4b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
or eax, 0xa0a00000
mov dword [ebx + 0x3e], eax
mov eax, dword [ebx + 0x3e]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x10061f7a
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebx + 0x42], xmm0
movdqu xmm0, xmmword [eax + 0x10]
movdqu xmmword [ebx + 0x52], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [ebx + 0x62], xmm0
mov dword [ebx + 0x6a], 0x2649
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x6e], eax
mov ax, word [esi + 0x14]
mov word [ebx + 0x3c], ax
lea eax, [esp + 0x10]
push eax
call fcn.10067e70
movsd xmm0, qword [esp + 0x10]
ucomisd xmm0, qword [0x10008c88]
lahf
test ah, 0x44
jp 0x10061fbb
movsd xmm0, qword [0x10008c90]
movsd qword [esp + 0x10], xmm0
push ebp
movsd qword [ebx + 0x72], xmm0
lea ebp, [ebx + 0x9c]
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x10008a70]
mov edi, esi
mov dword [ebp - 4], eax
mov edx, 0xc
mov ecx, ebp
sub edi, ebp
lea eax, [edx + 0x7ffffff2]
test eax, eax
je 0x10062001
mov al, byte [edi + ecx + 0x10008a74]
test al, al
je 0x10062001
mov byte [ecx], al
inc ecx
dec edx
jne 0x10061fe4
jmp 0x10062005
test edx, edx
jne 0x10062006
dec ecx
mov byte [ecx], 0
cmp dword [esi + 0x10008a70], 0
je 0x10062020
add esi, 0x10
add ebp, 0x10
cmp esi, 0x200
jb 0x10061fd0
cvttsd2si edi, qword [ebx + 0x72]
lea edx, [ebx + 0x42]
mov esi, 4
sub esi, edx
pop ebp
xor dword [edx], edi
lea edx, [edx + 4]
lea ecx, [esi + edx]
cmp ecx, 0x28
jle 0x10062030
push 0x80
lea ecx, [ebx + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.10062720
mov ecx, dword [esp + 0x120]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011720d
add esp, 0x118
ret 0xc
Function at 0x10062240
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
mov ebp, dword [esp + 0x22c]
push esi
mov esi, ecx
lea ecx, [esp + 0x118]
push 0x6b39dac7
call fcn.100626b0
mov esi, dword [esi + 4]
mov eax, 0x100
cmp word [esi], ax
jne 0x10062430
cmp word [esi + 2], 0
jne 0x10062430
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1006229c
cmp eax, 1
jne 0x10062430
push ebx
lea edx, [esi + 4]
mov ebx, 0xc
push edi
mov ecx, edx
mov edi, 0x10008a50
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x100622c8
add ecx, 4
add edi, 4
sub ebx, 4
jae 0x100622b0
mov ebx, 2
jmp 0x100622ec
mov ecx, 0x10008a40
mov edi, 0xc
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10062427
add edx, 4
add ecx, 4
sub edi, 4
jae 0x100622d2
mov ebx, 4
cmp dword [esi + 0x14], 0
jne 0x1006230e
push 1
push 0
push 0
push 0xffffdd9f
push 0xfffffc05
mov ecx, ebp
call fcn.100629e0
jmp 0x1006240a
lea eax, [esi + 0x18]
push 0x80
push eax
lea ecx, [esp + 0x128]
mov dword [esp + 0x18], eax
call fcn.10062720
cmp dword [esi + 0x6a], 0x38e
jbe 0x10062351
movsd xmm0, qword [esi + 0x72]
ucomisd xmm0, qword [0x10008c88]
lahf
test ah, 0x44
jp 0x10062351
push 1
push 0xfffffbfc
mov ecx, ebp
call fcn.10062a50
test byte [ebp], 8
jne 0x10062373
cvttsd2si edi, qword [esi + 0x72]
lea ecx, [esi + 0x42]
mov edx, 4
sub edx, ecx
xor dword [ecx], edi
lea ecx, [ecx + 4]
lea eax, [edx + ecx]
cmp eax, 0x28
jle 0x10062366
mov eax, dword [ebp]
and eax, 8
mov dword [esp + 0x14], eax
jne 0x100623b8
cmp word [esi + 0x42], 0
lea ecx, [esi + 0x42]
je 0x100623b8
cmp dword [esp + 0x234], 2
je 0x100623b8
mov edx, dword [esp + 0x230]
test edx, edx
je 0x100623dc
mov edi, 0x24
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100623dc
add ecx, 4
add edx, 4
sub edi, 4
jae 0x100623a3
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100623d8
cmp dword [esi + 0x3e], eax
je 0x100623d8
cmp ebx, 4
mov eax, 3
push 0x4b8
mov ecx, ebp
cmovne ebx, eax
call fcn.10062ab0
mov eax, ebx
jmp 0x1006240c
push 0x6b39dac7
lea ecx, [esp + 0x1c]
call fcn.100626b0
push 0x80
push dword [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.10062720
push 1
push 0xfffff88f
mov ecx, ebp
call fcn.10062a50
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x220]
pop esi
pop ebp
xor ecx, esp
call fcn.1011720d
add esp, 0x21c
ret 0xc
push 1
push 0xfffffbfc
jmp 0x10062403
cmp word [esi + 0x40e], 0
je 0x10062457
push 0x39c76bda
lea ecx, [esp + 0x14]
call fcn.100626b0
push 0x800
push esi
lea ecx, [esp + 0x18]
call fcn.10062720
cmp word [esi], 1
jne 0x10062484
cmp dword [esi + 0x406], 0x68636952
jne 0x10062484
push 1
push 0
push 0
push 0xffffdda0
push 0xfffffc05
mov ecx, ebp
call fcn.100629e0
xor eax, eax
jmp 0x1006240e
push 1
push 0xfffffbfc
mov ecx, ebp
call fcn.10062a50
xor eax, eax
jmp 0x1006240e
Function at 0x10062720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x10062773
lea esi, [ecx + 6]
mov edi, dword [ebp + 8]
xor ebx, ebx
xor edx, edx
mov bl, byte [ecx + 4]
mov dl, byte [ecx + 5]
inc bl
push ebp
xor eax, eax
mov ebp, dword [ebp + 0xc]
mov cl, byte [esi + ebx]
add dl, cl
mov ch, byte [edi]
inc edi
mov al, byte [esi + edx]
mov byte [esi + edx], cl
mov byte [esi + ebx], al
add al, cl
inc bl
xor ch, byte [esi + eax]
dec ebp
mov byte [edi - 1], ch
mov cl, byte [esi + ebx]
jne 0x1006274b
pop ebp
mov ecx, dword [ebp - 4]
mov byte [ecx + 4], dh
mov byte [ecx + 5], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1006a970
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, ecx
test byte [edi + 0x14], 0x80
jne 0x1006aa2f
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], 0
push eax
push ebx
push dword [esp + 0x48]
mov dword [esp + 0x40], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006aa15
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
mov ecx, 0x10137ca8
call fcn.100829a0
mov eax, dword [esp + 0xc]
test al, 1
jne 0x1006a9ef
cmp dword [esp + 0x10], 0xfffffc15
jne 0x1006a9ef
or dword [edi + 0x14], 0x80
jmp 0x1006aa03
test al, 8
je 0x1006aa03
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.10062800
mov eax, dword [esp + 0xc]
test eax, 0xfffffffe
je 0x1006aa29
lea ecx, [esp + 0xc]
call fcn.100628d0
jmp 0x1006aa29
cmp dword [esp + 0x44], ebx
je 0x1006aa29
push 1
push 0xfffffc06
mov ecx, esi
call fcn.10062a50
test byte [edi + 0x14], 0x80
je 0x1006aa9d
push ebp
lea ebp, [edi + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push dword [esp + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1006aa5c
push esi
mov ecx, 0x10137ca8
call fcn.100829a0
jmp 0x1006aa95
push 0
lea eax, [esp + 0x4c]
push eax
push ebx
push dword [esp + 0x4c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006aa81
push esi
mov ecx, 0x10137ca8
call fcn.100829a0
jmp 0x1006aa95
cmp dword [esp + 0x48], ebx
je 0x1006aa95
push 1
push 0xfffffc06
mov ecx, esi
call fcn.10062a50
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
inc dword [0x10137d18]
test byte [esi], 8
je 0x1006aab2
push 0
push esi
mov ecx, edi
call fcn.1006ac50
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0x10
Function at 0x1006ad60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, ecx
test byte [edi + 0x14], 0x80
jne 0x1006ae1f
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], 0
push eax
push ebx
push dword [esp + 0x48]
mov dword [esp + 0x40], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1006ae05
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
mov ecx, 0x10137ca8
call fcn.100829a0
mov eax, dword [esp + 0xc]
test al, 1
jne 0x1006addf
cmp dword [esp + 0x10], 0xfffffc15
jne 0x1006addf
or dword [edi + 0x14], 0x80
jmp 0x1006adf3
test al, 8
je 0x1006adf3
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.10062800
mov eax, dword [esp + 0xc]
test eax, 0xfffffffe
je 0x1006ae19
lea ecx, [esp + 0xc]
call fcn.100628d0
jmp 0x1006ae19
cmp dword [esp + 0x44], ebx
je 0x1006ae19
push 1
push 0xfffff8f0
mov ecx, esi
call fcn.10062a50
test byte [edi + 0x14], 0x80
je 0x1006ae8d
push ebp
lea ebp, [edi + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push dword [esp + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1006ae4c
push esi
mov ecx, 0x10137ca8
call fcn.100829a0
jmp 0x1006ae85
push 0
lea eax, [esp + 0x4c]
push eax
push ebx
push dword [esp + 0x4c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1006ae71
push esi
mov ecx, 0x10137ca8
call fcn.100829a0
jmp 0x1006ae85
cmp dword [esp + 0x48], ebx
je 0x1006ae85
push 1
push 0xfffff8f0
mov ecx, esi
call fcn.10062a50
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
inc dword [0x10137d1c]
test byte [esi], 8
je 0x1006aea2
push 0
push esi
mov ecx, edi
call fcn.1006ac50
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0x10