joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5efec0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x6c1e1a], 0
jne 0x40b146
push 0x6c1e34
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SoftwareSolidWorksIM
push SysReAllocStringLen
mov byte [0x6c1e1a], 1
mov dword [ebp - 0x14], 0x61a8
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b146
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.HTTPReceiveTimeout
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b146
mov eax, dword [ebp - 0x14]
mov ecx, 0x3a98
cmp eax, ecx
cmovl eax, ecx
mov dword [0x6ba210], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp dword [ebx + 8], 0xfffffda6
mov dword [ebp - 0x838], edi
jne 0x411e90
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0049ef28
test eax, eax
je 0x411e90
mov eax, dword [eax + 0x20]
test eax, eax
je 0x411e90
push 0
push 0x411270
push eax
mov dword [0x6c1e68], 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [0x6c1e68]
test eax, eax
je 0x411e90
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call edi
mov dword [ebp - 0x834], eax
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.005c26e0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x206
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [ebp - 0x834], 0
jl 0x411e8a
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.005c26e0
add esp, 0xc
lea eax, [ebp - 0x830]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x834]
mov dword [ebp - 0x864], 0
push 0x1073
push dword [0x6c1e68]
mov dword [ebp - 0x854], 0x206
call edi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x834]
call fcn.004021e0
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411e00
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x422], 0x5c
je 0x411e2a
push 0x63eebc
lea ecx, [ebp - 0x834]
call fcn.00404880
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x834]
call fcn.00404880
mov ecx, dword [ebp - 0x834]
call fcn.00414b70
test al, al
je 0x411e78
lea eax, [ebp - 0x834]
push eax
lea ecx, [esi + 0x360]
call fcn.00404570
mov ecx, dword [esi + 0x364]
test ecx, ecx
je 0x411e78
cmp dword [ecx + 0x20], 0
je 0x411e78
push dword [esi + 0x360]
call fcn.004a599e
lea ecx, [ebp - 0x834]
mov dword [ebp - 4], 0xffffffff
call fcn.00401020
mov edi, dword [ebp - 0x838]
push edi
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004b1ce1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413360
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f25b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004a4516
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4133a6
push 0x80004005
call fcn.00402040
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [esi]
lea edx, [ebp - 0x18]
call fcn.004132b0
mov edi, eax
add esp, 4
or ebx, 0xffffffff
test edi, edi
jne 0x4134a7
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4133ef
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x63bfdc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov edi, eax
push ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, esp
push ecx
call fcn.004046f0
add esp, 4
add eax, 0x10
push 0
push 0
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
push 0x17d
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 1
mov ecx, edi
call fcn.004055a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41346e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
sub esp, 0x14
mov edx, 0x10
mov ecx, esi
call fcn.0041d330
add esi, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4134a0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
jmp 0x41353d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
shr ax, 0xa
movzx eax, ax
cmp cx, 0x11
jne 0x4134d6
push str.Japanese
push 0
call fcn.005bfc47
add esp, 8
jmp 0x41353d
cmp cx, 4
jne 0x4134fe
cmp eax, 1
jne 0x4134f2
push str.chinese_traditional
push 0
call fcn.005bfc47
add esp, 8
jmp 0x41353d
cmp eax, 2
jne 0x413522
push str.chinese_simplified
jmp 0x413527
cmp cx, 0x12
jne 0x413515
push str.korean
push 0
call fcn.005bfc47
add esp, 8
jmp 0x41353d
cmp cx, 0x19
jne 0x413522
push str.russian
jmp 0x413527
push 0x63bfdc
push 2
call fcn.005bfc47
push 0x63bfdc
push 5
call fcn.005bfc47
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41355e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413d10
xor al, al
ret
shr al, 4
not al
and al, 1
ret
Function at 0x413d20
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5fa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x413d6a
xor bl, bl
jmp 0x413e21
test esi, esi
je 0x413d72
not esi
and eax, esi
or eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x413e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x413daa
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x10]
push str.ERROR:_ModifyFileAttributes_got_attributes_but_failed_to_modify_them__error___d
push eax
mov byte [ebp - 4], 1
call fcn.00404520
add esp, 8
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x308
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 1
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413e1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x413e21
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x413e42
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414030
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1630
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push dword [edi]
xor bl, bl
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x414173
call fcn.004a4516
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4140a8
push 0x80004005
call fcn.00402040
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push dword [edi]
lea eax, [ebp - 0x14]
push str.ERROR:_Unable_to_determine_free_space_for_directory__s
push eax
call fcn.00404520
add esp, 0xc
lea ecx, [ebp - 0x18]
push 0x63bfdc
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004046f0
add esp, 4
add eax, 0x10
push 0
push 0
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
push 0x370
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 1
mov ecx, edi
call fcn.004055a0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41413e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x41418e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esi], eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x28]
mov bl, 1
mov dword [edx + 4], ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414ae0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f17e8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6b7e40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov dl, 1
lea ecx, [ebp + 8]
call fcn.0041a520
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x414b2e
push 0
jmp 0x414b2f
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov esi, eax
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414b5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4169c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f18d8
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov byte [ebp - 0x219], bl
mov esi, ecx
mov dword [ebp - 4], 0
push 0x63bfdc
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], 0
call fcn.004021e0
mov dword [ebp - 4], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x228], 1
call fcn.004021e0
push str.ProgramFilesDir
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 1
call fcn.004021e0
xor eax, eax
test bl, bl
setne al
lea edx, [ebp - 0x220]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 2
lea eax, [eax*2 + 1]
push eax
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.004174e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 0x21a], al
add esp, 0xc
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x416aab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x21a], 0
je 0x416ac0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x416b56
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8026
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x218]
mov edi, eax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416af0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402090
test edi, edi
jne 0x416b19
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x416b56
cmp byte [ebp - 0x219], 0
jne 0x416b48
mov eax, dword [0x6c1e7c]
test eax, eax
jne 0x416b35
call fcn.0041eb60
mov eax, dword [0x6c1e7c]
cmp eax, 2
jne 0x416b48
push str.C:Program_Files__x86_
mov ecx, esi
call fcn.00402190
jmp 0x416b56
push 0x10
push str.C:Program_Files
mov ecx, esi
call fcn.00402090
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x220]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x416b77
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret
Function at 0x416ba0
Capabilities:
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1c28
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
push str.C:Windows
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x224], 0
call fcn.004021e0
push 0x104
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x416c42
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416c20
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00402090
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [edi], eax
push eax
mov dword [ebp - 0x224], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x416d41
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00415120
add esp, 4
test al, al
jne 0x416d41
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x416cb7
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push str.ERROR:_Unable_to_create_Windows_subdirectory_for_application
push eax
mov byte [ebp - 4], 0xa
call fcn.00404520
add esp, 4
mov ecx, esp
push 0x63bfdc
call fcn.004021e0
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x8ba
push str.C:_amintegration_tools_setupishield_sldim_baseUtilities.cpp
push 1
push 0
xor ecx, ecx
call fcn.004051a0
mov ecx, eax
call fcn.004022e0
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call fcn.00404570
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416d41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x220]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x416d62
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret
Function at 0x416d80
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f15f9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 0
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, 0x63bfdc
test eax, eax
lea ecx, [ebp - 0x34]
cmove ecx, edx
push ecx
mov ecx, esi
call fcn.004021e0
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov dword [ebp - 0x38], 1
cmp dword [ecx - 0xc], 0
jne 0x416e0a
push 0xf
push str.UnknownComputer
mov ecx, esi
call fcn.00402090
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret

Function at 0x416e30
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1bc2
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x81c]
push eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], 0
push eax
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x81c], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, 0x63bfdc
test eax, eax
lea ecx, [ebp - 0x814]
cmove ecx, edx
push ecx
mov ecx, esi
call fcn.004021e0
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov dword [ebp - 0x818], 1
cmp dword [ecx - 0xc], 0
jne 0x416ed2
push 0xb
push str.UnknownUser
mov ecx, esi
call fcn.00402090
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret

Function at 0x416ef0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f1b72
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x81c], 0
push 0x63bfdc
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x818], 0x400
call fcn.004021e0
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x814]
push eax
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x81c], 1
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x416f9e
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416f80
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x814]
push eax
mov ecx, esi
call fcn.00402090
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret
Function at 0x4174e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov ebx, edx
mov edx, dword [ebp + 0xc]
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x7e8], ecx
mov dword [ebp - 0x7e4], edx
cmp esi, 1
je 0x41756e
mov eax, dword [0x6c1e7c]
test eax, eax
jne 0x417533
call fcn.0041eb60
mov eax, dword [0x6c1e7c]
mov ecx, dword [ebp - 0x7e8]
mov edx, dword [ebp - 0x7e4]
cmp eax, 2
jne 0x41756e
push edx
lea eax, [ebp - 0x7ec]
push eax
push ecx
mov edx, 1
push ebx
push edi
lea ecx, [edx + 1]
mov dword [ebp - 0x7ec], 1
call fcn.00417e00
add esp, 0x14
test al, al
jne 0x417627
cmp esi, 3
jne 0x417627
xor eax, eax
mov word [ebp - 0x7dc], ax
lea eax, [ebp - 0x7e0]
push eax
push 0x20019
push 0
push dword [ebx]
mov dword [ebp - 0x7f0], 0
push edi
mov dword [ebp - 0x7f4], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417625
lea eax, [ebp - 0x7f4]
push eax
lea eax, [ebp - 0x7dc]
push eax
lea eax, [ebp - 0x7f0]
push eax
mov eax, dword [ebp - 0x7e8]
push 0
push dword [eax]
push dword [ebp - 0x7e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7e0]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x417625
lea edx, [ebp - 0x7dc]
lea esi, [edx + 2]
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4175f0
mov ecx, dword [ebp - 0x7e4]
sub edx, esi
sar edx, 1
push edx
lea eax, [ebp - 0x7dc]
push eax
call fcn.00402090
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bc16b
mov esp, ebp
pop ebp
ret