joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f60c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x399f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4116ec]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4116ec]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x29c]
cmp dword [ebp + 0x10], 0
je 0x1f627c
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x7e]
push ecx
mov word [esp + 0x80], ax
call fcn.0033e420
add esp, 0xc
push 0x104
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x74]
push 0x5c
push eax
call fcn.0033a0b4
add esp, 8
test eax, eax
je 0x1f6154
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x74]
lea edx, [eax + 2]
jmp 0x1f6160
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1f6160
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + 0x78]
push 0x3c8ad4
push eax
call fcn.00339f23
xor ecx, ecx
add esp, 0xc
cmp dword [ebp + 0x14], 0x10
mov word [esp + 0x27a], cx
jb 0x1f619e
mov eax, dword [ebp]
jmp 0x1f61a0
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov esi, eax
test esi, esi
je 0x1f627c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00337a7c
add esp, 4
mov edi, eax
cmp dword [ebp + 0x14], 0x10
jb 0x1f61e4
mov ebp, dword [ebp]
push esi
push edi
or esi, 0xffffffff
push esi
push ebp
push 0
push 0xfde9
call ebx
test eax, eax
je 0x1f626c
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0033e420
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1f625c
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x1c]
push eax
call ebx
jmp 0x1f626c
push 0x10
push str.Fatal_error
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
mov dword [esp + 0x298], esi
call fcn.00339081
add esp, 4
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00338a41
add esp, 0x284
ret
Function at 0x1f62d0
Capabilities:
Print debug messages
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x39d653
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4116ec]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
mov eax, dword [0x4116ec]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x58], 0
mov eax, dword [edi]
cmp eax, dword [0x42d448]
jl 0x1f64f0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 8]
call fcn.001f6f30
push 2
mov ebx, 1
push 0x3c8b18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], bl
call fcn.001f78a0
cmp dword [0x42d44c], 0
lea ebp, [ebx + 0xf]
je 0x1f6362
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], ebp
jae 0x1f635b
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x42d44c], ebx
je 0x1f63d8
call fcn.001f6000
test al, al
je 0x1f63d8
cmp byte [0x42d55a], 0
jne 0x1f638d
push 0x42d3dc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x42d55a], bl
push 0x42d3dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x42d554]
push 2
push 0
push edx
call fcn.0033a67f
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [esp + 0x28], ebp
jae 0x1f63b9
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x42d554]
push 0x3c8b1c
push eax
call fcn.0033a1b5
add esp, 0xc
push 0x42d3dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi], 3
jne 0x1f64c3
mov ecx, dword [0x42d554]
push ecx
call fcn.00339ec7
add esp, 4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1f6405
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x1f64c3
cmp dword [0x42d55c], 0
je 0x1f643c
lea edx, [esp + 0x30]
push edx
lea ecx, [edi + 8]
call fcn.001f6f30
push eax
mov byte [esp + 0x5c], 2
call dword [0x42d55c]
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], bl
call fcn.002b0ca0
jmp 0x1f64c3
mov eax, dword [0x414e74]
cmp byte [eax], 0
jne 0x1f6470
lea ecx, [esp + 0x30]
push ecx
lea ecx, [edi + 8]
call fcn.001f6f30
push eax
mov byte [esp + 0x5c], 3
call fcn.001f60c0
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], bl
call fcn.002b0ca0
jmp 0x1f64b5
lea edx, [esp + 0x30]
push edx
lea ecx, [edi + 8]
call fcn.001f6f30
cmp dword [eax + 0x14], ebp
jb 0x1f6484
mov eax, dword [eax]
push eax
push 0x3c8b20
call fcn.00339acd
add eax, 0x40
push eax
call fcn.0033a1b5
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.002b0ca0
call fcn.00339acd
add eax, 0x40
push eax
call fcn.00339ec7
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [esp + 0x58], 0
cmp dword [esp + 0x28], ebp
jb 0x1f64db
mov eax, dword [esp + 0x14]
push eax
call fcn.00338a36
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea esi, [edi + 0x68]
mov ecx, esi
mov dword [esp + 0x58], 0xffffffff
call fcn.001f6e90
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.00337cfc
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00338a41
add esp, 0x4c
ret
Function at 0x1f8ac0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x39aff6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4116ec]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0033812f
push 4
mov dword [esp + 0x28], 0
call fcn.00338a50
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov byte [esp + 0x24], 1
test edi, edi
je 0x1f8b4b
call fcn.00338007
mov dword [edi], eax
call fcn.00337dc6
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.003380f0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x1f8b40
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00338118
jmp 0x1f8b4d
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x1fba00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x39bf58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4116ec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x30], 0x10
jb 0x1fba41
mov eax, dword [esi + 0x1c]
push eax
call fcn.00338a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x1fba67
mov eax, dword [esi]
push eax
call fcn.00338a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x1fd150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x39ae18
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4116ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x30], 0x10
jb 0x1fd18e
mov eax, dword [esi + 0x1c]
push eax
call fcn.00338a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x1fd1b4
mov eax, dword [esi]
push eax
call fcn.00338a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x1fe050
Capabilities:
Create thread

Disassembly:
push esi
push 8
call fcn.00338a50
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x1fe020
test edi, edi
push 0
setne cl
push 0
mov dword [esi], eax
mov byte [esi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1fe090
push esi
call fcn.00338a36
add esp, 4
xor al, al
pop esi
ret
test edi, edi
je 0x1fe09a
mov dword [edi], eax
mov al, 1
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x1fe0b0
Capabilities:
Create thread

Disassembly:
push esi
push 8
call fcn.00338a50
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x1fe020
push 0
push 0
mov dword [esi], eax
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1fe0ec
push esi
call fcn.00338a36
add esp, 4
xor al, al
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x1fe100
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4116ec]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp byte [0x42dcbd], 0
jne 0x1fe1af
lea eax, [esp]
push eax
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
mov ecx, 1
cmp eax, 5
jne 0x1fe16e
mov eax, dword [esp + 8]
sub eax, 0
je 0x1fe166
sub eax, ecx
je 0x1fe15a
mov dword [0x42dcc0], 3
jmp 0x1fe1a9
mov dword [0x42dcc0], 2
jmp 0x1fe1a9
mov dword [0x42dcc0], ecx
jmp 0x1fe1a9
cmp eax, 6
jne 0x1fe19d
cmp byte [esp + 0x11a], cl
je 0x1fe188
mov dword [0x42dcc0], 5
jmp 0x1fe1a9
xor edx, edx
cmp dword [esp + 8], edx
setne dl
lea edx, [edx + edx + 4]
mov dword [0x42dcc0], edx
jmp 0x1fe1a9
jbe 0x1fe1a9
mov dword [0x42dcc0], 6
mov byte [0x42dcbd], cl
mov ecx, dword [esp + 0x11c]
mov eax, dword [0x42dcc0]
xor ecx, esp
call fcn.00338a41
add esp, 0x120
ret
Function at 0x1fe900
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x3a4143
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4116ec]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push ebp
push esi
mov eax, dword [0x4116ec]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x288]
xor esi, esi
push 0x206
lea ecx, [esp + 0x72]
xor eax, eax
push esi
mov dword [esp + 0x18], esi
push ecx
mov dword [esp + 0x20], edi
mov word [esp + 0x78], ax
call fcn.0033e420
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1fe99a
push esi
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
push 0x3c8868
mov ecx, edi
mov word [edi], ax
call fcn.001f1d20
jmp 0x1feaad
xor ecx, ecx
push 0x19
mov word [esp + 0x38], cx
mov ebx, 7
push str.GoogleGoogle_Input_Tools
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], esi
call fcn.001f1d20
mov dword [esp + 0x280], 1
xor edx, edx
lea eax, [esp + 0x6c]
mov dword [esp + 0x2c], ebx
mov word [esp + 0x18], dx
mov dword [esp + 0x28], esi
lea edx, [eax + 2]
mov ebx, 2
mov cx, word [eax]
add eax, ebx
cmp cx, si
jne 0x1fe9e4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x20]
call fcn.001f1d20
lea edx, [esp + 0x34]
lea ecx, [esp + 0x18]
lea esi, [esp + 0x50]
mov byte [esp + 0x280], bl
call fcn.001fe690
mov edx, ebp
mov ecx, eax
mov esi, edi
mov byte [esp + 0x280], 3
call fcn.001fe690
mov esi, 8
mov byte [esp + 0x280], bl
mov dword [esp + 0x10], 1
cmp dword [esp + 0x64], esi
jb 0x1fea53
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00338a36
add esp, 4
xor ebp, ebp
xor edx, edx
mov ebx, 7
mov byte [esp + 0x280], 1
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], dx
cmp dword [esp + 0x2c], esi
jb 0x1fea84
mov eax, dword [esp + 0x18]
push eax
call fcn.00338a36
add esp, 4
xor ecx, ecx
mov byte [esp + 0x280], cl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], cx
cmp dword [esp + 0x48], esi
jb 0x1feaad
mov edx, dword [esp + 0x34]
push edx
call fcn.00338a36
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00338a41
add esp, 0x274
ret
Function at 0x1ffe40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1ffe57
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1ffe86
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x1ffe82
cmp esi, eax
jae 0x1ffe86
dec edi
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x1ffe74
cmp esi, eax
jb 0x1ffe8c
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x2000c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2000f9
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x200710
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x3a2978
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4116ec]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x200741
mov eax, dword [edi]
jmp 0x200743
mov eax, edi
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov eax, dword [ebx]
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x20083d
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x200792
cmp eax, 2
je 0x200792
mov eax, 0xd
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
mov eax, dword [esp + 0xc]
shr eax, 1
inc eax
xor ecx, ecx
mov dword [esp + 0x14], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00337a7c
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], 0
cmp dword [edi + 0x14], 8
jb 0x2007cc
mov edi, dword [edi]
push edi
push ebx
lea edi, [esp + 0x1c]
call fcn.00200890
mov edi, eax
test edi, edi
je 0x200804
push esi
mov dword [esp + 0x28], 0xffffffff
call fcn.00339081
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x200810
mov ecx, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.001f1d20
push esi
mov dword [esp + 0x28], 0xffffffff
call fcn.00339081
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
Function at 0x200860
Capabilities:
Query or enumerate registry value

Disassembly:
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x20088d
mov eax, dword [esp + 8]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
ret 8

Function at 0x200890
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2008fe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x2008cf
cmp eax, 2
jne 0x2008ea
mov eax, dword [esp]
test esi, esi
je 0x2008f8
test eax, eax
je 0x2008f3
test al, 1
jne 0x2008ea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x2008f8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x2009e0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x210
mov eax, dword [0x4116ec]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0033e420
add esp, 0xc
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x200a56
lea ecx, [esp + 4]
push str.SYSTEM
push ecx
call fcn.0033bc3c
add esp, 8
test eax, eax
jne 0x200a56
mov al, 1
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00338a41
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
xor al, al
call fcn.00338a41
add esp, 0x210
ret

Function at 0x203410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x39ae18
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4116ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x30], 0x10
jb 0x20344e
mov eax, dword [esi + 0x1c]
push eax
call fcn.00338a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x203474
mov eax, dword [esi]
push eax
call fcn.00338a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x2034b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x39bf58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4116ec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea esi, [ecx + 4]
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x30], 0x10
jb 0x2034f2
mov eax, dword [esi + 0x1c]
push eax
call fcn.00338a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x203518
mov eax, dword [esi]
push eax
call fcn.00338a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x204810
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x3abfc6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4116ec]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4116ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
push 0x180
xor esi, esi
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], esi
call fcn.00205010
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], esi
mov ebx, 0x40
or dword [edi + 0x28], ebx
cmp dword [edi + 0x20], esi
jne 0x2048a6
push 0x130
call fcn.00338a50
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x38], 1
cmp eax, esi
je 0x20489c
push eax
call fcn.00223050
jmp 0x20489e
xor eax, eax
mov byte [esp + 0x38], 0
mov dword [edi + 0x20], eax
mov esi, dword [edi + 0x20]
lea esi, [esi + 0x44]
call fcn.00203ff0
push 0xffffffffffffffff
push 0
push ebp
mov ecx, eax
call fcn.001f9870
or dword [edi + 0x28], ebx
cmp dword [edi + 0x20], 0
jne 0x2048f2
push 0x130
call fcn.00338a50
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x38], 2
test eax, eax
je 0x2048e8
push eax
call fcn.00223050
jmp 0x2048ea
xor eax, eax
mov byte [esp + 0x38], 0
mov dword [edi + 0x20], eax
mov esi, dword [edi + 0x20]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
cmp eax, ecx
jge 0x20490d
mov edx, dword [esi + 0x64]
mov ecx, dword [edx + eax*4]
inc eax
mov dword [esi + 0x68], eax
mov esi, ecx
jmp 0x204939
mov eax, dword [esi + 0x70]
cmp ecx, eax
jne 0x20491e
inc eax
push eax
lea eax, [esi + 0x64]
call fcn.002b1990
mov ebx, 1
add dword [esi + 0x6c], ebx
call fcn.00205520
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x64]
mov dword [edx + ecx*4], eax
add dword [esi + 0x68], ebx
mov esi, eax
mov ebx, dword [esp + 0x24]
cmp ebx, esi
je 0x204953
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov edx, ebx
mov ecx, esi
call fcn.00211130
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x20], 0
call fcn.00204f30
test eax, eax
jne 0x20496d
xor al, al
jmp 0x204993
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x20497d
mov ecx, dword [0x42d70c]
mov ecx, dword [ecx + 0x20]
mov edx, dword [ecx + 0x18]
mov bl, byte [edx]
mov byte [esp + 0x38], 0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00338a41
add esp, 0x28
ret 8