joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb0d7948
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0xa4020c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xb
mov ebx, ecx
lea edi, [ebp - 0x34]
pop ecx
mov esi, 0xb0a9664
rep movsd dword es:[edi], dword [esi]
push 0x30
pop eax
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
mov word [ebp - 0xa], ax
jmp 0xb0d79b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0xb0d799a
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0xb0d79e1
inc ax
mov word [ebp - 0xa], ax
jmp 0xb0d79b4
cmp eax, 0xe7
jne 0xb0d79e1
push 0x2710
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0xb0d79e1
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call esi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0xb0d797d
mov byte [ebx], 1
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0b0f5922
leave
ret
xor al, al
jmp 0xb0d79d2

Function at 0xb0da57d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov eax, esi
test edx, edx
je 0xb0da5b2
cmp word [edx], di
je 0xb0da5b2
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0xb0da5db
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
mov edi, eax
test ecx, ecx
je 0xb0da5d9
cmp ecx, esi
je 0xb0da5d9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0xb0dde5d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push 4
pop edx
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0xb0939d0]
sub edx, 1
jne 0xb0dde60
mov eax, ecx
ret
Function at 0xb0de3dc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 4], ebx
lea esi, [ebx + 0x1c]
mov ecx, esi
call fcn.0b0cd4a1
cmp byte [ebx], 0
je 0xb0de45f
cmp byte [ebx + 1], 0
jne 0xb0de45f
mov eax, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebx + 1], 1
add ebx, 0x18
push ebx
push 0x40
push 5
push dword [eax + 4]
call edi
mov edx, dword [ebp - 4]
push ebx
mov ecx, dword [edx + 4]
cmp byte [edx + 0x15], 0
mov eax, dword [ecx]
mov dword [edx + 0x10], eax
mov al, byte [ecx + 4]
mov byte [edx + 0x14], al
setne al
add al, 0xe8
mov byte [ecx], al
mov eax, dword [edx + 8]
sub eax, dword [edx + 4]
sub eax, 5
mov dword [ecx + 1], eax
push dword [ebx]
mov ebx, edx
push 5
push dword [ebx + 4]
call edi
mov edi, dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
push esi
call fcn.0b0f4f17
pop ecx
pop esi
mov eax, ebx
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 4], ebx
lea esi, [ebx + 0x1c]
mov ecx, esi
call fcn.0b0cd4a1
cmp byte [ebx], 0
je 0xb0de4da
cmp byte [ebx + 1], 0
je 0xb0de4da
mov eax, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebx + 1], 0
add ebx, 0x18
push ebx
push 0x40
push 5
push dword [eax + 4]
call edi
mov edx, dword [ebp - 4]
push ebx
mov ecx, dword [edx + 4]
mov eax, dword [edx + 0x10]
mov dword [ecx], eax
mov al, byte [edx + 0x14]
mov byte [ecx + 4], al
push dword [ebx]
mov ebx, edx
push 5
push dword [ebx + 4]
call edi
mov edi, dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
push esi
call fcn.0b0f4f17
pop ecx
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0xb0de4e9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov edi, edx
push eax
push 0x40
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push 0x90
push ebx
call fcn.0b0f7bf0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop ebx
leave
ret
Function at 0xb0de725
Capabilities:
Accept command line arguments

Disassembly:
push 0x64
mov eax, 0xb11f8f8
call fcn.0b0f67e7
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x70], esi
test esi, esi
je 0xb0de8d8
xor ebx, ebx
cmp dword [ebp - 0x6c], ebx
jle 0xb0de8d1
push dword [esi + ebx*4]
lea ecx, [ebp - 0x2c]
call fcn.0b0de9a9
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
cmp edx, 7
cmova eax, dword [ebp - 0x2c]
cmp word [eax], 0x2d
jne 0xb0de8bb
mov edi, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmp edx, 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
xor ecx, ecx
sub esi, eax
inc ecx
sar esi, 1
mov eax, edi
sub eax, esi
cmp eax, ecx
cmovb ecx, eax
cmp edx, 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
sub edi, ecx
mov dword [ebp - 0x60], edi
lea edx, [eax + esi*2]
mov eax, edi
sub eax, esi
lea ecx, [edx + ecx*2]
lea eax, [eax*2 + 2]
push eax
push ecx
push edx
call fcn.0b0f7670
add esp, 0xc
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
lea edi, [ebp - 0x44]
mov ecx, dword [ebp - 0x60]
xor eax, eax
stosd dword es:[edi], eax
push 0xf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x64]
and dword [ebp - 0x34], 0
or edi, 1
pop eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], edi
cmp ecx, eax
jbe 0xb0de81b
push dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x44]
call fcn.0b0c1c93
and dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x60], eax
cmp esi, eax
je 0xb0de84f
mov edi, eax
movzx eax, byte [esi]
lea ecx, [ebp - 0x44]
push eax
call fcn.0b0e055f
add esi, 2
cmp esi, edi
jne 0xb0de839
mov edi, dword [ebp - 0x64]
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.0b0e11fb
push eax
mov byte [ebp - 4], 2
call fcn.0b0de9e8
lea ecx, [ebp - 0x5c]
call fcn.0b0c1d94
mov eax, dword [ebp - 0x30]
and edi, 0xfffffffe
mov dword [ebp - 0x64], edi
cmp eax, 0xf
jbe 0xb0de8a9
mov ecx, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], ecx
cmp eax, 0x1000
jb 0xb0de8a0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0b0b8424
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
push eax
push ecx
call fcn.0b0f5930
pop ecx
pop ecx
and dword [ebp - 0x34], 0
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0b0c59a8
inc ebx
cmp ebx, dword [ebp - 0x6c]
jl 0xb0de762
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.0b0f67a5
ret
Function at 0xb0e19c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0xa4020c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x15c]
mov ebx, edx
push 0
push eax
mov esi, ecx
call fcn.0b0f7bf0
xor eax, eax
mov dword [ebp - 0x15c], 0x44
lea edi, [ebp - 0x118]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [ebx + 0x14], 0xf
jbe 0xb0e1a1d
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0xf
jbe 0xb0e1a25
mov esi, dword [esi]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x108]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x114]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0xb0e1a61
cmp eax, 0xffffffff
je 0xb0e1a61
push eax
call esi
mov eax, dword [ebp - 0x118]
test eax, eax
je 0xb0e1a73
cmp eax, 0xffffffff
je 0xb0e1a73
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0b0f5922
leave
ret
Function at 0xb0e1b7c
Capabilities:
Get common file path

Disassembly:
push 0x16c
mov eax, 0xb1200f4
call fcn.0b0f67e7
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x168], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x104
push 0
mov dword [ebp - 0x16c], esi
push eax
mov dword [ebp - 0x168], 1
call fcn.0b0f7bf0
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0xb0e1d94
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0b0c1f67
and dword [ebp - 4], 0
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x13c]
mov ecx, dword [edi + 0x10]
cmp eax, ecx
jb 0xb0e1db5
cmp dword [ebp - 0x138], 0xf
lea eax, [ebp - 0x14c]
cmova eax, dword [ebp - 0x14c]
cmp dword [edi + 0x14], 0xf
jbe 0xb0e1c20
mov edi, dword [edi]
push ecx
push edi
push dword [ebp - 0x13c]
push eax
push ecx
push dword [ebp - 0x168]
mov ecx, esi
call fcn.0b0e1fbf
xor eax, eax
mov dword [ebp - 0x168], 7
lea edi, [ebp - 0x134]
stosd dword es:[edi], eax
push 0xf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x124], 0
pop edi
mov dword [ebp - 0x120], edi
mov byte [ebp - 0x134], 0
lea edx, [ebp - 0x134]
mov dword [ebp - 4], 2
mov ecx, esi
call fcn.0b0df2f3
mov edx, ebx
test al, al
jne 0xb0e1d05
push ecx
mov ecx, esi
call fcn.0b0df196
pop ecx
test al, al
jne 0xb0e1cb6
push esi
mov edx, 0xb0aa938
lea ecx, [ebp - 0x164]
call fcn.0b0e1f6d
pop ecx
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 3
call fcn.0b0c5a60
jmp 0xb0e1da4
mov eax, dword [ebp - 0x120]
cmp eax, edi
jbe 0xb0e1d6d
mov ecx, dword [ebp - 0x134]
inc eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], ecx
cmp eax, 0x1000
jb 0xb0e1d64
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.0b0b8424
mov eax, dword [ebp - 0x16c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x168]
jmp 0xb0e1d64
lea ecx, [ebp - 0x134]
call fcn.0b0c4c7c
test al, al
jne 0xb0e1d1f
push ecx
mov edx, ebx
mov ecx, esi
call fcn.0b0df196
pop ecx
mov eax, dword [ebp - 0x120]
cmp eax, edi
jbe 0xb0e1d6d
mov ecx, dword [ebp - 0x134]
inc eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x16c], ecx
cmp eax, 0x1000
jb 0xb0e1d64
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0b0b8424
mov eax, dword [ebp - 0x168]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x16c]
push eax
push ecx
call fcn.0b0f5930
pop ecx
pop ecx
and dword [ebp - 0x124], 0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x120], edi
mov byte [ebp - 0x134], 0
call fcn.0b0c1d94
mov eax, esi
call fcn.0b0f67a5
ret
push 0xb0aa920
lea ecx, [ebp - 0x178]
call fcn.0b0c1bd0
push 0xb0b4ee4
lea eax, [ebp - 0x178]
push eax
call fcn.0b0f754e
call fcn.0b0c1dbf
int3
Function at 0xb0e420b
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0xb0e421a
push 0x10
pop eax
pop ebp
ret
xor ecx, ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0xb0e453d
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0xa4020c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov bx, dx
mov dword [ebp - 0xfc], eax
push edi
mov word [ebp - 0xf6], bx
mov edi, ecx
xor esi, esi
movzx edx, byte [esi + 0xb0a10b0]
mov eax, edx
shr edx, 3
and eax, 7
mov ecx, dword [eax*4 + 0xb098a30]
movzx eax, byte [edx + edi]
and eax, ecx
cmp eax, ecx
sete al
mov byte [ebp + esi - 0x3c], al
inc esi
cmp esi, 0x38
jb 0xb0e456a
xor esi, esi
cmp bx, 1
jne 0xb0e45a6
push 0xf
pop ecx
sub ecx, esi
add ecx, ecx
jmp 0xb0e45a9
lea ecx, [esi + esi]
and dword [ebp + ecx*4 - 0xf0], 0
and dword [ebp + ecx*4 - 0xf4], 0
xor eax, eax
movzx edx, byte [esi + 0xb0a12f0]
cmp edx, 0x1c
jae 0xb0e45cd
mov bl, byte [ebp + edx - 0x3c]
jmp 0xb0e45d1
mov bl, byte [ebp + edx - 0x58]
mov byte [ebp + eax - 0x74], bl
inc eax
inc edx
cmp eax, 0x1c
jb 0xb0e45c2
cmp eax, 0x38
jae 0xb0e4604
movzx edx, byte [esi + 0xb0a12f0]
add edx, eax
cmp edx, 0x38
jae 0xb0e45f5
mov bl, byte [ebp + edx - 0x3c]
jmp 0xb0e45f9
mov bl, byte [ebp + edx - 0x58]
mov byte [ebp + eax - 0x74], bl
inc eax
inc edx
cmp eax, 0x38
jb 0xb0e45ea
xor edx, edx
movzx eax, byte [edx + 0xb09ca50]
mov edi, edx
cmp byte [ebp + eax - 0x74], 0
je 0xb0e4624
mov eax, dword [edi*4 + 0xb0987d0]
or dword [ebp + ecx*4 - 0xf4], eax
movzx eax, byte [edx + 0xb09ca68]
cmp byte [ebp + eax - 0x74], 0
je 0xb0e4640
mov eax, dword [edi*4 + 0xb0987d0]
or dword [ebp + ecx*4 - 0xf0], eax
inc edx
cmp edx, 0x18
jb 0xb0e4606
mov bx, word [ebp - 0xf6]
inc esi
cmp esi, 0x10
jb 0xb0e4597
mov edx, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf4]
pop edi
pop esi
pop ebx
call fcn.0b0e4677
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0b0f5922
leave
ret
Function at 0xb0e5636
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0xb0e5645
push 0x10
pop eax
pop ebp
ret
xor ecx, ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
pop ebp
ret
Function at 0xb0e7b2e
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0xb0e7b3d
push 0x10
pop eax
pop ebp
ret
xor ecx, ecx
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0x48], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0xb0e85c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
mov esi, edx
mov dword [ebp - 0x10], ecx
mov eax, esi
mov dword [ebp - 0x1c], eax
test esi, esi
je 0xb0e8670
push ebx
push edi
dec esi
xor ebx, ebx
push 8
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 8]
pop eax
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
dec eax
mov dword [ebp - 0x14], eax
call fcn.0b11ce6f
mov edi, eax
call fcn.0b11ce6f
cmp edi, eax
jne 0xb0e861a
xor esi, 1
call fcn.0b11ce6f
cmp edi, eax
je 0xb0e860b
mov dword [ebp - 8], esi
call fcn.0b11ce6f
mov edi, eax
call fcn.0b11ce6f
cmp edi, eax
jne 0xb0e8642
mov esi, dword [ebp - 4]
xor esi, 1
call fcn.0b11ce6f
cmp edi, eax
je 0xb0e862d
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
cmp esi, ebx
je 0xb0e85fb
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add ebx, ebx
or ebx, esi
mov dword [ebp - 0xc], ebx
test eax, eax
jne 0xb0e85f4
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov byte [ecx], bl
inc ecx
mov dword [ebp - 0x10], ecx
test esi, esi
jne 0xb0e85e5
mov eax, dword [ebp - 0x1c]
pop edi
pop ebx
pop esi
leave
ret

Function at 0xb0e8673
Capabilities:
Generate random numbers via winapi

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0xb0e8682
push 0x10
pop eax
jmp 0xb0e86a8
push 2
push edi
push esi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor ecx, ecx
test eax, eax
cmovns ecx, edi
test ecx, ecx
je 0xb0e869d
mov eax, ecx
jmp 0xb0e86a8
push ecx
mov edx, edi
mov ecx, esi
call fcn.0b0e85c2
pop ecx
pop edi
pop esi
ret
Function at 0xb0ec5ca
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xa4020c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0xb0ec6d5
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0xb0ec6ce
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0xb0ec692
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0xb0ec692
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0xb0ec692
mov edx, dword [esi]
test edx, edx
jne 0xb0ec65b
push 0x200
push edx
push dword [0xa418bec]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0xb0ec6b7
lea ebx, [esi + 8]
jmp 0xb0ec685
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0xb0ec685
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0xa418bec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0xb0ec6e6
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0xb0ec613
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0xb0ec6ce
xor edi, edi
cmp dword [esi], edi
je 0xb0ec6ce
push dword [esi]
push edi
push dword [0xa418bec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0b0f5922
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0xb0ec6b7

Function at 0xb0ec6eb
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.0b0ec5ca
test eax, eax
jne 0xb0ec710
push 9
pop esi
jmp 0xb0ec770
cmp dword [edi], esi
je 0xb0ec770
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0xb0ec76f
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
test eax, eax
je 0xb0ec764
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0xb0ec756
push dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], 1
call fcn.0b0ec476
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0xb0ec769
mov ecx, dword [edi]
mov dword [ecx + ebx*4], esi
inc ebx
cmp ebx, dword [edi + 8]
jb 0xb0ec71c
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0xb0ec776
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0xb0ec7c8
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0xb0ec7b7
push ebx
mov eax, dword [esi]
cmp dword [eax + edi*4], 0
je 0xb0ec7b0
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0xb0ec7b0
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0xb0ec787
pop ebx
push dword [esi]
push 0
push dword [0xa418bec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0xb0ec7ca
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
imul edi, ecx, 0x2c
mov esi, edx
mov dword [ebp - 0x10], esi
add edi, dword [0xb067050]
mov dword [ebp - 8], edi
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0xb0ec819
push 0xa
pop eax
jmp 0xb0ec899
test esi, esi
je 0xb0ec83a
mov byte [ebx], 0xe9
mov eax, dword [edi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [edi + 0x14], 1
je 0xb0ec859
mov eax, dword [edi]
mov word [eax], 0xf9eb
jmp 0xb0ec859
test byte [edi + 0x14], 1
je 0xb0ec84e
lea esi, [edi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 8]
jmp 0xb0ec859
mov eax, dword [edi + 0xc]
mov dword [ebx], eax
mov al, byte [edi + 0x10]
mov byte [ebx + 4], al
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [edi + 0x14]
and cl, 2
xor cl, byte [edi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [edi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0xb0ecf38
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0xb067044]
push esi
xor esi, esi
jmp 0xb0ecf4a
cmp dword [edx + 4], esi
jne 0xb0ecf96
mov edx, dword [edx]
test edx, edx
jne 0xb0ecf43
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0xb0ecfa3
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0xb0ecf71
mov eax, dword [0xb067044]
pop edi
mov dword [edx], eax
mov dword [0xb067044], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret