joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10098cf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10113000]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, 0x5a4d
cmp ax, word [edx]
jne 0x10098d3d
mov ecx, dword [edx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x10098d3d
mov eax, dword [ecx + edx + 0xd8]
mov ecx, dword [ecx + edx + 0xdc]
add eax, edx
add ecx, eax
cmp eax, ecx
jae 0x10098d3d
mov edx, dword [ebp + 8]
cmp dword [eax], edx
je 0x10098d4d
add eax, 4
cmp eax, ecx
jb 0x10098d32
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b61c0
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x10098d3d
mov cl, byte [ebp + 0x1c]
test cl, cl
je 0x10098d61
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], cl
jmp 0x10098d67
mov word [ebp - 0xc], 0x15ff
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0xa], eax
je 0x10098dd5
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
add edi, 0xfffffffa
cmp edi, ebx
jb 0x10098dc0
mov esi, edi
lea eax, [ebp - 0xc]
sub esi, eax
xor eax, eax
nop dword [eax]
lea ecx, [ebp - 0xc]
add ecx, eax
mov dl, byte [ecx]
cmp dl, byte [esi + ecx]
je 0x10098da1
cmp dl, 0x11
jne 0x10098dba
inc eax
cmp eax, 6
jl 0x10098d90
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b61c0
mov esp, ebp
pop ebp
ret
dec edi
dec esi
cmp edi, ebx
jae 0x10098d87
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b61c0
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x10]
push 6
push eax
call fcn.10099490
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
call fcn.100b61c0
mov esp, ebp
pop ebp
ret

Function at 0x10098e00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov eax, 0x5a4d
sub esp, 0xc
cmp ax, word [edx]
jne 0x10098e43
mov ecx, dword [edx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x10098e43
mov eax, dword [ecx + edx + 0xd8]
mov ecx, dword [ecx + edx + 0xdc]
add eax, edx
add ecx, eax
cmp eax, ecx
jae 0x10098e43
mov edx, dword [ebp + 0xc]
cmp dword [eax], edx
je 0x10098e5e
add eax, 4
cmp eax, ecx
jb 0x10098e38
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x10098e43
mov cl, byte [ebp + 0x20]
test cl, cl
je 0x10098e72
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], cl
jmp 0x10098e78
mov word [ebp - 0xc], 0x15ff
push dword [ebp + 0x18]
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push 6
push eax
push dword [ebp + 8]
call fcn.10098850
mov eax, dword [ebp + 8]
add esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x10099570
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xcccc
push dword [ebp + 8]
call fcn.100994c0
add esp, 0x18
test eax, eax
je 0x10099599
inc eax
cmp byte [eax], 0xcc
je 0x10099593
pop ebp
ret
Function at 0x100997a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xcccc
push dword [ebp + 8]
call fcn.100996e0
add esp, 0x18
test eax, eax
je 0x100997c9
inc eax
cmp byte [eax], 0xcc
je 0x100997c3
pop ebp
ret

Function at 0x1009bac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1009bc70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1009bb8d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10112f78]
jb 0x1009bb0a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10112f7c]
ja 0x1009bb0a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1009bada
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100b7680
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1009bb30
jmp 0x1009bb8d
cmp dword [ebp - 0x14], 0x10000
jne 0x1009bb73
cmp dword [ebp - 0x18], 0x10000
jb 0x1009bb73
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1009bb66
mov eax, dword [ebp - 8]
jmp 0x1009bb8f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1009bb88
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1009bc70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1009bada
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1009bba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1009bca0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1009bc65
mov edx, dword [ebp - 4]
cmp edx, dword [0x10112f78]
jb 0x1009bbe5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10112f7c]
ja 0x1009bbe5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1009bbb5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100b7680
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1009bc0b
jmp 0x1009bc65
cmp dword [ebp - 0x14], 0x10000
jne 0x1009bc4e
cmp dword [ebp - 0x18], 0x10000
jb 0x1009bc4e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1009bc41
mov eax, dword [ebp - 8]
jmp 0x1009bc67
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1009bc60
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1009bca0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1009bbb5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100a3aeb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100a3b12
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100a3b15
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100a3ac7
pop esi
leave
ret 8

Function at 0x100a8f7f
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x100a8fa2
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x100a8f90
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x100b5dfd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.100ccd9a
mov eax, dword [eax + 0x14]
test eax, eax
je 0x100b5e40
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x100b5e40
sub eax, 1
je 0x100b5e3b
sub eax, 1
je 0x100b5e37
xor eax, eax
leave
ret
push 3
jmp 0x100b5e42
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x100d4ec5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fce8c
push 0x100fce84
push str.FlsAlloc
push 0x1e
call fcn.100d4cf2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d4ef9
push dword [ebp + 8]
mov ecx, esi
call dword [0x100eb340]
call esi
jmp 0x100d4eff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100d4f43
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fce9c
push 0x100fce94
push str.FlsGetValue
push 0x20
call fcn.100d4cf2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d4f7a
push dword [ebp + 8]
mov ecx, esi
call dword [0x100eb340]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100d83ac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100d8449
push ebx
push esi
call fcn.100d8375
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100d6adc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d83f6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d8448
push edi
push eax
call fcn.100d36a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100d8416
call fcn.100d3666
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100d8447
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100d6adc
add esp, 0x20
test eax, eax
jne 0x100d8435
push edi
call fcn.100d3666
jmp 0x100d843d
push ebx
call fcn.100d3666
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100d844c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100d845d
pop esi
ret
push ebx
push edi
push esi
call fcn.100d8375
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100d36a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100d8485
push ebx
push esi
push edi
call fcn.100b7a40
add esp, 0xc
push 0
call fcn.100d3666
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100d8849
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d849a
Function at 0x100e0600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100e062d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100e062d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10002540
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov ecx, 0x10a9202b
call fcn.1004081d
mov byte [0x1009ca58], 0
movzx eax, byte [0x1009ca58]
test eax, eax
je 0x1000257a
push 0
push 0
push 0
push 0x100025c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1009a774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x10a9203b
call fcn.1004081d
mov ecx, 0xb
mov esi, str._pipediscord_ipc_0
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x3c], 0x15
mov eax, 2
imul ecx, eax, 0x15
mov edx, 0x30
mov word [ebp + ecx - 0x38], dx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x40]
cmp dword [eax + 4], 0xffffffff
je 0x100034b5
mov eax, dword [ebp - 0x40]
mov byte [eax], 1
mov al, 1
jmp 0x10003526
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 2
jne 0x100034f8
mov eax, 2
imul ecx, eax, 0x15
movzx edx, word [ebp + ecx - 0x38]
cmp edx, 0x39
jge 0x100034f6
mov eax, 2
imul ecx, eax, 0x15
mov dx, word [ebp + ecx - 0x38]
add dx, 1
mov eax, 2
imul ecx, eax, 0x15
mov word [ebp + ecx - 0x38], dx
jmp 0x10003483
jmp 0x1000351d
cmp dword [ebp - 0x44], 0xe7
jne 0x1000351d
push 0x2710
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x10003518
xor al, al
jmp 0x10003526
jmp 0x10003483
xor al, al
jmp 0x10003526
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004084f
mov esp, ebp
pop ebp
ret
Function at 0x10003540
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1009a774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x10a9203b
call fcn.1004081d
cmp dword [ebp + 8], 0
jne 0x1000356d
xor al, al
jmp 0x10003600
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10003580
xor al, al
jmp 0x10003600
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0xffffffff
jne 0x1000358d
xor al, al
jmp 0x10003600
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x100035f6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jb 0x100035f4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x100035ec
mov al, 1
jmp 0x10003600
mov ecx, dword [ebp - 8]
call fcn.10003360
jmp 0x100035fe
mov ecx, dword [ebp - 8]
call fcn.10003360
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004084f
mov esp, ebp
pop ebp
ret 8

Function at 0x10003620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1009a774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x10a9203b
call fcn.1004081d
cmp dword [ebp + 0xc], 0
jne 0x1000364a
mov al, 1
jmp 0x100036b9
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000365a
xor al, al
jmp 0x100036b9
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0xffffffff
jne 0x10003667
xor al, al
jmp 0x100036b9
cmp dword [ebp + 8], 0
jne 0x10003671
xor al, al
jmp 0x100036b9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x100036af
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jne 0x100036af
mov dword [ebp - 0x58], 1
jmp 0x100036b6
mov dword [ebp - 0x58], 0
mov al, byte [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004084f
mov esp, ebp
pop ebp
ret 8
Function at 0x10003b20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1009a774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x10a92052
call fcn.1004081d
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x10003b98
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + ecx]
test eax, eax
je 0x10003b98
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10003b92
mov eax, dword [ebp - 0x10]
jmp 0x10003bd2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x10003bcf
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
je 0x10003bcf
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004084f
mov esp, ebp
pop ebp
ret
Function at 0x10003cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
mov eax, dword [0x1009a774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x10a92052
call fcn.1004081d
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20
lea eax, [ebp - 0x84]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x88]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x10003d4f
push str.Error_opening_Steam_key_n
push 2
call fcn.1005c1d3
add esp, 4
push eax
call fcn.10003f70
add esp, 8
jmp 0x10003e58
mov dword [ebp - 0x298], 0x208
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x294]
push ecx
push 0
push 0
push str.SteamExe
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x8c], 0
jne 0x10003da2
cmp dword [ebp - 0x298], 1
jae 0x10003dbf
push str.Error_reading_SteamExe_key_n
push 2
call fcn.1005c1d3
add esp, 4
push eax
call fcn.10003f70
add esp, 8
jmp 0x10003e58
mov eax, dword [ebp - 0x298]
shr eax, 1
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x2a0], 0
jmp 0x10003de8
mov eax, dword [ebp - 0x2a0]
add eax, 1
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x2a0]
cmp eax, dword [ebp - 0x29c]
jae 0x10003e1e
mov eax, dword [ebp - 0x2a0]
movzx ecx, word [ebp + eax*2 - 0x294]
cmp ecx, 0x2f
jne 0x10003e1c
mov eax, 0x5c
mov ecx, dword [ebp - 0x2a0]
mov word [ebp + ecx*2 - 0x294], ax
jmp 0x10003dd9
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x294]
push ecx
push str.__s__steam:__rungameid__s
push 0x800
lea edx, [ebp - 0xaa0]
push edx
call fcn.100039b0
add esp, 0x14
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.100036d0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004084f
mov esp, ebp
pop ebp
ret

Function at 0x1002b660
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x10a92162
call fcn.1004081d
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1002b694
xor al, al
jmp 0x1002b6ad
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x1002b6ab
xor al, al
jmp 0x1002b6ad
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002ba00
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1009a774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x10a92162
call fcn.1004081d
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 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 - 0x24], 0x1c
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x26], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1002bb1d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jne 0x1002ba8b
mov byte [ebp - 0x25], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x1c]
jne 0x1002ba9a
mov byte [ebp - 0x26], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x20]
jne 0x1002baa9
mov byte [ebp - 0x27], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x24]
jne 0x1002bab8
mov byte [ebp - 0x28], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x28]
jne 0x1002bac7
mov byte [ebp - 0x29], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x2c]
jne 0x1002bad6
mov byte [ebp - 0x2a], 1
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x1002bb08
movzx eax, byte [ebp - 0x26]
test eax, eax
je 0x1002bb08
movzx eax, byte [ebp - 0x27]
test eax, eax
je 0x1002bb08
movzx eax, byte [ebp - 0x28]
test eax, eax
je 0x1002bb08
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x1002bb08
movzx eax, byte [ebp - 0x2a]
test eax, eax
je 0x1002bb08
jmp 0x1002bb1d
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1002ba7c
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x1002bb57
movzx eax, byte [ebp - 0x26]
test eax, eax
je 0x1002bb57
movzx eax, byte [ebp - 0x27]
test eax, eax
je 0x1002bb57
movzx eax, byte [ebp - 0x28]
test eax, eax
je 0x1002bb57
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x1002bb57
movzx eax, byte [ebp - 0x2a]
test eax, eax
jne 0x1002bb5e
mov eax, dword [ebp - 8]
mov byte [eax + 0x31], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004084f
mov esp, ebp
pop ebp
ret