joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d4f0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x456d2c
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x46d358]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x46d358]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
xor ebx, ebx
test byte [0x46f2b0], 1
mov dword [esp + 0x254], ebx
jne 0x40d56b
or dword [0x46f2b0], 1
push 1
mov ecx, 0x46f228
mov byte [esp + 0x258], 1
call fcn.0040d310
push 0x45a1e0
call fcn.00429665
add esp, 4
mov byte [esp + 0x254], bl
cmp byte [0x46c599], bl
mov edi, 8
je 0x40d653
lea eax, [esp + 0x10]
push eax
mov byte [0x46c599], bl
call fcn.00416200
push 0x45be44
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x264], 2
call fcn.00404270
add esp, 0x10
cmp dword [esp + 0x28], edi
mov byte [esp + 0x254], 4
jb 0x40d5c2
mov edx, dword [esp + 0x14]
push edx
call fcn.0041d291
add esp, 4
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
jae 0x40d5e1
lea eax, [esp + 0x30]
push eax
call fcn.00415fc0
add esp, 4
test al, al
je 0x40d639
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
jae 0x40d5fc
lea eax, [esp + 0x30]
push 0x40
push 2
push eax
mov ecx, 0x46f22c
call fcn.0040c9a0
test eax, eax
jne 0x40d632
mov eax, dword [0x46f228]
mov ecx, dword [eax + 4]
add ecx, 0x46f228
mov eax, dword [ecx + 8]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x40d62b
or eax, 4
push ebx
push eax
call fcn.00403f40
mov byte [0x46f220], 1
cmp dword [esp + 0x44], edi
mov byte [esp + 0x254], bl
jb 0x40d653
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0041d291
add esp, 4
cmp byte [0x46f220], bl
je 0x40d6fe
push 0x1fe
lea edx, [esp + 0x4e]
push ebx
push edx
mov word [esp + 0x54], bx
call fcn.00428720
mov eax, dword [esp + 0x26c]
add esp, 0xc
cmp dword [esp + 0x274], edi
jae 0x40d68e
lea eax, [esp + 0x260]
lea ecx, [esp + 0x278]
push ecx
push eax
push 0x200
lea edx, [esp + 0x54]
push 0x100
push edx
call fcn.004299db
lea eax, [esp + 0x5c]
push eax
push 0x46f228
call fcn.00404f50
add esp, 0x1c
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040d1a0
mov ecx, esi
call fcn.00404d20
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [esp + 0x48]
push edx
push 0x471fe8
call fcn.00404f50
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040d1a0
mov ecx, esi
call fcn.00404d20
cmp dword [esp + 0x274], edi
jb 0x40d717
mov eax, dword [esp + 0x260]
push eax
call fcn.0041d291
add esp, 4
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00428437
add esp, 0x248
ret
Function at 0x40ff70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4570f3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46d358]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.004420a6
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x40ffc1
mov eax, dword [esi + 0x1c]
push eax
call fcn.0041d291
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x410450
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi]
lea ecx, [esp + 4]
push ecx
push 0x2001f
push 0
push eax
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4104c8
xor ecx, ecx
lea eax, [esi + 8]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push edi
mov edi, dword [esp + 8]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
lea edx, [esp + 0xc]
push edx
push eax
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esi + 4]
push ecx
push edi
mov dword [esp + 0x24], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
je 0x4104c7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xc
ret

Function at 0x4104d0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
lea ecx, [esp + 4]
push ecx
push 0x2001f
push 0
push eax
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410524
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push edi
mov edi, dword [esp + 8]
push edx
push eax
push 3
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x410523
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret 8
Function at 0x410cd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x457349
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x46d358]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
push str..._config_driver.ini
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.004043e0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 1
call fcn.0040a480
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Modem
lea ecx, [esp + 0x14]
call fcn.004043e0
push str.Driver
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 4
call fcn.004043e0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 5
call fcn.00406b00
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401fe0
mov esi, dword [esp + 0x38]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x14], 1
mov byte [esp + 0x2c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410dc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410de7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.00409ed0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 4
Function at 0x410e10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x457349
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x46d358]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
push str..._config_driver.ini
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.004043e0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 1
call fcn.0040a480
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Port
lea ecx, [esp + 0x14]
call fcn.004043e0
push str.Driver
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 4
call fcn.004043e0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 5
call fcn.00406b00
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401fe0
mov esi, dword [esp + 0x38]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x14], 1
mov byte [esp + 0x2c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.00409ed0
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 4
Function at 0x415d50
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x46d358]
xor eax, esp
mov dword [esp + 0x11c], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x415ddb
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x415dad
cmp dword [esp + 0x10], 1
jne 0x415eb1
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00428437
add esp, 0x120
ret
cmp eax, 0x5a
jne 0x415eb1
cmp dword [esp + 0x10], 1
jne 0x415eb1
mov eax, 2
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00428437
add esp, 0x120
ret
cmp eax, 5
jne 0x415e6b
mov eax, dword [esp + 8]
test eax, eax
jne 0x415e11
cmp dword [esp + 0x10], 2
jne 0x415eb1
mov eax, 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00428437
add esp, 0x120
ret
cmp eax, 1
jne 0x415e3b
cmp dword [esp + 0x10], 2
jne 0x415eb1
mov eax, 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00428437
add esp, 0x120
ret
cmp eax, 2
jne 0x415eb1
cmp dword [esp + 0x10], eax
jne 0x415eb1
xor eax, eax
cmp byte [esp + 0x11a], 1
setne al
add eax, 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00428437
add esp, 0x120
ret
cmp eax, 6
jne 0x415eb1
mov eax, dword [esp + 8]
test eax, eax
jne 0x415e92
mov eax, 6
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00428437
add esp, 0x120
ret
cmp eax, 1
jne 0x415eb1
mov eax, 7
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00428437
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
xor eax, eax
call fcn.00428437
add esp, 0x120
ret

Function at 0x416200
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x457b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x46d358]
xor eax, esp
mov dword [esp + 0x820], eax
push esi
push edi
mov eax, dword [0x46d358]
xor eax, esp
push eax
lea eax, [esp + 0x830]
mov dword fs:[0], eax
mov edi, dword [esp + 0x840]
xor esi, esi
push 0x800
lea eax, [esp + 0x30]
push esi
push eax
mov dword [esp + 0x34], esi
call fcn.00428720
add esp, 0xc
push 0x400
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], esi
mov word [esp + 0x10], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x416282
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x14]
call fcn.004037c0
lea eax, [esp + 0xc]
push eax
push edi
mov dword [esp + 0x840], esi
call fcn.00416190
add esp, 8
cmp dword [esp + 0x24], 8
jb 0x4162c9
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041d291
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x830]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.00428437
add esp, 0x830
ret
Function at 0x416e10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebp
mov edi, eax
mov dword [esp + 0xc], edi
xor esi, esi
call ebp
sub eax, edi
cmp eax, 0x1d4c0
jae 0x416e8c
nop
xor edi, edi
test ebx, ebx
jbe 0x416e6d
mov esi, dword [esp + 0x14]
lea ebx, [ebx]
mov eax, dword [esi]
test eax, eax
je 0x416e5d
mov ecx, dword [eax]
test ecx, ecx
je 0x416e5d
mov eax, dword [esi + 4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push 0
call eax
test al, al
jne 0x416e69
add edi, 1
add esi, 0x14
cmp edi, ebx
jb 0x416e40
jmp 0x416e6d
cmp edi, ebx
jb 0x416e85
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
sub eax, dword [esp + 0xc]
cmp eax, 0x1d4c0
jb 0x416e30
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x41de93
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x46d358]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41ded0
push 0x45de70
push 4
push eax
call fcn.0042adb7
push eax
call fcn.00401080
add esp, 0x10
jmp 0x41dee2
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41df4d
push edi
call fcn.0042ae99
mov edi, dword [eax]
call fcn.0042ae99
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0042ae3f
add esp, 0x18
mov ebx, eax
call fcn.0042ae99
cmp dword [eax], 0
je 0x41df2d
call fcn.0042ae99
push dword [eax]
call fcn.0041d572
pop ecx
jmp 0x41df34
call fcn.0042ae99
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41df4d
cmp ebx, esi
jae 0x41df4d
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41df4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00428437
leave
ret
Function at 0x428437
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46d358]
jne 0x428441
repz ret
jmp fcn.0043042c
Function at 0x4364db
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x46df80]
je 0x4364f6
inc edi
cmp edi, 0x17
jb 0x4364e7
cmp edi, 0x17
jae 0x436676
push ebp
push 3
call fcn.0043db96
cmp eax, 1
pop ecx
je 0x436642
push 3
call fcn.0043db96
test eax, eax
pop ecx
jne 0x43652a
cmp dword [0x46d3a8], 1
je 0x436642
cmp ebx, 0xfc
je 0x436675
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4717a8
push ebp
call fcn.0042d18c
add esp, 0xc
test eax, eax
je 0x436560
push esi
push esi
push esi
push esi
push esi
call fcn.0042849a
add esp, 0x14
push 0x104
mov esi, 0x4717c1
push esi
push 0
mov byte [0x4718c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4365a4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042d18c
add esp, 0xc
test eax, eax
je 0x4365a4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042849a
add esp, 0x14
push esi
call fcn.0042d200
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4365e9
push esi
call fcn.0042d200
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x471abc
push 0x45f86c
sub ecx, eax
push ecx
push eax
call fcn.0043acb3
add esp, 0x14
test eax, eax
je 0x4365e9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042849a
add esp, 0x14
jmp 0x4365eb
xor esi, esi
push 0x45f868
push ebx
push ebp
call fcn.0043ac42
add esp, 0xc
test eax, eax
je 0x43660b
push esi
push esi
push esi
push esi
push esi
call fcn.0042849a
add esp, 0x14
push dword [edi*8 + 0x46df84]
push ebx
push ebp
call fcn.0043ac42
add esp, 0xc
test eax, eax
je 0x43662d
push esi
push esi
push esi
push esi
push esi
call fcn.0042849a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043d9d9
add esp, 0xc
jmp 0x436675
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x436675
cmp ebp, 0xffffffff
je 0x436675
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46df84]
push dword [esi]
call fcn.0042d200
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43d9d9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042eedd
xor ebx, ebx
cmp dword [0x471dfc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43daaf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43db8f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43db8f
push eax
call fcn.0042ee6f
mov dword [esp], 0x461254
push edi
mov dword [0x471dfc], eax
call esi
push eax
call fcn.0042ee6f
mov dword [esp], 0x461240
push edi
mov dword [0x471e00], eax
call esi
push eax
call fcn.0042ee6f
mov dword [0x471e04], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042b2e7
test eax, eax
pop ecx
pop ecx
je 0x43da7d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042849a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43daaf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042ee6f
cmp eax, ebx
pop ecx
mov dword [0x471e0c], eax
je 0x43daaf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042ee6f
pop ecx
mov dword [0x471e08], eax
mov eax, dword [0x471e08]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43db34
cmp dword [0x471e0c], ecx
je 0x43db34
push eax
call fcn.0042eee6
push dword [0x471e0c]
mov esi, eax
call fcn.0042eee6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43db34
cmp edi, ebx
je 0x43db34
call esi
cmp eax, ebx
je 0x43db01
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43db01
test byte [ebp - 0x18], 1
jne 0x43db34
lea eax, [ebp - 0x10]
push eax
call fcn.0042b31e
test eax, eax
pop ecx
je 0x43db1c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042849a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43db2b
or dword [ebp + 0x10], 0x200000
jmp 0x43db6f
or dword [ebp + 0x10], 0x40000
jmp 0x43db6f
mov eax, dword [0x471e00]
cmp eax, dword [ebp - 8]
je 0x43db6f
push eax
call fcn.0042eee6
cmp eax, ebx
pop ecx
je 0x43db6f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43db6f
mov eax, dword [0x471e04]
cmp eax, dword [ebp - 8]
je 0x43db6f
push eax
call fcn.0042eee6
cmp eax, ebx
pop ecx
je 0x43db6f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x471dfc]
call fcn.0042eee6
cmp eax, ebx
pop ecx
je 0x43db8f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43db91
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x453695
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46d358]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045362a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00428720
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4536e4
cmp dword [ebp - 0x1c], 5
jb 0x4536fc
jmp 0x4536f8
cmp dword [ebp - 0x10], 1
jne 0x4536fc
cmp dword [ebp - 0x1c], 4
ja 0x4536f8
jne 0x4536fc
cmp dword [ebp - 0x18], 0
jbe 0x4536fc
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x461ad4
call fcn.004534fe
test eax, eax
jge 0x45371d
mov byte [0x46f35c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00428437
add ebp, 0x78
leave
ret
Function at 0x1003431
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 4
mov eax, dword [section..data]
mov esi, section..data
mov edi, 0x1001680
cmp eax, esi
je 0x100347b
cmp byte [eax + 0x19], 4
jb 0x100347b
test byte [eax + 0x1c], 1
je 0x100347b
push edi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002ce5
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x10016d0
push 0x80000002
mov dword [0x1012008], 0xea60
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10034dd
mov eax, dword [section..data]
cmp eax, esi
je 0x1003590
cmp byte [eax + 0x19], 4
jb 0x100356f
test byte [eax + 0x1c], 1
je 0x100356f
push dword [ebp - 4]
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100f8f1
jmp 0x100356a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10016ac
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1003527
mov eax, dword [section..data]
cmp eax, esi
je 0x1003561
cmp byte [eax + 0x19], 1
jb 0x1003561
test byte [eax + 0x1c], 1
je 0x1003561
push dword [ebp - 4]
push edi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100f8f1
jmp 0x1003561
cmp dword [ebp - 0xc], 4
jne 0x100353d
cmp dword [ebp - 0x10], 4
jne 0x100353d
mov eax, dword [ebp - 0x14]
mov dword [0x1012008], eax
jmp 0x1003561
mov dword [ebp - 4], 0x139f
mov eax, dword [section..data]
cmp eax, esi
je 0x1003561
test byte [eax + 0x1c], 1
je 0x1003561
push edi
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002ce5
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [section..data]
cmp eax, esi
je 0x1003590
cmp byte [eax + 0x19], 4
jb 0x1003590
test byte [eax + 0x1c], 1
je 0x1003590
push dword [ebp - 4]
push edi
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100f8f1
pop edi
pop esi
pop ebx
leave
ret