joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447846
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x459080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov esi, dword [ebp - 0x50]
add esi, 0x14
call fcn.00405680
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x50]
add esi, 0x1c
call fcn.00405680
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x50]
mov dword [eax], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x50]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x10], 0
mov edi, dword [ebp - 0x50]
add edi, 0x14
mov edx, 0x44bef8
call fcn.004057e0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x18], 0
mov edi, dword [ebp - 0x50]
add edi, 0x1c
mov edx, 0x44bef8
call fcn.004057e0
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x34], 1
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x38], 0x32
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x3c], 1
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40dd00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44761b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x459080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x14
mov esi, dword [ebp - 0x30]
add esi, 0x14
call fcn.004056a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
add eax, 0x1c
mov esi, dword [ebp - 0x30]
add esi, 0x1c
call fcn.004056a0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x40], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4120d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
xor eax, eax
cmp dword [ebp + 0x10], 0
setne al
mov dword [ebp - 0xc], eax
xor ecx, ecx
jne 0x4120e5
xor edx, edx
jne 0x4120e5
cmp dword [ebp - 0xc], 0
jne 0x4120fd
push 0x80004005
call fcn.004062b0
xor eax, eax
jne 0x4120d9
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x412210
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jbe 0x412208
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jbe 0x4121f7
cmp dword [ebp - 0x14], 2
jbe 0x412160
cmp dword [ebp - 0x14], 7
je 0x412196
jmp 0x4121f7
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x412185
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x412194
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, 0xd
jmp 0x412213
jmp 0x412206
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4121e6
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jb 0x4121e6
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
jne 0x4121e6
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jbe 0x4121f5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 4]
test ecx, ecx
je 0x4121f5
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax], dx
mov eax, 0xd
jmp 0x412213
jmp 0x412206
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx], cx
mov eax, 0xd
jmp 0x412213
jmp 0x412210
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x412229
xor ecx, ecx
jne 0x412229
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x412270
mov eax, dword [ebp - 0xc]
jmp 0x4122cd
cmp dword [ebp - 4], 1
je 0x412283
cmp dword [ebp - 4], 2
je 0x412283
mov eax, 0xd
jmp 0x4122cd
cmp dword [ebp + 0xc], 0
je 0x4122c1
cmp dword [ebp - 8], 0
je 0x4122b9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4122b0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4122b7
mov eax, 0xd
jmp 0x4122cd
jmp 0x4122c1
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4171d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x4171d9
xor ecx, ecx
jne 0x4171d9
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x417212
call fcn.00417720
jmp 0x417228
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x417226
push 0x26
call fcn.0040f500
add esp, 4
jmp 0x417228
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x417bfa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459080]
jne 0x417c04
repz ret
jmp fcn.00418bd4

Function at 0x420384
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041c28a
and dword [ebp - 0x14], 0
cmp dword [0x45bed4], 0
mov dword [ebp - 0x18], eax
jne 0x420437
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4204df
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4204df
mov esi, dword [0x459e60]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45bed4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45bed8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45bedc], eax
call edi
push eax
call esi
mov dword [0x45bee4], eax
test eax, eax
je 0x420437
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45bee0], eax
mov eax, dword [0x45bee0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x459e64]
cmp eax, ecx
je 0x420490
cmp dword [0x45bee4], ecx
je 0x420490
push eax
call esi
push dword [0x45bee4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x420490
test ebx, ebx
je 0x420490
call edi
test eax, eax
je 0x420487
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x420487
test byte [ebp - 8], 1
jne 0x420490
or dword [ebp + 0x10], 0x200000
jmp 0x4204c3
mov eax, dword [0x45bed8]
cmp eax, dword [ebp - 0x18]
je 0x4204c3
push eax
call esi
test eax, eax
je 0x4204c3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4204c3
mov eax, dword [0x45bedc]
cmp eax, dword [ebp - 0x18]
je 0x4204c3
push eax
call esi
test eax, eax
je 0x4204c3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45bed4]
call esi
test eax, eax
je 0x4204df
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4204e1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417bfa
leave
ret
Function at 0x42dcc0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x44c258
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42dd04
xor eax, eax
jmp 0x42ddc0
cmp dword [ebp + 0xc], 0
je 0x42dda3
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00418aa0
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x42dd49
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x42dd5a
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push edx
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x42dda1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42ddc0
jmp 0x42ddb1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42df00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 4], 0xf003f
cmp dword [ebp + 0x14], 0
je 0x42df3a
mov eax, dword [ebp - 4]
or eax, 0x100
mov dword [ebp - 4], eax
jmp 0x42df4f
call sym.Install_time.exe_int___cdecl_isWow64_void_
test eax, eax
je 0x42df4f
mov ecx, dword [ebp - 4]
or ecx, 0x200
mov dword [ebp - 4], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42dfd7
mov dword [ebp - 0x10], 0x104
push 0x20a
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.00418aa0
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42dfcd
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x42dfd9
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42e240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
push 0x26c
call fcn.00418306
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x25c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x260], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x264], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x268], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 0
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push sym.Install_time.exe_public:_static_unsigned_long_int___stdcall_CNsReg::MonitorThread_void__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42e2dd
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42f890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446ee7
mov eax, dword fs:[0]
push eax
sub esp, 0x8c4
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call sym.Install_time.exe_private:_bool___thiscall_CNsLog::isLog_void_
movzx eax, al
test eax, eax
jne 0x42f8d1
jmp 0x42fa23
lea esi, [ebp - 0x14]
call fcn.00405680
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call sym.Install_time.exe_private:_void___thiscall_CNsLog::GetLogFileName_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
push 0x44c404
lea eax, [ebp - 0x14]
call fcn.00405900
push eax
call fcn.0042465e
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42fa14
lea edx, [ebp + 0x10]
mov dword [ebp - 0x18], edx
xor eax, eax
mov word [ebp - 0x82c], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x82a]
push ecx
call fcn.00418aa0
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x400
lea ecx, [ebp - 0x82c]
push ecx
call fcn.00425faa
add esp, 0x10
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea esi, [ebp - 0x8b8]
call fcn.00405680
mov byte [ebp - 4], 1
lea eax, [ebp - 0x82c]
push eax
movzx ecx, word [ebp - 0x20]
push ecx
movzx edx, word [ebp - 0x22]
push edx
movzx eax, word [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x26]
push ecx
movzx edx, word [ebp - 0x2a]
push edx
movzx eax, word [ebp - 0x2c]
push eax
push 0x44c420
lea edi, [ebp - 0x8b8]
call fcn.00405e60
add esp, 0x20
lea eax, [ebp - 0x8b8]
call fcn.00405900
push eax
lea ecx, [ebp - 0x8b4]
call fcn.00411150
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x8b4]
call fcn.004110b0
push eax
call fcn.00419420
add esp, 4
push eax
push 1
lea ecx, [ebp - 0x8b4]
call fcn.004110b0
push eax
call fcn.0042451b
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call fcn.004222aa
add esp, 4
lea ecx, [ebp - 0x8b4]
call fcn.00410f30
mov byte [ebp - 4], 0
lea eax, [ebp - 0x8b8]
call fcn.004058e0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
call fcn.004058e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret
Function at 0x42fa40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446f22
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebp - 0xd4]
call sym.Install_time.exe_private:_bool___thiscall_CNsLog::isLog_void_
movzx eax, al
test eax, eax
jne 0x42fa8a
jmp 0x42fb94
lea esi, [ebp - 0x14]
call fcn.00405680
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0xd4]
call sym.Install_time.exe_private:_void___thiscall_CNsLog::GetLogFileName_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
push 0x44c3b8
lea eax, [ebp - 0x14]
call fcn.00405900
push eax
call fcn.0042465e
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42fb85
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea esi, [ebp - 0xb8]
call fcn.00405680
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp - 0x1c]
push ecx
movzx edx, word [ebp - 0x1e]
push edx
movzx eax, word [ebp - 0x20]
push eax
movzx ecx, word [ebp - 0x22]
push ecx
movzx edx, word [ebp - 0x26]
push edx
movzx eax, word [ebp - 0x28]
push eax
push 0x44c3c0
lea edi, [ebp - 0xb8]
call fcn.00405e60
add esp, 0x20
lea eax, [ebp - 0xb8]
call fcn.00405900
push eax
lea ecx, [ebp - 0xb4]
call fcn.00411150
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.004110b0
push eax
call fcn.00419420
add esp, 4
push eax
push 1
lea ecx, [ebp - 0xb4]
call fcn.004110b0
push eax
call fcn.0042451b
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call fcn.004222aa
add esp, 4
lea ecx, [ebp - 0xb4]
call fcn.00410f30
mov byte [ebp - 4], 0
lea eax, [ebp - 0xb8]
call fcn.004058e0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
call fcn.004058e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 4

Function at 0x42fc20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
push 0x1ac
push 0
mov eax, dword [ebp - 0x218]
push eax
call fcn.00418aa0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call sym.Install_time.exe_void___cdecl_GetCurPath_wchar_t__
add esp, 4
push 0x44c40c
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44c4bc
lea eax, [ebp - 0x210]
push eax
call fcn.0042465e
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x42fcb0
mov ecx, dword [ebp - 0x214]
push ecx
push 1
push 0x1ac
mov edx, dword [ebp - 0x218]
push edx
call fcn.00425672
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret
Function at 0x42fd50
Capabilities:
Get http response content encoding

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44668c
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x658], ecx
mov byte [ebp - 0x214], 0
push 0x1ff
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.00418aa0
add esp, 0xc
mov dword [ebp - 0x218], 0x200
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0x1d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x42fe6e
push 0x200
lea ecx, [ebp - 0x61c]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x214]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x61c]
call fcn.004056c0
mov dword [ebp - 4], 0
lea edi, [ebp - 0x620]
call fcn.0040a140
push 0x44c528
lea ecx, [ebp - 0x620]
call fcn.004169e0
test eax, eax
je 0x42fe38
push 0x44c534
lea ecx, [ebp - 0x620]
call fcn.004169e0
test eax, eax
jne 0x42fe5c
mov dword [ebp - 0x624], 1
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x620]
call fcn.004058e0
mov eax, dword [ebp - 0x624]
jmp 0x42fe70
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x620]
call fcn.004058e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret 4
Function at 0x4313a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x459080]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp - 0x218]
add eax, 0x10
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.update.cfg
mov edx, dword [ebp - 0x218]
add edx, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44cc34
mov eax, dword [ebp - 0x218]
add eax, 0x10
push eax
call fcn.0042465e
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x431407
jmp 0x431475
mov dword [ebp - 0x214], 0
jmp 0x431422
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp - 0x218]
add ecx, 0x26c
call fcn.004143e0
cmp dword [ebp - 0x214], eax
jae 0x431469
mov edx, dword [ebp - 4]
push edx
push 1
push 0x410
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x218]
add ecx, 0x26c
call fcn.00416b70
push eax
call fcn.0042451b
add esp, 0x10
jmp 0x431413
mov ecx, dword [ebp - 4]
push ecx
call fcn.004222aa
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417bfa
mov esp, ebp
pop ebp
ret