joyce8/EMBER2024-capa huggingface dataset:
Function at 0x74071085
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x740710cf
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x74071076
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x74071085
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x74476d28
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x740710d6
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.74057f4c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x74071175
add edi, 4
add eax, 2
dec ecx
jne 0x740710bb
call 0x74071122
loope 0x74071118
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x74071172
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x74071183
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x74071136
cmp eax, ecx
ja 0x74071136
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x740711c0
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x740711b6
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7405842b
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401419
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401454
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401450
lea ebx, [ebx]
cmp esi, eax
jae 0x401454
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401440
cmp esi, eax
jb 0x40145a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4086b0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x5b141e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esi], vtable.CDownQueue.0
mov dword [esp + 0x20], 1
push esi
mov dword [0x6356e0], 1
call fcn.00408e40
mov eax, dword [0x635578]
xor ebp, ebp
push ebp
push 5
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x408783
call fcn.005759db
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x408729
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push 0x602934
push ecx
call fcn.00407c30
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [esp + 0x20], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408783
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x635578]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x2c]
cmp eax, ebp
je 0x4087b5
mov edi, dword [esi + 0x30]
call fcn.00409660
mov eax, dword [esi + 0x2c]
push eax
call fcn.005759d0
add esp, 4
mov ecx, dword [esi + 0x20]
push ecx
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
call fcn.005759d0
mov eax, dword [esi + 0x14]
add esp, 4
cmp eax, ebp
je 0x4087da
push eax
call fcn.005759d0
add esp, 4
mov edx, dword [esi + 8]
push edx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
call fcn.005759d0
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x408b80
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x5b416b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 0x38]
xor ebx, ebx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x6356d8]
push 4
call fcn.00575996
add esp, 4
cmp eax, ebx
je 0x408bd5
mov dword [eax], ebx
mov dword [esp + 0x18], eax
jmp 0x408bd9
mov dword [esp + 0x18], ebx
lea edi, [esp + 0x18]
call fcn.00409340
mov eax, dword [0x6356dc]
push eax
call fcn.004092b0
mov ecx, dword [eax]
push 0x20
mov dword [esp + 0x4c], ecx
call fcn.00575996
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 1
cmp eax, ebx
je 0x408c16
push eax
lea edi, [esp + 0x34]
call fcn.00408d40
jmp 0x408c18
xor eax, eax
push ebx
push ebx
push eax
push 0x408830
push ebx
push ebx
mov byte [esp + 0x3c], bl
call fcn.005847e1
mov edx, dword [esp + 0x44]
add esp, 0x18
push edx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [esp + 0x18]
push eax
lea edi, [esi + 8]
call fcn.00409160
inc dword [0x6356dc]
call fcn.005759db
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408c6b
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x24], 2
mov ecx, dword [0x6356dc]
push ecx
lea edx, [esp + 0x30]
push str.down_no:_d_start._n
push edx
call fcn.00407c30
mov esi, dword [esp + 0x38]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x6356dc]
lea eax, [esi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x24
Function at 0x408fc0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x5b13d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x6357a4]
sub eax, dword [0x6357a0]
sar eax, 2
cmp esi, eax
ja 0x409086
test esi, esi
jle 0x409086
call fcn.005759db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40901d
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push esi
lea ecx, [esp + 0x10]
push str.down_no:_d_stop._n
push ecx
mov dword [esp + 0x24], 0
call fcn.00407c30
mov edi, dword [esp + 0x18]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
dec esi
push esi
call fcn.004092b0
mov edx, dword [eax]
lea eax, [edi - 0x10]
mov dword [edx], 1
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409086
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x40a920
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push edi
lea eax, [esp + 0x10]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebp
test edi, edi
je 0x40a982
push edi
call fcn.005759c5
mov ecx, dword [esp + 0x14]
add esp, 4
push eax
push edi
push ecx
push ebx
mov dword [esi], eax
call sub.VERSION.dll_GetFileVersionInfoW
mov edx, dword [esi]
test eax, eax
jne 0x40a998
push edx
call fcn.005759d0
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.005832f8
add esp, 0x10
ret 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x602bd0
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40a9b8
call ebp
mov eax, dword [esi]
push eax
jmp 0x40a96d
mov eax, dword [esp + 0xc]
movzx ecx, word [eax]
movzx edx, word [eax + 2]
shl ecx, 0x10
or ecx, edx
pop edi
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x14]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005832f8
add esp, 0x10
ret 4
Function at 0x4136f0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
or edx, 0xffffffff
mov word [ecx], dx
push eax
lea ecx, [esp + 0xc]
call fcn.004016c0
mov ecx, dword [esp + 8]
push 5
push 0
push 0
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41373f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret 0x14

Function at 0x413a50
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [esp + 4]
sub eax, 0x406
push esi
mov esi, ecx
je 0x413b74
sub eax, 2
je 0x413ae1
sub eax, 0x450
jne 0x413b7c
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [0x63578c]
cmp dword [eax - 0xc], 0
je 0x413b7c
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413b7c
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.004085b0
mov eax, dword [0x63578c]
push 0
push 0
push 0
push eax
push 0x602cbc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
call fcn.0043aa80
lea ecx, [esp + 0x14]
call fcn.004177a0
xor eax, eax
pop esi
ret 0x10
push ebx
push ebp
push edi
push 1
lea edi, [esi + 0x368]
push edi
mov eax, str.labelCpu
call fcn.00444820
push 1
mov ebx, eax
push edi
mov eax, str.labelTotalMem
call fcn.00444820
push 1
mov ebp, eax
push edi
mov eax, str.labelLeftMem
call fcn.00444820
push 1
mov dword [esp + 0x24], eax
push edi
mov eax, str.labelGraphics
call fcn.00444820
mov edx, dword [ebp]
mov edx, dword [edx + 0x3c]
mov edi, eax
mov eax, dword [esi + 0x6e0]
push eax
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov edx, dword [esi + 0x6e4]
mov eax, dword [eax + 0x3c]
push edx
call eax
mov edx, dword [edi]
mov eax, dword [esi + 0x6d8]
mov edx, dword [edx + 0x3c]
push eax
mov ecx, edi
call edx
mov ecx, dword [esi + 0x6dc]
mov eax, dword [ebx]
mov edx, dword [eax + 0x3c]
push ecx
mov ecx, ebx
call edx
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x10
lea ecx, [esi - 4]
call fcn.0040fde0
xor eax, eax
pop esi
ret 0x10
Function at 0x4147e0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x200
lea ecx, [esp + 0x20]
push ecx
call sub.PSAPI.DLL_EnumProcesses
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x41483d
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov edx, dword [esp + edi*4 + 0x18]
push edx
push 0
push 0x510
call ebx
push 0xffffffffffffffff
mov esi, eax
push 0xffffffffffffffff
push esi
call ebp
push esi
call sub.PSAPI.DLL_EmptyWorkingSet
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esp + 0x14]
jb 0x414812
mov eax, dword [esp + 0x81c]
mov ecx, dword [eax + 8]
push 0
push 0x602afc
push 0x6039c4
push ecx
call section..text
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret 4
Function at 0x414c30
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b2478
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.004016c0
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x30]
cmp dword [ecx - 0xc], 0
jl 0x414d43
push str.v4.6
push ecx
call fcn.00584472
mov ecx, dword [esp + 0x38]
add esp, 8
test eax, eax
je 0x414d43
sub eax, ecx
sar eax, 1
js 0x414d43
push 0x34
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4Client
lea ecx, [esp + 0x10]
call fcn.00401960
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
push 0x20219
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414ddd
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.Release
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414ddd
cmp dword [esp + 0xc], 0x60632
jb 0x414ddd
lea ecx, [esp + 8]
call fcn.004177a0
lea ecx, [esp + 0x30]
call fcn.004177a0
mov eax, 1
jmp 0x414e2c
push ecx
lea eax, [ecx - 0x10]
mov dword [esp + 0x10], esp
mov esi, esp
push eax
call fcn.00401a10
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00401a10
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x30], 1
call fcn.0041fbc0
add esp, 8
test eax, eax
je 0x414ddd
mov byte [esp + 0x28], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414dae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414dd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x414e2c
mov byte [esp + 0x28], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414e02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005832f8
add esp, 0x24
ret 4
Function at 0x419270
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5b43c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00419660
add esp, 0x10
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.005a8900
test al, al
jne 0x4192d8
call fcn.0041b780
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 0x10

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

Disassembly:
push 0xffffffffffffffff
push 0x5afe18
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0041c0d0
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
lea eax, [edi + 0x30]
push edx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edx
push eax
mov byte [ecx + 4], dl
call fcn.00407ce0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x41c710
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x62c930]
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 0x41c78a
xor eax, eax
cmp ecx, ebp
je 0x41c772
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 0x41c798
cmp ecx, ebp
je 0x41c82b
push ecx
jmp 0x41c825
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 0x41c7fa
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0041c710
mov ebx, eax
cmp ebx, ebp
jne 0x41c848
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 0x41c7c0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41c80d
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.0041c6b0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41c82b
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.005832f8
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41c857
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x41c82d
Function at 0x41d640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5afd79
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
push 1
push 0x62e954
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], vtable.boost::exception.0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0xffffffff
call fcn.00583dce
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x2c], vtable.boost::exception_detail::bad_alloc_.0
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edi
call fcn.0041dd30
test byte [0x6359a8], 1
mov dword [esp + 0x40], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_alloc___void_
mov dword [esp + 0x44], 0x604558
mov dword [esp + 0x48], 0x80
jne 0x41d789
or dword [0x6359a8], 1
push 0x2c
mov byte [esp + 0x74], 2
call fcn.00575996
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x70], 3
cmp eax, edi
je 0x41d719
push 1
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.0041da10
jmp 0x41d71b
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.0041e250
mov edx, dword [eax]
mov dword [0x6359a0], edx
mov eax, dword [eax + 4]
mov dword [0x6359a4], eax
cmp eax, edi
je 0x41d74a
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x41d77c
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41d77c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41d77c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x5b57f0
call fcn.00583537
add esp, 4
mov eax, dword [0x6359a0]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x6359a4]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x41d7ae
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.0041dde0
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x2c], vtable.std::bad_alloc.0
call fcn.00583e48
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x41d7f7
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret