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

Disassembly:
push 0xffffffffffffffff
push 0x573ebc
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0xa8], eax
push esi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor esi, esi
push 0x5c36fc
lea ecx, [esp + 0x18]
mov dword [esp + 0xc0], esi
call dword [0x57a2dc]
push str.9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.Implemented_Categories_
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.A5F7140E_4311_4ef9_AABC_F55941B5EBE5
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
mov dword [esp + 8], esi
jae 0x4012aa
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push ecx
push 0x201
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x4012de
lea ecx, [esp + 0x14]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x401357
push 0x7e
lea edx, [esp + 0x36]
push esi
push edx
mov word [esp + 0x3c], si
call fcn.0044ea7c
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push str.idex
push eax
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x401335
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call dword [0x57a2dc]
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0044e502
add esp, 0xb8
ret
Function at 0x401440
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push str.lmvhs_cke
lea edi, [esp + 0x10]
or ebx, 0xffffffff
call fcn.00401150
add esp, 4
cmp dword [eax + 0x18], 8
jb 0x401465
mov esi, dword [eax + 4]
jmp 0x401468
lea esi, [eax + 4]
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4014c4
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4014c4
push 0
push 0
push eax
push 0x401380
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
push 0xa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x4014c4
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret

Function at 0x401d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401d27
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d58
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401d54
cmp esi, eax
jae 0x401d58
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401d44
cmp esi, eax
jb 0x401d5e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x402130
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
sub esp, 0x460
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x45c], eax
xor eax, eax
push edi
mov dword [ebx], eax
mov dword [ebx + 4], eax
push 0x5c38e4
mov dword [ebx + 8], eax
push ecx
mov dword [esp + 0xc], vtable.Md5.0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [ebx + 0xc], eax
call dword [sym.imp.MSVCR80.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x4021f5
push esi
mov esi, dword [sym.imp.MSVCR80.dll_fread]
push edi
push 0x400
lea eax, [esp + 0x6c]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4021e0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0xc]
call fcn.0043a880
push edi
push 0x400
lea edx, [esp + 0x6c]
push 1
push edx
call esi
add esp, 0x10
test eax, eax
jne 0x4021bc
push ebx
lea esi, [esp + 0xc]
call fcn.0043a920
push edi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
pop esi
mov ecx, dword [esp + 0x460]
pop edi
xor ecx, esp
mov eax, ebx
call fcn.0044e502
add esp, 0x460
ret
Function at 0x403890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5777d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x5dcd6c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5dcd6c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
push eax
push 0x5c39a4
lea edi, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00403ac0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov edx, dword [edx]
add esp, 8
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp eax, 1
lea eax, [esi - 0x10]
sete bl
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403932
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
Function at 0x403950
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5756a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x5dcd6c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5dcd6c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
push 0
push 0x5c39a4
lea edi, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00403ac0
mov eax, dword [0x5dcd6c]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x5dcd6c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x24]
mov ecx, 1
mov byte [esp + 0x1c], cl
mov edi, dword [eax]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4039ec
mov ecx, 0x104
lea eax, [esp + 0xc]
call fcn.00401e40
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
push edi
push 0x104
push esi
push 0x5c39ac
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test esi, esi
jne 0x403a14
xor eax, eax
jmp 0x403a31
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403a20
sub eax, edx
sar eax, 1
js 0x403aaa
cmp eax, dword [esi - 8]
jg 0x403aaa
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], 0
call dword [sym.imp.MSVCR80.dll__wtoi]
mov edi, eax
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
push 0x80070057
call fcn.00401bb0
int3
Function at 0x403b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
je 0x403c57
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push ebp
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x403bcd
cmp eax, 2
jne 0x403c57
call fcn.004020d0
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x403bf8
mov eax, esi
call fcn.00401e40
mov edi, dword [esi]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x403c27
mov edx, dword [esp + 0x20]
shr edx, 1
mov word [edi + edx*2], ax
mov dword [esp + 0x14], 1
mov edx, dword [esi]
test edx, edx
jne 0x403c31
xor eax, eax
jmp 0x403c47
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c36
sub eax, edi
sar eax, 1
js 0x403c65
cmp eax, dword [edx - 8]
jg 0x403c65
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0x80070057
call fcn.00401bb0
int3

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

Disassembly:
push 0xffffffffffffffff
push 0x576ef1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], eax
lea ecx, [ecx]
mov eax, dword [edi]
push eax
lea eax, [esp + 0x18]
push eax
push ebp
lea ebx, [esp + 0x24]
call fcn.00404000
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x403fbd
lea ebx, [esp + 0x14]
call fcn.00404270
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403fe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x18], 0xffffffff
jne 0x403f90
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x404d80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x574921
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
lea edi, [esi + 0x14]
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ebx, [esi + 0x30]
xor ebp, ebp
mov ecx, ebx
mov dword [esp + 0x38], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x38], 1
push esi
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], 0x80004005
call fcn.00405370
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
push eax
mov ecx, edi
call dword [0x57a2dc]
cmp dword [edi + 0x18], 8
jb 0x404dff
mov edi, dword [edi + 4]
jmp 0x404e02
add edi, 4
cmp edi, ebp
je 0x404e3e
lea ecx, [esp + 0x44]
push ecx
push 0x20019
push ebp
push edi
push reloc.WS2_32.dll_accept
mov dword [esp + 0x58], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x404e3e
mov eax, dword [esp + 0x44]
cmp eax, ebp
je 0x404e3e
push eax
call fcn.004056f0
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
call fcn.004055d0
push eax
mov ecx, ebx
mov byte [esp + 0x3c], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, esi
call fcn.004058b0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x405370
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x574880
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x40551a
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jl 0x405559
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
cmp esi, ebx
jl 0x40549a
lea eax, [esp + 0x34]
push eax
push 0x584610
push 1
push ebx
push 0x5846e0
mov dword [esp + 0x48], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x405548
cmp dword [esp + 0x34], ebx
je 0x405548
lea ecx, [esp + 0x1c]
push ecx
mov edi, str.ROOTDEFAULT
mov dword [esp + 0x18], ebx
call fcn.00404c90
mov dword [esp + 0x2c], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x405422
mov ecx, dword [eax]
jmp 0x405424
xor ecx, ecx
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
lea esi, [esp + 0x14]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.00404d30
cmp esi, ebx
jl 0x405540
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x405540
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
cmp esi, ebx
jge 0x4054a7
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40548a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40549a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x405559
lea eax, [esp + 0x20]
push eax
mov edi, str.StdRegProv
mov dword [esp + 0x1c], ebx
call fcn.00404c90
mov dword [esp + 0x2c], 1
mov eax, dword [eax]
cmp eax, ebx
je 0x4054cc
mov ecx, dword [eax]
jmp 0x4054ce
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ebx
lea esi, [esp + 0x1c]
push esi
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0x18]
call eax
lea edi, [esp + 0x20]
mov esi, eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.00404d30
cmp esi, ebx
jl 0x40551e
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40551e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], 1
xor eax, eax
jmp 0x405559
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40552e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x405548
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x405548
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x405536
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp esi, ebx
mov eax, esi
jl 0x405559
mov eax, 0x80004005
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x4056f0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
push edi
lea eax, [esp + 4]
xor edi, edi
push eax
push 0x20008
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4058a7
mov eax, dword [esp + 4]
cmp eax, edi
je 0x4058a7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x10]
push ecx
push edi
push edi
push 1
push eax
mov dword [esp + 0x24], edi
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
ja 0x405761
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret 4
push ebx
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov ebx, eax
mov eax, dword [esp + 0x10]
add esp, 4
cmp ebx, edi
mov dword [esp + 0x18], ebx
jne 0x40578c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret 4
mov edx, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push 1
push eax
call esi
test eax, eax
je 0x4057a7
mov ebp, dword [ebx]
cmp ebp, edi
jne 0x4057be
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x28]
push edx
push edi
lea eax, [esp + 0x1c]
push eax
push edi
push edi
push 4
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x405875
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x405875
xor esi, esi
cmp word [eax + 4], di
jbe 0x405875
mov ebx, dword [sym.imp.ADVAPI32.dll_GetAce]
lea esp, [esp]
lea edx, [esp + 0x24]
push edx
push esi
push eax
mov dword [esp + 0x30], edi
call ebx
test eax, eax
je 0x40582d
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x40582d
cmp byte [eax], 1
jne 0x40582d
add eax, 8
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40583e
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 4]
add esi, 1
cmp esi, ecx
jb 0x405800
jmp 0x405871
mov edx, dword [esp + 0x14]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
push edi
push eax
push edi
push edi
push 4
push 4
push ecx
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x405871
mov dword [esp + 0x20], edi
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x405884
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.MSVCR80.dll_free]
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x1c
ret 4
xor eax, eax
pop edi
add esp, 0x1c
ret 4
Function at 0x4075b0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x573dda
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x20], esi
push eax
mov ecx, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [esp + 0x20], esi
cmp dword [edi + 0x14], esi
mov dword [esp + 0x10], 1
jbe 0x40763b
push esi
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
mov ecx, eax
xor edx, edx
mov ebx, 9
mov eax, esi
div ebx
push esi
mov ax, word [ebp + edx*2]
xor ax, word [ecx]
mov ecx, edi
movzx ebx, ax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
add esi, 1
mov word [eax], bx
cmp esi, dword [edi + 0x14]
jb 0x407606
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

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

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407a16
test al, 0x10
jne 0x407a16
mov eax, 1
ret
xor eax, eax
ret
Function at 0x4080a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x577b18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [0x5dcd6c]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x5dcd6c
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push 0x5b
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.MSVCR80.dll_wcschr]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4081e1
lea esp, [esp]
mov edx, dword [esp + 0x10]
mov edi, dword [edx - 0x10]
lea eax, [edx - 0x10]
xor ebx, ebx
cmp dword [eax + 4], ebx
je 0x408164
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x40813e
cmp dword [edx - 8], ebx
jl 0x408222
mov dword [edx - 0xc], ebx
mov ecx, dword [esp + 0x10]
mov word [ecx], bx
jmp 0x408164
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408154
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0xa
push esi
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4081a2
test esi, esi
je 0x40818f
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408180
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
call fcn.00407d80
mov ebx, 1
jmp 0x4081b5
sub eax, esi
sar eax, 1
add eax, 1
push eax
push esi
lea edx, [esp + 0x18]
push edx
call fcn.00407d80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x14]
lea esi, [esi + eax*2]
call fcn.00408230
test eax, eax
je 0x4081e1
test ebx, ebx
je 0x408110
mov dword [esp + 0x14], 1
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408209
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401bb0
int3