joyce8/EMBER2024-capa huggingface dataset:
Function at 0x875058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008751a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x87507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87506a
add dl, dl
jne 0x875089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8750dc
xor eax, eax
add dl, dl
jne 0x875096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87517d
add dl, dl
jne 0x8750a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8750b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8750bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8750c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8750d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x875075
mov eax, 1
add dl, dl
jne 0x8750ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8750f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8750e1
sub eax, ebx
mov ebx, 1
jne 0x875128
mov ecx, 1
add dl, dl
jne 0x87510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x875119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x875105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x875075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x87513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x87514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x875136
cmp eax, 0x7d00
jae 0x87516d
cmp eax, 0x500
jb 0x875168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x875075
cmp eax, 0x7f
ja 0x875170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x875075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x87519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x875075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x63c262d0
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x13be2e59
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x417b70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x417b92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417b99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417b88
mov eax, 1
add ebx, ebx
jne 0x417bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417ba0
jne 0x417bbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417ba0
xor ecx, ecx
sub eax, 3
jb 0x417bd0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417c42
mov ebp, eax
add ebx, ebx
jne 0x417bdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417be8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417c0c
inc ecx
add ebx, ebx
jne 0x417bf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417bed
jne 0x417c09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417bed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417c2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417c1d
jmp 0x417b8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417c2c
add edi, ecx
jmp 0x417b8e
pop esi
mov edi, esi
mov ecx, 0xff
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417c4a
cmp byte [edi], 0xb
jne 0x417c4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x417c4f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417cc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417c7c
mov ecx, edi
jns 0x417cab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1784c]
or eax, eax
je 0x417cc1
mov dword [ebx], eax
add ebx, 4
jmp 0x417c99
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x417cfb
sub esp, 0xffffff80
jmp 0x4046fd
Function at 0x401950
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4053a0]
test esi, esi
jle 0x401a60
mov edi, dword [0x4053a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401984
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401a05
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401970
mov dword [esp], eax
mov ebx, eax
call fcn.00402240
test eax, eax
mov edi, eax
je 0x401a87
mov eax, dword [0x4053a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402340
add eax, dword [edi + 0xc]
mov edx, dword [0x4053a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a67
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019fe
sub eax, 4
and eax, 0xfffffffb
jne 0x401a10
add dword [0x4053a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4053a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004025b0
lea esi, [esi]
xor esi, esi
jmp 0x40198e
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004025b0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004025b0
mov esi, esi
lea edi, [edi]

Function at 0x401ec0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x401f15
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f0e
test esi, esi
je 0x401f0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ef0
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4025b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402580
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402580
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
jmp fcn.004014e0

Function at 0xc18058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xc181a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc1807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1806a
add dl, dl
jne 0xc18089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc180dc
xor eax, eax
add dl, dl
jne 0xc18096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1817d
add dl, dl
jne 0xc180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc18075
mov eax, 1
add dl, dl
jne 0xc180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc180e1
sub eax, ebx
mov ebx, 1
jne 0xc18128
mov ecx, 1
add dl, dl
jne 0xc1810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc18119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc18105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc18075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc1813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc1814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc18136
cmp eax, 0x7d00
jae 0xc1816d
cmp eax, 0x500
jb 0xc18168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc18075
cmp eax, 0x7f
ja 0xc18170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc18075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc1819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc18075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x6df8158a
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x14], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 1]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 2]
mov byte [edx], al
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 3]
mov byte [edx], al
mov eax, dword [ebp + 8]
lea edx, [eax + 3]
movzx eax, byte [ebp - 1]
mov byte [edx], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 8]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp + 8]
add edx, 1
movzx eax, byte [eax + str.cw]
mov byte [edx], al
mov eax, dword [ebp + 8]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp + 8]
add edx, 2
movzx eax, byte [eax + str.cw]
mov byte [edx], al
mov eax, dword [ebp + 8]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp + 8]
add edx, 3
movzx eax, byte [eax + str.cw]
mov byte [edx], al
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
movzx eax, byte [ebp - 0x14]
movzx eax, byte [eax + 0x6e03d340]
xor edx, eax
mov eax, dword [ebp + 8]
mov byte [eax], dl
nop
leave
ret

Function at 0x6df81656
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x28
mov dword [ebp - 8], 0
jmp 0x6df8167f
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 8], 1
cmp dword [ebp - 8], 0xf
jle 0x6df81666
mov dword [ebp - 0xc], 0x10
mov dword [ebp - 0x10], 1
jmp 0x6df8172c
mov dword [ebp - 0x14], 0
jmp 0x6df816c2
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, edx
lea edx, [eax - 4]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx eax, byte [eax]
lea ecx, [ebp - 0x19]
mov edx, dword [ebp - 0x14]
add edx, ecx
mov byte [edx], al
add dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 3
jle 0x6df816a1
mov eax, dword [ebp - 0xc]
and eax, 0xf
test eax, eax
jne 0x6df816ed
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
movzx eax, al
mov dword [esp + 4], eax
lea eax, [ebp - 0x19]
mov dword [esp], eax
call sym.KeyExpansionCore_unsigned_char__unsigned_char_
mov byte [ebp - 0x15], 0
jmp 0x6df81726
mov eax, dword [ebp - 0xc]
lea edx, [eax - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx ebx, byte [eax]
movzx eax, byte [ebp - 0x15]
movzx ecx, byte [ebp + eax - 0x19]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
add dword [ebp - 0xc], 1
movzx eax, byte [ebp - 0x15]
add eax, 1
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 3
jbe 0x6df816f3
cmp dword [ebp - 0xc], 0xaf
jle 0x6df81698
nop
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x6df8aba0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6df8ac00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6e10f054]
test esi, esi
jle 0x6df8ad20
mov eax, dword [0x6e10f058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6df8ac34
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6df8acb7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6df8ac20
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x6df8ad47
mov eax, dword [0x6e10f058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x6e10f058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6df8ad27
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6df8acb0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6df8acc0
add dword [0x6e10f054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6e10f058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6df8acb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6df8ac3e
mov eax, dword [0x6e10f058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x6df8b060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6e10f064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6e10f05c]
sub esp, 4
test ebx, ebx
je 0x6df8b0b5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6df8b0ae
test esi, esi
je 0x6df8b0ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6df8b090
mov dword [esp], 0x6e10f064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6df8b3f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6df80000], 0x5a4d
jne 0x6df8b415
mov ecx, dword [0x6df8003c]
cmp dword [ecx + 0x6df80000], 0x4550
lea edx, [ecx + 0x6df80000]
je 0x6df8b420
ret
cmp word [ecx + 0x6df80018], 0x10b
jne 0x6df8b415
push esi
movzx eax, word [ecx + 0x6df80014]
push ebx
movzx esi, word [ecx + 0x6df80006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6df80000
test si, si
je 0x6df8b468
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6df8b45e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6df8b46a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6df8b450
xor eax, eax
pop ebx
pop esi
ret

Function at 0x6df907a0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x6e10f0c0], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x6e10f0c4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6df90810
mov dword [esp + 4], 0x6df906b0
mov dword [esp], eax
mov dword [0x6e10f0bc], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x6e0366b1
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6df907fa
Function at 0x6df9a470
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], str.msvcrt.dll
mov esi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 4
mov dword [esp + 4], str.rand_s
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x6df9a4b8
mov dword [esp + 0x20], esi
mov dword [dbg.init_rand_s], eax
add esp, 0x14
pop ebx
pop esi
jmp eax
mov dword [esp], str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
sub esp, 4
mov dword [esp + 4], str.SystemFunction036
mov dword [esp], eax
call ebx
mov dword [0x6e10fb84], eax
sub esp, 8
mov eax, dbg.mingw_rand_s
jmp 0x6df9a4a3

Function at 0x6df9c220
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Patch event tracing for windows function

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], str.ntdll.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x6df9c24a
mov eax, 0
jmp 0x6df9c2da
mov dword [esp + 4], str.EtwEventWrite
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6df9c272
mov eax, 0
jmp 0x6df9c2da
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
sete al
test al, al
je 0x6df9c2a9
mov eax, 0
jmp 0x6df9c2da
mov eax, dword [ebp - 0x10]
mov byte [eax], 0xc3
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
mov eax, 1
leave
ret

Function at 0x6df9d1ec
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jmp 0x6df9d221
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, ecx
movzx eax, byte [eax + 0x6e03d440]
mov byte [edx], al
add dword [ebp - 4], 1
cmp dword [ebp - 4], 0xf
jle 0x6df9d1fe
nop
nop
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
jmp 0x6df9d6c9
mov dword [ebp - 0x18], 4
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x270f
setle al
test al, al
jne 0x6df9d6b9
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
cmp eax, 0xa
seta al
leave
ret