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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ccc1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100af00c]
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 [0x100bddd0]
test eax, eax
jne 0x1001976d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b1240]
movaps xmm0, xmmword [0x100a0680]
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0x59
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x4d0]
test al, 1
jne 0x1001968c
or eax, 1
mov dword [esi + 0x4d0], 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 + 0x298d], 1
mov al, byte [ebp + ecx - 0x24]
mov byte [ecx + esi + 0x297c], al
add ecx, 1
adc edx, 0
jne 0x10019678
cmp ecx, 0x11
jb 0x10019660
push 0x1008d3a0
call fcn.10079ea6
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edi, [esi + 0x297c]
mov ecx, edi
call fcn.10072f50
mov eax, dword [esi + 0x19a0]
mov dword [ebp - 0x20], 0xae5bd40e
mov dword [ebp - 0x1c], 0xd3a34add
mov dword [ebp - 0x18], 0xe779f13d
test al, 1
jne 0x1001970c
or eax, 1
mov dword [esi + 0x19a0], 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 + 0xe38], 1
nop dword [eax]
mov al, byte [ebp + ecx - 0x20]
mov byte [ecx + esi + 0xe2c], al
add ecx, 1
adc edx, 0
jne 0x100196f8
cmp ecx, 0xc
jb 0x100196e0
push 0x1008d3f0
call fcn.10079ea6
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [esi + 0xe2c]
mov ecx, esi
call fcn.10072fb0
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 0x10019766
push 7
call fcn.10079dfd
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 0x10019768
xor eax, eax
mov dword [0x100bddd0], eax
push dword [ebp - 0x30]
mov dword [0x100b5ee8], 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.100794c9
mov esp, ebp
pop ebp
ret
Function at 0x100197a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cd51
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100af00c]
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 [0x100bde48]
test eax, eax
jne 0x1001993d
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b1240]
movaps xmm0, xmmword [0x100a0850]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x97249db3
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x6cc]
test al, 1
jne 0x1001985c
or eax, 1
mov dword [esi + 0x6cc], 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 + 0x1e0], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x24]
mov byte [ecx + esi + 0x1cc], al
add ecx, 1
adc edx, 0
jne 0x10019848
cmp ecx, 0x14
jb 0x10019830
push 0x1008d440
call fcn.10079ea6
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edi, [esi + 0x1cc]
mov ecx, edi
call fcn.10072e90
mov eax, dword [esi + 0x454]
mov dword [ebp - 0x1c], 0xde0fb880
mov dword [ebp - 0x18], 0xe79f58a9
mov dword [ebp - 0x14], 0x972d9db3
test al, 1
jne 0x100198dc
or eax, 1
mov dword [esi + 0x454], 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 + 0x4a80], 1
nop dword [eax]
mov al, byte [ebp + ecx - 0x1c]
mov byte [ecx + esi + 0x4a74], al
add ecx, 1
adc edx, 0
jne 0x100198c8
cmp ecx, 0xc
jb 0x100198b0
push 0x1008d490
call fcn.10079ea6
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [esi + 0x4a74]
mov ecx, esi
call fcn.10072ef0
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 0x10019936
push 7
call fcn.10079dfd
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 0x10019938
xor eax, eax
mov dword [0x100bde48], eax
push ebx
mov dword [0x100b78f4], 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.100794c9
mov esp, ebp
pop ebp
ret
Function at 0x10019970
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100af00c]
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 0x100199ac
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100794c9
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 0x10019ad9
nop dword [eax + eax]
cmp dword [ebp - 0x1c], edi
jne 0x10019af3
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 0x10019ace
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 0x10019a70
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 0x10019a4c
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10019a70
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 0x10019ac1
mov ecx, dword [0x100bc334]
xor eax, eax
mov edx, dword [0x100bc330]
sub ecx, edx
sar ecx, 2
test ecx, ecx
je 0x10019a9a
mov esi, dword [ebp - 0x20]
nop
cmp esi, dword [edx + eax*4]
je 0x10019ac1
inc eax
cmp eax, ecx
jb 0x10019a90
mov eax, dword [0x100bc328]
cmp eax, dword [0x100bc32c]
je 0x10019ab2
mov dword [eax], edi
add dword [0x100bc328], 4
jmp 0x10019ac1
lea ecx, [ebp - 0x34]
push ecx
push eax
mov ecx, 0x100bc324
call fcn.10077e70
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 0x100199e0
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.100794c9
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 0x10019ad1
Function at 0x10019b10
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100af00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
mov ebx, edx
mov dword [ebp - 0x2c], ecx
push 4
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
jne 0x10019b4c
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100794c9
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x1c
xorps xmm0, xmm0
push eax
push edi
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 0x10019c78
nop dword [eax + eax]
cmp dword [ebp - 0x1c], ebx
jne 0x10019c60
push dword [ebp - 0x20]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10019c6d
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 0x10019c0d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x10019be9
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10019c0d
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 - 0x2c]
jne 0x10019c54
mov eax, dword [0x100bc334]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
cmp eax, dword [0x100bc338]
je 0x10019c3c
mov dword [eax], ecx
lea eax, [ebp - 0x28]
add dword [0x100bc334], 4
push eax
mov eax, dword [sym.imp.KERNEL32.dll_Thread32Next]
push edi
call eax
jmp 0x10019c6b
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.10077cf0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_Thread32Next]
push edi
call eax
jmp 0x10019c6b
lea eax, [ebp - 0x28]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_Thread32Next]
push edi
call eax
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov esi, eax
mov ebx, dword [ebp - 0x34]
test esi, esi
jne 0x10019b80
push edi
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.100794c9
mov esp, ebp
pop ebp
ret
Function at 0x10026640
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100af00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100b5ab0], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
jne 0x100266c5
mov ecx, dword [0x100b6730]
mov eax, dword [0x100b22bc]
add eax, 0x1b8
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ebx, eax
cmp ebx, 0x1000
jbe 0x100266be
push 0xc
call fcn.10079dfd
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xc
push esi
call edi
mov ecx, dword [ebx]
mov dword [esi], ecx
mov ax, word [ebx + 4]
mov word [esi + 4], ax
mov al, byte [ebx + 6]
mov byte [esi + 6], al
lea eax, [esi + 7]
sub ebx, eax
mov byte [eax], 0xe9
add ebx, 2
mov dword [eax + 1], ebx
add eax, 0xfffffff9
jmp 0x100266c0
xor eax, eax
mov dword [0x100b5ab0], eax
mov ecx, dword [0x100b6730]
mov eax, dword [0x100b22bc]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10026728
cmp dword [0x100b6b38], 0
jne 0x100266f0
cmp dword [0x100b7840], 0
je 0x10026728
mov ecx, dword [0x100b6730]
mov eax, dword [0x100b22bc]
push 7
add eax, 0x1b8
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, 0x10025df0
mov ecx, eax
call fcn.10018a40
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100794c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x100b6730]
mov eax, dword [0x100b22bc]
mov ebx, dword [0x100b5ab0]
add eax, 0x1b8
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, eax
cmp esi, 0x1000
jbe 0x10026775
test ebx, ebx
je 0x10026775
lea eax, [ebp - 8]
push eax
push 0x40
push 7
push esi
call edi
push 7
push ebx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 7
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100794c9
mov esp, ebp
pop ebp
ret
Function at 0x100269d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100af00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [0x100b7274]
push edi
test esi, esi
jne 0x10026a4f
mov ecx, dword [0x100b6730]
mov eax, dword [0x100b22bc]
add eax, 0x178
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, eax
cmp edi, 0x1000
jbe 0x10026a47
push 0xb
call fcn.10079dfd
add esp, 4
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0xb
push esi
call ebx
mov ecx, dword [edi]
mov dword [esi], ecx
mov ax, word [edi + 4]
mov word [esi + 4], ax
lea eax, [esi + 6]
sub edi, eax
mov byte [eax], 0xe9
inc edi
lea esi, [eax - 6]
mov dword [eax + 1], edi
jmp 0x10026a49
xor esi, esi
mov dword [0x100b7274], esi
cmp dword [0x100b66e0], 0
jle 0x10026afa
mov ecx, dword [0x100b6730]
mov eax, dword [0x100b22bc]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10026af4
mov eax, dword [0x100b66e0]
cmp eax, 1
jne 0x10026a8b
mov dword [0x100bbfe0], 0x42c80000
jmp 0x10026abc
cmp eax, 2
jne 0x10026a9c
mov dword [0x100bbfe0], 0x42dc0000
jmp 0x10026abc
cmp eax, 3
jne 0x10026aad
mov dword [0x100bbfe0], 0x42f00000
jmp 0x10026abc
cmp eax, 4
jne 0x10026abc
mov dword [0x100bbfe0], 0x42fa0000
mov ecx, dword [0x100b6730]
mov eax, dword [0x100b22bc]
push 6
add eax, 0x178
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, 0x100269a0
mov ecx, eax
call fcn.10018a40
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100794c9
mov esp, ebp
pop ebp
ret
mov esi, dword [0x100b7274]
mov ecx, dword [0x100b6730]
mov eax, dword [0x100b22bc]
add eax, 0x178
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, eax
cmp edi, 0x1000
jbe 0x10026b41
test esi, esi
je 0x10026b41
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push edi
call ebx
push 6
push esi
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 6
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100794c9
mov esp, ebp
pop ebp
ret
Function at 0x10027650
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100af00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100bbe3c], 0
push ebx
push esi
push edi
jle 0x1002773b
mov ecx, dword [0x100b6730]
mov eax, dword [0x100b22bc]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x1002773b
cmp dword [0x100b6d04], 0
jne 0x100276b0
mov ecx, dword [0x100b6730]
push 0x100b7384
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2c]
mov dword [0x100b6d04], eax
cmp dword [0x100b233c], 0
jne 0x10027793
mov ecx, dword [0x100b6730]
push 0x100b7384
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [eax]
add edi, 0x2c
cmp edi, 0x1000
jbe 0x10027722
mov eax, 0x10022160
cmp eax, 0x1000
jbe 0x10027722
mov ebx, dword [edi]
lea eax, [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], 0x10022160
push eax
push dword [ebp - 8]
push 4
push edi
call esi
pop edi
pop esi
mov dword [0x100b233c], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100794c9
mov esp, ebp
pop ebp
ret
pop edi
xor ebx, ebx
pop esi
mov dword [0x100b233c], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100794c9
mov esp, ebp
pop ebp
ret
mov edi, dword [0x100b6d04]
test edi, edi
je 0x10027793
mov ecx, dword [0x100b6730]
push 0x100b7384
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [eax]
add ebx, 0x2c
cmp ebx, 0x1000
jbe 0x10027789
cmp edi, 0x1000
jbe 0x10027789
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call esi
lea eax, [ebp - 0xc]
mov dword [ebx], edi
push eax
push dword [ebp - 8]
push 4
push ebx
call esi
mov dword [0x100b233c], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100794c9
mov esp, ebp
pop ebp
ret
Function at 0x1002b070
Capabilities:
Get hostname

Disassembly:
push 0x100afe74
push 0x100b788c
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.1002af80
cmp eax, 1
jne 0x1002b09c
push str.Win_XP
push 0x100b2678
call fcn.10008d00
add esp, 8
call fcn.1002af80
cmp eax, 2
jne 0x1002b0b8
push str.Win_Vista
push 0x100b2678
call fcn.10008d00
add esp, 8
call fcn.1002af80
cmp eax, 3
jne 0x1002b0d4
push str.Win_7
push 0x100b2678
call fcn.10008d00
add esp, 8
call fcn.1002af80
cmp eax, 4
jne 0x1002b0f0
push str.Win_8
push 0x100b2678
call fcn.10008d00
add esp, 8
call fcn.1002af80
cmp eax, 5
jne 0x1002b10c
push str.Wi_10
push 0x100b2678
call fcn.10008d00
add esp, 8
ret
Function at 0x1002ee40
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 0x100b6ba0
push 0x100b6710
push 0x100b23f0
push 0x100b60a0
push 0xff
push 0x100bbed0
push 0x1009ef94
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [0x100b60a0]
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.10008d00
add esp, 0x10
mov eax, esi
pop esi
ret
Function at 0x100624e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100af00c]
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 0x10062580
cmp esi, 0x1000
jbe 0x1006255b
cmp edi, 0x1000
jbe 0x1006255b
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]
lea ecx, [esi + 7]
push 5
lea edx, [edx + 7]
call fcn.10018a40
add esp, 4
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
jmp 0x100625ee
mov edx, dword [ebp + 8]
lea ecx, [esi + 7]
push 5
lea edx, [edx + 7]
call fcn.10018a40
add esp, 4
cmp esi, 0x1000
jbe 0x100625f1
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
jmp 0x100625ee
cmp esi, 0x1000
jbe 0x100625cb
cmp edi, 0x1000
jbe 0x100625cb
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]
lea ecx, [esi + 5]
push 5
lea edx, [edx + 5]
call fcn.10018a40
add esp, 4
jmp 0x100625e6
mov edx, dword [ebp + 8]
lea ecx, [esi + 5]
push 5
lea edx, [edx + 5]
call fcn.10018a40
add esp, 4
cmp esi, 0x1000
jbe 0x100625f1
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 7
push esi
call ebx
mov al, byte [edi]
cmp al, 0x8b
je 0x10062608
cmp al, 0x6a
je 0x10062608
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10062500
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100794c9
mov esp, ebp
pop ebp
ret
Function at 0x100635b0
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 [0x100af00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
push edi
mov edi, dword [ebp + 8]
jne 0x100636b2
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x10063637
cmp ecx, edi
jne 0x1006362e
mov edx, dword [eax + 4]
test edx, edx
je 0x100635fc
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x100635fc
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x10063608
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x10063615
mov ecx, dword [eax + 0x14]
mov dword [edx + 4], ecx
mov edx, dword [eax + 8]
test edx, edx
je 0x1006362e
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x1006362e
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x100635e1
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 0x10048f80
push 0
push 0
call esi
push 0
push 0
push 0
push 0x100626a0
push 0
push 0
call esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.100794c9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10063cb0
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 0x10063cdc
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 0x10063cfe
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10063d00
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10063d85
jg 0x10063d15
test esi, esi
je 0x10063d85
test ecx, ecx
jl 0x10063d68
jg 0x10063d1f
test eax, eax
je 0x10063d68
cmp edi, ecx
jg 0x10063d33
jl 0x10063d29
cmp esi, eax
jae 0x10063d33
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 0x10063d85
jg 0x10063d6b
test esi, esi
je 0x10063d85
jmp 0x10063d6b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10063d85
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