joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4103a0
Capabilities:
Get system information 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 0x46460b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3c
mov eax, dword [0x48406c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x497abc]
cmp eax, dword [ecx + 4]
jle 0x410498
push 0x497abc
call fcn.0042b23a
add esp, 4
cmp dword [0x497abc], 0xffffffff
jne 0x410498
push 0x18
mov dword [ebp - 4], 0
call fcn.0042b32e
mov esi, eax
add esp, 4
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push eax
movq qword [esi + 0x10], xmm0
mov dword [esi], vtable.SetThreadAffinityMaskEx.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x24], 0x10
jb 0x410485
call fcn.0040fff0
mov dword [esi + 8], eax
mov ecx, esi
test eax, eax
jne 0x410480
call fcn.004106f0
test al, al
je 0x4104ba
jmp 0x410485
call fcn.004109d0
push 0x497abc
mov dword [0x497ab8], esi
call fcn.0042b1f0
add esp, 4
mov eax, dword [0x497ab8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042b067
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Unable_to_dispatch_SetThreadAffinityMaskX64.exe
lea ecx, [ebp - 0x48]
call fcn.0040fd70
push 0x482744
lea eax, [ebp - 0x48]
push eax
call fcn.004424ab
int3
Function at 0x410510
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46463b
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.0042c370
mov eax, dword [0x48406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0
jl 0x4106ae
jg 0x41055a
cmp dword [ebp + 8], 0x10
jb 0x4106ae
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41058d
push 2
push 0
push 0
lea edi, [esi + 0xc]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41058d
mov eax, dword [edi]
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov edi, dword [esi + 0x10]
mov eax, edi
mov esi, dword [esi + 0x14]
or eax, esi
je 0x410691
mov dword [ebp - 0x1034], 0xffffffff
push 0x1000
lea eax, [ebp - 0x1028]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x102c], 0
call fcn.00443020
add esp, 8
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x1050]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x28], SysReAllocStringLen
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.00412be0
add esp, 4
lea ecx, [ebp - 0x102c]
cmp dword [ebp - 0x103c], 8
lea eax, [ebp - 0x1050]
cmovae eax, dword [ebp - 0x1050]
push 0xffffffffffffffff
push ecx
push 0x400
lea ecx, [ebp - 0x1028]
push ecx
push 0x18
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov ebx, eax
test ebx, ebx
jne 0x41064e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._BasicNamedPipe_char_t_::Call__failed__GetLastError_returned__d
call fcn.004127b0
add esp, 8
test ebx, ebx
mov edx, dword [ebp - 0x103c]
setne bl
cmp edx, 8
jb 0x41068d
mov ecx, dword [ebp - 0x1050]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410683
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4106de
push edx
push ecx
call fcn.0042b5db
add esp, 8
test bl, bl
jne 0x4106a8
xorps xmm0, xmm0
movlpd qword [ebp - 0x1038], xmm0
mov edi, dword [ebp - 0x1034]
mov esi, dword [ebp - 0x1038]
mov eax, esi
mov edx, edi
jmp 0x4106c0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b067
mov esp, ebp
pop ebp
ret 0x10
call fcn.00449472
int3
Function at 0x4127b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042c370
mov eax, dword [0x48406c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
lea eax, [ebp + 0xc]
mov edx, 0x1000
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x100c]
push 0xffd
call fcn.00412770
add esp, 0x10
lea esi, [ebp - 0x100c]
test eax, eax
mov ecx, 0xffd
cmovs eax, ecx
add esi, eax
lea eax, [ebp - 0x100c]
cmp esi, eax
jbe 0x412824
movsx eax, byte [esi - 1]
push eax
call fcn.004497cb
add esp, 4
test eax, eax
je 0x412824
dec esi
lea eax, [ebp - 0x100c]
mov byte [esi], 0
cmp esi, eax
ja 0x412805
lea eax, [ebp - 0x100c]
mov word [esi], 0xa0d
push eax
mov byte [esi + 2], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0042b067
mov esp, ebp
pop ebp
ret

Function at 0x412ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48406c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov ebx, edx
lea eax, [ebp - 0xc]
mov edi, ecx
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412d91
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x412d27
cmp eax, 2
je 0x412d27
cmp eax, 7
jne 0x412d91
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.0042b5e9
mov esi, eax
add esp, 4
test esi, esi
je 0x412d91
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push ebx
push edi
mov byte [ecx + esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete bl
test eax, eax
jne 0x412d75
mov edx, esi
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x412d62
mov ecx, dword [ebp - 0x10]
sub edx, edi
push edx
push esi
call fcn.004062e0
push esi
call fcn.0042b078
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b067
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b067
mov esp, ebp
pop ebp
ret

Function at 0x412db0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x48406c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [ebp + 8]
mov edi, ecx
push 0
push 0
push 0
lea esi, [edi + 8]
mov dword [edi + 4], 0
push esi
lea ecx, [ebp - 8]
mov dword [esi], 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
mov dword [edi], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, eax
mov eax, dword [esi]
inc eax
mov dword [esi], eax
test ecx, ecx
je 0x412e1a
push dword [edi + 4]
mov dword [edi + 8], 0
call fcn.0042b078
mov dword [edi + 4], 0
jmp 0x412e23
push eax
call fcn.0042b5e9
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
call fcn.0042b067
mov esp, ebp
pop ebp
ret 4
Function at 0x415190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464ad3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x48406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x497954
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x497954
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x477394
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004142e0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415980
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464bf9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x48406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x20], 0x497954
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 5
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x2c]
mov dword [ebx], vtable.TiXmlDeclaration.0
mov dword [ecx], 0x497954
mov dword [ebx + 0x30], 0x497954
mov dword [ebx + 0x34], 0x497954
push 3
push 0x477c2c
mov byte [ebp - 4], 3
call fcn.004142e0
push 5
push str.UTF_8
lea ecx, [ebx + 0x30]
call fcn.004142e0
push 2
push 0x477c20
lea ecx, [ebx + 0x34]
call fcn.004142e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41bdd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4650ab
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x48406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.0041a080
push 8
call fcn.0042b32e
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 2
call fcn.004297f2
add esp, 4
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
mov ecx, edi
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
push 0x20
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
call fcn.0041c090
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x41bedf
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.0041a080
lea edx, [ebx + 0x10]
mov dword [ebp + 8], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41bf70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4650d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x48406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042b32e
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004297f2
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41de80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4653d7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x48406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x49798c]
test eax, eax
jne 0x41df5b
push 0x497994
mov dword [ebp - 0x10], 0x497994
call fcn.0042a2bc
add esp, 4
test eax, eax
je 0x41ded4
push eax
call fcn.00429dbf
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [0x49798c]
test esi, esi
jne 0x41df38
push 4
call fcn.0042b32e
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041df70
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [0x497964], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x497960
push 0
push esi
push 0x41daa0
push 0
push 0
call fcn.0044c39b
add esp, 0x18
mov dword [0x49798c], esi
push 0x497994
mov dword [ebp - 4], 2
call fcn.0042a2e1
add esp, 4
test eax, eax
je 0x41df59
push eax
call fcn.00429dbf
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e530
Capabilities:
Query or enumerate registry value

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 0x465480
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3c
mov eax, dword [0x48406c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 9
push str.EnableLog
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
call fcn.004062e0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov esi, dword [0x484abc]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], vtable.dali::RegReader.0
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00413010
lea ecx, [ebp - 0x28]
push ecx
push eax
push 0
push str.SOFTWAREASUSARMOURY_CRATE_Diagnosis
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete cl
test eax, eax
jne 0x41e5ff
push dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
call fcn.00412ee0
mov cl, al
mov byte [ebp - 0x24], 1
test cl, cl
je 0x41e647
cmp dword [ebp - 0x38], 0x10
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x30], 4
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push 0
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e637
cmp dword [ebp - 0x34], 4
je 0x41e63a
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x2c]
call fcn.00412f90
jmp 0x41e6ca
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
call eax
lea ecx, [ebp - 0x28]
push ecx
push eax
push 0
push str.SOFTWAREWOW6432NodeASUSARMOURY_CRATE_Diagnosis
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete cl
test eax, eax
jne 0x41e682
push dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
call fcn.00412ee0
mov cl, al
mov byte [ebp - 0x24], 1
test cl, cl
je 0x41e6c7
cmp dword [ebp - 0x38], 0x10
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x34], 4
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push 0
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e6ba
cmp dword [ebp - 0x30], 4
je 0x41e6bd
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x2c]
call fcn.00412f90
jmp 0x41e6ca
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], vtable.dali::RegReader.0
call fcn.00412f90
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x41e70c
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41e702
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e72b
push edx
push ecx
call fcn.0042b5db
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042b067
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00449472
int3
Function at 0x41f140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x48406c]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [0x484abc]
mov edx, dword [ebp + 8]
push esi
test eax, eax
jle 0x41f1f7
cmp eax, 3
jl 0x41f1f7
mov ecx, edx
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x18], 7
mov word [esp + 4], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f190
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.00406190
cmp dword [esp + 0x18], 8
lea eax, [esp + 4]
cmovae eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [esp + 0x18]
cmp edx, 8
jb 0x41f1f7
mov ecx, dword [esp + 4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f1ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f209
push edx
push ecx
call fcn.0042b5db
add esp, 8
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.0042b067
mov esp, ebp
pop ebp
ret 8
call fcn.00449472
int3

Function at 0x420120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x42014b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b850
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x42016d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x42016f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4201f3
jg 0x420184
test esi, esi
je 0x4201f3
test ecx, ecx
jl 0x4201cd
jg 0x42018e
test eax, eax
je 0x4201cd
cmp edi, ecx
jg 0x4201a2
jl 0x420198
cmp esi, eax
jae 0x4201a2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00442520
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4201d0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4201f3
jg 0x4201da
test esi, esi
je 0x4201f3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4201f3
push eax
push esi
push 1
push edx
call fcn.0044cc0e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x42023b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x42025d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x42025f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x4202fe
jg 0x42027c
test esi, esi
je 0x4202fe
test ecx, ecx
jl 0x4202c9
jg 0x420286
test eax, eax
je 0x4202c9
cmp ebx, ecx
jg 0x42029a
jl 0x420290
cmp esi, eax
jae 0x42029a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00442520
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4202d0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x4202fe
jg 0x4202da
test esi, esi
je 0x4202fe
cmp dword [edi + 0x4c], 0
je 0x4202fe
mov ecx, edi
call fcn.00420ad0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0044ba67
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48406c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x420690
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b067
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4206cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4206cc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b067
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4207b3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4206f4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x420727
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0044ad97
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b067
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4207b3
cmp eax, 1
jle 0x420786
cmp eax, 3
jne 0x4207b3
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0044ad97
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b067
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4207a3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044cc0e
add esp, 0x10
cmp edi, eax
jne 0x4207b3
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4206b7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b067
mov esp, ebp
pop ebp
ret 4