joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104e481
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
push 0x109
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.0104e2a2
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x104e52a
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104e5ed
test byte [ecx + 0x1c], 4
je 0x104e5ed
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push 0x100cf70
push 0x18
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104e22f
jmp 0x104e5ed
mov eax, dword [section..data]
mov esi, 0x100cf70
cmp eax, section..data
je 0x104e56a
test byte [eax + 0x1c], 2
je 0x104e56a
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 1
mov ecx, 0x100cfec
je 0x104e554
mov ecx, 0x100cfdc
lea edx, reloc.Secur32.dll_LsaDeregisterLogonProcess
push edx
push ecx
push esi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010291f1
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x1c]
push 0
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x104e5b0
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104e5ba
test byte [ecx + 0x1c], 4
je 0x104e5ba
push eax
push edi
push dword [ebp - 0x228]
push esi
push 0x1a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01045f05
jmp 0x104e5ba
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 1
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x104e5ed
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104e5ed
test byte [ecx + 0x1c], 4
je 0x104e5ed
push eax
push esi
push 0x1b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101b900
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01041ea8
leave
ret 0x18
Function at 0x104e609
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push ebx
push 0x109
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.0104e2a2
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push 0x20006
push 0
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104e69b
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104e712
test byte [ecx + 0x1c], 2
je 0x104e712
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push 0x100cf70
push 0x1c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104e22f
jmp 0x104e712
push edi
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, 0x100cf70
test eax, eax
je 0x104e6d4
mov eax, dword [section..data]
cmp eax, section..data
je 0x104e6d4
test byte [eax + 0x1c], 2
je 0x104e6d4
push ebx
push esi
push edi
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010291f1
push dword [ebp - 0x220]
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x104e711
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x104e711
test byte [ecx + 0x1c], 4
je 0x104e711
push eax
push edi
push 0x1e
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101b900
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
pop esi
xor ecx, ebp
pop ebx
call fcn.01041ea8
leave
ret 8
Function at 0x104e9bd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
xor eax, eax
cmp dword [ebp + 0x18], 2
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
mov ebx, 0x208
je 0x104ea0b
cmp dword [ebp + 0x18], eax
jne 0x104ea5b
push eax
push eax
push 2
push ebx
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push edi
push esi
push 0x80000001
call fcn.0104e2ed
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
test eax, eax
jne 0x104ea5b
mov eax, dword [section..data]
cmp eax, section..data
je 0x104ea51
test byte [eax + 0x1c], 2
je 0x104ea51
push 0x100cf60
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01017c98
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 1
cmp dword [ebp + 0x18], 1
je 0x104ea70
cmp dword [ebp + 0x18], 2
jne 0x104eab8
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0
je 0x104eab8
push 0
push 0
push 2
push ebx
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push edi
push esi
push 0x80000002
call fcn.0104e2ed
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
test eax, eax
jne 0x104eac1
mov eax, dword [section..data]
cmp eax, section..data
je 0x104eab8
test byte [eax + 0x1c], 2
je 0x104eab8
push 0x100cf60
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01017c98
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0
je 0x104eb10
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call esi
mov ebx, eax
lea edi, [ebx + ebx + 2]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
mov dword [ecx], eax
test eax, eax
je 0x104eb10
push ebx
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call esi
test eax, eax
je 0x104eb10
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
mov dword [eax], edi
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01041ea8
leave
ret 0x14
Function at 0x1055dc3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push esi
push 4
pop esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x100eee0
push 0x80000002
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1055e25
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x100eea0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1055e25
cmp dword [ebp - 0xc], esi
jne 0x1055e25
cmp dword [ebp - 0x10], 1
sete al
mov esi, eax
jmp 0x1055e27
xor esi, esi
cmp dword [ebp - 4], 0
je 0x1055e36
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1055e79
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 8
call sub.Secur32.dll_GetUserNameExW
movzx eax, al
test eax, eax
jne 0x1055eab
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 2
call sub.Secur32.dll_GetUserNameExW
movzx eax, al
leave
ret 8

Function at 0x105920f
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, 0x80004001
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x10592a3
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x10592a3
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x10592a3
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
mov dword [edi], ebx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x10592a8
mov eax, dword [ebp - 8]
mov dword [ebp + 8], eax
cmp eax, 2
jb 0x10592a3
mov edx, dword [ebp - 4]
mov ecx, eax
shr ecx, 1
cmp word [edx + ecx*2 - 2], bx
jne 0x10592a3
push eax
call fcn.01059a10
mov esi, eax
cmp esi, ebx
jne 0x105928e
mov esi, 0x8007000e
jmp 0x10592a8
push dword [ebp + 8]
push dword [ebp - 4]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [edi], esi
xor esi, esi
jmp 0x10592a8
mov esi, 0x80070057
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10592c5
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x10592bc
mov byte [eax], bl
inc eax
dec ecx
jne 0x10592b6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10592d3
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 0x80004005
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
je 0x105934a
cmp dword [ebp + 0xc], edi
je 0x105934a
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x105934a
mov esi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
lea eax, [ebp - 8]
push eax
push edi
push 1
push dword [ebp + 0xc]
mov dword [ebx], edi
push dword [ebp + 8]
call esi
test eax, eax
je 0x105935b
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.01059a10
mov edi, eax
test edi, edi
jne 0x105932f
mov dword [ebp - 4], reloc.Secur32.dll_LsaDeregisterLogonProcess
jmp 0x1059351
lea eax, [ebp - 8]
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x1059351
and dword [ebp - 4], 0
mov dword [ebx], edi
jmp 0x105935b
mov dword [ebp - 4], reloc.Secur32.dll_LsaDeregisterLogonProcess
test edi, edi
je 0x105935b
push edi
call fcn.01059a28
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x105936a
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0xc], 0x80004005
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x10593f1
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10593f1
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x10593f1
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
push esi
push esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push esi
push 1
push esi
push dword [ebp + 8]
mov dword [ebx], esi
call edi
test eax, eax
je 0x1059405
push dword [ebp - 4]
call fcn.01059a10
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x10593cc
mov dword [ebp - 0xc], reloc.Secur32.dll_LsaDeregisterLogonProcess
jmp 0x10593f8
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push 1
push esi
push dword [ebp + 8]
call edi
test eax, eax
je 0x10593f8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov dword [ebp - 0xc], esi
jmp 0x1059405
mov dword [ebp - 0xc], reloc.Secur32.dll_LsaDeregisterLogonProcess
cmp dword [ebp - 8], esi
je 0x1059405
push dword [ebp - 8]
call fcn.01059a28
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x105947a
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
je 0x1059517
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x1059517
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x1059517
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push 0xfffffffffffffffe
push dword [ebp + 8]
mov dword [ebx], esi
call fcn.0101a37b
mov edi, eax
cmp edi, esi
jl 0x105952a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
inc eax
inc eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push 1
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x105951c
mov edi, dword [ebp - 0xc]
push edi
call fcn.01059a10
mov esi, eax
test esi, esi
jne 0x10594fd
mov edi, 0x8007000e
jmp 0x1059513
push edi
push dword [ebp - 8]
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
add esp, 0xc
mov dword [ebx], edi
xor edi, edi
xor esi, esi
jmp 0x105951c
mov edi, 0x80070057
cmp dword [ebp - 8], esi
je 0x105952a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1059d32
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.01041ea8
leave
ret
Function at 0x105b3e2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x14
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
cmp edi, ebx
jne 0x105b413
push 3
pop eax
jmp 0x105b507
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
mov edi, 0x1010014
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x105b45a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push 0x1010008
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x105b468
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
cmp eax, ebx
jne 0x105b4c0
cmp dword [ebp - 8], 2
jne 0x105b48c
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x100fffc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], 1
je 0x105b49c
cmp eax, ebx
jne 0x105b49c
cmp dword [ebp - 0x10], 0x14
je 0x105b4f5
cmp dword [ebp - 0x14], ebx
je 0x105b4c5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x105b4c5
push 0x13
pop eax
jmp 0x105b506
push dword [ebp + 8]
call fcn.0105b32d
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x105b4f5
push 0x14
push dword [ebp + 8]
push 3
push ebx
push 0x100fffc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x105b4f5
mov dword [ebp - 0xc], 0x15
cmp dword [ebp - 4], ebx
je 0x105b503
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x105ccec
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x105cd28
xor eax, eax
jmp 0x105cd53
test eax, eax
jle 0x105cd38
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x105cd53
cmp dword [ebp + 0x10], 4
je 0x105cd47
mov eax, 0x8007000d
jmp 0x105cd53
cmp dword [ebp - 4], 0
jne 0x105cd53
mov dword [edi], 1
pop edi
leave
ret 0xc

Function at 0x105cd5d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp + 8]
mov dword [esi], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x105cd9c
xor eax, eax
jmp 0x105cdc4
test eax, eax
jle 0x105cdac
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x105cdc4
cmp dword [ebp + 0x10], 4
je 0x105cdbb
mov eax, 0x8007000d
jmp 0x105cdc4
cmp dword [ebp - 4], 0
jne 0x105cdc4
and dword [esi], 0
pop esi
leave
ret 0xc
Function at 0x105d55d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x10630b0], edi
jne 0x105d679
push esi
mov esi, 0x11c
push esi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x105d5c4
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0x114
call esi
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
dec eax
mov dword [0x10630b0], edi
pop esi
je 0x105d64c
dec eax
jne 0x105d679
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 5
jne 0x105d639
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
sub eax, edi
je 0x105d62d
dec eax
je 0x105d61a
dec eax
je 0x105d600
mov dword [0x10630b0], 0x14
jmp 0x105d679
cmp word [ebp - 0xc], 1
jb 0x105d611
mov dword [0x10630b0], 0x10
or dword [0x10630b0], 4
jmp 0x105d679
cmp word [ebp - 0xc], 2
jb 0x105d611
mov dword [0x10630b0], 8
jmp 0x105d611
mov dword [0x10630b0], 4
jmp 0x105d679
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 4
ja 0x105d68b
mov dword [0x10630b0], 2
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 4
jne 0x105d679
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], edi
je 0x105d66f
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0xa
je 0x105d66f
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0x5a
jne 0x105d679
mov dword [0x10630b0], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10630b0]
xor ecx, ebp
pop edi
call fcn.01041ea8
leave
ret
mov dword [0x10630b0], 0x20
jmp 0x105d679

Function at 0x105d69c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x105d6f0
push 3
lea eax, [ebp - 0x44]
push 0x1014310
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01041ea8
leave
ret
Function at 0x105d705
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x10630b4]
jne 0x105d7a0
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1014240
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105d79f
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10142f8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x105d79f
push 3
push dword [esi*8 + 0x1014090]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x105d791
inc esi
cmp esi, 0x1c
jb 0x105d770
jmp 0x105d79f
mov ax, word [esi*8 + 0x1014094]
mov word [0x10630b4], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x10630b4]
xor ecx, ebp
call fcn.01041ea8
leave
ret
Function at 0x445048
Capabilities:
Check for vm using instruction vpcext

Disassembly:
jecxz 0x44507e
sbb al, 0xb
movq mm2, mm3
cmp eax, 0x649d28c5
and eax, ebp
invalid
fstp xword [ebp - 0x186e1049]
mov ecx, 0xce74277f
dec edx
sbb eax, 0xcfce8471
cmp ebx, dword [ecx - 0x63a76235]
invalid

Function at 0x629cf9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x632398
cmp edx, dword [eax]
je 0x629d1b
add eax, 8
inc ecx
cmp eax, 0x632428
jl 0x629d0c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x632398]
jne 0x629e49
mov eax, dword [0x639d20]
cmp eax, 1
je 0x629e23
test eax, eax
jne 0x629d4c
cmp dword [0x6322c0], 1
je 0x629e23
cmp edx, 0xfc
je 0x629e49
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x629d83
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062a6e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062ab70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x629dc6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062ab70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ea4c
push edi
call fcn.0062ca40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062a6e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062a6f0
lea eax, [ebp - 0xa0]
push 0x62ea2c
push eax
call fcn.0062a6f0
push dword [esi + 0x63239c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062a6f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062c9b4
add esp, 0x2c
pop edi
jmp 0x629e49
lea eax, [ebp + 8]
lea esi, [esi + 0x63239c]
push 0
push eax
push dword [esi]
call fcn.0062ab70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret