joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d20
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x4022b8
call fcn.004020cc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x403394
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x401b3e
cmp eax, esi
jne 0x401b31
xor esi, esi
inc esi
mov edi, esi
jmp 0x401b41
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401b15
xor esi, esi
inc esi
cmp dword [0x403398], esi
jne 0x401b53
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401b8d
cmp dword [0x403398], ebx
jne 0x401b87
mov dword [0x403398], esi
push 0x4010e0
push 0x4010d4
call fcn.00401c78
pop ecx
pop ecx
test eax, eax
je 0x401b8d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401c62
mov dword [0x403044], esi
cmp dword [0x403398], esi
jne 0x401bb0
push 0x4010d0
push 0x4010c8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403398], 2
test edi, edi
jne 0x401bbd
xor eax, eax
mov ecx, 0x403394
xchg dword [ecx], eax
cmp dword [0x40339c], 0
je 0x401be9
push 0x40339c
call fcn.00401f00
pop ecx
test eax, eax
je 0x401be9
push ebx
push 2
push ebx
mov esi, dword [0x40339c]
mov ecx, esi
call dword [0x4040b0]
call esi
push dword [0x403050]
push dword [0x40304c]
push dword [0x403048]
call fcn.004018f3
add esp, 0xc
mov dword [0x403040], eax
cmp dword [0x403058], 0
jne 0x401c47
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x403044], 0
jne 0x401c5b
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403040]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00402009
jmp 0x401af9

Function at 0x401dd0
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4022d8
call fcn.004020cc
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401e30
cmp eax, 0xffffffff
je 0x401e30
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401e29
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401e29
cmp edx, 0x10000000
jae 0x401e29
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401e26
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401eb0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401eee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401ee6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401ef0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401ed6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401fd0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401fff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401fff
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x403e59
pop dword [ebp - 0x10]
mov eax, 0x403e59
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xb2ab8a2
add dword [ebp - 0x20], 0x43278ca9
mov dword [ebp - 0x1c], 0xccac374c
sub dword [ebp - 0x1c], 0x9a78eb07
mov dword [ebp - 0x18], 0xcffb9437
add dword [ebp - 0x18], 0x7c50aff7
mov dword [ebp - 0x14], 0x47b6de96
add dword [ebp - 0x14], 0xb849216a
lea eax, [ebp - 0x20]
push eax
mov eax, 0xa1d9ff99
sub eax, 0xa1997f0d
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xf162bf90
sub dword [ebp - 0x20], 0x7cf0563a
mov dword [ebp - 0x1c], 0x8ee3aef3
sub dword [ebp - 0x1c], 0x4d774d7e
mov dword [ebp - 0x18], 0xf1601a02
add dword [ebp - 0x18], 0x720f526a
mov dword [ebp - 0x14], 0x3ad8994a
sub dword [ebp - 0x14], 0x3ad8994a
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x44f77a72
add eax, 0xbb490662
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x36f3d
push 0
call eax
mov ecx, 0x48d2
mov edx, eax
mov esi, 0xf2b4549a
add esi, 0xd8cbb66
add esi, dword [ebp - 0x10]
mov ebx, 0x346b1ee4
add ebx, 0x33b10d46
sub dword [ebp - 8], eax
mov edi, dword [esi]
sub dword [ebp - 8], eax
add edi, ebx
xor dword [ebp - 0xc], eax
mov dword [edx], edi
add edx, 0x9c682677
sub edx, 0x9c682673
add esi, 4
loop 0x403f70
add eax, 0x48488ec0
add eax, 0xb7b8875b
mov ebx, eax
add eax, 5
mov ecx, 0x9fd1c541
add ecx, 0x606e3abf
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401260
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 0x401279
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4012b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4012b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012a0
cmp esi, eax
jb 0x4012ba
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 0x406440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x466548
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x24]
push 0x491050
push 0x49104c
push eax
lea ecx, [esp + 0x30]
xor edi, edi
push ecx
mov dword [esp + 0x1c], edi
call fcn.00434f90
add esp, 0x10
mov edx, dword [esi]
mov edx, dword [edx + 4]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x28]
push edi
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call edx
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
lea ecx, [esi + 4]
push edi
lea edx, [esp + 0x28]
push edx
call eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.00402060
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc

Function at 0x406510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x466599
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [0x49104c]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x24], ebx
call fcn.00402060
mov edi, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push ebp
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], 1
call edx
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x28], 1
call fcn.004035d0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi + 4]
mov edx, dword [edx + 8]
lea ecx, [esi + 4]
push ebp
lea eax, [esp + 0x30]
push eax
call edx
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x28], 2
call fcn.004035d0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x491050]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call fcn.004035d0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x40bd40
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x466bbe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esi + 4]
mov eax, dword [eax - 0xc]
test eax, eax
lea edi, [esi + 4]
mov dword [esp + 0x1c], 2
je 0x40bdb8
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.00403920
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bdb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 8]
sub eax, 0x10
mov byte [esp + 0x1c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
sub eax, 0x10
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x40cb10
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x466d59
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x2c]
push edi
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
call fcn.0040c4f0
mov ecx, dword [esp + 0x1c]
add ecx, 1
push ecx
push edi
push 0x46e0ac
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], 1
call fcn.00408b90
mov eax, dword [esi]
add esp, 0x1c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40d0b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x48fac0]
xor eax, esp
mov dword [esp + 0x140], eax
push esi
push edi
push 0x11c
xor esi, esi
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004481f0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0x11c
call edi
test eax, eax
jne 0x40d11e
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], 0x114
call edi
test eax, eax
jne 0x40d11e
pop edi
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00448e02
add esp, 0x144
ret
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push ebp
push eax
push ecx
push edx
push str.____CComUtilSet::GetOSVersion_____osvi.dwPlatformId___u__osvi.dwMajorVersion___u__osvi.dwMinorVersion___u
call fcn.00409e70
mov eax, dword [esp + 0x50]
add esp, 0x10
sub eax, 1
je 0x40d231
sub eax, 1
jne 0x40d259
cmp dword [esp + 0x34], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jb 0x40d1aa
push str.GetNativeSystemInfo
push 0x46e270
call ebp
push eax
call edi
test eax, eax
je 0x40d17e
lea ecx, [esp + 0xc]
push ecx
call eax
cmp byte [esp + 0x14a], 1
jne 0x40d19a
xor edx, edx
cmp word [esp + 0xc], 9
sete dl
add edx, 0xa
mov esi, edx
jmp 0x40d1aa
xor eax, eax
cmp word [esp + 0xc], 9
sete al
add eax, 0xc
mov esi, eax
mov eax, dword [esp + 0x34]
cmp eax, 5
jne 0x40d225
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x40d212
push str.GetNativeSystemInfo
push 0x46e270
call ebp
push eax
call edi
test eax, eax
je 0x40d1d6
lea ecx, [esp + 0xc]
push ecx
call eax
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40d1e9
mov esi, 8
jmp 0x40d205
cmp byte [esp + 0x14a], 1
jne 0x40d200
cmp word [esp + 0xc], 9
mov esi, 9
je 0x40d205
mov esi, 7
mov eax, dword [esp + 0x34]
cmp eax, 5
jne 0x40d225
mov eax, dword [esp + 0x38]
cmp eax, 1
jne 0x40d21c
lea esi, [eax + 5]
jmp 0x40d259
test eax, eax
jne 0x40d259
lea esi, [eax + 5]
jmp 0x40d259
cmp eax, 4
ja 0x40d259
mov esi, 4
jmp 0x40d259
cmp dword [esp + 0x34], 4
jne 0x40d259
mov eax, dword [esp + 0x38]
cmp eax, 0x5a
jne 0x40d246
lea esi, [eax - 0x57]
jmp 0x40d259
cmp eax, 0xa
jne 0x40d250
lea esi, [eax - 8]
jmp 0x40d259
test eax, eax
jne 0x40d259
mov esi, 1
mov ecx, dword [esp + 0x14c]
pop ebp
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00448e02
add esp, 0x144
ret

Function at 0x40e2a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x466f48
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00440f0b
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi], vtable.CCustomParamInfo.0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4139a0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
call fcn.004121f0
test al, al
jne 0x4139bf
push str.xxxerror:_The_mail_scan_thread_handle_is_wrong
call fcn.00409e70
add esp, 4
xor al, al
pop esi
ret 4
mov eax, dword [esp + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4139ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 8]
push edx
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.004121a0
mov eax, dword [esi + 0x10]
push eax
push str.xxxerror:_Can_not_set_the_priority_of_mail_scan_thread_handle__error_d
call fcn.00409e70
add esp, 8
xor al, al
pop esi
ret 4
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x413a3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 8]
push edx
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.004121a0
mov eax, dword [esi + 0x10]
push eax
push str.xxxerror:_Can_not_resume_mail_scan_thread_handle__error_d
call fcn.00409e70
add esp, 8
xor al, al
pop esi
ret 4
mov al, 1
pop esi
ret 4

Function at 0x413aa0
Capabilities:
Terminate thread

Disassembly:
push 0x3e3
call fcn.004121d0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x413acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.xxxerror:_Fail_to_terminate_the_email_scan_thread__error_d
call fcn.00409e70
add esp, 8
xor al, al
ret
mov al, 1
ret

Function at 0x4172d1
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x417080
push 0
push 0
call fcn.0044bacc
add esp, 0x18
test eax, eax
jne 0x41731c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
mov dword [esp + 8], eax
call fcn.004121a0
mov edx, dword [esi + 0x10]
push edx
push str.Cannt_create_the_email_scan_thread__error___d
call fcn.00409e70
add esp, 8
xor al, al
pop esi
pop ecx
ret
push 0
mov ecx, esi
mov dword [esi + 4], eax
call fcn.004139a0
mov al, 1
pop esi
pop ecx
ret

Function at 0x417920
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x417979
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417943
sub eax, esi
sar eax, 1
push eax
mov eax, dword [esp + 0x10]
push edx
push 1
push 0
push 0x46d9f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
ret 0xc
xor al, al
ret 0xc
Function at 0x41bbf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1014
call fcn.0044ab60
mov eax, dword [0x48fac0]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
mov ebx, dword [esp + 0x1020]
push esi
mov esi, dword [esp + 0x1028]
push edi
mov edi, dword [esp + 0x1024]
push 0
push 0x46d9f4
mov ecx, esi
call fcn.00402d50
lea eax, [esp + 0xc]
push eax
push ebx
push edi
mov dword [esp + 0x1c], 0x800
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41bca3
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0x46d9f4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41bc98
mov edx, dword [esp + 0x10]
mov word [esp + edx*2 + 0x18], ax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00404b20
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x41bca5
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00448e02
add esp, 0x1014
ret 0xc

Function at 0x41bfe0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x467e88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x40], 1
call fcn.0043eef1
push eax
lea ecx, [esp + 0x18]
call fcn.00406140
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
push 0x80080000
push edi
push ecx
push ebx
mov ecx, esi
mov byte [esp + 0x50], 2
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.0043b511
mov esi, dword [esp + 0x3c]
push esi
mov ebp, eax
call fcn.0044a8fa
mov dword [0x4912bc], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c093
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c0b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c0d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x41e160
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4682a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x48fac0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
push str.____SetDllDirectoryForAMSP
call fcn.00409e70
add esp, 4
lea eax, [esp + 0x18]
push eax
push 0x101
push 0
push str.SoftwareTrendMicroVizor
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x23], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e2f6
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push str.ProductPath
push eax
call edi
test eax, eax
jne 0x41e2eb
cmp dword [esp + 0x14], 1
jne 0x41e2eb
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00437b0d
mov esi, eax
add esp, 4
test esi, esi
je 0x41e2eb
mov edx, dword [esp + 0x10]
push edx
push 0
push esi
call fcn.004481f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
push str.ProductPath
push eax
call edi
test eax, eax
jne 0x41e2e2
cmp dword [esp + 0x14], 1
jne 0x41e2e2
push esi
lea ecx, [esp + 0x24]
call fcn.00406890
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x4c], 0
call fcn.00432260
add esp, 4
push str.UIFramework
lea ecx, [esp + 0x24]
call fcn.0041bdd0
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x41e296
lea eax, [esp + 0x24]
push eax
push str.____AMSP_Outer_ClientLibrary_directory___s_
call fcn.00409e70
mov eax, dword [esp + 0x2c]
add esp, 8
cmp dword [esp + 0x38], edi
jae 0x41e2b2
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
je 0x41e2c4
mov byte [esp + 0xf], 1
jmp 0x41e2d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____::SetDllDirectory__s__failed__error_code__d
call fcn.00409e70
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00403260
push esi
call fcn.00437b08
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00448e02
add esp, 0x40
ret