joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b270
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5478a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
je 0x41b420
cmp esi, ebx
je 0x41b420
push ebx
push esi
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
jne 0x41b40b
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x24], edi
je 0x41b3e8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x41b3e8
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
mov dword [ebp - 0x20], eax
je 0x41b3e8
push ebx
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0x100000
mov dword [ebp - 4], ebx
nop
test ebx, ebx
je 0x41b33e
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x20]
add esp, 4
lea edi, [ebp - 0x18]
mov edx, ebx
mov dword [ebp - 0x30], ebx
call fcn.0046f690
test eax, eax
jne 0x41b3a9
mov edx, dword [ebp + 8]
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
push edx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x41b3c6
mov esi, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1c], esi
jne 0x41b3c6
mov dword [ebp - 0x2c], 1
jmp 0x41b3c6
cmp esi, 0x3200000
ja 0x41b3c6
cmp eax, 0xfffffffb
jne 0x41b3c6
add esi, esi
jmp 0x41b330
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41b3d7
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
test ebx, ebx
je 0x41b3e5
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x41b3f8
cmp edi, 0xffffffff
je 0x41b3f8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41b40b
cmp eax, 0xffffffff
je 0x41b40b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54a6cf
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
mov dword [esi], vtable.CDownIconTask.0
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
lea edi, [esi + 8]
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 2
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
lea ebx, [esi + 0xc]
call edx
add eax, 0x10
mov dword [ebx], eax
push 1
lea ecx, [esi + 0x14]
mov byte [esp + 0x20], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::constructor_void_]
mov byte [esp + 0x1c], 4
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
lea ebp, [esi + 0xa4]
call edx
add eax, 0x10
mov dword [ebp], eax
lea eax, [esp + 0x28]
mov byte [esp + 0x1c], 5
call fcn.00412ba0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi + 0x10], eax
lea eax, [esp + 0x2c]
mov edi, ebx
mov dword [esi + 4], ecx
mov dword [esi + 0xa8], edx
call fcn.00412ba0
push ebx
mov ecx, ebp
call fcn.0041d520
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c65a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c682
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18

Function at 0x41d270
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [eax]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 4
je 0x41d2bf
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push ecx
push esi
push str.Install
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d2bf
cmp dword [esp + 8], 4
jne 0x41d2bf
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov dword [eax], edx
lea eax, [esi + 1]
pop esi
add esp, 0xc
ret 4
mov eax, esi
pop esi
add esp, 0xc
ret 4
Function at 0x41d2d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
je 0x41d3a7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push ebp
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x41d31d
cmp eax, 2
jne 0x41d3a7
call fcn.00412d10
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x41d348
mov eax, esi
call fcn.004088f0
mov edi, dword [esi]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x41d377
mov edx, dword [esp + 0x20]
shr edx, 1
mov word [edi + edx*2], ax
mov dword [esp + 0x14], 1
mov edx, dword [esi]
test edx, edx
jne 0x41d381
xor eax, eax
jmp 0x41d397
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d386
sub eax, edi
sar eax, 1
js 0x41d3b5
cmp eax, dword [edx - 8]
jg 0x41d3b5
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0x80070057
call fcn.00408b10
int3

Function at 0x41d520
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x549c88
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
lea ebx, [esp + 0x10]
call fcn.00438230
mov dword [esp + 0x1c], edi
mov edi, esi
call fcn.00412ba0
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0043a4f0
push 0x11
push str.data_toolbox_res_
push esi
call fcn.00412aa0
mov ecx, dword [esi]
push ecx
call fcn.00438370
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
add esp, 4
push ecx
push eax
push esi
call fcn.00412aa0
push 4
push str..png
push esi
call fcn.00412aa0
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x41d5f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x549c88
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041d8e0
test eax, eax
jne 0x41d65d
xor edi, edi
lea ebx, [esp + 0x10]
call fcn.00438230
mov dword [esp + 0x1c], edi
mov edi, esi
call fcn.00412ba0
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d65d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xc
push str.toolboxtemp_
push esi
call fcn.00412aa0
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d682
mov ecx, dword [esi]
push ecx
call fcn.0041d980
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x41d8e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5a5084]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.00472a32
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41d937
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004726a1
add esp, 0x20c
ret
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d947
sub eax, edx
sar eax, 1
push ebx
lea ecx, [esp + 4]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00412c00
mov ecx, dword [esp + 0x20c]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004726a1
add esp, 0x20c
ret
Function at 0x41d980
Capabilities:
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5495a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00413730
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
je 0x41d9e3
test al, 0x10
jne 0x41da8d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x41da8d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x41da8d
lea ecx, [esp + 0x14]
call fcn.004382c0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x41da4f
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x41da39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.0041d980
add esp, 4
test eax, eax
jne 0x41da7b
lea eax, [esp + 0x14]
call fcn.0044dd60
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0
push esi
call edi
test eax, eax
jne 0x41da8d
call ebx
cmp eax, 0xb7
jne 0x41da5c
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x41daae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41e8d0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x549864
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x1c], edi
lea ebp, [esi + 4]
mov dword [ebp], method.TiXmlNode.virtual_4
mov ebx, esi
mov dword [esi], vtable.CBkWindow.0
mov dword [ebp], vtable.CBkWindow.1.0
call fcn.00421b50
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x28], edi
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov ebx, 1
mov byte [esp + 0x1c], bl
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esi + 0x44], eax
mov byte [esp + 0x1c], 2
mov dword [esi + 0x48], edi
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esi + 0x4c], eax
mov byte [esp + 0x1c], 3
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esi + 0x50], eax
mov byte [esp + 0x1c], 4
or eax, 0xffffffff
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x68], eax
push ebp
lea eax, [esi + 0xc4]
push eax
mov dword [esi + 0x5c], edi
mov word [esi + 0x60], di
mov dword [esi + 0x64], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
call fcn.00421bd0
lea ecx, [esi + 0x18]
push ecx
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x421bd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x548983
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 4], eax
mov dword [esi], vtable.BkWin::BkLayoutParam.0
mov edx, dword [0x5b06b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5b06b0
lea ebx, [esi + 8]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x18], 1
mov eax, closesocket
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
or eax, 0xffffffff
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
lea edi, [eax + 8]
push str.layout_
mov eax, ebx
call fcn.00404e00
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x424560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5496e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x34]
xor esi, esi
push 0x50
push esi
push eax
mov dword [esp + 0x34], esi
call fcn.00472a32
mov ecx, dword [esp + 0x3c]
add esp, 0xc
xor ebp, ebp
add ecx, 0x130
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x30]
push 0x58cd40
lea edx, [esp + 0x20]
push edx
push eax
lea ebx, [esp + 0x24]
call fcn.00403930
mov byte [esp + 0x28], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x424636
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x424625
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x424625
call fcn.00412ca0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x42461c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x14], edi
jmp 0x424636
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00412c00
mov edi, dword [esp + 0x14]
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42465b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], 0
je 0x42467a
cmp ebp, 0x14
jae 0x424685
push edi
call dword [sym.imp.MSVCR80.dll__wtoi]
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [ecx + ebp*4], eax
add ebp, 1
cmp dword [esp + 0x18], 0
jg 0x4245c7
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4246a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x427a00
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 0xf
mov ebx, ecx
mov ebp, 1
jne 0x427a36
mov dword [ebx + 0x100], ebp
mov dword [esi], 0
cmp dword [ebx + 0x100], 0
je 0x427a85
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0x14
cmp edi, 2
jne 0x427aa4
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
mov dword [ebx + 0x100], ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x427a69
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x427a69
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi], 0
cmp dword [ebx + 0x100], 0
jne 0x427a2d
mov edi, dword [esp + 0x18]
cmp dword [ebx + 0x100], 0
jne 0x427a2d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push esi
push eax
push ecx
push edi
push edx
mov ecx, ebx
call fcn.00420150
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
cmp edi, 0x47
jne 0x427abe
mov edx, dword [esp + 0x20]
push edx
mov dword [ebx + 0x100], ebp
call fcn.00427ae0
jmp 0x427a1e
cmp edi, 0x18
jne 0x427a7c
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x100], ebp
call fcn.00427be0
jmp 0x427a1e
Function at 0x431760
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x54707c
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x5a5084]
xor eax, esp
mov dword [esp + 0xa8], eax
push esi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor esi, esi
push str.SOFTWAREClassesCLSID_
lea ecx, [esp + 0x18]
mov dword [esp + 0xc0], esi
call dword [0x54d2e0]
push str.BF56FF80_3803_422B_80A0_9844629C810C
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.Implemented_Categories_
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.C376DC05_16CC_4498_8BF3_1F0D8FF4013A
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
mov dword [esp + 8], esi
jae 0x4317fa
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push ecx
push 0x201
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x43182e
lea ecx, [esp + 0x14]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x4318a7
push 0x7e
lea edx, [esp + 0x36]
push esi
push edx
mov word [esp + 0x3c], si
call fcn.00472a32
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push str.uuid
push eax
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x431885
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call dword [0x54d2e0]
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004726a1
add esp, 0xb8
ret