joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68f8de
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x68f90c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x68f913
cmp ebx, dword [eax + 4]
jae 0x68f913
xor eax, eax
jmp 0x68fb03
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x68f924
xor eax, eax
inc eax
jmp 0x68fb02
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x68f93a
cmp ecx, edx
jae 0x68fa7f
cmp dword [eax + 4], 0
je 0x68f943
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x68f92b
cmp dword [ebp + 8], 0
je 0x68f965
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x68fa7f
cmp eax, esi
jae 0x68fa7f
mov eax, dword [0x79b798]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x68f98a
cmp dword [esi*4 + 0x79b7a0], edi
je 0x68fa83
inc esi
cmp esi, eax
jl 0x68f978
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x68faff
cmp dword [ebp - 8], 0x1000000
jne 0x68faff
test byte [ebp - 0xc], 0xcc
je 0x68fa08
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x68faff
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x68faff
cmp word [eax + 0x18], 0x10b
jne 0x68faff
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x68faff
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x68fa08
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x68fa08
test byte [ecx + 0x27], 0x80
jne 0x68fa7f
push 1
push 0x79b7e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x68f91c
mov ecx, dword [0x79b798]
test ecx, ecx
mov edx, ecx
jle 0x68fa3c
lea eax, [ecx*4 + 0x79b79c]
cmp dword [eax], edi
je 0x68fa3c
dec edx
sub eax, 4
test edx, edx
jg 0x68fa30
test edx, edx
jne 0x68fa6d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x68fa49
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x68fa61
lea eax, [edx*4 + 0x79b7a0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x68fa4f
cmp ecx, 0x10
jge 0x68fa6d
inc ecx
mov dword [0x79b798], ecx
push 0
push 0x79b7e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x68f91c
xor eax, eax
jmp 0x68fb02
test esi, esi
jle 0x68f91c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x79b7e0
call ebx
test eax, eax
jne 0x68f91c
cmp dword [esi*4 + 0x79b7a0], edi
je 0x68fad9
mov eax, dword [0x79b798]
lea esi, [eax - 1]
test esi, esi
jl 0x68fac7
cmp dword [esi*4 + 0x79b7a0], edi
je 0x68fac3
dec esi
jns 0x68fab7
test esi, esi
jge 0x68fad7
cmp eax, 0x10
jge 0x68fad2
inc eax
mov dword [0x79b798], eax
lea esi, [eax - 1]
jmp 0x68fad9
je 0x68faf1
xor ecx, ecx
test esi, esi
jl 0x68faf1
lea eax, [ecx*4 + 0x79b7a0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x68fadf
push 0
push 0x79b7e0
call ebx
jmp 0x68f91c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x69411c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.006864b0
mov eax, dword [0x74b8f0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0068dfe7
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x69424f
push 2
push esi
push dword [ebp + 8]
call fcn.0068dfe7
add esp, 0xc
cmp eax, ebx
je 0x69424f
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x6941ef
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00690820
push 0x8000
push dword [ebp + 8]
call fcn.00694b82
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x6941a5
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00689fda
add esp, 0xc
cmp eax, 0xffffffff
je 0x6941c5
sub edi, eax
test edi, edi
jg 0x69419d
jmp 0x6941dd
call fcn.00689d23
cmp dword [eax], 5
jne 0x6941da
call fcn.00689d1a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00694b82
pop ecx
pop ecx
jmp 0x694237
jge 0x694237
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0068dfe7
push dword [ebp + 8]
call fcn.0068ef43
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x694237
call fcn.00689d1a
mov dword [eax], 0xd
call fcn.00689d23
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0068dfe7
add esp, 0xc
mov eax, esi
pop edi
jmp 0x694251
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0068e789
leave
ret
Function at 0x694bee
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6f3488
call fcn.006889f0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x79b934], edi
jne 0x694c32
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x694c1d
mov dword [0x79b934], ebx
jmp 0x694c32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x694c32
mov dword [0x79b934], 2
mov eax, dword [0x79b934]
cmp eax, ebx
jne 0x694c52
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x694d15
cmp eax, 2
je 0x694c5b
cmp eax, edi
jne 0x694c83
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x694c6e
mov eax, dword [0x79b83c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x694c8a
xor eax, eax
jmp 0x694d15
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.006864b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x694cbd
cmp esi, edi
jne 0x694cd3
push dword [ebp - 0x20]
call fcn.0068661b
pop ecx
mov esi, eax
cmp esi, edi
je 0x694c83
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x694d06
cmp dword [ebp + 0x14], edi
jne 0x694cf0
push edi
push edi
jmp 0x694cf6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x694d12
push esi
call fcn.0068662d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00688a2b
ret
Function at 0x694d1e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6f3498
call fcn.006889f0
xor esi, esi
cmp dword [0x79b938], esi
jne 0x694d62
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x694d4d
mov dword [0x79b938], edi
jmp 0x694d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x694d62
mov dword [0x79b938], 2
mov eax, dword [0x79b938]
cmp eax, 2
je 0x694e43
cmp eax, esi
je 0x694e43
cmp eax, 1
jne 0x694da7
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x694d90
mov eax, dword [0x79b83c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x694dae
xor eax, eax
jmp 0x694e55
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.006864b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x694de4
cmp edi, esi
jne 0x694dff
lea eax, [ebx + ebx]
push eax
call fcn.0068661b
pop ecx
mov edi, eax
cmp edi, esi
je 0x694da7
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x694e32
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x694e1c
push esi
push esi
jmp 0x694e22
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x694e3e
push edi
call fcn.0068662d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x694e55
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00688a2b
ret
Function at 0x6953ed
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x695406
or eax, 0xffffffff
jmp 0x695467
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x695463
push 0x3d
push esi
call fcn.006955ed
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x695463
cmp esi, eax
je 0x695463
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x79b494]
sete cl
cmp eax, dword [0x79b498]
mov dword [ebp - 8], ecx
jne 0x695449
mov edi, eax
call fcn.0069538c
mov dword [0x79b494], eax
cmp eax, ebx
jne 0x6954a2
cmp dword [ebp + 0xc], ebx
je 0x69546b
cmp dword [0x79b49c], ebx
je 0x69546b
call fcn.00694f0f
test eax, eax
je 0x6954a2
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x695474
xor eax, eax
jmp 0x695466
push 4
call fcn.0068661b
cmp eax, ebx
pop ecx
mov dword [0x79b494], eax
je 0x695463
mov dword [eax], ebx
cmp dword [0x79b49c], ebx
jne 0x6954a2
push 4
call fcn.0068661b
cmp eax, ebx
pop ecx
mov dword [0x79b49c], eax
je 0x695463
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x79b494]
call fcn.0069533f
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x695503
cmp dword [esi], ebx
je 0x695503
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0068662d
cmp dword [ebp - 8], ebx
pop ecx
jne 0x6954e6
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x695544
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x6954dd
mov eax, edi
shl eax, 2
push eax
push dword [0x79b494]
call fcn.00686f0d
cmp eax, ebx
pop ecx
pop ecx
je 0x695544
jmp 0x69553f
cmp dword [ebp - 8], ebx
jne 0x6955af
cmp edi, ebx
jge 0x695512
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x79b494]
call fcn.00686f0d
cmp eax, ebx
pop ecx
pop ecx
je 0x695463
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x79b494], eax
cmp dword [ebp + 0xc], ebx
je 0x695599
push dword [ebp - 4]
call fcn.0068b480
inc eax
inc eax
push eax
call fcn.0068661b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x695599
push dword [ebp - 4]
push esi
call fcn.0068e660
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x695592
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0068662d
pop ecx
cmp dword [ebp - 8], ebx
je 0x6955a7
push dword [ebp - 4]
call fcn.0068662d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x695466
push dword [ebp - 4]
call fcn.0068662d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x695470
Function at 0x69b503
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x6f60d0
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x69b55a
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x69b55a
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x69b55a
xor eax, eax
inc eax
jmp 0x69b55c
xor eax, eax
leave
ret 0x10

Function at 0x69b585
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x6f60d0
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x69b5f3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x69b5ea
cmp dword [ebp - 0xc], 4
jne 0x69b5ea
cmp dword [ebp - 0x10], edi
je 0x69b5ea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x74c2d0], edi
xor eax, eax
jmp 0x69b632
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x74c2d0], edi
jge 0x69b62d
lea eax, [ebp - 0x34]
push eax
mov dword [0x74c2d0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x69b62d
cmp word [ebp - 0x14], 5
jb 0x69b62d
call fcn.0069b560
test eax, eax
je 0x69b62d
emms
mov dword [0x74c2d0], 1
mov eax, dword [0x74c2d0]
pop edi
leave
ret
Function at 0x6a94e2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x10]
sub eax, 0
push esi
push edi
je 0x6a9679
dec eax
je 0x6a958a
dec eax
je 0x6a950f
mov eax, 0x80004005
jmp 0x6a967b
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov edx, dword [ebx + 0x20]
mov ecx, dword [ebp + 0xc]
add edx, ecx
cmp edx, eax
jbe 0x6a9559
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x20]
lea esi, [edx + ecx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
shl eax, 1
cmp esi, eax
jbe 0x6a953d
mov eax, esi
jmp 0x6a9548
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
shl eax, 1
mov ecx, dword [ebx + 0x14]
push eax
call fcn.006a3dd8
test eax, eax
jl 0x6a967b
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
push eax
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp + 0xc]
add edi, dword [ebx + 0x20]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add dword [ebx + 0x20], eax
jmp 0x6a9679
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebp + 0xc]
lea esi, [edx + ecx]
mov eax, 0x10000
cmp esi, eax
ja 0x6a95ba
mov edi, dword [ebx + 0x18]
mov esi, dword [ebp + 8]
mov eax, ecx
shr ecx, 2
add edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x1c], eax
jmp 0x6a9674
cmp edx, eax
je 0x6a95e8
test edx, edx
je 0x6a95e8
mov edi, dword [ebx + 0x18]
mov esi, dword [ebp + 8]
add edi, edx
mov ecx, eax
sub ecx, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebp + 8]
sub ecx, edx
add ecx, eax
jmp 0x6a95eb
mov ecx, dword [ebp + 8]
test edx, edx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 8], ecx
je 0x6a961f
push 0
push dword [ebp + 0x10]
push eax
push dword [ebx + 0x18]
push dword [ebx]
call edi
test eax, eax
je 0x6a9505
mov eax, 0x10000
add dword [ebx + 0x20], eax
sub eax, dword [ebx + 0x1c]
and dword [ebx + 0x1c], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
shr eax, 0x10
je 0x6a964d
push 0
push dword [ebp + 0x10]
shl eax, 0x10
mov esi, eax
push esi
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
je 0x6a9505
add dword [ebx + 0x20], esi
add dword [ebp - 4], esi
add dword [ebp + 8], esi
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jae 0x6a9671
sub eax, dword [ebp - 4]
mov edi, dword [ebx + 0x18]
mov esi, dword [ebp + 8]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x6a9682
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
sub eax, 0
je 0x6a96ca
dec eax
je 0x6a969e
dec eax
je 0x6a96ca
mov eax, 0x80004005
jmp 0x6a96cc
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x6a96ca
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi + 0x18]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6a9697
mov eax, dword [esi + 0x1c]
add dword [esi + 0x20], eax
and dword [esi + 0x1c], 0
mov eax, dword [ebp - 4]
jmp 0x6a96cc
xor eax, eax
pop esi
leave
ret

Function at 0x6ab296
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x6ab3b7
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x6ab39b
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x6ab2ed
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x6ab2cb
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x6ab66b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x20]
push ebp
push esi
mov esi, dword [ecx]
mov ebp, dword [esi + 0x6c]
push edi
mov edi, dword [esi + 0x60]
imul ebp, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
add ebp, eax
cmp eax, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebp
jae 0x6ab7a3
mov edx, 0xf81f
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x68]
lea esi, [eax + esi*2]
mov dword [esp + 0x10], ebx
add edi, eax
cmp eax, esi
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jae 0x6ab784
movzx ecx, word [ebx]
movzx esi, word [ebx + 2]
movzx eax, word [edi + 2]
movzx edi, word [edi]
mov ebp, ecx
mov ebx, eax
and bx, dx
and bp, dx
mov dword [esp + 0x24], ecx
and ecx, 0xffff07e0
add ebx, ebp
mov ebp, edi
and bp, dx
add ebx, ebp
mov ebp, esi
and bp, dx
lea ebx, [ebx + ebp + 0x1002]
mov ebp, eax
and ebp, 0xffff07e0
add ebp, ecx
mov ecx, edi
and ecx, 0xffff07e0
add ebp, ecx
mov ecx, esi
and ecx, 0xffff07e0
shr ebx, 2
lea ecx, [ecx + ebp + 0x40]
shr ecx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and eax, edx
and ecx, edx
add eax, ecx
and edi, edx
add eax, edi
mov edi, dword [esp + 0x1c]
and esi, edx
and ebx, 0xffff07e0
lea eax, [eax + esi + 0x1002]
shr eax, 2
xor ebx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov word [eax], bx
mov ebx, dword [esp + 0x18]
add ebx, 4
add edi, 4
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jb 0x6ab6cb
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov esi, dword [esi + 0x60]
add dword [esp + 0x14], esi
mov esi, dword [ecx]
mov edi, dword [esi + 0x60]
lea eax, [eax + edi*2]
cmp eax, ebp
mov dword [esp + 0x20], eax
jb 0x6ab6a5
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x6ab8c1
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x20]
push ebp
push esi
mov esi, dword [ecx]
mov ebp, dword [esi + 0x6c]
mov edx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x60]
imul ebp, edi
add ebp, edx
cmp edx, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], ebp
jae 0x6ab9f8
mov eax, 0x83e0
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x68]
lea esi, [edx + esi*2]
mov dword [esp + 0x10], ebx
add edi, edx
cmp edx, esi
mov ebx, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jae 0x6ab9d9
movzx ecx, word [ebx]
movzx esi, word [ebx + 2]
movzx edx, word [edi + 2]
movzx edi, word [edi]
mov ebp, ecx
and ebp, eax
mov ebx, edx
and ebx, eax
add ebx, ebp
mov ebp, edi
and ebp, eax
add ebx, ebp
mov dword [esp + 0x24], ecx
and ecx, 0x7c1f
mov ebp, esi
and ebp, eax
lea ebx, [ebx + ebp + 0x10040]
mov ebp, edx
and ebp, 0x7c1f
add ebp, ecx
mov ecx, edi
and ecx, 0x7c1f
add ebp, ecx
mov ecx, esi
and ecx, 0x7c1f
lea ecx, [ecx + ebp + 0x802]
shr ecx, 2
shr ebx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and ecx, eax
and edx, eax
add edx, ecx
and edi, eax
add edx, edi
mov edi, dword [esp + 0x1c]
and esi, eax
and ebx, 0xffff7c1f
lea ecx, [edx + esi + 0x10040]
shr ecx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov word [ecx], bx
mov ebx, dword [esp + 0x18]
add ebx, 4
add edi, 4
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jb 0x6ab921
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov esi, dword [esi + 0x60]
add dword [esp + 0x14], esi
mov esi, dword [ecx]
mov edi, dword [esi + 0x60]
lea edx, [edx + edi*2]
cmp edx, ebp
mov dword [esp + 0x20], edx
jb 0x6ab8fb
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret