joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100360b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
cmp byte [esi + 0x174], 0
push ebx
push ebp
push edi
je 0x10036128
mov edx, dword [esi + 0x10c]
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x140]
push ecx
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x10036274
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x184]
je 0x10036114
push str.Unknown_pending_write_error._Size_of_sent_data_is_equal_to_size_of_processed_data.
lea edi, [esp + 0x1c]
call fcn.1003f960
add esp, 4
push 0x100e9358
mov ecx, edi
push ecx
call sub.MSVCR90.dll__CxxThrowException
mov edx, dword [esi + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [esi + 0x174], 0
mov ecx, dword [esi + 0x170]
sub ecx, dword [esi + 0x16c]
je 0x100362ce
lea ebx, [esi + 0xec]
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x170]
sub edx, dword [esi + 0x16c]
je 0x100361a7
jmp 0x10036160
mov eax, dword [esi + 0x164]
sub eax, dword [esi + 0x160]
mov ebp, dword [esi + 0x16c]
cmp ebp, eax
jb 0x1003617c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x160]
add ecx, ebp
mov eax, dword [ecx + edi + 8]
add eax, 0x10
add eax, edi
cmp eax, dword [esi + 0x178]
ja 0x100361a7
mov edx, dword [esi + 0x170]
sub edx, dword [esi + 0x16c]
mov edi, eax
cmp edi, edx
jne 0x10036160
mov eax, dword [esi + 0x164]
sub eax, dword [esi + 0x160]
mov ebp, dword [esi + 0x16c]
cmp ebp, eax
jb 0x100361c3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x160]
mov edx, dword [esi + 0x17c]
push edi
add ecx, ebp
push ecx
push edx
call sub.MSVCR90.dll_memcpy
add dword [esi + 0x16c], edi
mov eax, dword [esi + 0x16c]
add esp, 0xc
xor ebp, ebp
mov dword [esi + 0x184], edi
cmp eax, dword [esi + 0x170]
jne 0x10036204
mov dword [esi + 0x16c], ebp
mov dword [esi + 0x170], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x17c]
mov edx, dword [esi + 0x10c]
lea eax, [esi + 0x140]
push eax
lea eax, [esp + 0x18]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100362c7
cmp eax, 0x3e4
je 0x100362c7
cmp edi, ebp
je 0x100362a6
mov eax, dword [esi + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x170]
sub ecx, dword [esi + 0x16c]
jne 0x10036140
pop edi
pop ebp
pop ebx
add esp, 0x30
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x100362ce
test eax, eax
je 0x100362ce
push eax
push str.Send_pending_operation_problems.___s
lea ecx, [esp + 0x28]
call fcn.1003f9c0
add esp, 8
push 0x100e9368
lea eax, [esp + 0x24]
push eax
call sub.MSVCR90.dll__CxxThrowException
push eax
push str.Data_send_problems.___s
lea ecx, [esp + 0x34]
call fcn.1003f9c0
add esp, 8
push 0x100e9368
lea edx, [esp + 0x30]
push edx
call sub.MSVCR90.dll__CxxThrowException
mov byte [esi + 0x174], 1
pop edi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x100362e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, eax
cmp byte [edi + 0x175], 0
je 0x10036345
mov edx, dword [edi + 0x10c]
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x12c]
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x100363fc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003633e
push eax
mov eax, dword [edi + 0x180]
call fcn.100364b0
mov eax, dword [edi + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [edi + 0x175], 0
mov ecx, dword [edi + 0x178]
mov edx, dword [edi + 0x180]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ebp, [edi + 0x12c]
push ebp
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x10c]
push ecx
push edx
push eax
mov dword [esp + 0x24], 0
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100363e9
cmp eax, 0x3e4
je 0x100363e9
test esi, esi
je 0x10036489
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100363a8
push eax
mov eax, dword [edi + 0x180]
call fcn.100364b0
mov ecx, dword [edi + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0x178]
mov ecx, dword [edi + 0x180]
push ebp
lea edx, [esp + 0x14]
push edx
mov edx, dword [edi + 0x10c]
push eax
push ecx
push edx
mov dword [esp + 0x24], 0
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10036385
mov eax, 1
mov byte [edi + 0x175], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x1003647f
test eax, eax
je 0x1003647f
cmp eax, 0x6d
jne 0x10036439
mov eax, 1
mov byte [edi + 0x11e], al
mov edi, dword [edi + 0x118]
mov edx, dword [edi]
push 0
push eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp eax, 0xe9
jne 0x1003645e
push str.Server_had_terminated_client
lea edi, [esp + 0x1c]
call fcn.1003f960
add esp, 4
push 0x100e9358
mov ecx, edi
push ecx
call sub.MSVCR90.dll__CxxThrowException
push eax
push str.Receive_pending_operation_problems.___s
lea ecx, [esp + 0x28]
call fcn.1003f9c0
add esp, 8
push 0x100e9368
lea edx, [esp + 0x24]
push edx
call sub.MSVCR90.dll__CxxThrowException
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x2c
ret
push eax
push str.Data_read_problems.___s
lea ecx, [esp + 0x34]
call fcn.1003f9c0
add esp, 8
push 0x100e9368
lea eax, [esp + 0x30]
push eax
call sub.MSVCR90.dll__CxxThrowException
int3
Function at 0x100383f0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x100bf51b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x100fc018]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
push edi
mov eax, dword [0x100fc018]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x1c], 0x104
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100384ba
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x38]
call fcn.10039bd0
push 2
sub esp, 0x1c
mov dword [esp + 0x26c], 0
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], esp
mov ecx, esp
jae 0x1003848c
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.MSVCP90.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 edi, dword [esp + 0x274]
call fcn.100385b0
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x24c], 0xffffffff
call dword [sym.imp.MSVCP90.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
jmp 0x100384bf
mov eax, 0x270f
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.100ba2f9
add esp, 0x244
ret 4
Function at 0x1003bb00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor edx, edx
push esi
push edi
mov byte [ebp + 0x100], dl
mov byte [ebp + 0x101], dl
xor eax, eax
jmp 0x1003bb20
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jne 0x1003bb20
xor esi, esi
mov ecx, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
movzx edi, dl
movzx edx, byte [edi + eax]
movzx eax, byte [ecx]
add edx, esi
add eax, edx
and eax, 0x800000ff
jns 0x1003bb53
dec eax
or eax, 0xffffff00
inc eax
movzx esi, al
lea eax, [esi + ebp]
cmp ecx, eax
je 0x1003bb65
mov bl, byte [eax]
mov dl, byte [ecx]
mov byte [ecx], bl
mov byte [eax], dl
xor edx, edx
lea eax, [edi + 1]
div dword [esp + 0x1c]
inc ecx
sub dword [esp + 0x14], 1
jne 0x1003bb33
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0xc

Function at 0x1003bb80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov al, byte [ecx + 0x100]
mov dl, byte [ecx + 0x101]
sub esp, 8
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x1003bc4f
push ebx
push ebp
push esi
movzx ebp, al
movzx esi, dl
jmp 0x1003bbb4
mov esi, dword [esp + 0x14]
lea edx, [ebp + 1]
and edx, 0x800000ff
jns 0x1003bbc7
dec edx
or edx, 0xffffff00
inc edx
movzx ebp, dl
movzx ebx, byte [ecx + ebp]
lea eax, [ecx + ebp]
add ebx, esi
and ebx, 0x800000ff
jns 0x1003bbe3
dec ebx
or ebx, 0xffffff00
inc ebx
movzx esi, bl
mov dword [esp + 0x14], esi
add esi, ecx
mov byte [esp + 0x13], bl
cmp eax, esi
je 0x1003bc0b
movzx ebx, byte [eax]
mov byte [esp + 0x12], bl
movzx ebx, byte [esi]
mov byte [eax], bl
movzx ebx, byte [esp + 0x12]
mov byte [esi], bl
mov bl, byte [esp + 0x13]
movzx eax, byte [eax]
movzx esi, byte [esi]
add eax, esi
and eax, 0x800000ff
jns 0x1003bc21
dec eax
or eax, 0xffffff00
inc eax
mov esi, dword [esp + 0x1c]
movzx eax, al
mov al, byte [eax + ecx]
xor byte [edi + esi], al
inc edi
cmp edi, dword [esp + 0x20]
jne 0x1003bbb0
pop esi
pop ebp
mov byte [ecx + 0x101], bl
pop ebx
mov byte [ecx + 0x100], dl
pop edi
add esp, 8
ret 8
mov byte [ecx + 0x100], al
mov byte [ecx + 0x101], dl
pop edi
add esp, 8
ret 8
Function at 0x1003bf40
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
test eax, eax
je 0x1003bf5b
mov cl, 0x3d
mov edi, edi
cmp byte [esi + eax - 1], cl
jne 0x1003bf5b
sub eax, 1
jne 0x1003bf50
mov ecx, eax
and eax, 3
shr ecx, 2
mov dword [esp + 0xc], eax
xor edi, edi
xor eax, eax
test ecx, ecx
jbe 0x1003bfec
nop
movsx edx, byte [esi + eax]
movzx edx, byte [edx + 0x100dc678]
movsx ebx, byte [esi + eax + 1]
movzx ebx, byte [ebx + 0x100dc678]
add dl, dl
add dl, dl
sar bl, 4
and bl, 3
or dl, bl
mov byte [edi + ebp], dl
movsx edx, byte [esi + eax + 2]
movzx edx, byte [edx + 0x100dc678]
movsx ebx, byte [esi + eax + 1]
movzx ebx, byte [ebx + 0x100dc678]
sar dl, 2
and dl, 0xf
shl bl, 4
or dl, bl
mov byte [edi + ebp + 1], dl
movsx edx, byte [esi + eax + 3]
movsx ebx, byte [esi + eax + 2]
movzx edx, byte [edx + 0x100dc678]
movzx ebx, byte [ebx + 0x100dc678]
and dl, 0x3f
shl bl, 6
or dl, bl
mov byte [edi + ebp + 2], dl
add edi, 3
add eax, 4
sub ecx, 1
jne 0x1003bf70
mov ecx, dword [esp + 0xc]
sub ecx, 2
je 0x1003c05d
sub ecx, 1
jne 0x1003c081
movsx edx, byte [eax + esi + 1]
movzx edx, byte [edx + 0x100dc678]
movsx ebx, byte [eax + esi]
mov bl, byte [ebx + 0x100dc678]
lea ecx, [eax + esi + 1]
sar dl, 4
and dl, 3
add bl, bl
add bl, bl
or dl, bl
mov byte [edi + ebp], dl
movsx eax, byte [eax + esi + 2]
movzx edx, byte [eax + 0x100dc678]
movsx eax, byte [ecx]
mov cl, byte [eax + 0x100dc678]
sar dl, 2
and dl, 0xf
shl cl, 4
or dl, cl
push 0
mov byte [edi + ebp + 1], dl
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
movsx edx, byte [eax + esi + 1]
mov cl, byte [edx + 0x100dc678]
movsx edx, byte [eax + esi]
mov al, byte [edx + 0x100dc678]
sar cl, 4
add al, al
and cl, 3
add al, al
or cl, al
mov byte [edi + ebp], cl
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x1003c0a0
Capabilities:
Encode data using base64

Disassembly:
push ecx
mov edx, dword [esp + 8]
test eax, eax
je 0x1003c0be
lea ecx, [edx + eax*2 - 2]
lea ecx, [ecx]
cmp word [ecx], 0x3d
jne 0x1003c0be
dec eax
sub ecx, 2
test eax, eax
jne 0x1003c0b0
push ebx
push ebp
mov ecx, eax
push esi
shr ecx, 2
and eax, 3
xor esi, esi
xor ebp, ebp
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x1003c16f
lea eax, [edx + 2]
lea ebp, [ecx*4]
jmp 0x1003c0f0
movzx edx, word [eax]
movzx edx, byte [edx*2 + 0x100dc778]
movzx ebx, word [eax - 2]
movzx ebx, byte [ebx*2 + 0x100dc778]
shr dl, 4
and dl, 3
add bl, bl
add bl, bl
or dl, bl
mov byte [edi + esi], dl
movzx edx, word [eax + 2]
movzx edx, byte [edx*2 + 0x100dc778]
movzx ebx, word [eax]
movzx ebx, byte [ebx*2 + 0x100dc778]
shr dl, 2
and dl, 0xf
shl bl, 4
or dl, bl
mov byte [edi + esi + 1], dl
movzx edx, word [eax + 4]
movzx ebx, word [eax + 2]
movzx edx, byte [edx*2 + 0x100dc778]
movzx ebx, byte [ebx*2 + 0x100dc778]
and dl, 0x3f
shl bl, 6
or dl, bl
mov byte [edi + esi + 2], dl
add esi, 3
add eax, 8
sub ecx, 1
jne 0x1003c0f0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
sub eax, 2
je 0x1003c1e4
sub eax, 1
jne 0x1003c209
movzx ecx, word [edx + ebp*2 + 2]
movzx ecx, byte [ecx*2 + 0x100dc778]
movzx ebx, word [edx + ebp*2]
mov bl, byte [ebx*2 + 0x100dc778]
lea eax, [edx + ebp*2 + 2]
shr cl, 4
and cl, 3
add bl, bl
add bl, bl
or cl, bl
mov byte [esi + edi], cl
movzx edx, word [edx + ebp*2 + 4]
movzx ecx, byte [edx*2 + 0x100dc778]
movzx edx, word [eax]
mov al, byte [edx*2 + 0x100dc778]
shr cl, 2
and cl, 0xf
shl al, 4
or cl, al
push 0
mov byte [esi + edi + 1], cl
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
movzx ecx, word [edx + ebp*2 + 2]
mov al, byte [ecx*2 + 0x100dc778]
movzx ecx, word [edx + ebp*2]
mov dl, byte [ecx*2 + 0x100dc778]
shr al, 4
add dl, dl
and al, 3
add dl, dl
or al, dl
mov byte [esi + edi], al
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x1003d4e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c6578
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push esi
mov eax, dword [0x100fc018]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
push 1
push 2
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov dword [esp + 0xb8], 0
call dword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____cdecl_std::locale::classic_void_]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 4]
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + ecx + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_class_std::locale___thiscall_std::basic_ios_char__struct_std::char_traits_char__::imbue_class_std::locale_const__]
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::locale::destructor_void_]
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov byte [esp + 0xb8], 1
cmp dword [eax + 0x18], 0x10
jb 0x1003d580
mov eax, dword [eax + 4]
jmp 0x1003d583
add eax, 4
mov ecx, dword [ebp + 8]
push ecx
mov ecx, eax
call fcn.1003d2d0
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xb8], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb8], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov eax, esi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10040260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100bf1c1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100fc018]
xor eax, esp
mov dword [esp + 0x24], eax
push edi
mov eax, dword [0x100fc018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 8], 0
cmp dword [0x100ff1d4], 0
mov dword [esp + 0xc], esi
je 0x100402c5
cmp dword [0x100ff1d8], 8
mov eax, dword [0x100ff1c4]
jae 0x100402b7
mov eax, 0x100ff1c4
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x10040345
call fcn.1003ff90
mov edi, eax
test edi, edi
jne 0x100402dd
push esi
mov edi, 0x100c9854
call fcn.10039bd0
jmp 0x10040345
lea eax, [esp + 0x10]
push eax
call fcn.10039bd0
push edi
mov dword [esp + 0x3c], 1
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x18]
mov edi, 8
add esp, 4
cmp dword [esp + 0x28], edi
jae 0x1004030b
lea eax, [esp + 0x14]
push eax
mov ecx, 0x100ff1c0
call dword [sym.imp.MSVCP90.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__::assign_wchar_t_const__]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x10040325
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x10]
mov dword [esp + 8], 1
mov byte [esp + 0x38], 0
call dword [sym.imp.MSVCP90.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 + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100ba2f9
add esp, 0x34
ret

Function at 0x100408a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100c1d08
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100fc018]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push 0
push str.NTDLL.DLL
push esi
call fcn.10040630
mov dword [esp + 0x14], 0
call fcn.100406e0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100408f4
push str.NtQueryKey
push eax
call edi
jmp 0x100408f6
xor eax, eax
mov dword [esi + 0x24], eax
call fcn.100406e0
test eax, eax
je 0x1004090c
push str.NtQueryInformationFile
push eax
call edi
jmp 0x1004090e
xor eax, eax
mov dword [esi + 0x28], eax
call fcn.100406e0
test eax, eax
je 0x10040924
push str.NtQueryInformationProcess
push eax
call edi
jmp 0x10040926
xor eax, eax
mov dword [esi + 0x2c], eax
call fcn.100406e0
test eax, eax
je 0x1004093c
push str.RtlNtStatusToDosError
push eax
call edi
jmp 0x1004093e
xor eax, eax
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10040ca0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10040cd0
xor al, al
ret 0x10
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0xc]
test eax, eax
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
ret 0x10

Function at 0x10040d10
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x100bc978
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x100fc018]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10040d8c
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 0x28
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x10040d9b
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x44]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [esp + 0x14]
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0xc]
test eax, eax
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret 0x28
Function at 0x10040df0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100bc950
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100fc018]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
mov ecx, dword [ebp]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push esi
push ecx
mov dword [esp + 0x2c], 0x9c40
call ebx
mov edx, dword [esp + 0x14]
add edx, 2
push edx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x18]
add eax, 2
push eax
push 0
push edi
call sub.MSVCR90.dll_memset
mov edx, dword [ebp]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push edi
push 0
push 0
push esi
push edx
call ebx
test eax, eax
je 0x10040e8f
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x10040ed5
lea eax, [esp + 0x18]
push eax
call fcn.10039bd0
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x3c], 1
cmp ecx, eax
je 0x10040ebb
cmp dword [eax + 0x18], 8
jb 0x10040eb1
mov eax, dword [eax + 4]
jmp 0x10040eb4
add eax, 4
push eax
call dword [sym.imp.MSVCP90.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__::assign_wchar_t_const__]
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc

Function at 0x10040ef0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax]
push 0
push 0
push edx
push ecx
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10040f2f
xor al, al
add esp, 8
ret 0xc
mov eax, dword [esp]
mov edx, dword [esp + 0x14]
mov dword [edx], eax
mov al, 1
add esp, 8
ret 0xc