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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422c7b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x18], 0xffffffff
mov eax, dword [ebx + 8]
mov dword [ebp - 0x3c], eax
je 0x41e23a
push 0
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x41e268
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax + eax]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0xc]
push dword [ebp - 0x3c]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne cl
mov byte [ebp - 0x35], cl
test eax, eax
jne 0x41e1bd
call esi
cmp eax, 0x3e5
jne 0x41e1f6
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x41e1e1
sub eax, 1
je 0x41e296
mov cl, byte [ebp - 0x35]
test cl, cl
je 0x41e170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ecc2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x41e1c1
call esi
cmp eax, 0xe8
je 0x41e20c
call esi
cmp eax, 0xe9
jne 0x41e2c4
push str.OperationInterrupted
lea ecx, [ebp - 0x54]
call fcn.00402d30
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x70]
call fcn.00401b80
push 0x42b37c
lea eax, [ebp - 0x70]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.CSharedMemoryChannelInvalidHandle
lea ecx, [ebp - 0x54]
call fcn.00402d30
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x70]
call fcn.00401b80
push 0x42b37c
lea eax, [ebp - 0x70]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Failed_to_create_connection
lea ecx, [ebp - 0x54]
call fcn.00402d30
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.00401b80
push 0x42b37c
lea eax, [ebp - 0x70]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.OperationInterrupted
lea ecx, [ebp - 0x54]
call fcn.00402d30
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x70]
call fcn.00401b80
push 0x42b37c
lea eax, [ebp - 0x70]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Connection_Closed
lea ecx, [ebp - 0x88]
call fcn.00402d30
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0xa4]
call fcn.00401b80
push 0x42b37c
lea eax, [ebp - 0xa4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x41e300
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422cce
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push str.FN_CSharedMemoryChannel_PostMessage
push eax
call fcn.00401880
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x423484
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [edi + 0x18], 0xffffffff
je 0x41e472
push 0xfffe00ff
mov ecx, edi
call fcn.0041e060
push 0x10000
mov ecx, edi
call fcn.0041e060
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.0041e060
push 1
mov ecx, edi
call fcn.0041e060
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0xf
mov byte [ebp - 0x228], 0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 8]
call fcn.0041ae00
push dword [ebp - 0x218]
mov ecx, edi
call fcn.0041e060
cmp dword [ebp - 0x214], 0x10
lea eax, [ebp - 0x228]
push dword [ebp - 0x218]
cmovae eax, dword [ebp - 0x228]
mov ecx, edi
push eax
call fcn.0041e0e0
mov edx, dword [ebp - 0x214]
cmp edx, 0x10
jb 0x41e433
mov ecx, dword [ebp - 0x228]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e429
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e429
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041ed03
add esp, 8
lea ecx, [ebp + 8]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0xf
mov byte [ebp - 0x228], 0
call fcn.0041ac60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ecc2
mov esp, ebp
pop ebp
ret 0x20
push str.CSharedMemoryChannelInvalidHandle
lea ecx, [ebp - 0x240]
call fcn.00402d30
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x25c]
call fcn.00401b80
push 0x42b37c
lea eax, [ebp - 0x25c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x41e810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422dab
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.0041fd70
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x210]
push str.FN_CSharedMemoryChannel_GetMessage
push eax
call fcn.00401880
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x423484
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, edi
call fcn.0041e4b0
cmp eax, 0xfffe00ff
jne 0x41e8cc
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
lea edx, [eax - 1]
cmp edx, 0xffe
ja 0x41e8b2
push eax
lea eax, [ebp - 0x1210]
mov ecx, edi
push eax
call fcn.0041e540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ecc2
mov esp, ebp
pop ebp
ret
push str.Invalid_Message_Header
lea ecx, [ebp - 0x1228]
call fcn.00402d30
lea eax, [ebp - 0x1228]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1244]
call fcn.00401b80
push 0x42b37c
lea eax, [ebp - 0x1244]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4016b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4ba528
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4fcc8c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00401370
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401706
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.004017a0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00401370
cmp dword [esp + 0x24], 8
jb 0x40174f
mov edx, dword [esp + 0x10]
push edx
call fcn.004913b3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x401a10
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Encode data using xor
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bc123
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4fcc8c]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push edi
mov eax, dword [0x4fcc8c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.0040ff10
lea eax, [esi + 0x74]
push eax
mov dword [esp + 0x54], 0
call fcn.004076e0
mov byte [esp + 0x50], 1
mov al, 0x6c
mov cl, 0x74
mov byte [esp + 0x10], cl
mov byte [esp + 0x1f], cl
mov byte [esp + 0x23], cl
mov cl, 0x31
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x34], al
mov byte [esp + 0x3a], al
mov byte [esp + 0x3c], al
xor eax, eax
mov dword [esi + 0x60], eax
mov dl, 0x6b
mov byte [esp + 0x28], cl
mov byte [esp + 0x2a], cl
mov cl, 0x39
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov byte [esp + 0x1a], dl
mov byte [esp + 0x2e], dl
mov byte [esp + 0x32], cl
mov byte [esp + 0x3b], dl
mov byte [esp + 0x3d], cl
mov byte [esp + 0x40], cl
mov dword [esi + 0x6c], eax
mov byte [esp + 0x11], 0x62
mov byte [esp + 0x12], 0x63
mov byte [esp + 0x13], 0x6d
mov byte [esp + 0x14], 0x65
mov byte [esp + 0x15], 0x66
mov byte [esp + 0x16], 0x64
mov byte [esp + 0x17], 0x68
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1d], 0x6e
mov byte [esp + 0x1e], 0x6f
mov byte [esp + 0x20], 0x71
mov byte [esp + 0x21], 0x72
mov byte [esp + 0x22], 0x6d
mov byte [esp + 0x24], 0x75
mov byte [esp + 0x25], 0x35
mov byte [esp + 0x26], 0x77
mov byte [esp + 0x27], 0x78
mov byte [esp + 0x29], 0x7a
mov byte [esp + 0x2b], 0x67
mov byte [esp + 0x2c], 0x33
mov byte [esp + 0x2d], 0x34
mov byte [esp + 0x2f], 0x36
mov byte [esp + 0x30], 0x37
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x33], 0x30
mov byte [esp + 0x35], 0x65
mov byte [esp + 0x36], 0x66
mov byte [esp + 0x37], 0x65
mov byte [esp + 0x38], 0x68
mov byte [esp + 0x39], 0x69
mov byte [esp + 0x3e], 0x6e
mov byte [esp + 0x3f], 0x6f
mov byte [esp + 0x41], 0x71
mov byte [esp + 0x42], 0x72
mov ecx, 0x3c7f
mov byte [esi + 0x70], al
xor edx, edx
lea edi, [esp + 0x10]
mov eax, ecx
shr eax, 8
xor al, byte [edi]
inc edx
mov byte [esi + edx + 0x5f], al
movsx eax, al
add eax, ecx
imul eax, eax, 0x2bf041
add eax, 0x583b
add edi, 3
cmp edx, 0x11
mov ecx, eax
jl 0x401b76
push esi
call fcn.00401c40
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004913be
add esp, 0x48
ret
Function at 0x403ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4baac3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4fcc8c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.004076e0
lea eax, [esi + 0x18]
push eax
mov dword [esp + 0x18], 0
call fcn.004076e0
lea ecx, [esi + 0x30]
push ecx
mov byte [esp + 0x18], 1
call fcn.004076e0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x403f70
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4bb068
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4fcc8c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
xor ebx, ebx
mov dword [esp + 0x10], reloc.WSOCK32.dll_accept
cmp dword [0x5046b4], ebx
je 0x403fbe
lea eax, [esp + 0x10]
push eax
call fcn.004ad164
test eax, eax
jl 0x4040a5
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebx
mov dword [esp + 0x38], ebx
mov edx, dword [esp + 0x1c]
push esi
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x403fef
mov esi, dword [esp + 0x14]
jmp 0x404060
mov eax, dword [esp + 0x10]
mov edx, esi
push eax
lea esi, [esp + 0x1c]
call fcn.0040f500
test eax, eax
je 0x40405c
push str.Failed_to_create_registry
lea esi, [esp + 0x38]
mov dword [esp + 0x38], str.ALCMUpdator::WriteUpdateFileToRegistry
call fcn.004019a0
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
cmp esi, ebx
je 0x40402f
push esi
call edi
xor esi, esi
cmp dword [0x5046b4], ebx
je 0x40403e
mov ecx, dword [esp + 0x10]
push ecx
call edi
cmp esi, ebx
je 0x404045
push esi
call edi
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
mov esi, dword [esp + 0x18]
cmp edi, ebx
je 0x404080
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x34]
push edx
push edi
push 1
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40408f
push esi
call edi
xor esi, esi
cmp dword [0x5046b4], ebx
je 0x40409e
mov ecx, dword [esp + 0x10]
push ecx
call edi
cmp esi, ebx
je 0x4040a5
push esi
call edi
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4

Function at 0x4040c0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
cmp dword [0x5046b4], 0
push ebx
push esi
mov dword [esp + 8], reloc.WSOCK32.dll_accept
je 0x4040e4
lea eax, [esp + 8]
push eax
call fcn.004ad164
test eax, eax
jl 0x404150
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x20006
xor esi, esi
push esi
push str.SOFTWAREESTsoftALCM
push edx
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x404139
mov esi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push str.NewUpdate
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x404139
push esi
call ebx
xor esi, esi
cmp dword [0x5046b4], 0
je 0x404149
mov ecx, dword [esp + 8]
push ecx
call ebx
test esi, esi
je 0x404150
push esi
call ebx
pop esi
pop ebx
add esp, 8
ret
Function at 0x4043e0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4bb02b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4fcc8c]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
mov eax, dword [0x4fcc8c]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x14], reloc.WSOCK32.dll_accept
cmp dword [0x5046b4], edi
je 0x40443e
lea eax, [esp + 0x14]
push eax
call fcn.004ad164
test eax, eax
jl 0x404583
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x18]
push ecx
push 0x20006
push edi
mov dword [esp + 0x254], edi
mov edx, dword [esp + 0x20]
push str.SOFTWAREESTsoftALCM
push edx
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x404476
mov esi, dword [esp + 0x18]
jmp 0x4044d8
mov eax, dword [esp + 0x14]
push eax
mov edx, str.SOFTWAREESTsoftALCM
lea esi, [esp + 0x20]
call fcn.0040f500
test eax, eax
je 0x4044d4
push str.SOFTWAREESTsoftALCM
push str.Failed_to_Create_registry__s_
lea esi, [esp + 0x20]
mov dword [esp + 0x20], str.ALCMUpdator::WriteUpdateTimeToRegistry
call fcn.004019a0
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
cmp esi, edi
je 0x4044be
push esi
call ebx
xor esi, esi
cmp dword [0x5046b4], edi
je 0x40457c
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x40457a
mov esi, dword [esp + 0x1c]
push 0x206
lea eax, [esp + 0x3a]
xor edx, edx
push edi
push eax
mov word [esp + 0x40], dx
call fcn.004982b0
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x2a]
movzx eax, word [esp + 0x26]
push edx
push eax
movzx eax, word [esp + 0x2c]
cdq
mov ecx, 0x64
idiv ecx
push edx
push str._02d_02d_02d
lea edx, [esp + 0x44]
call fcn.0040bfe0
add esp, 0x10
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x38]
push ecx
push 1
push edi
push str.ExecuteTime
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x40456d
push esi
call ebx
xor esi, esi
cmp dword [0x5046b4], edi
je 0x40457c
mov edx, dword [esp + 0x14]
push edx
call ebx
cmp esi, edi
je 0x404583
push esi
call ebx
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004913be
add esp, 0x23c
ret
Function at 0x4094d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4ba0bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4fcc8c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0043208c
push 4
mov dword [esp + 0x20], 0
call fcn.00491c5b
mov edi, eax
add esp, 4
test edi, edi
je 0x40954e
call fcn.004323dc
mov dword [edi], eax
call fcn.0043220a
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0043212e
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409543
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00432156
jmp 0x409550
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40f2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f2cd
mov eax, dword [esp + 8]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
ret 8

Function at 0x40f3b0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4fcc8c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40f42a
xor eax, eax
cmp ecx, ebp
je 0x40f412
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40f438
cmp ecx, ebp
je 0x40f4cb
push ecx
jmp 0x40f4c5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40f49a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040f3b0
mov ebx, eax
cmp ebx, ebp
jne 0x40f4e8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40f460
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40f4ad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0040f350
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40f4cb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004913be
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40f4f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40f4cd

Function at 0x40f5a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f5d9
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8
Function at 0x40f5e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f64e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40f61f
cmp eax, 2
jne 0x40f63a
mov eax, dword [esp]
test esi, esi
je 0x40f648
test eax, eax
je 0x40f643
test al, 1
jne 0x40f63a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40f648
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x40f730
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
ret