joyce8/EMBER2024-capa huggingface dataset:
Function at 0x151fc50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdbe000]
push edi
or ebp, 0xffffffff
jmp 0x151fc72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x151fc79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x151fc68
mov eax, 1
add ebx, ebx
jne 0x151fc8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x151fc9c
jne 0x151fcbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x151fcbb
dec eax
add ebx, ebx
jne 0x151fca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x151fc80
add ebx, ebx
jne 0x151fcb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x151fd0d
xor ecx, ecx
sub eax, 3
jb 0x151fcd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x151fd42
sar eax, 1
mov ebp, eax
jmp 0x151fcde
add ebx, ebx
jne 0x151fcde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x151fcac
inc ecx
add ebx, ebx
jne 0x151fcec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x151fcac
add ebx, ebx
jne 0x151fcf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x151fcee
jne 0x151fd0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x151fcee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x151fd2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x151fd1e
jmp 0x151fc6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x151fd2c
add edi, ecx
jmp 0x151fc6e
pop esi
mov edi, esi
mov ecx, 0x3d580
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x151fd4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x151fd4f
lea edi, [esi + 0x111c000]
mov eax, dword [edi]
or eax, eax
je 0x151fdc0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1155b94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1155d80]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x151fd75
mov ecx, edi
jns 0x151fda4
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 + 0x1155d88]
or eax, eax
je 0x151fdba
mov dword [ebx], eax
add ebx, 4
jmp 0x151fd92
call dword [esi + 0x1155d84]
mov ebp, dword [esi + 0x1155d8c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0x151fdf4
sub esp, 0xffffff80
jmp 0xb72f02
Function at 0x10001500
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.100170e0
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push edi
push eax
push str..PhysicalDrive_d
lea edx, [ebp - 0x10c]
xor esi, esi
call fcn.10001eb0
add esp, 8
push esi
push esi
push 3
push esi
push 3
push esi
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x37cc], edi
cmp edi, 0xffffffff
je 0x1000173d
xor eax, eax
push 0x2710
push eax
lea edx, [ebp - 0x37bc]
mov dword [ebp - 0x37c8], eax
mov dword [ebp - 0x37c4], eax
push edx
mov dword [ebp - 0x37d0], esi
mov dword [ebp - 0x37c0], eax
mov dword [ebp - 0x37c8], eax
mov dword [ebp - 0x37c4], eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x37d0]
push eax
push 0x2710
lea ecx, [ebp - 0x37bc]
push ecx
push 0xc
lea edx, [ebp - 0x37c8]
push edx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10001730
mov eax, dword [ebp - 0x37b0]
push esi
lea edi, [ebp - 0x8dc]
lea ecx, [ebp - 0x37bc]
call fcn.10001390
mov eax, dword [ebp - 0x37ac]
push esi
lea edi, [ebp - 0xcc4]
lea ecx, [ebp - 0x37bc]
call fcn.10001390
mov eax, dword [ebp - 0x37a8]
push esi
lea edi, [ebp - 0x10ac]
lea ecx, [ebp - 0x37bc]
call fcn.10001390
mov eax, dword [ebp - 0x37a4]
push 1
lea edi, [ebp - 0x4f4]
lea ecx, [ebp - 0x37bc]
call fcn.10001390
add esp, 0x10
cmp byte [0x1001e970], 0
jne 0x100016e7
movsx eax, byte [ebp - 0x4f4]
mov edi, dword [sym.imp.MSVCR100.dll_isalnum]
push eax
call edi
add esp, 4
test eax, eax
jne 0x10001663
movsx ecx, byte [ebp - 0x4e1]
push ecx
call edi
add esp, 4
test eax, eax
je 0x100016e7
xor eax, eax
jmp 0x10001670
mov cl, byte [ebp + eax - 0x8dc]
mov byte [eax + 0x1001e570], cl
inc eax
test cl, cl
jne 0x10001670
xor eax, eax
jmp 0x10001690
mov cl, byte [ebp + eax - 0xcc4]
mov byte [eax + 0x1001e170], cl
inc eax
test cl, cl
jne 0x10001690
xor eax, eax
jmp 0x100016b0
mov cl, byte [ebp + eax - 0x4f4]
mov byte [eax + 0x1001e970], cl
inc eax
test cl, cl
jne 0x100016b0
xor eax, eax
jmp 0x100016d0
mov cl, byte [ebp + eax - 0x10ac]
mov byte [eax + 0x1001dd70], cl
inc eax
test cl, cl
jne 0x100016d0
mov esi, 1
push 0x2710
lea edx, [ebp - 0x37bc]
push 0
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x37cc]
add esp, 0xc
push 0
lea eax, [ebp - 0x37d0]
push eax
push 0x2710
lea ecx, [ebp - 0x37bc]
push ecx
push 0
push 0
push 0x700a0
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [ebp - 0x37cc]
jmp 0x10001736
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1001660c
mov esp, ebp
pop ebp
ret 4
Function at 0x10001e00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x94
xor edi, edi
lea eax, [ebp - 0xa0]
push edi
push eax
mov esi, ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x10001e83
call fcn.100011e0
test eax, eax
jne 0x10001e99
push esi
call fcn.10001920
test eax, eax
jne 0x10001e99
push esi
call fcn.10001500
test eax, eax
jne 0x10001e99
push esi
call fcn.10001070
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001660c
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test edi, edi
jne 0x10001e97
push esi
call fcn.100017b0
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x10001e85
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001660c
mov esp, ebp
pop ebp
ret

Function at 0x10001f90
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov edx, dword [ebp - 0xd0]
mov ecx, dword [esi]
push 0
push edx
push 4
push esi
mov dword [ebp - 0xcc], ecx
call edi
xor eax, eax
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x10001fd4
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov edx, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xcc]
push 0
push edx
push 4
push esi
mov dword [esi], ecx
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001660c
mov esp, ebp
pop ebp
ret 4

Function at 0x10002020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
xor eax, eax
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x10002040
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xcc]
xor ecx, ebp
call fcn.1001660c
mov esp, ebp
pop ebp
ret 4
Function at 0x10002070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100171f8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1001d018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x100020a7
lea eax, [ebp + 8]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100020b0
sub eax, edx
mov esi, eax
push esi
call fcn.100165ee
mov edi, eax
add esp, 4
xor eax, eax
test esi, esi
je 0x100020d8
lea esp, [esp]
xor byte [eax + edi], al
inc eax
cmp eax, esi
jb 0x100020d0
cmp dword [ebp + 0x1c], 0x10
jb 0x100020eb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x10002480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
lea eax, [ebp + 8]
push eax
push 0x40
push 4
push esi
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push eax
push 4
push esi
mov dword [esi], ecx
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100060b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.100165ee
add esp, 4
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 8]
push edi
push ecx
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x100060f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.100165ee
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push edi
push ebx
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test edi, edi
jle 0x10006142
push esi
mov esi, dword [ebp + 8]
sub ebx, esi
nop
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10006132
mov cl, byte [esi]
mov byte [ebx + esi], cl
inc esi
dec edi
jne 0x10006120
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10006150
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.100165ee
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
mov dword [ebp - 8], esi
call ebx
mov eax, dword [ebp + 8]
lea ecx, [eax + edi]
mov dword [ebp - 4], ecx
push 0x1c
lea edx, [ebp - 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp + 0xc]
push ecx
push 0x40
push edi
push esi
mov dword [ebp + 8], eax
call ebx
mov edx, dword [ebp + 8]
push edi
push edx
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push ecx
push edi
push esi
call ebx
mov eax, dword [ebp - 0x1c]
add esi, eax
add eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 4]
jb 0x10006183
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100061e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 8]
push eax
push 0x40
push 1
push esi
call edi
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push edx
push 1
push esi
mov byte [esi], 0xcc
call edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x10006210
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100062bd
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006280
test dl, dl
je 0x1000627c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006280
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006260
xor eax, eax
jmp 0x10006285
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100062ab
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x100062ab
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10006254
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001660c
mov esp, ebp
pop ebp
ret

Function at 0x100062e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0xa7
xor eax, eax
mov dl, byte [eax + 0x1001a30c]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x30], dl
jns 0x10006314
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x1e
jl 0x100062f7
mov ecx, 0x1001a32c
sub ecx, 0x2e789121
lea eax, [ebp - 0x10]
mov byte [ebp - 0x12], 0
call fcn.10015150
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
push 0x100125e0
push 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], cx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], cx
mov byte [ebp - 0x12], cl
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
call fcn.1001660c
mov esp, ebp
pop ebp
ret
Function at 0x10006390
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001b418
push 0x10016c99
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1001d018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
push 6
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
sub edi, esi
sub edi, 5
mov byte [esi], 0xe9
mov dword [esi + 1], edi
mov eax, 5
mov dword [ebp - 0x1c], eax
mov ecx, 6
cmp eax, ecx
jae 0x10006402
mov byte [eax + esi], 0x90
inc eax
jmp 0x100063ef
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
push eax
push ecx
push esi
call ebx
jmp 0x10006419
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006440
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0xb
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xb
push edi
call ebx
mov ecx, dword [esi]
mov dword [edi], ecx
mov dx, word [esi + 4]
mov word [edi + 4], dx
lea ecx, [ebp - 4]
push ecx
add edi, 6
push 0x40
mov eax, esi
sub eax, edi
push 6
inc eax
push esi
mov byte [edi], 0xe9
mov dword [edi + 1], eax
call ebx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
mov edx, 0x1000d4b0
sub edx, esi
push 6
sub edx, 5
push esi
mov byte [esi], 0xe9
mov dword [esi + 1], edx
call ebx
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi - 6]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100064d0
Capabilities:
Enumerate threads
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100065bf
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100065b8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Thread32Next]
push esi
lea esp, [esp]
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x1000654d
lea edx, [ebp - 0x20]
push edx
jmp 0x100065ab
push str.NtQueryInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006585
push 0
push 4
lea ecx, [ebp - 0x24]
push ecx
push 9
push esi
mov dword [ebp - 0x24], 0
call eax
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x24]
cmp dword [ebp + 8], eax
jne 0x100065a0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x20]
push edx
jmp 0x100065ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
test eax, eax
jne 0x10006530
pop esi
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.1001660c
mov esp, ebp
pop ebp
ret

Function at 0x100065d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x1000663b
push esi
cmp ecx, edx
jne 0x10006631
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100065f3
mov esi, dword [eax]
mov dword [ecx], esi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100065ff
mov esi, dword [eax]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x1000660b
mov esi, dword [eax + 0x10]
mov dword [ecx], esi
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10006618
mov esi, dword [eax + 0x14]
mov dword [ecx + 4], esi
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10006624
mov esi, dword [eax + 0xc]
mov dword [esi], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10006631
mov esi, dword [eax + 0xc]
mov dword [ecx + 4], esi
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x100065e4
pop esi
ret
Function at 0x10006640
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
call edi
push 0xc8
push 0
push esi
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push 0
push ecx
push edx
push eax
call edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000e700
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, 1
push edi
cmp dword [0x10022e78], esi
jne 0x1000e732
mov ecx, dword [0x10020210]
mov edx, dword [0x10022ce0]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, 0x1c
push edx
call eax
cmp dword [eax], 0
jne 0x1000e75d
cmp dword [0x10022ea4], esi
jne 0x1000e818
mov ecx, dword [0x10020210]
mov eax, dword [0x10022ce0]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, 0x1c
push eax
call edx
cmp dword [eax], 0
je 0x1000e818
cmp dword [0x10022f5c], esi
jne 0x1000e8d0
mov ecx, dword [0x100262a0]
xor ebx, ebx
lea edi, [ecx + ebx*4]
mov ecx, dword [0x10020210]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0x1001ef5c
call edx
mov edi, dword [edi]
mov esi, eax
add esi, dword [0x100222f4]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edx
push 4
mov dword [edi], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
mov eax, dword [0x100262a4]
mov ecx, dword [0x100262a0]
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
je 0x1000e7cb
jbe 0x1000e771
mov ecx, dword [0x10020210]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov ebx, dword [0x100262ec]
push 0x1001ef5c
call edx
mov ebx, dword [ebx]
mov esi, eax
add esi, dword [0x100222f4]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push ebx
call edi
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edx
push 4
push ebx
mov dword [ebx], esi
call edi
pop edi
pop esi
mov dword [0x10022f5c], 0
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x10022f5c], 0
jne 0x1000e8d0
mov ecx, dword [0x100262a0]
xor ebx, ebx
lea ecx, [ecx]
lea edi, [ecx + ebx*4]
mov ecx, dword [0x10020210]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0x10021a1c
call edx
mov edi, dword [edi]
mov esi, eax
add esi, dword [0x100222f4]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edx
push 4
mov dword [edi], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
mov eax, dword [0x100262a4]
mov ecx, dword [0x100262a0]
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
je 0x1000e88a
jbe 0x1000e830
mov ecx, dword [0x10020210]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov ebx, dword [0x100262ec]
push 0x10022d5c
call edx
mov ebx, dword [ebx]
mov esi, eax
add esi, dword [0x100222f4]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push ebx
call edi
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edx
push 4
push ebx
mov dword [ebx], esi
call edi
mov dword [0x10022f5c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret