joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422d4a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42f1bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004075f9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x404e30
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0x4231c4
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x42b8d4
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0040a1ee
add esp, 8
mov dword [ebp - 0x24], 0x423210
lea eax, [ebp - 0x24]
push 0x42dd98
push eax
call fcn.0040a270
push edi
push esi
call fcn.00407488
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407e39
mov esp, ebp
pop ebp
ret 4

Function at 0x4162ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00415f91

Function at 0x4162d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416112
Function at 0x10020830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10020863
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10020861
push 0x1755
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x100208ae
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10020891
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100208ae
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.1001856c
mov dword [eax], 0xfdb69689
jmp 0x10020886
mov esp, ebp
pop ebp
ret
Function at 0x1002c961
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002c97e
push 0x1755
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1002c9c9
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1002c9ac
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1002c9c9
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.1001856c
mov dword [eax], 0xb8c3ad3b
jmp 0x1002c9a1
mov esp, ebp
pop ebp
ret
Function at 0x10032c59
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10032c7d
xor eax, eax
jmp 0x10032dc2
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10032a76
add esp, 0x10
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10032ca5
xor eax, eax
jmp 0x10032dc2
push dword [ebp - 8]
push 0x478e
push 0x3d07
push 0x5059
push 0x3916
lea eax, [ebp - 0xc]
push eax
push 0x438e
push 1
call fcn.10030cb2
add esp, 0x20
cmp dword [ebp - 0xc], 0
jne 0x10032cdc
xor eax, eax
jmp 0x10032dc2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x6b8a
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10032adb
add esp, 0x1c
push dword [ebp - 8]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.1002e968
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push 1
push 0xb2
push 0x272f
call fcn.10032b74
add esp, 0x14
push dword [ebp - 4]
call fcn.10030b8c
pop ecx
test eax, eax
jne 0x10032d4b
xor eax, eax
jmp 0x10032dc2
push 0
push 0x2b
push dword [ebp - 4]
call fcn.100313a4
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10032daa
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x10032d79
xor eax, eax
jmp 0x10032dc2
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10032d92
xor eax, eax
jmp 0x10032dc2
lea eax, [ebp - 4]
push eax
push 0x2022
push 1
push 0x3585
call fcn.10032be5
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10032dbb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x10032dbf
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x10080eb5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008b330]
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.10071ccc
mov dword [ebp - 0x14], eax
cmp dword [0x10678cec], esi
jne 0x10080fa8
push 0x800
push esi
push 0x10007a6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10080f35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10081088
push esi
push esi
push 0x10007a6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10081088
push 0x10007a84
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10081088
push eax
call ebx
push 0x10007a90
push edi
mov dword [0x10678cec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007aa0
push edi
mov dword [0x10678cf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ab4
push edi
mov dword [0x10678cf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10678cfc], eax
test eax, eax
je 0x10080fa5
push 0x10007ad0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10678cf8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10080fcd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10080fc0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10080fe2
push 4
pop eax
jmp 0x1008108a
cmp dword [ebp - 0x14], esi
je 0x10080fe2
push dword [0x10678cec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10080fc7
mov eax, dword [0x10678cf8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10081040
cmp dword [0x10678cfc], edi
je 0x10081040
push eax
call ebx
push dword [0x10678cfc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10081040
test eax, eax
je 0x10081040
call ecx
test eax, eax
je 0x10081035
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 0x10081035
test byte [ebp - 8], 1
jne 0x10081040
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10081070
mov eax, dword [0x10678cf0]
cmp eax, edi
je 0x1008106d
push eax
call ebx
test eax, eax
je 0x1008106d
call eax
mov esi, eax
test esi, esi
je 0x1008106d
mov eax, dword [0x10678cf4]
cmp eax, edi
je 0x1008106d
push eax
call ebx
test eax, eax
je 0x1008106d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10678cec]
call ebx
test eax, eax
je 0x10081088
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1008108a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x4011b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4478f9
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x45b080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CNsBase.0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0x4c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebx + 1]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov word [esi + 0x30], 0x100
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 4
mov byte [esi + 0x3c], bl
test byte [0x45e7ec], al
jne 0x401256
or dword [0x45e7ec], eax
mov ecx, 0x45e7f0
mov byte [ebp - 4], al
call sym.nsUninstall.exe_public:_void___thiscall_CNsFont::constructor_void_
push 0x447f60
call fcn.004145fc
add esp, 4
mov byte [ebp - 4], bl
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, 0x45e7f0
call sym.nsUninstall.exe_public:_struct_HFONT______thiscall_CNsFont::GetFont_int__wchar_t_const___int__int__int_
mov dword [esi + 0x24], eax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov dword [esi + 0x50], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4021f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
mov byte [ecx + 0x31], al
test al, al
je 0x40220d
mov eax, dword [ecx + 0x54]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
mov ecx, dword [ecx + 0x54]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4

Function at 0x403980
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x66666667
imul dword [esi + 0x18]
push ebx
push edi
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
mov ebx, edi
mov dword [ebp - 4], 5
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push 0x40
sub eax, ebx
push eax
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 0x54]
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, edi
dec dword [ebp - 4]
jne 0x4039a0
mov edx, dword [esi + 0x54]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x54]
push 0
push 0
push 0x200
push eax
mov byte [esi + 0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403cb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0x66666667
imul dword [esi + 0x18]
sar edx, 2
push ebx
mov ebx, dword [esi + 0x10]
push edi
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov byte [esi + 0xc8], 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], 9
jmp 0x403cf3
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
add ebx, eax
mov eax, dword [esi + 0x18]
sub eax, dword [ebp - 4]
push 0x40
push eax
mov eax, dword [esi + 0x54]
push ecx
push ebx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 4], edi
dec dword [ebp - 8]
jne 0x403cf0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
cdq
push 0x40
sub eax, edx
mov edx, dword [esi + 0xc]
push 1
sar eax, 1
add eax, dword [esi + 0x10]
push ecx
push eax
mov eax, dword [esi + 0x54]
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x54]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x54]
push 0
push 0
push 0x200
push edx
mov byte [esi + 0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x54]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push eax
call edi
mov ecx, dword [esi + 0x54]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [esi + 0x54]
push 2
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov eax, dword [esi + 0x54]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, 1
mov ecx, dword [esi + 0x54]
push 0xffffffffffffffec
push ecx
call edi
mov edx, dword [esi + 0x54]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov al, bl
mov cl, 0x13
imul cl
add al, 0x3c
movzx edx, al
mov eax, dword [esi + 0x54]
push 2
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jle 0x403dd3
pop edi
pop ebx
ret
Function at 0x404750
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x66666667
imul dword [esi + 0x14]
push ebx
push edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov ebx, edi
mov dword [ebp - 4], 0xa
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push 0x40
push eax
mov eax, dword [esi + 0xc]
sub ecx, ebx
push ecx
mov ecx, dword [esi + 0x54]
push edx
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, edi
dec dword [ebp - 4]
jne 0x404771
mov ecx, dword [esi + 0x54]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x54]
push 0
push 0
push 0x200
push edx
mov byte [esi + 0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404a30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0x54]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x54]
push 0
push 0
push 0x200
push ecx
mov byte [esi + 0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
ret
Function at 0x404af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447df7
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x45b080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push esi
mov dword [ebp - 0x310], esi
call fcn.00402720
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x108]
mov dword [esi], vtable.CMainDlg.0
call sym.nsUninstall.exe_public:_void___thiscall_CNsUninstaller::constructor_void_
mov byte [ebp - 4], 1
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
lea edi, [esi + 0x650]
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
push 0x2f8
lea eax, [ebp - 0x308]
push ebx
push eax
mov dword [esi + 0x63c], ebx
mov dword [esi + 0x644], ebx
mov dword [esi + 0x640], ebx
mov dword [esi + 0x648], ebx
mov word [esi + 0x64c], bx
call fcn.00415590
add esp, 0xc
test byte [0x45e424], 1
jne 0x404bbc
or dword [0x45e424], 1
mov ecx, 0x45e428
call sym.nsUninstall.exe_public:_void___thiscall_CNsApp::constructor_void_
push 0x447f50
call fcn.004145fc
add esp, 4
lea ecx, [ebp - 0x30c]
push ecx
mov ecx, 0x45e430
call fcn.004057c0
push 0xf
push str.nsUninstall.dat
lea ebx, [ebp - 0x30c]
mov byte [ebp - 4], 3
call fcn.00405c60
mov edx, dword [ebp - 0x30c]
push 0x44f06c
push edx
call fcn.00414d14
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x404c41
push ebx
push 1
lea eax, [ebp - 0x308]
push 0x2f8
push eax
call fcn.00414fbc
push ebx
call fcn.00415046
lea eax, [ebp - 0x240]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c23
sub eax, edx
lea ecx, [ebp - 0x240]
sar eax, 1
push ecx
push edi
mov ebx, eax
call fcn.00405a80
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404c67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004144ca
mov esp, ebp
pop ebp
ret
Function at 0x405060
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 0x10
je 0x4050a3
cmp eax, 0x7e9
je 0x405088
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004028a0
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
cmp eax, 0x64
jne 0x405097
mov byte [ecx + 0x64d], 1
mov dword [ecx + 0x640], eax
xor eax, eax
pop ebp
ret 0x10
cmp byte [0x45e880], 0
jne 0x4050dd
mov ecx, dword [0x54]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x54]
push 0
push 0
push 0x200
push edx
mov byte [0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00405770
test byte [0x45e424], 1
jne 0x405104
or dword [0x45e424], 1
mov ecx, 0x45e428
call sym.nsUninstall.exe_public:_void___thiscall_CNsApp::constructor_void_
push 0x447f50
call fcn.004145fc
add esp, 4
mov ecx, 0x45e428
call sym.nsUninstall.exe_public:_void___thiscall_CNsApp::ExitApp_void_
xor eax, eax
pop ebp
ret 0x10

Function at 0x405620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447e77
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x45b080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x220]
xor ebx, ebx
push eax
mov ecx, str.http:__hofosetup.com_update_uninstall_data.zip
mov byte [0x45e880], bl
call fcn.004057c0
push 0x208
lea edx, [ebp - 0x21a]
xor ecx, ecx
push ebx
mov dword [ebp - 4], ebx
push edx
mov word [ebp - 0x21c], cx
call fcn.00415590
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test byte [0x45dfbc], 1
jne 0x4056c7
or dword [0x45dfbc], 1
mov ecx, 0x45dfc0
mov byte [ebp - 4], 1
call sym.nsUninstall.exe_public:_void___thiscall_CNsUpdate::constructor_void_
push 0x447fa0
call fcn.004145fc
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, 0x45dfc0
call sym.nsUninstall.exe_public:_void___thiscall_CNsUpdate::SetPath_wchar_t_const__
test byte [0x45dfbc], 1
mov esi, dword [ebp - 0x220]
jne 0x40570c
or dword [0x45dfbc], 1
mov ecx, 0x45dfc0
mov byte [ebp - 4], 2
call sym.nsUninstall.exe_public:_void___thiscall_CNsUpdate::constructor_void_
push 0x447fa0
call fcn.004145fc
add esp, 4
mov byte [ebp - 4], bl
push ebx
push 0x404ad0
push esi
mov ecx, 0x45dfc0
call sym.nsUninstall.exe_public:_void___thiscall_CNsUpdate::StartUpdate_wchar_t_const___void____stdcall___int__int__int___void____stdcall___int__wchar_t_const___long_long___int64___long_long___int64___double__
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405746
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004144ca
mov esp, ebp
pop ebp
ret
Function at 0x406300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406318
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40634a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x406346
cmp esi, eax
jae 0x40634a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406338
cmp esi, eax
jb 0x406350
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4475f6
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x45b080]
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.004057a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x50]
add esi, 0x1c
call fcn.004057a0
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, 0x4513d8
call fcn.00405870
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x18], 0
mov edi, dword [ebp - 0x50]
add edi, 0x1c
mov edx, 0x4513d8
call fcn.00405870
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