joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100686d
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
sub eax, ebx
mov dword [ebp - 4], ebx
je 0x100689a
dec eax
jne 0x10068b2
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
jmp 0x10068af
lea eax, [ebp - 4]
push eax
push 1
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jne 0x10068c1
mov eax, 0x80041003
jmp 0x1006970
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push 3
push dword [ebp - 4]
call edi
push dword [ebp + 8]
call fcn.010024d5
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x1006900
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80041006
jmp 0x100696e
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push esi
push 3
push dword [ebp - 4]
call edi
test eax, eax
jne 0x100692a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.010024e5
pop ecx
mov eax, 0x80041003
jmp 0x100696e
xor ecx, ecx
cmp dword [esi], ebx
jbe 0x100693e
lea eax, [esi + 0xc]
or dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x1006933
push ebx
push ebx
push ebx
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
mov edi, eax
call fcn.010024e5
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x7ffbeffd
add eax, 0x80041003
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100f826
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0xc], 0
pop esi
ret

Function at 0x100f828
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0xc], 0
pop esi
ret

Function at 0x100f9e4
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x10156de
call fcn.01012f88
push ecx
push esi
push edi
mov esi, ecx
push 0x64
xor edi, edi
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1001c30
call sub.wbemcomn.dll_public:_void___thiscall_CFlexArray::constructor_int__int_
mov dword [ebp - 4], edi
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 8]
push edi
push edi
push edi
push edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], edi
mov dword [esi + 0x4c], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1012da5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002060
call fcn.01013070
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1012de2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1012de2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1012dfa
cmp eax, 0x20b
je 0x1012de7
mov dword [ebp - 0x1c], ebx
jmp 0x1012e0e
cmp dword [ecx + 0x84], 0xe
jbe 0x1012de2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1012e08
cmp dword [ecx + 0x74], 0xe
jbe 0x1012de2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101cbe4], 0xffffffff
or dword [0x101cbe8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101cbc8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101cbc4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101cbe0], eax
call fcn.0100535d
cmp dword [0x1018130], ebx
jne 0x1012e69
push fcn.0100535d
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01013057
push 0x1018018
push 0x1018014
call sub.msvcrt.dll__initterm
mov eax, dword [0x101cbc0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101cbbc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1018010
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1012eff
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1012ed3
cmp al, 0x22
jne 0x1012ec5
cmp byte [esi], 0x22
jne 0x1012edc
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1012ee6
cmp al, 0x20
jbe 0x1012ed8
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1012f0a
movzx eax, word [ebp - 0x50]
jmp 0x1012f0d
cmp byte [esi], 0x20
jbe 0x1012edc
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1012eff
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1012f2a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1012f5f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010130ab
ret

Function at 0x101329f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1018120]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10132e4
cmp dword [ebp - 0x88], 2
jne 0x10132e4
cmp dword [ebp - 0x94], 5
jb 0x10132e4
xor eax, eax
inc eax
jmp 0x10132e6
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01012c8d
leave
ret
Function at 0x1014a8f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10022bc
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1014ae7
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001765
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1014ada
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1014ae9
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov dword [ebp - 8], 0x215
mov dword [ebp - 0x220], 0x3000
mov dword [ebp - 4], 0x40
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
mov eax, dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
mov dword [0x42eec4], eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [0x42eec4]
mov edx, dword [sym.imp.kernel32.dll_lstrcatW]
mov dword [0x42eec8], edx
mov eax, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [0x42eecc], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov esp, ebp
pop ebp
ret

Function at 0x1000a483
Capabilities:
Encode data using xor

Disassembly:
cmp dl, ch
dec esi
hlt
out 0x22, eax
je 0x1000a442
pushal
fisubr dword [ecx]
clc
fisub dword [esi + 0x7b]
or esp, edi
lcall 0xbb73, 0x716080f4
push esi
cli
loop 0x1000a4e4
hlt
jecxz 0x1000a491
dec edx
fld qword [edx - 0x33]
cdq
pop esp
push edi
jne 0x1000a45f
shl byte [ebp - 0xd], 1
mov edx, 0xe040a7af
mov al, 0x57
invalid
push esi
int1
imul esi, dword [edi - 0x43], 0x7b
add bl, bh
sbb ebx, esi
out dx, al
sbb eax, 0x5cf8e058
retf

Function at 0x10637fe2
Capabilities:
Encode data using xor

Disassembly:
push dword [esp]
mov byte [esp], 0x86
lea esp, [esp + 0x10]
jne 0x106383a1
pushal
pushfd
mov byte [esp], bh
pushal
lea esp, [esp + 0x44]
jmp 0x103c2fff
Function at 0x10011591
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.10011741
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x1001168f
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10011632
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x10011675
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x10011649
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x10011664
test al, 0x40
je 0x1001165b
mov ecx, dword [edi + 0x20]
jmp 0x10011662
test al, 0x80
je 0x10011675
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x10011675
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x10011601
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x100645cd
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.100b7af7
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.100b7af7
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
push 0x10
call fcn.100b7af7
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x100bcb60
call fcn.100b7afd
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x1006468d
mov eax, 0
jmp 0x100647f9
cmp dword [ebp + 0xc], 0
jne 0x100646b9
mov dword [ebp - 0x1c], esp
mov eax, 0x87
call fcn.100b7b09
cmp dword [ebp - 0x1c], esp
je 0x100646b6
push 6
call fcn.100b7b03
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x100646e1
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100646db
push ebx
call fcn.100b7af1
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x88
call fcn.100b7b09
cmp dword [ebp - 0x1c], esp
je 0x1006470c
push 6
call fcn.100b7b03
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x101a6cc8
mov eax, 0x89
call fcn.100b7b09
cmp dword [ebp - 0x1c], esp
je 0x10064738
push 6
call fcn.100b7b03
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x8a
call fcn.100b7b09
cmp dword [ebp - 0x1c], esp
je 0x100647cc
push 6
call fcn.100b7b03
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 0x8b
call fcn.100b7b09
cmp dword [ebp - 0x1c], esp
je 0x100647f1
push 6
call fcn.100b7b03
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x100647f9
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.100b7af1
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.100b7af1
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.100b7af1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100b8d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101966e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1018adc8
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100be1a0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x100b8d74
jmp dword [ecx*4 + 0x100b8edc]
mov al, byte [esi]
test al, al
je 0x100b8da2
cmp al, 0x20
je 0x100b8d8e
cmp al, 0xa1
jne 0x100b8da2
cmp byte [esi + 1], al
jne 0x100b8da2
test al, 0x80
je 0x100b8d9a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100b8da2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100b8d81
test ecx, ecx
je case.default.0x100b8d74
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x100b8d74
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100b8de8
cmp dl, 0xa1
jne 0x100b8ddc
cmp byte [eax + 1], 0xa1
jne 0x100b8ddc
test ecx, ecx
jne 0x100b8dd4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x100b8dfc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x100b8e16
jmp 0x100b8dfc
cmp dl, 0x20
jne 0x100b8dfa
test ecx, ecx
jne 0x100b8df3
mov edi, eax
mov ecx, 1
jmp 0x100b8dfc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100b8dbc
cmp ecx, 1
jne case.default.0x100b8d74
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100b8d74
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100b8d74
mov al, byte [esi]
test al, al
je 0x100b8e6e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x100b8e54
mov cl, byte [esi + 1]
test cl, cl
je 0x100b8e6e
cmp al, 0xa1
jne 0x100b8e44
cmp cl, al
je 0x100b8e51
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100be470
inc esi
jmp 0x100b8e66
cmp al, 0x20
je 0x100b8e66
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.100be4b0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100b8e2d
push 0
lea ecx, [esp + 0x14]
call fcn.100be4b0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100d1620
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100b8ea1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x102e1d80
call fcn.100be3a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1018ad5a
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x100bbd10
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10196918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x10320448]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.100bb7e0
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100bbdb2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x100bbe6b
mov edx, dword [esi + 8]
push edx
call fcn.100d0250
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x100bbe02
cmp eax, 0x80000301
jne 0x100bbdd0
mov eax, dword [esi]
jmp 0x100bbddd
push 0
push esi
push 0x7d1
call fcn.100d5880
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100bbe60
jmp 0x100bbe5a
cmp eax, 0x80000004
jne 0x100bbe31
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100bbe60
jmp 0x100bbe5a
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x100bbe60
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100bbe60
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1018ad5a
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100c6f00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1019731b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1018aacf
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x100c6f82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10187921
mov eax, dword [eax]
push 0x10303d74
push eax
call fcn.10178e84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1018ad5a
test bl, bl
je 0x100c6f82
push 0x10303d74
lea ecx, [esp + 0xc]
call fcn.1018b0ea
push 0x10303d80
lea ecx, [esp + 0xc]
call fcn.1018b0ea
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x100c6fbe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1018ad5a
jmp 0x100c7089
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x100c7042
lea edx, [esp + 0x7c]
push 0x10303d7c
push edx
call fcn.10178e84
add esp, 8
test eax, eax
je 0x100c7042
lea eax, [esp + 0x7c]
push 0x10303d78
push eax
call fcn.10178e84
add esp, 8
test eax, eax
je 0x100c7042
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100c6fd2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1018ad5a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x100c7880
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100c78e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x100c78f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1019739b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10320448]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x100c7a28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x100c7956
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1018ad5a
xor eax, eax
jmp 0x100c7a9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1018ae97
push esi
lea ecx, [esp + 0xc]
call fcn.1018b126
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x10303db4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x100c7a7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x10303dac
push accept
call fcn.100c7880
test eax, eax
jne 0x100c7a7d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x10303d98
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.100c7880
test eax, eax
jne 0x100c7a7d
lea eax, [esp + 0x14]
push 0x10303d90
push eax
call fcn.10179fd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100c7a5c
lea ecx, [esp + 0x14]
push 0x10303d8c
push ecx
call fcn.10179f50
mov esi, eax
add esp, 8
test esi, esi
jne 0x100c7a5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x100c7a5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1018ae47
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x100c796e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1018ad5a
xor eax, eax
jmp 0x100c7a9f
mov byte [esi], 0
push 0x10303d88
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.1018ad5a
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4