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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44449e
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x454080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [ebx + 1]
mov dword [esi], vtable.CNsBase.0
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 [0x45736c], al
jne 0x4011be
or dword [0x45736c], eax
mov ecx, 0x457370
mov dword [ebp - 4], ebx
call sym.Install_classic.exe_public:_void___thiscall_CNsFont::constructor_void_
push 0x444ba0
call fcn.004169dc
add esp, 4
mov dword [ebp - 4], 0xffffffff
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, 0x457370
call sym.Install_classic.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 eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f10
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 + 0x4c]
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 0x403f31
mov ecx, dword [esi + 0x4c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x4c]
push 0
push 0
push 0x200
push edx
mov byte [esi + 0xbf], 1
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4041f0
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [esi + 0x4c]
push 0
push ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x4c]
push 0
push 0
push 0x200
push edx
mov byte [esi + 0xbf], 1
call dword [sym.imp.USER32.dll_SendMessageW]
ret

Function at 0x404b60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x404bbc
mov eax, dword [esi + 0x4c]
push 0
push 0
push 0x200
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x4c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0xf4]
mov eax, dword [esi + 0x4c]
push 0x472
push str.ck_W
push edx
push eax
call sym.Install_classic.exe_int___cdecl_ShowTray_struct_HWND_____struct_HICON_____wchar_t_const___unsigned_int_
mov ecx, dword [esi + 0x4c]
push 2
push 0x447cf4
push 0x447cfc
push ecx
call sym.Install_classic.exe_int___cdecl_ShowBalloon_struct_HWND_____wchar_t_const___wchar_t_const___int_
add esp, 0x20
pop esi
pop ebp
ret 4

Function at 0x4056e0
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 0x4056f8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40572a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x405726
cmp esi, eax
jae 0x40572a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405718
cmp esi, eax
jb 0x405730
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 0x406be0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4442a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x454080]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x40], esi
mov eax, dword [ebp + 0xc]
cmp eax, 0x10
je 0x406d76
cmp eax, 0x7e9
je 0x406c4e
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00402670
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
fild dword [ebp + 0x10]
test ecx, ecx
jns 0x406c5e
fadd dword [0x44a708]
fdiv qword [0x44a6f8]
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x1784], edx
mov ecx, section..data
fstp dword [esi + 0x118]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x80], 0
fld dword [esi + 0x118]
mov eax, dword [esi + 0x1784]
sub esp, 8
fstp qword [esp]
test eax, eax
jne 0x406cb1
push str._.0f__
jmp 0x406cc2
cmp eax, 1
jne 0x406cbd
push str._.1f__
jmp 0x406cc2
push str._.2f__
lea edi, [esp + 0x48]
call fcn.00405370
mov eax, dword [esi + 0xfc]
mov edx, dword [esp + 0x48]
add esp, 0xc
mov byte [eax + 0x31], 1
mov edi, dword [esi + 0xfc]
test edx, edx
jne 0x406cea
xor eax, eax
jmp 0x406cff
mov eax, edx
lea ebx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406cf0
sub eax, ebx
sar eax, 1
push edx
lea ecx, [edi + 0x4c]
push ecx
mov ebx, eax
call fcn.00404e90
mov ecx, dword [edi + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x406d26
push 1
mov esi, edi
call fcn.00401480
mov esi, dword [esp + 0x40]
fld dword [esi + 0x118]
fcomp qword [0x44a6f8]
fnstsw ax
test ah, 1
jne 0x406d49
mov edx, dword [esi + 0x4c]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406de5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406de5
mov ecx, dword [esi + 0x4c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x4c]
push 0
push 0
push 0x200
mov ebx, 1
push edx
mov byte [esi + 0xbf], bl
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esi + 0x120]
call sym.Install_classic.exe_public:_void___thiscall_CNsInstaller::AutoRun_void_
lea ecx, [esi + 0x120]
call sym.Install_classic.exe_public:_void___thiscall_CNsInstaller::WaitUpdate_void_
test byte [0x456fc0], bl
jne 0x406ddb
or dword [0x456fc0], ebx
mov ecx, 0x456fc8
call sym.Install_classic.exe_public:_void___thiscall_CNsApp::constructor_void_
push 0x444b90
call fcn.004169dc
add esp, 4
mov ecx, 0x456fc8
call sym.Install_classic.exe_public:_void___thiscall_CNsApp::ExitApp_void_
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408860
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4441e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x454080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [esi + 0x384], 0
jle 0x4089ea
xor edi, edi
jmp 0x4088a0
cmp byte [esi + 0xbf], 0
jne 0x408a37
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x64
jl 0x4088a0
dec dword [esi + 0x384]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x384]
push eax
push 0x447fe8
lea edi, [ebp - 0x10]
call fcn.00405370
mov edx, dword [ebp - 0x10]
mov ebx, dword [esi + 0x1f4]
lea eax, [esi + 0x1f4]
lea edi, [edx - 0x10]
sub ebx, 0x10
add esp, 8
cmp edi, ebx
je 0x4089b4
cmp dword [ebx + 0xc], 0
jl 0x4089aa
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x4089aa
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x408947
cmp eax, dword [edi]
jne 0x408947
mov dword [ebp - 0x14], edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x408983
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408a48
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 4]
lea edx, [ecx + ecx + 2]
push edx
lea edx, [edi + 0x10]
push edx
lea ecx, [ecx + ecx + 2]
push ecx
add eax, 0x10
push eax
call fcn.00416f41
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40899c
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi + 0x1f4], eax
jmp 0x4089b4
mov ebx, dword [edx - 0xc]
push edx
push eax
call fcn.00404e90
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089dd
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
cmp dword [esi + 0x384], 0
jg 0x408894
mov ecx, dword [esi + 0x380]
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 0x4c]
push 0
mov ebx, 1
push eax
mov dword [esi + 0x60], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x4c]
push 0
push 0
push 0x200
push ecx
mov byte [esi + 0xbf], bl
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0x4c]
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004051b0
int3
Function at 0x40ba80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443f66
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x454080]
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.00404be0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x50]
add esi, 0x1c
call fcn.00404be0
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, 0x447e30
call fcn.00404d60
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x18], 0
mov edi, dword [ebp - 0x50]
add edi, 0x1c
mov edx, 0x447e30
call fcn.00404d60
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 0x40cc90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443ceb
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x454080]
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.00404c00
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.00404c00
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 0x410c00
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 0x410c15
xor edx, edx
jne 0x410c15
cmp dword [ebp - 0xc], 0
jne 0x410c2d
push 0x80004005
call fcn.004057b0
xor eax, eax
jne 0x410c09
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 0x410d40
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jbe 0x410d38
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jbe 0x410d27
cmp dword [ebp - 0x14], 2
jbe 0x410c90
cmp dword [ebp - 0x14], 7
je 0x410cc6
jmp 0x410d27
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x410cb5
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 0x410cc4
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, 0xd
jmp 0x410d43
jmp 0x410d36
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x410d16
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jb 0x410d16
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 0x410d16
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jbe 0x410d25
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 0x410d25
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax], dx
mov eax, 0xd
jmp 0x410d43
jmp 0x410d36
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx], cx
mov eax, 0xd
jmp 0x410d43
jmp 0x410d40
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 0x410d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x410d59
xor ecx, ecx
jne 0x410d59
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 0x410da0
mov eax, dword [ebp - 0xc]
jmp 0x410dfd
cmp dword [ebp - 4], 1
je 0x410db3
cmp dword [ebp - 4], 2
je 0x410db3
mov eax, 0xd
jmp 0x410dfd
cmp dword [ebp + 0xc], 0
je 0x410df1
cmp dword [ebp - 8], 0
je 0x410de9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x410de0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x410de7
mov eax, 0xd
jmp 0x410dfd
jmp 0x410df1
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 0x4112a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443c21
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x454080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 4]
mov byte [eax + 4], dl
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [ecx + 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov eax, dword [eax + 0x1c]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x28], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x2c], eax
mov esi, dword [ebp + 8]
add esi, 0x30
mov edi, dword [ebp - 0x50]
add edi, 0x30
mov ecx, 0x2c0
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
add eax, 0xb30
mov esi, dword [ebp - 0x50]
add esi, 0xb30
call fcn.00404c00
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xb34
mov esi, dword [ebp - 0x50]
add esi, 0xb34
call fcn.00404c00
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xb38
mov esi, dword [ebp - 0x50]
add esi, 0xb38
call fcn.00404c00
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xb3c
mov esi, dword [ebp - 0x50]
add esi, 0xb3c
call fcn.00404c00
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb40]
mov dword [ecx + 0xb40], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb44]
mov dword [ecx + 0xb44], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov al, byte [edx + 0xb48]
mov byte [ecx + 0xb48], al
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov al, byte [edx + 0xb49]
mov byte [ecx + 0xb49], al
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
mov al, byte [edx + 0xb4a]
mov byte [ecx + 0xb4a], al
mov eax, dword [ebp + 8]
add eax, 0xb4c
mov esi, dword [ebp - 0x50]
add esi, 0xb4c
call fcn.00404c00
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
add ecx, 0xb50
push ecx
mov ecx, dword [ebp - 0x50]
add ecx, 0xb50
call fcn.00412010
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 4
Function at 0x415e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x415e89
xor ecx, ecx
jne 0x415e89
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 0x415ec2
call fcn.004163d0
jmp 0x415ed8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x415ed6
push 0x26
call fcn.0040e3d0
add esp, 4
jmp 0x415ed8
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4168aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454080]
jne 0x4168b4
repz ret
jmp fcn.004178e4

Function at 0x41e4c1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x454080]
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.0041af9a
and dword [ebp - 0x14], 0
cmp dword [0x456ed4], 0
mov dword [ebp - 0x18], eax
jne 0x41e574
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41e61c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41e61c
mov esi, dword [0x454e60]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x456ed4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x456ed8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x456edc], eax
call edi
push eax
call esi
mov dword [0x456ee4], eax
test eax, eax
je 0x41e574
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x456ee0], eax
mov eax, dword [0x456ee0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x454e64]
cmp eax, ecx
je 0x41e5cd
cmp dword [0x456ee4], ecx
je 0x41e5cd
push eax
call esi
push dword [0x456ee4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41e5cd
test ebx, ebx
je 0x41e5cd
call edi
test eax, eax
je 0x41e5c4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41e5c4
test byte [ebp - 8], 1
jne 0x41e5cd
or dword [ebp + 0x10], 0x200000
jmp 0x41e600
mov eax, dword [0x456ed8]
cmp eax, dword [ebp - 0x18]
je 0x41e600
push eax
call esi
test eax, eax
je 0x41e600
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e600
mov eax, dword [0x456edc]
cmp eax, dword [ebp - 0x18]
je 0x41e600
push eax
call esi
test eax, eax
je 0x41e600
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x456ed4]
call esi
test eax, eax
je 0x41e61c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41e61e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004168aa
leave
ret