joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403710
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429b58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x43b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x20119
push str.SOFTWAREHuorongSysdiag_app
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push 0x80000001
mov dword [ebp - 0x10], 0x104
call fcn.004035a0
test eax, eax
jne 0x403819
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x40379c
push 0x104
mov ecx, esi
call fcn.00403fb0
lea eax, [ebp - 0x10]
push eax
push dword [esi]
lea ecx, [ebp - 0x1c]
push str.language
call fcn.00403650
test eax, eax
mov eax, dword [esi]
jne 0x4037ed
test eax, eax
jne 0x4037bd
xor ecx, ecx
jmp 0x4037cf
push dword [eax - 8]
push eax
call fcn.0041ca0c
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4037e3
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4037e3
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
jmp 0x40385c
push 0x80070057
call fcn.00404640
test eax, eax
jne 0x4037f5
xor ecx, ecx
jmp 0x403807
push dword [eax - 8]
push eax
call fcn.0041ca0c
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4037e3
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4037e3
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov eax, ecx
and eax, 0x3ff
cmp eax, 4
jne 0x40384e
and ecx, 0xfc00
cmp ecx, 0x800
mov ecx, esi
push 5
jne 0x403847
push 0x4301dc
jmp 0x403857
push 0x4301e8
jmp 0x403857
push 2
push 0x4301f4
mov ecx, esi
call fcn.00404160
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40386a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403ce9
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 0x403d26
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403d22
nop word [eax + eax]
cmp esi, edx
jae 0x403d26
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403d10
cmp esi, edx
jb 0x403d2d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4049f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429bfe
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x43d084]
cmp eax, dword [ecx + 4]
jle 0x404a61
push 0x43d084
call fcn.00416296
add esp, 4
cmp dword [0x43d084], 0xffffffff
jne 0x404a61
call fcn.00401390
push 0x43d084
call fcn.00416257
add esp, 4
mov esi, 0x43d888
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404a75
sub esi, ecx
lea eax, [ebp - 0x114]
sar esi, 1
push ecx
inc esi
lea ecx, [ebp - 0x118]
push eax
mov edx, esi
call fcn.00405090
mov ecx, dword [ebp - 0x118]
lea edx, [esi + esi]
push edx
push 0x43d888
call fcn.004040c0
push eax
call fcn.00403d40
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
push dword [ebp - 0x118]
call fcn.00404260
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x118]
cmp eax, ecx
je 0x404ae9
push eax
call fcn.00419da3
add esp, 4
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x404afa
xor edi, edi
jmp 0x404b51
lea edx, [ecx - 1]
test edx, edx
js 0x404bad
cmp edx, ecx
jg 0x404bad
cmp word [eax + edx*2], 0x5c
je 0x404b26
push 1
push 0x42fea8
lea ecx, [ebp - 0x11c]
call fcn.00404e90
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push str.db_s
push eax
call fcn.00404dd0
add esp, 0xc
push dword [ebp - 0x11c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [ebp - 0x11c]
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x404b6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x404b8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.00416148
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404640
int3
Function at 0x404bc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429c51
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x43d084]
cmp eax, dword [ecx + 4]
jle 0x404c2a
push 0x43d084
call fcn.00416296
add esp, 4
cmp dword [0x43d084], 0xffffffff
jne 0x404c2a
call fcn.00401390
push 0x43d084
call fcn.00416257
add esp, 4
mov esi, 0x43d288
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], eax
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404c40
sub esi, ecx
lea eax, [ebp - 0x114]
sar esi, 1
push ecx
inc esi
lea ecx, [ebp - 0x118]
push eax
mov edx, esi
call fcn.00405090
mov ecx, dword [ebp - 0x118]
lea edx, [esi + esi]
push edx
push 0x43d288
call fcn.004040c0
push eax
call fcn.00403d40
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x11c]
push dword [ebp - 0x118]
call fcn.00404260
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x118]
cmp eax, ecx
je 0x404cb7
push eax
call fcn.00419da3
add esp, 4
mov eax, dword [ebp - 0x11c]
or edi, 0xffffffff
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x404d85
lea edx, [ecx - 1]
test edx, edx
js 0x404dbc
cmp edx, ecx
jg 0x404dbc
cmp word [eax + edx*2], 0x5c
je 0x404cf7
push 1
push 0x42fea8
lea ecx, [ebp - 0x11c]
call fcn.00404e90
push 0x10
push str.binHRUpdate.exe
lea ecx, [ebp - 0x11c]
call fcn.00404e90
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x404d1e
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x120]
push dword [ebp - 0x11c]
push str.__s_
push eax
call fcn.00405050
mov esi, dword [ebp - 0x120]
add esp, 0xc
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404d7f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x404da1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00416148
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404640
int3
Function at 0x408070
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7b0
mov eax, dword [0x43b00c]
xor eax, esp
mov dword [esp + 0x7ac], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0xc], eax
call dword [sym.imp.selfprot.dll_disable_msg_inject]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SetCrashHandle
push str.CrashHandler.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4080ba
push 2
call eax
push str.hr_right_click
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40810a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
cmp eax, 0xb7
jne 0x40812f
push str.HRRIGHTCLICK
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x40810a
push edi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x408103
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor edi, edi
test esi, esi
je 0x408117
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x7b4]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00416148
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40810a
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 8
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00407ef0
add esp, 4
push str.user32.dll
call edi
mov edi, eax
test edi, edi
je 0x4081a1
push str.ChangeWindowMessageFilter
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43d04c], eax
test eax, eax
je 0x40819a
push 1
push 0x80e7
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 0xc
call fcn.00408a50
test eax, eax
jns 0x4081b5
or edi, 0xffffffff
jmp 0x40810c
lea ecx, [esp + 0x18]
call fcn.00404600
mov eax, ecx
push eax
call fcn.004088b0
lea ecx, [esp + 0x50]
call fcn.0040c1d0
push dword [esp + 0xc]
lea eax, [esp + 0x74]
push eax
push 0x43b8c0
call fcn.00402ee0
add esp, 8
movzx eax, ax
lea ecx, [esp + 0x54]
push eax
push 0
push 0x40000
push 0x960e0000
push 0x430bd4
push 0x43b81c
push 0
call fcn.00402d20
push 0
lea ecx, [esp + 0x58]
call fcn.00404320
lea ecx, [esp + 0x18]
call fcn.00408750
call fcn.004086b0
call fcn.004084f0
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x50]
xor edi, edi
call fcn.0040c3d0
lea ecx, [esp + 0x18]
call fcn.004044c0
jmp 0x40810c

Function at 0x409e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x409e65
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409e70
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40a440
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x43b00c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004035a0
mov esi, eax
test esi, esi
jne 0x40a537
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40a509
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040a440
mov esi, eax
test esi, esi
jne 0x40a537
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40a4d0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a520
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0040a560
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a546
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00416148
mov esp, ebp
pop ebp
ret 4
Function at 0x40b140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a216
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40b1e8
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40b1e8
call fcn.00409720
mov esi, eax
jmp 0x40b2d8
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40b20b
call fcn.00409720
jmp 0x40b2cb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40b229
call fcn.00409720
jmp 0x40b2cb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40b24a
mov esi, 0x8007000e
jmp 0x40b2cd
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004096d0
jmp 0x40b274
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40b28b
mov esi, 0x8007000e
jmp 0x40b2cd
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40b2ab
call fcn.00409720
jmp 0x40b2cb
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040afe0
mov esi, eax
test edi, edi
je 0x40b2d8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40b2f1
lea ecx, [ebp - 0x418]
call fcn.00409680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416148
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40cf70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x40cfa2
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
sub esp, 0xc
call fcn.0040d280
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
je 0x40d01d
mov eax, 1
pop ebp
ret 0x18
cmp eax, 0xf
jne 0x40cfc3
push 0
mov dword [ecx], 1
call fcn.0040d310
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x18
cmp eax, 3
jne 0x40cfde
push 1
call fcn.0040d310
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x18
cmp eax, 5
jne 0x40cffe
cmp dword [ecx], 0
je 0x40d014
push 0
call fcn.0040d310
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x18
cmp eax, 0x18
jne 0x40d01d
cmp dword [ebp + 0x10], 1
je 0x40d014
push 0
push dword [ecx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x18

Function at 0x40d310
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x43b00c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov edi, ecx
mov esi, edi
neg esi
lea eax, [edi - 0x380]
sbb esi, esi
and esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d419
push dword [edi + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d419
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40d40e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x40d40e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40d40e
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0040d430
push 1
push 0xffffffffffffffeb
push dword [edi + 8]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x1c], xmm0
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [ebp + 8], 0
lea eax, [esp + 0x10]
je 0x40d3e1
push 1
push eax
lea ecx, [edi + 8]
call fcn.00402c90
push 0
push 0xffffffffffffffeb
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00416148
mov esp, ebp
pop ebp
ret 4
push ecx
push eax
push dword [esi + 4]
lea ecx, [edi + 8]
call fcn.00402c60
push 0
push 0xffffffffffffffeb
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00416148
mov esp, ebp
pop ebp
ret 4
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.00416148
mov esp, ebp
pop ebp
ret 4
Function at 0x40d980
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x808]
call dword [sym.imp.USER32.dll_IsWindow]
cmp byte [ebp + 8], 0
je 0x40d9f7
test eax, eax
jne 0x40d9be
mov ecx, dword [esi + 0x44]
push eax
push eax
push eax
push str.nativectrl_init
push esi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_]
push dword [esi + 0x808]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40da19
push dword [esi + 0x808]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40da19
push 0xa
push dword [esi + 0x808]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x808]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
pop esi
pop ebp
ret 4
test eax, eax
je 0x40da19
push dword [esi + 0x808]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40da19
push 0
push dword [esi + 0x808]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x40e780
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push 0
push 0x80
push 3
push 0
mov edi, ecx
push 7
push 0x80000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x40e91d
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
je 0x40e91d
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [edi + 0xc], edx
test edx, edx
je 0x40e91d
push esi
mov ecx, edx
call fcn.0040dae0
mov esi, dword [edx + 0x3c]
add esi, edx
test eax, eax
mov ecx, esi
lea eax, [esi + 4]
je 0x40e832
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x40e829
movzx eax, word [ecx]
mov ecx, 0x200
cmp ax, cx
je 0x40e81d
mov ecx, 0x8664
cmp ax, cx
jne 0x40e829
test esi, esi
je 0x40e829
lea eax, [esi + 0x18]
add eax, 0x70
jmp 0x40e863
xor eax, eax
mov eax, 0x70
jmp 0x40e863
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x40e855
movzx eax, word [ecx]
mov ecx, 0x200
cmp ax, cx
je 0x40e851
mov ecx, 0x8664
cmp ax, cx
jne 0x40e855
xor eax, eax
jmp 0x40e860
test esi, esi
jne 0x40e85d
xor eax, eax
jmp 0x40e860
lea eax, [esi + 0x18]
add eax, 0x60
test eax, eax
je 0x40e91c
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.0040db80
test eax, eax
je 0x40e91c
push ebx
mov ebx, dword [edi + 0xc]
add ebx, dword [ebp - 4]
push 0x10
call fcn.00416832
mov esi, eax
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 4]
mov dword [esi + 8], ecx
mov dword [esi], ebx
test ebx, ebx
je 0x40e8e5
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
movups xmmword [ebp - 0x14], xmm0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov ecx, ebx
mov dword [ebp - 8], 0
call fcn.0040dc00
test eax, eax
jle 0x40e8e5
pop ebx
mov dword [edi + 0x10], esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40e910
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 4
push eax
push ecx
call fcn.0040f0b0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push 0x10
push esi
call fcn.004165bc
add esp, 8
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40fe80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0x40fe96
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
mov eax, edi
mov ecx, ebx
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40fec6
test dx, dx
je 0x40fec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40fec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40fea0
xor eax, eax
jmp 0x40fecb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40fed8
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40ff07
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp - 4]
xor bl, bl
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
test eax, eax
jne 0x40ff24
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a63c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x410021
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 8], eax
mov dword [ebp - 4], 0
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x410048
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0xc], eax
mov byte [ebp - 4], 1
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x41006c
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x10], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
lea esi, [edi + 0x28]
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004150d0
mov dword [esi], eax
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x4100bf
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x34], eax
mov eax, edi
mov dword [edi + 0x30], 0
mov byte [edi + 5], 0
mov dword [edi + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret