joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c89f
Capabilities:
Get geographical location

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x441480]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push edi
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
jne 0x42c9bc
and dword [ebp - 0x8c], 0
push 0x80
lea edi, [ebp - 0x84]
mov ecx, edi
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.00435e09
mov ebx, eax
add esp, 0x14
or ebx, ebx
jne 0x42c959
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42c97a
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00435e09
mov dword [ebp - 0x90], eax
sub esp, 0xffffffec
or eax, eax
je 0x42c97a
inc ebx
push ebx
push eax
call fcn.00425c31
mov edi, eax
or edi, edi
pop ecx
pop ecx
je 0x42c97a
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], ebx
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00435e09
mov ebx, eax
sub esp, 0xffffffec
test ebx, ebx
je 0x42c973
push 1
push ebx
call fcn.00425c31
mov dword [esi], eax
pop esi
pop ecx
xor esi, esi
cmp eax, esi
jne 0x42c98c
cmp dword [ebp - 0x8c], esi
je 0x42c97a
push edi
call fcn.004214f1
pop ebx
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00420bc6
leave
ret
lea ecx, [ebx - 1]
push ecx
push edi
push ebx
push eax
call fcn.0042e9d8
sub esp, 0xfffffff0
test eax, eax
jne 0x42c9b2
cmp dword [ebp - 0x8c], esi
je 0x42c9ae
push edi
call fcn.004214f1
pop ecx
xor eax, eax
jmp 0x42c97d
push esi
push esi
push esi
push esi
push esi
call fcn.00426d66
cmp dword [ebp + 0xc], 2
jne 0x42ca0a
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push eax
push eax
push dword [ebp + 0x14]
mov dword [esi], eax
push dword [ebp + 0x10]
call edi
mov ebx, eax
or ebx, ebx
je 0x42c9fa
push 2
push ebx
call fcn.00425c31
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
je 0x42c9fa
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x42c9ae
push dword [esi]
call fcn.004214f1
and dword [esi], 0
pop ebx
jmp 0x42c97a
cmp dword [ebp + 0xc], 0
jne 0x42c97a
and dword [ebp - 0x88], 0
lea eax, [ebp - 0x88]
push 2
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42c97a
mov al, byte [ebp - 0x88]
mov byte [esi], al
jmp 0x42c9ae

Function at 0x42cad0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov eax, esp
mov ecx, 0x5a4d
mov edx, dword [eax + 8]
cmp word [edx], cx
je 0x42cae6
pop ebp
xor eax, eax
ret
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x42cae2
mov eax, 0x10b
xor edx, edx
cmp word [ecx + 0x18], ax
pop ebp
sete dl
mov eax, edx
ret
Function at 0x42cb10
Capabilities:
Enumerate pe sections

Disassembly:
mov esi, esi
push edi
mov edi, esp
mov eax, dword [edi + 8]
mov edx, dword [eax + 0x3c]
add edx, eax
xor ecx, ecx
movzx eax, word [edx + 0x14]
lea eax, [eax + edx + 0x18]
push ebx
push ebp
movzx ebx, word [edx + 6]
test ebx, ebx
push esi
je 0x42cb4d
mov esi, dword [edi + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x42cb45
mov ebp, dword [eax + 8]
add ebp, edx
cmp esi, ebp
jb 0x42cb4f
inc ecx
sub eax, 0xffffffd8
cmp ecx, ebx
jb 0x42cb35
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x42d139
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, esp
push ebp
xor ebp, ebp
cmp dword [esi + 8], ebp
jne 0x42d160
call fcn.00426e1d
mov dword [eax], ebp
call fcn.00426e0a
push 0x16
pop esi
mov dword [eax], esi
call fcn.00426db8
mov eax, esi
jmp 0x42d1b5
test dword [esi + 0xc], 0xfffffff9
jne 0x42d146
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42d18d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426e30
pop ecx
call fcn.00426e0a
mov eax, dword [eax]
jmp 0x42d1b5
test al, 0x10
jne 0x42d1b3
test al, 1
je 0x42d1b3
test byte [esi + 0xc], 2
je 0x42d1b3
call fcn.00426e1d
mov dword [eax], 5
call fcn.00426e0a
mov dword [eax], 0xd
jmp 0x42d184
xor eax, eax
pop ebp
pop esi
ret
Function at 0x42db6b
Capabilities:
Query environment variable

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
add esp, 0xfffffff4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
mov edi, eax
cmp edi, ebx
jne 0x42db87
xor eax, eax
jmp 0x42dbfe
cmp word [edi], bx
je 0x42db9c
add eax, 2
cmp word [eax], bx
jne 0x42db8c
sub eax, 0xfffffffe
cmp word [eax], bx
jne 0x42db8c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x42dbf4
push eax
call fcn.00425bec
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x42dbf4
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x42dbe8
push dword [ebp - 4]
call fcn.004214f1
pop ecx
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
jmp 0x42dbfd
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x42fde8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
or esi, esi
push ebp
mov ebp, esp
push ecx
je 0x42fe42
cmp byte [esi], 0
je 0x42fe42
push 0x43b908
push esi
call fcn.00429ad0
or eax, eax
pop ecx
pop ecx
je 0x42fe42
push 0x43b904
push esi
call fcn.00429ad0
or eax, eax
pop ecx
pop ecx
jne 0x42fe36
lea eax, [ebp - 4]
push 2
push eax
push 0x2000000b
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
je 0x42fe5a
mov eax, dword [ebp - 4]
leave
ret
push esi
call fcn.00423661
pop ecx
mov dword [ebp - 4], eax
jmp 0x42fe31
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x42fe5e
xor eax, eax
leave
ret
cmp dword [ebp - 4], 0
jne 0x42fe31
call dword [sym.imp.KERNEL32.dll_GetACP]
leave
ret

Function at 0x42ff84
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 2
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20000001
mov eax, esi
and eax, 0x3ff
or eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x42ffb3
xor eax, eax
jmp 0x42ffdc
cmp esi, dword [ebp - 4]
je 0x42ffd9
cmp dword [ebp + 8], 0
je 0x42ffd9
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov edx, esi
push edi
call fcn.0042fec2
push esi
mov edi, eax
call fcn.00423d80
cmp edi, eax
pop ecx
pop edi
je 0x42ffaf
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x430313
Capabilities:
Get geographical location

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
push ebx
push esi
push edi
call fcn.00427003
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
or eax, eax
jne 0x430339
or dword [edi + 8], 0x104
jmp 0x4303fc
lea ebx, [edi + 4]
mov dword [edi], eax
add eax, 0x40
mov dword [ebx], eax
je 0x43035a
cmp byte [eax], 0
je 0x43035a
push ebx
push 0x16
push 0x43b838
call fcn.0042fd86
sub esp, 0xfffffff4
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x4303bf
cmp byte [eax], 0
je 0x4303bf
mov eax, dword [ebx]
test eax, eax
je 0x43037d
cmp byte [eax], 0
je 0x43037d
mov esi, edi
call fcn.00430270
jmp 0x430384
mov esi, edi
call fcn.004302d7
cmp dword [edi + 8], 0
jne 0x430412
push edi
push 0x40
push 0x43b630
call fcn.0042fd86
sub esp, 0xfffffff4
test eax, eax
je 0x430408
mov ebx, dword [ebx]
test ebx, ebx
je 0x4303b6
cmp byte [ebx], 0
je 0x4303b6
mov esi, edi
call fcn.00430270
jmp 0x430408
mov esi, edi
call fcn.004302d7
jmp 0x430408
mov ebx, dword [ebx]
test ebx, ebx
je 0x4303f5
cmp byte [ebx], 0
je 0x4303f5
push ebx
call fcn.00423d80
pop ecx
push 1
add eax, 0xfffffffd
neg eax
sbb eax, eax
inc eax
push 0x42fedd
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x430408
and dword [edi + 8], 0
jmp 0x430408
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x4304fd
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call fcn.0042fde8
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x4304fd
cmp ebx, 0xfde8
je 0x4304fd
cmp ebx, 0xfde9
je 0x4304fd
movzx eax, bx
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
or eax, eax
je 0x4304fd
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
or eax, eax
je 0x4304fd
mov eax, dword [ebp + 0xc]
or eax, eax
je 0x430489
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], bx
mov ebx, dword [ebp + 0x10]
or ebx, ebx
je 0x4304f8
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x4304c0
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.00427456
add esp, 0xc
or eax, eax
je 0x4304d1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00426d66
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
or eax, eax
je 0x4304fd
lea eax, [ebx + 0x40]
push 0x40
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
or eax, eax
je 0x4304fd
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.00436496
sub esp, 0xfffffff0
xor eax, eax
inc eax
jmp 0x4304ff
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x433a01
Capabilities:
Link many functions at runtime

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, dword [0x441480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push edi
push esi
mov dword [ebp - 0x1c], eax
call fcn.00426e53
and dword [ebp - 0x14], 0
cmp dword [0x444984], 0
mov dword [ebp - 0x18], eax
jne 0x433ab4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
or esi, esi
je 0x433b5c
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push esi
call ebx
or eax, eax
je 0x433b5c
mov edi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call edi
push str.GetActiveWindow
push esi
mov dword [0x444984], eax
call ebx
push eax
call edi
push str.GetLastActivePopup
push esi
mov dword [0x444988], eax
call ebx
push eax
call edi
push str.GetUserObjectInformationW
push esi
mov dword [0x44498c], eax
call ebx
push eax
call edi
mov dword [0x444994], eax
or eax, eax
je 0x433ab4
push str.GetProcessWindowStation
push esi
call ebx
push eax
call edi
mov dword [0x444990], eax
mov eax, dword [0x444990]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x433b0d
cmp dword [0x444994], ecx
je 0x433b0d
push eax
call esi
push dword [0x444994]
mov ebx, eax
call esi
mov edi, eax
test ebx, ebx
je 0x433b0d
or edi, edi
je 0x433b0d
call ebx
or eax, eax
je 0x433b04
lea ebx, [ebp - 0x24]
push ebx
lea ecx, [ebp - 0x10]
push 0xc
push ecx
push 1
push eax
call edi
test eax, eax
je 0x433b04
test byte [ebp - 8], 1
jne 0x433b0d
or dword [ebp + 0x10], 0x200000
jmp 0x433b40
mov eax, dword [0x444988]
cmp eax, dword [ebp - 0x18]
je 0x433b40
push eax
call esi
test eax, eax
je 0x433b40
call eax
or eax, eax
mov dword [ebp - 0x14], eax
je 0x433b40
mov eax, dword [0x44498c]
cmp eax, dword [ebp - 0x18]
je 0x433b40
push eax
call esi
test eax, eax
je 0x433b40
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x444984]
call esi
or eax, eax
je 0x433b5c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x433b5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
pop ebx
call fcn.00420bc6
leave
ret
Function at 0x435d2f
Capabilities:
Get geographical location

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x441480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
push edi
push ebx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor esi, esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call ebx
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, esi
jne 0x435d71
xor eax, eax
jmp 0x435df7
jle 0x435db8
push 0xffffffffffffffe0
pop eax
xor edx, edx
div ecx
cmp eax, 2
jb 0x435db8
lea eax, [ecx + ecx + 8]
cmp eax, 0x400
ja 0x435da0
call fcn.00431c80
mov edi, esp
cmp edi, esi
je 0x435d6a
mov dword [edi], 0xcccc
sub edi, 0xfffffff8
jmp 0x435dba
push eax
call fcn.00422819
cmp eax, esi
pop ecx
je 0x435db4
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
jmp 0x435dba
xor edi, edi
cmp edi, esi
je 0x435d6a
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x435dee
push esi
push esi
cmp dword [ebp + 0x18], esi
jne 0x435dd9
push esi
push esi
jmp 0x435ddf
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push edi
call fcn.00425301
pop eax
mov eax, esi
mov ecx, dword [ebp - 4]
lea esp, [ebp - 0x18]
pop esi
xor ecx, ebp
pop ebx
pop edi
call fcn.00420bc6
leave
ret
Function at 0x43660f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push ebx
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00428150
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x14], edx
je 0x436697
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.00428150
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x436697
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
sub edi, eax
sbb esi, edx
js 0x43672c
jg 0x436670
cmp edi, ebx
jbe 0x43672c
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
or eax, eax
jne 0x4366a3
call fcn.00426e0a
mov dword [eax], 0xc
call fcn.00426e0a
mov eax, dword [eax]
pop edi
pop ebx
pop esi
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.0043606d
pop ecx
pop ecx
mov dword [ebp - 8], eax
test esi, esi
jl 0x4366c3
jg 0x4366bf
cmp edi, ebx
jb 0x4366c3
mov eax, ebx
jmp 0x4366c5
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004282bf
sub esp, 0xfffffff4
cmp eax, 0xffffffff
je 0x43670f
cdq
sub edi, eax
sbb esi, edx
js 0x4366e6
jg 0x4366b5
test edi, edi
jne 0x4366b5
mov edi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0043606d
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x436795
call fcn.00426e1d
cmp dword [eax], 5
jne 0x436724
call fcn.00426e0a
mov dword [eax], 0xd
or edi, 0xffffffff
mov dword [ebp - 0xc], edi
jmp 0x4366e9
cmp esi, ebx
jg 0x4367a1
jl 0x436736
cmp edi, ebx
jae 0x4367a1
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00428150
and eax, edx
sub esp, 0xfffffff0
cmp eax, 0xffffffff
je 0x436697
push dword [ebp + 8]
call fcn.00432832
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], edx
jne 0x4367a1
call fcn.00426e0a
mov dword [eax], 0xd
call fcn.00426e1d
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov edi, dword [ebp - 0x10]
and edi, dword [ebp - 0xc]
cmp edi, 0xffffffff
je 0x436697
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.00428150
and eax, edx
sub esp, 0xfffffff0
cmp eax, 0xffffffff
je 0x436697
xor eax, eax
jmp 0x43669e
Function at 0x401b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b39
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401b70
lea ebx, [ebx]
cmp esi, eax
jae 0x401b74
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401b60
cmp esi, eax
jb 0x401b7a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401fd0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x498700]
xor eax, esp
mov dword [esp + 0x408], eax
test esi, esi
jne 0x401fff
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0044de0c
add esp, 0x40c
ret
push str.SoftwareVHLDMACHINE_ID
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0044e1bb
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402068
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401fe8
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402070
mov ecx, dword [esp]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401fe8
mov eax, dword [esp]
test eax, eax
je 0x4020a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.0044de0c
add esp, 0x40c
ret
Function at 0x4020c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x498700]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x4020f6
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0044de0c
add esp, 0x40c
ret
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0044e1bb
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40215b
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4020df
mov ecx, dword [esp]
push 4
lea eax, [esp + 0x418]
push eax
push 4
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4020df
mov eax, dword [esp]
test eax, eax
je 0x40218a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.0044de0c
add esp, 0x40c
ret

Function at 0x4021b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x498700]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
push ebp
mov ebp, dword [esp + 0x418]
push esi
push edi
mov edi, ecx
mov esi, edx
je 0x402278
push eax
lea eax, [esp + 0x18]
push 0x200
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
call fcn.0044e1bb
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402278
mov ecx, dword [esi]
test ecx, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x402292
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x402278
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430f50
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
push edx
push 0
push eax
mov dword [esi], eax
call fcn.00450a50
mov ecx, dword [esi]
add esp, 0x10
test ecx, ecx
jne 0x4022aa
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0044de0c
add esp, 0x40c
ret
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x402297
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x402278
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4022cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.0044de0c
add esp, 0x40c
ret
Function at 0x4022f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x498700]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
test eax, eax
jne 0x402326
xor al, al
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0044de0c
add esp, 0x410
ret
push eax
mov ecx, 4
lea eax, [esp + 0x10]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
call fcn.0044e1bb
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40230f
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40230f
mov eax, dword [esp]
test eax, eax
je 0x402393
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
mov al, 1
call fcn.0044de0c
add esp, 0x410
ret
Function at 0x403cd0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46df00
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x498700]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x498700]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
mov esi, ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
xor ebx, ebx
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.004018b0
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffe
push eax
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00406170
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
mov eax, ecx
lea edi, [eax + 2]
jmp 0x403d70
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x403d70
sub eax, edi
sar eax, 1
push eax
lea edi, [esi + 0x30]
push ecx
mov ecx, edi
call fcn.00406b60
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403daf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 0x44]
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430f50
add esp, 4
cmp dword [edi + 0x18], 8
mov esi, eax
jb 0x403ddb
mov edi, dword [edi + 4]
jmp 0x403dde
add edi, 4
mov ecx, esi
movzx eax, word [edi]
mov word [ecx], ax
add edi, 2
add ecx, 2
cmp ax, bx
jne 0x403de0
mov ebx, str.Installation_GUID
mov edi, SysReAllocStringLen
call fcn.00401fd0
push esi
call fcn.00430f55
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044de0c
add esp, 0x2c
ret