joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5120a6
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x57193a
call fcn.0054c36c
mov ebx, ecx
mov dword [ebp - 0x12c], ebx
call fcn.0052e0fe
push 0x1c4
call fcn.0041a33c
pop ecx
mov dword [ebp - 0x128], eax
and dword [ebp - 4], 0
test eax, eax
je 0x5120e9
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.0052e731
jmp 0x5120eb
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.0052d579
call fcn.0042b730
mov esi, 0x104
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x8c]
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call fcn.0054c100
mov edi, eax
pop ecx
mov byte [ebp + edi - 0x114], 0x5c
inc edi
cmp edi, esi
jae 0x512308
xor eax, eax
mov byte [ebp + edi - 0x114], 0
mov dword [ebp - 0x128], eax
test ebx, ebx
je 0x512302
xor esi, esi
mov dword [ebp - 0x120], esi
cmp dword [ebx + 4], eax
jle 0x512302
call fcn.00423da6
push eax
lea ecx, [ebp - 0x118]
call fcn.004226c0
mov eax, dword [ebx]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x114]
push edi
push ecx
push esi
lea ecx, [ebp - 0x118]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
je 0x5122e0
push 0x58e01c
mov esi, 0x58e020
lea ecx, [ebp - 0x118]
push esi
call fcn.0046600f
push esi
push 0x586538
lea ecx, [ebp - 0x118]
call fcn.0046600f
push esi
push 0x58e01c
lea ecx, [ebp - 0x118]
call fcn.0046600f
call fcn.00423da6
push eax
lea ecx, [ebp - 0x124]
call fcn.004226c0
mov eax, dword [ebp - 0x128]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x51220c
push dword [ebp - 0x118]
lea eax, [ebp - 0x124]
push str.10__s
push eax
call fcn.00402860
add esp, 0xc
jmp 0x51223e
jge 0x51222c
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x124]
push str._d__s
push eax
call fcn.00402860
add esp, 0x10
jmp 0x51223e
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x124]
call fcn.00402270
push 0x1c4
call fcn.0041a33c
pop ecx
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x512268
mov ecx, eax
call fcn.004bc15f
mov ecx, eax
mov dword [ebp - 0x11c], eax
jmp 0x512270
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x124]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
add eax, 0xe110
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push dword [ebp - 0x120]
mov ecx, ebx
call fcn.0043d328
mov ecx, dword [ebp - 0x11c]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x12c]
call fcn.0052d579
inc dword [ebp - 0x128]
lea ecx, [esi - 0x10]
call fcn.004032a0
mov esi, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.004032a0
inc esi
mov dword [ebp - 0x120], esi
cmp esi, dword [ebx + 4]
jl 0x512161
call fcn.0054c31b
ret
call fcn.00547123
int3
Function at 0x55eef2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00554e7a
mov dword [ebp - 0x14], eax
cmp dword [0x5f1fb8], esi
jne 0x55efe5
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x55ef72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x55f0c5
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x55f0c5
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x55f0c5
push eax
call ebx
push 0x5a9770
push edi
mov dword [0x5f1fb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5a9780
push edi
mov dword [0x5f1fbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5f1fc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5f1fc8], eax
test eax, eax
je 0x55efe2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5f1fc4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x55f00a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x55effd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x55f01f
push 4
pop eax
jmp 0x55f0c7
cmp dword [ebp - 0x14], esi
je 0x55f01f
push dword [0x5f1fb8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x55f004
mov eax, dword [0x5f1fc4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x55f07d
cmp dword [0x5f1fc8], edi
je 0x55f07d
push eax
call ebx
push dword [0x5f1fc8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x55f07d
test eax, eax
je 0x55f07d
call ecx
test eax, eax
je 0x55f072
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x55f072
test byte [ebp - 8], 1
jne 0x55f07d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x55f0ad
mov eax, dword [0x5f1fbc]
cmp eax, edi
je 0x55f0aa
push eax
call ebx
test eax, eax
je 0x55f0aa
call eax
mov esi, eax
test esi, esi
je 0x55f0aa
mov eax, dword [0x5f1fc0]
cmp eax, edi
je 0x55f0aa
push eax
call ebx
test eax, eax
je 0x55f0aa
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5f1fb8]
call ebx
test eax, eax
je 0x55f0c5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x55f0c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005463d8
mov esp, ebp
pop ebp
ret
Function at 0x401150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40116b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011a2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40119e
jmp 0x401190
cmp esi, eax
jae 0x4011a2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401190
cmp esi, eax
jb 0x4011a9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5f0bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x110]
push eax
push 0x20019
xor edi, edi
push edi
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x118], 0x104
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4014e2
push esi
lea ecx, [ebp - 0x10c]
push str._sConnection
push ecx
call fcn.00543abd
mov ecx, dword [ebp - 0x110]
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
push 0x20019
push edi
lea eax, [ebp - 0x10c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4014f6
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005437e5
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x11c]
push edx
push edi
push str.PnpInstanceID
push eax
mov dword [ebp - 0x118], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401549
push 3
lea ecx, [ebp - 0x10c]
push 0x587f9c
push ecx
call fcn.005439fd
add esp, 0xc
test eax, eax
jne 0x401549
lea edi, [eax + 1]
mov edx, dword [ebp - 0x114]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x110]
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.005437e5
mov esp, ebp
pop ebp
ret 4
Function at 0x401580
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x5f0bf8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x510]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x524], 0x104
mov dword [ebp - 0x51c], 1
mov dword [ebp - 0x510], 0
mov dword [ebp - 0x514], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4015ef
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005437e5
mov esp, ebp
pop ebp
ret 4
push esi
push 0x3ff
lea ecx, [ebp - 0x50b]
push 0
push ecx
mov byte [ebp - 0x50c], 0
call fcn.00543b50
mov ecx, dword [ebp - 0x510]
add esp, 0xc
xor esi, esi
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x518]
push edx
lea eax, [ebp - 0x50c]
push eax
push esi
push ecx
mov dword [ebp - 0x518], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x401660
mov edx, dword [ebp - 0x510]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005437e5
mov esp, ebp
pop ebp
ret 4
push edi
test eax, eax
jne 0x401773
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop
mov edx, dword [ebp - 0x510]
lea eax, [ebp - 0x514]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x50c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40173c
lea eax, [ebp - 0x524]
push eax
mov eax, dword [ebp - 0x514]
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x51c]
push edx
push 0
push str.NetCfgInstanceId
push eax
call edi
test eax, eax
jne 0x40173c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4016f0
test dl, dl
je 0x4016ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4016f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4016d0
xor eax, eax
jmp 0x4016f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40173c
mov eax, 4
lea ecx, [ebp - 0x52c]
push ecx
mov ecx, dword [ebp - 0x514]
lea edx, [ebp - 0x520]
push edx
mov dword [ebp - 0x52c], eax
mov dword [ebp - 0x528], eax
lea eax, [ebp - 0x528]
push eax
push 0
push str.Characteristics
push ecx
call edi
test eax, eax
jne 0x40173c
test byte [ebp - 0x520], 4
jne 0x40179f
mov ecx, dword [ebp - 0x510]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x518]
push edx
lea eax, [ebp - 0x50c]
push eax
inc esi
push esi
push ecx
mov dword [ebp - 0x518], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401670
mov ecx, dword [ebp - 0x514]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [ebp - 0x510]
push edx
call esi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005437e5
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x510]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x514]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.005437e5
mov esp, ebp
pop ebp
ret 4
Function at 0x4062b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e89c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f0bf8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ebx, [esi + 0x2c]
mov dword [ebp - 0x10], ebx
call fcn.0044184e
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4062ff
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 1
lea ebx, [esi + 0x30]
mov dword [ebp - 0x10], ebx
call fcn.0044184e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x406334
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 3
lea ebx, [esi + 0x34]
mov dword [ebp - 0x10], ebx
call fcn.0044184e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x406366
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 5
lea ebx, [esi + 0x38]
mov dword [ebp - 0x10], ebx
call fcn.0044184e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x406398
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 7
push edi
push 0x587f8c
lea ecx, [esi + 0x30]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.00402e30
push edi
push 0x587f8c
lea ecx, [esi + 0x2c]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.00402e30
push edi
push 0x587f8c
lea ecx, [esi + 0x34]
mov dword [esi + 0x20], edi
call fcn.00402e30
push edi
push 0x587f8c
mov ecx, ebx
mov dword [esi + 0x24], edi
call fcn.00402e30
mov dword [esi + 0x28], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esi], edi
mov dword [ebp - 4], 0xffffffff
mov eax, esi
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 0x4089d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x5f0bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
mov dword [ebp - 0x668], ecx
je 0x408b4b
lea edx, [ebp - 0x20c]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x408a01
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408a20
sub eax, edx
sar eax, 1
push esi
mov esi, eax
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
cmp word [ebp + esi*2 - 0x20e], 0x5c
jne 0x408a65
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x408a46
mov ecx, dword [0x5891ec]
mov edx, dword [0x5891f0]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x408a8d
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x408a65
mov ecx, dword [0x5891e0]
mov edx, dword [0x5891e4]
mov dword [eax], ecx
mov cx, word [0x5891e8]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea edx, [ebp - 0x664]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x408b2d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call ebx
test eax, eax
jne 0x408b01
add esi, 0xfffffffe
js 0x408aea
nop
cmp word [edi + esi*2], 0x5c
je 0x408acc
dec esi
jns 0x408ac0
jmp 0x408aea
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x414]
push edi
push edx
call fcn.0054415b
add esp, 0xc
xor eax, eax
mov word [ebp + esi*2 - 0x414], ax
lea ecx, [ebp - 0x414]
push ecx
mov ecx, dword [ebp - 0x668]
call fcn.004089d0
push 0
push edi
call ebx
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005437e5
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005437e5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.005437e5
mov esp, ebp
pop ebp
ret 4
Function at 0x40c9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5f0bf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40ca6a
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005437e5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ca80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5f0bf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push eax
push str.open
push 0
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
ja 0x40cb97
lea eax, [ebp - 0x414]
push eax
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.0040c9f0
test eax, eax
jne 0x40cbbe
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._shellopencommand
lea ecx, [ebp - 0x414]
push ecx
call ebx
lea edx, [ebp - 0x414]
push edx
mov eax, edx
push eax
push SysReAllocString
mov ecx, edi
call fcn.0040c9f0
test eax, eax
jne 0x40cba9
lea ecx, [ebp - 0x414]
push 0x5898ec
push ecx
call fcn.00543063
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cb6b
lea edx, [ebp - 0x414]
push 0x5898e4
push edx
call fcn.00543063
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cb64
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + eax*2 - 0x416]
jmp 0x40cb70
xor ecx, ecx
mov word [esi], cx
jmp 0x40cb70
xor edx, edx
mov word [esi], dx
push 0x5894a4
push esi
call ebx
mov eax, dword [ebp - 0x41c]
push eax
push esi
call ebx
mov ecx, dword [ebp - 0x418]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005437e5
mov esp, ebp
pop ebp
ret 8
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005437e5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005437e5
mov esp, ebp
pop ebp
ret 8
Function at 0x40d690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x40d6f0
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
jmp 0x40d6b0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40d6bf
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40d6f6
test ecx, ecx
je 0x40d6ef
test esi, esi
jne 0x40d6b0
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x40d700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x40d760
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
jmp 0x40d720
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40d72f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40d766
test ecx, ecx
je 0x40d75f
test esi, esi
jne 0x40d720
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x40f2b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570116
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5f0bf8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CReader_DlgInstallFzip.0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x40f31f
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov edx, dword [eax + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40f31f
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0x9c]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x40f33b
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x98], 0
mov byte [ebp - 4], 0
lea ecx, [esi + 0xa0]
call fcn.00455cb7
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004100d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415a20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5714e3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f0bf8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.005611aa
mov dword [ebp - 4], 0
push 4
call fcn.00440708
mov edi, eax
add esp, 4
test edi, edi
je 0x415aa8
call fcn.00560e6c
mov dword [edi], eax
call fcn.00560c2b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00560b60
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x415a9a
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00560b88
jmp 0x415aaa
xor edi, edi
mov dword [esi + 0x38], 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
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 dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret