joyce8/EMBER2024-capa huggingface dataset:
Function at 0x19e7ce1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x19f17b29
call fcn.19e71017
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x19e7ce73
call fcn.19e7b27a
mov esi, eax
jmp 0x19e7cf7c
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x19e7ce8c
call fcn.19e7b27a
jmp 0x19e7cf6e
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x19e7ce82
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x19e7cef2
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x19e7ced8
lea ecx, [ebp - 0x418]
call fcn.19e7bb46
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.19e7ba55
mov eax, esi
call fcn.19e71082
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.19e7c12c
mov dword [ebp - 4], 1
jmp 0x19e7cf20
cmp dword [ebp - 0x418], esi
jne 0x19e7cf2f
mov esi, 0x8007000e
jmp 0x19e7cf70
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x19e7ce82
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.19e7ccdd
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x19e7cedd
lea ecx, [ebp - 0x418]
call fcn.19e7bb46
jmp 0x19e7cedd
Function at 0x19e8026f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], 0x80004005
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x19e8039c
cmp dword [ebp + 8], edi
je 0x19e8039c
push esi
push 0x144
push edi
push ebx
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20119
push edi
push dword [0x19f200c0]
push 0x80000002
call esi
test eax, eax
jne 0x19e8037c
lea eax, [ebp - 4]
push eax
push 0x20119
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x19e8037c
mov esi, dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
lea ecx, [ebp + 0xc]
push ecx
lea eax, [ebx + 0x44]
push eax
push edi
push edi
push 0x19e63c0c
push dword [ebp - 4]
mov dword [ebp + 0xc], 0x80
call esi
test eax, eax
je 0x19e80316
xor eax, eax
mov word [ebx + 0x44], ax
lea ecx, [ebp + 0xc]
push ecx
lea eax, [ebx + 4]
push eax
push edi
push edi
push 0x19e63bf4
push dword [ebp - 4]
mov dword [ebp + 0xc], 0x40
call esi
test eax, eax
je 0x19e8033b
xor eax, eax
mov word [ebx + 4], ax
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
push edi
push 0x19e63bbc
push dword [ebp - 4]
mov dword [ebp + 0xc], 4
call esi
test eax, eax
jne 0x19e8037c
lea eax, [ebp + 0xc]
push eax
add ebx, 0xc4
push ebx
push edi
push edi
push 0x19e63b90
push dword [ebp - 4]
mov dword [ebp + 0xc], 0x80
call esi
test eax, eax
jne 0x19e8037c
mov dword [ebp - 0xc], edi
mov esi, dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x19e8038c
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], edi
je 0x19e80396
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0xc]
pop esi
jmp 0x19e803a1
mov eax, 0x80004003
pop edi
pop ebx
leave
ret 8

Function at 0x19e80559
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push 0x20106
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x19e805ae
push edi
push 4
push dword [ebp + 0x14]
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov edi, eax
cmp edi, esi
je 0x19e805a7
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, edi
jmp 0x19e805ad
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x19e805b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x19e80622
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x19e80616
cmp dword [ebp + 0xc], 4
jne 0x19e80616
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
jmp 0x19e80621
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x19e8062b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 4], 4
test esi, esi
jne 0x19e80645
push 6
pop eax
jmp 0x19e806a4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [esi]
call edi
test eax, eax
jne 0x19e8066a
cmp dword [ebp + 0x18], 4
je 0x19e806a3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
push esi
push 0x20119
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
je 0x19e8068f
and dword [esi], 0
jmp 0x19e806a3
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [esi]
call edi
pop edi
pop esi
leave
ret 0x14

Function at 0x19e81a1b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x19f20004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.19e819b0
mov eax, 0x19e60000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x19e81a8e
cmp dword [ebp - 0x94], 5
jb 0x19e81aaf
jmp 0x19e81aab
cmp dword [ebp - 0x88], 1
jne 0x19e81aaf
cmp dword [ebp - 0x94], 4
ja 0x19e81aab
jne 0x19e81aaf
cmp dword [ebp - 0x90], 0
jbe 0x19e81aaf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x19e63df0
call fcn.19e7acd6
test eax, eax
jge 0x19e81ad0
mov byte [0x19f21324], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.19e70f3c
leave
ret
Function at 0x19ea5b5e
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x19f180f3
call fcn.19e70fdc
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x19ea5c4d
cmp byte [esi + 0x41], bl
je 0x19ea5c4d
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x19ea5b93
xor al, al
jmp 0x19ea5c4f
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.19ea5b2f
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.19ea4965
mov edi, dword [eax]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.19ea4965
mov eax, dword [eax]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x18]
add ebx, edi
push ebx
push eax
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x19ea5bf2
dec eax
je 0x19ea5bf6
dec eax
dec eax
je 0x19ea5c49
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.19e882a8
mov al, bl
jmp 0x19ea5c4f
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.19ea4965
mov edi, dword [ebp - 0x30]
sub edi, dword [eax]
je 0x19ea5c2b
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.19ea4965
push dword [esi + 0x4c]
mov eax, dword [eax]
push edi
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x19ea5be0
cmp byte [esi + 0x41], 0
je 0x19ea5c49
test edi, edi
jne 0x19ea5ba1
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.19ea517d
jmp 0x19ea5ba1
mov bl, 1
jmp 0x19ea5be2
mov al, 1
call fcn.19e7106e
ret
Function at 0x19eca69b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
xor ebx, ebx
mov edi, 0x20119
push edi
push ebx
push dword [0x19f20240]
mov dword [ebp - 8], ebx
push 0x80000002
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 4
mov byte [ebp - 1], 1
call esi
test eax, eax
jne 0x19eca70e
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x19eca70e
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push ebx
push ebx
push 0x19e6623c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
je 0x19eca711
mov byte [ebp - 1], bl
mov esi, dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x19eca721
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x19eca72b
push dword [ebp - 0xc]
call esi
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x19eca79f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
mov edi, 0x20119
push edi
push ebx
push dword [0x19f20240]
mov dword [ebp - 4], ebx
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 4
call esi
test eax, eax
jne 0x19eca80a
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x19eca80a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
je 0x19eca80d
mov dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x19eca81d
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x19eca827
push dword [ebp - 8]
call esi
xor eax, eax
cmp eax, dword [ebp - 0xc]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
leave
ret 8
Function at 0x19ecc0a6
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [esi + 4]
push edi
test ebx, ebx
jl 0x19ecc1bc
cmp ebx, 0x1000000
jae 0x19ecc1bc
lea eax, [ecx + 0x90]
cmp eax, ecx
jl 0x19ecc1bc
add ecx, 0x10
xor eax, eax
cmp ecx, dword [eax*4 + 0x19e66598]
jl 0x19ecc0e9
inc eax
cmp eax, 6
jl 0x19ecc0d8
jmp 0x19ecc0f4
mov edi, dword [eax*4 + 0x19e66598]
test edi, edi
jne 0x19ecc105
lea eax, [ecx + 0x7f]
cdq
and edx, 0x7f
add eax, edx
mov edi, eax
sar edi, 7
shl edi, 7
cmp edi, 0xfffffff
jae 0x19ecc1bc
mov eax, edi
shl eax, 3
push eax
push dword [esi]
call fcn.19e717a6
test eax, eax
je 0x19ecc1bc
mov ecx, dword [esi + 0xc]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [ebp - 4], ebx
cmp ecx, 0xffffffff
jne 0x19ecc150
lea ecx, [eax + ebx*8]
mov eax, dword [0x19f21684]
mov dword [ecx], eax
mov eax, dword [0x19f21688]
mov dword [ecx + 4], eax
mov dword [esi + 0xc], ebx
lea eax, [ebx + 1]
jmp 0x19ecc16a
lea ecx, [eax + ecx*8]
mov edx, dword [ecx + 4]
shr edx, 0xa
lea ebx, [edx - 1]
cmp ebx, 0xffffffff
je 0x19ecc167
lea ecx, [eax + edx*8 - 8]
jmp 0x19ecc153
mov eax, dword [ebp - 4]
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x19ecc1b0
lea edx, [eax + 1]
shl edx, 0xa
mov eax, dword [esi]
mov ebx, dword [ebp - 4]
lea eax, [eax + ebx*8]
mov ebx, dword [0x19f21684]
mov dword [eax], ebx
mov ebx, dword [0x19f21688]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 4]
xor ebx, edx
and ebx, 0x3ff
xor ebx, edx
inc dword [ebp - 4]
add edx, 0x400
cmp dword [ebp - 4], edi
mov dword [ecx + 4], ebx
mov ecx, eax
jl 0x19ecc177
and dword [ecx + 4], 0x3ff
xor eax, eax
inc eax
jmp 0x19ecc1be
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x19ece1f7
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x83c
mov eax, dword [0x19f20004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
push 0x19e66608
mov dword [ebp - 0x83c], eax
add eax, 0x1a0
push eax
push dword [0x19f2025c]
mov esi, 0x104
push 0x19e6663c
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.19ecdf8b
add esp, 0x18
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x82c]
push eax
push 0x20119
xor ebx, ebx
push ebx
lea eax, [ebp - 0x824]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x19ece336
and dword [ebp - 0x828], ebx
mov edi, 0x208
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x830], esi
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x838]
push eax
push 0
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x61c]
push eax
push ebx
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x19ece32a
cmp dword [ebp - 0x838], 1
jne 0x19ece310
push 8
lea eax, [ebp - 0x61c]
push eax
push 0x19e66628
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x19ece310
mov ecx, dword [ebp - 0x83c]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.19ecdfea
test eax, eax
jl 0x19ece310
inc dword [ebp - 0x828]
inc ebx
cmp dword [ebp - 0x828], 0x20
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x830], esi
jb 0x19ece293
push dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.19e70f3c
leave
ret 8
Function at 0x19ecfdd5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x19f20004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x68], eax
xor eax, eax
xor ebx, ebx
push 0x4c
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push ebx
push eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x64], 4
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x27
lea eax, [ebp - 0x54]
push eax
push esi
mov dword [ebp - 0x58], 1
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x60]
push eax
mov edi, 0x20119
push edi
push ebx
push dword [0x19f2026c]
push 0x80000002
call esi
test eax, eax
jne 0x19ecfe7b
lea eax, [ebp - 0x5c]
push eax
push edi
push ebx
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x60]
call esi
test eax, eax
jne 0x19ecfe7b
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
push ebx
push ebx
push 0x19e63bbc
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
je 0x19ecfe7e
mov dword [ebp - 0x58], ebx
mov esi, dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp dword [ebp - 0x60], ebx
je 0x19ecfe95
push dword [ebp - 0x60]
call esi
test eax, eax
je 0x19ecfe95
mov dword [ebp - 0x58], ebx
cmp dword [ebp - 0x5c], ebx
je 0x19ecfea6
push dword [ebp - 0x5c]
call esi
test eax, eax
je 0x19ecfea6
mov dword [ebp - 0x58], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x58]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.19e70f3c
leave
ret 8
Function at 0x19ed4730
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 8], edi
jne 0x19ed4748
xor eax, eax
jmp 0x19ed480c
cmp dword [esi + 8], edi
jne 0x19ed4741
push ebx
push edi
mov ebx, 0x80
push ebx
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x19ed4819
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, edi
je 0x19ed4812
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
cmp eax, edi
je 0x19ed4812
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
cmp eax, ebx
jb 0x19ed4812
mov ebx, dword [esi + 8]
mov ecx, ebx
call fcn.19ed46c7
test eax, eax
je 0x19ed4812
cmp dword [ebx + 4], 1
ja 0x19ed4812
mov eax, dword [ebx + 0x64]
lea edx, [eax + 2]
shl edx, 6
mov dword [ebp - 4], eax
cmp dword [ebp + 8], edx
jb 0x19ed4812
cmp dword [ebx + 0x60], 1
ja 0x19ed4812
cmp eax, edi
jbe 0x19ed4808
lea eax, [ebx + 0x8c]
mov ecx, dword [eax]
lea ebx, [ecx + edx]
cmp dword [ebp + 8], ebx
jb 0x19ed4812
mov ebx, dword [eax + 4]
add ebx, ecx
add ebx, edx
cmp dword [ebp + 8], ebx
jb 0x19ed4812
cmp dword [eax - 0xc], 1
ja 0x19ed4812
inc edi
add eax, 0x40
cmp edi, dword [ebp - 4]
jb 0x19ed47e3
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret 4
mov ecx, esi
call fcn.19ed4686
xor eax, eax
jmp 0x19ed480b
Function at 0x19ed4889
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x19f20004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x410], ecx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x408]
push ecx
xor ecx, ecx
cmp byte [ebp + 0x1c], bl
mov dword [ebp - 0x408], ebx
sete cl
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x414], 0x400
dec ecx
and ecx, 0x100
add ecx, 0x20019
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x19ed497e
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push edi
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x19ed4972
cmp dword [ebp - 0x40c], 2
jne 0x19ed4941
push dword [ebp + 0x18]
lea eax, [ebp - 0x404]
push dword [ebp - 0x410]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
jmp 0x19ed495f
cmp dword [ebp - 0x40c], 1
jne 0x19ed4972
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x410]
call fcn.19e733b4
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
jmp 0x19ed4980
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.19e70f3c
leave
ret 0x18
Function at 0x19ed4996
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x19f20004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x25c], edi
cmp eax, edi
jne 0x19ed49e9
xor eax, eax
jmp 0x19ed4b2e
cmp edx, edi
je 0x19ed49e2
push 0x27
lea eax, [ebp - 0x54]
push eax
push ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, 0x27
jne 0x19ed49e2
push ebx
push esi
push dword [0x19f202a4]
mov esi, 0x100
push esi
lea eax, [ebp - 0x254]
push eax
call fcn.19e733b4
mov ebx, 0x19e61a94
push ebx
push esi
lea eax, [ebp - 0x254]
push eax
call fcn.19e733ee
lea eax, [ebp - 0x54]
push eax
push esi
lea eax, [ebp - 0x254]
push eax
call fcn.19e733ee
cmp dword [ebp - 0x264], edi
je 0x19ed4a66
push ebx
push esi
lea eax, [ebp - 0x254]
push eax
call fcn.19e733ee
push dword [ebp - 0x264]
lea eax, [ebp - 0x254]
push esi
push eax
call fcn.19e733ee
lea eax, [ebp - 0x258]
push eax
push 0x20119
push edi
lea eax, [ebp - 0x254]
push eax
push 0x80000002
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x19ed4b6a
mov esi, dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
lea eax, [ebp - 0x25c]
push eax
push edi
lea eax, [ebp - 0x268]
push eax
push edi
push dword [ebp - 0x260]
push dword [ebp - 0x258]
call esi
test eax, eax
jne 0x19ed4b5e
cmp dword [ebp - 0x268], 3
jne 0x19ed4b5e
mov eax, dword [ebp - 0x25c]
cmp eax, dword [ebp + 0x18]
jbe 0x19ed4b3d
push 1
push eax
call fcn.19e717c2
mov ebx, eax
cmp ebx, edi
je 0x19ed4b5e
lea eax, [ebp - 0x25c]
push eax
push ebx
push edi
push edi
push dword [ebp - 0x260]
push dword [ebp - 0x258]
call esi
test eax, eax
je 0x19ed4b03
push ebx
call fcn.19e7b168
jmp 0x19ed4b5e
push dword [ebp + 0x18]
push ebx
push dword [ebp - 0x26c]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
call fcn.19e7b168
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.19e70f3c
leave
ret 0x14
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x26c]
push edi
push edi
push dword [ebp - 0x260]
push dword [ebp - 0x258]
call esi
test eax, eax
je 0x19ed4b1b
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
xor eax, eax
jmp 0x19ed4b2c
Function at 0x19eede64
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
lea eax, [ebp - 0x44]
push eax
mov edi, ecx
mov dword [ebp - 0x44], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [edi + 0x58]
mov dword [ebp - 4], eax
test eax, eax
jle 0x19eedf2d
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x19eedeed
mov edx, dword [edi + 0x44]
test edx, edx
je 0x19eedeed
xor eax, eax
xor esi, esi
cmp dword [edi + 0x38], eax
jbe 0x19eedeed
push ebx
mov ebx, dword [edi + 0x38]
sub edx, ecx
add esi, dword [edx + ecx]
add eax, dword [ecx]
add ecx, 4
dec ebx
jne 0x19eedeac
pop ebx
test esi, esi
jle 0x19eedeed
cdq
idiv esi
xor ecx, ecx
inc ecx
cmp eax, ecx
jle 0x19eedec8
mov ecx, eax
mov eax, 0x7fffffff
cdq
idiv ecx
cmp dword [ebp - 4], eax
jle 0x19eededc
or eax, 0xffffffff
xor edx, edx
jmp 0x19eedeff
mov eax, dword [ebp - 4]
imul eax, ecx
cdq
test edx, edx
ja 0x19eedeff
jb 0x19eedeed
test eax, eax
ja 0x19eedeff
mov eax, dword [edi + 0x5c]
imul eax, dword [ebp - 4]
shl eax, 2
xor edx, edx
ja 0x19eedeff
test eax, eax
jbe 0x19eedf3c
cmp dword [ebp + 8], eax
jbe 0x19eedf09
mov eax, dword [ebp + 8]
xor edx, edx
test edx, edx
ja 0x19eedf11
test eax, eax
jbe 0x19eedf3c
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
shrd esi, ecx, 1
shr ecx, 1
cmp edx, ecx
jb 0x19eedf3c
ja 0x19eedf27
cmp eax, esi
jbe 0x19eedf3c
mov eax, esi
mov edx, ecx
jmp 0x19eedf3c
push 0
push 0xa
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.19f147d0
pop edi
mov ecx, 0x500000
pop esi
test edx, edx
ja 0x19eedf4b
cmp eax, ecx
jbe 0x19eedf4f
mov eax, ecx
xor edx, edx
mov ecx, eax
or ecx, edx
jne 0x19eedf6a
push 0x19f1bae0
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 1
call sub.msvcrt.dll__CxxThrowException
leave
ret 4