joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00402d50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x402d3c
cmp dword [ebp - 4], 0x50000000
jb 0x402cbc
cmp dword [ebp - 4], 0x80000000
ja 0x402cbc
mov dword [ebp - 4], 0x80010000
jmp 0x402c95
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00433ca0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x402ce2
jmp 0x402d3c
cmp dword [ebp - 0x10], 0x10000
jne 0x402d25
cmp dword [ebp - 0x14], 0x10000
jb 0x402d25
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402d18
mov eax, dword [ebp - 0x24]
jmp 0x402d3e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x402d37
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.00402d50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x402c95
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00402e50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x402e44
cmp dword [ebp - 4], 0x50000000
jb 0x402dc1
cmp dword [ebp - 4], 0x80000000
ja 0x402dc1
mov dword [ebp - 4], 0x4fff0000
jmp 0x402d9a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00433ca0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x402de7
jmp 0x402e44
cmp dword [ebp - 0x10], 0x10000
jne 0x402e2a
cmp dword [ebp - 0x14], 0x10000
jb 0x402e2a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402e1d
mov eax, dword [ebp - 0x24]
jmp 0x402e46
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x402e3f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.00402e50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x402d9a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4eeb28], eax
je 0x402ea5
mov eax, 0x10dd
jmp 0x40303d
cmp dword [0x4eeb2c], 0
je 0x402eb8
mov eax, dword [0x4eeb2c]
jmp 0x40303d
cmp dword [ebp + 8], 0
jne 0x402ec8
mov eax, 6
jmp 0x40303d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x402ef1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x4eeb2c], ecx
mov edx, dword [ebp + 8]
mov dword [0x4eeb30], edx
mov eax, dword [ebp - 0xc]
jmp 0x40303d
push 0x18
call fcn.0042f65b
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402f4a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x4eeb2c], ecx
cmp dword [ebp - 0x18], 0
je 0x402f39
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042f109
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x4eeb30], ecx
mov eax, dword [ebp - 0xc]
jmp 0x40303d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00401900
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401900
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x402f8a
cmp dword [ebp - 8], 0x1e
jbe 0x402fa6
mov dword [ebp - 0xc], 9
cmp dword [0x4eeb20], 0
je 0x402fa1
jmp 0x402f1a
jmp 0x402f11
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x402fcd
mov dword [ebp - 0xc], 9
cmp dword [0x4eeb20], 0
je 0x402fc8
jmp 0x402f1a
jmp 0x402f11
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402ffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x402f11
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4eeb38]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x4eeb38], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x403420
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4d6760
push 0x433f80
mov eax, dword fs:[0]
push eax
add esp, 0xffffff8c
mov eax, dword [0x4ec00c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x3c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
cmp dword [ebp + 0xc], 0
jne 0x403465
mov dword [ebp - 0x1c], 0x10000
jmp 0x403470
mov eax, dword [ebp + 0xc]
add eax, 0x10000
mov dword [ebp - 0x1c], eax
push 0x1c
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.00433ca0
add esp, 0xc
jmp 0x40348b
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x4034a8
jmp 0x4035c7
mov eax, dword [ebp - 0x2c]
and eax, 0xfff
cmp eax, 0xfff
jne 0x4034bc
jmp 0x4035c7
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x1c]
jae 0x4034cc
jmp 0x4035c7
cmp dword [ebp - 0x28], 0x1000
jne 0x4034ed
mov edx, dword [ebp - 0x24]
and edx, 0xff
cmp edx, 1
je 0x4034ed
mov eax, dword [ebp - 0x24]
and eax, 0x100
je 0x4034ef
jmp 0x403482
mov dword [ebp - 4], 0
push 0
push 0x40
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40351c
mov dword [ebp - 4], 0xfffffffe
jmp 0x403482
movzx ecx, word [ebp - 0x80]
cmp ecx, 0x5a4d
jne 0x403536
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x2c]
ja 0x403536
cmp dword [ebp - 0x44], 0x40
jae 0x403542
mov dword [ebp - 4], 0xfffffffe
jmp 0x403482
push 0
push 0xf8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40356e
mov dword [ebp - 4], 0xfffffffe
jmp 0x403482
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x403585
mov dword [ebp - 4], 0xfffffffe
jmp 0x403482
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x84]
jmp 0x4035c9
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0042f10e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403ed0
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x1c]
or eax, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x34], 0
jne 0x403eee
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0x34], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x34]
test eax, eax
jne 0x403f21
xor eax, eax
jmp 0x403f95
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x30], 0
je 0x403f41
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x30]
mov dword [ebp + eax*4 - 0xc], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00403050
test eax, eax
jne 0x403f66
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x403f95
cmp dword [ebp + 0x2c], 0
je 0x403f7e
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x2c]
push edx
call fcn.00434120
add esp, 0xc
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x403f90
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x409560
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4095b7
push 0
push 0
push 0x200
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x472
push str.ck_W
push dword [esi + 0x108]
push dword [esi + 0x54]
call sym.Install_adv.exe_int___cdecl_ShowTray_struct_HWND_____struct_HICON_____wchar_t_const___unsigned_int_
push 2
push 0x4ca194
push 0x4ca19c
push dword [esi + 0x54]
call sym.Install_adv.exe_int___cdecl_ShowBalloon_struct_HWND_____wchar_t_const___wchar_t_const___int_
add esp, 0x20
pop esi
pop ebp
ret 4

Function at 0x40a240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a299
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a299
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40a288
cmp esi, edx
jae 0x40a299
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40a276
cmp esi, edx
jae 0x40a299
cmp word [esi], 0
je 0x40a299
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40ce00
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x200
push dword [edi + 0x54]
mov byte [edi + 0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [edi + 0x270]
call sym.Install_adv.exe_public:_void___thiscall_CNsInstaller::AutoRun_void_
lea ecx, [edi + 0x270]
call sym.Install_adv.exe_public:_void___thiscall_CNsInstaller::WaitUpdate_void_
mov byte [edi + 0x11c], 1
call sym.Install_adv.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov ecx, eax
call sym.Install_adv.exe_public:_void___thiscall_CNsApp::ExitApp_void_
pop edi
pop esi
ret 4
Function at 0x40eba0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac608
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4ec00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x484], 0
jle 0x40ed0c
nop word [eax + eax]
xor esi, esi
cmp byte [edi + 0xc7], 0
jne 0x40ed53
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x40ebe2
dec dword [edi + 0x484]
call fcn.0040a520
mov ecx, eax
test ecx, ecx
je 0x40ed65
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push dword [edi + 0x484]
push 0x4ca67c
push eax
call fcn.00409d70
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ebx, dword [edi + 0x278]
sub ebx, 0x10
lea esi, [eax - 0x10]
cmp esi, ebx
je 0x40ecdc
cmp dword [ebx + 0xc], 0
jl 0x40eccd
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40eccd
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x40ec7a
cmp ecx, dword [esi]
jne 0x40ec7a
mov dword [ebp - 0x14], esi
lock inc dword [eax]
jmp 0x40eca8
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ed6f
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
lea ecx, [esi + 0x10]
mov edx, dword [esi + 4]
inc edx
push edx
push ecx
lea ecx, [eax + 0x10]
call fcn.00409b40
add esp, 8
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40ecbf
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [edi + 0x278], eax
jmp 0x40ecdc
push dword [eax - 0xc]
lea ecx, [edi + 0x278]
push eax
call fcn.004099c0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ecff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x484], 0
jg 0x40ebe0
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x480]
call dword [eax + 0x60]
push 0
push dword [edi + 0x54]
mov dword [edi + 0x68], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x200
push dword [edi + 0x54]
mov byte [edi + 0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0
push dword [edi + 0x54]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a620
call fcn.00409b00
int3
Function at 0x40f690
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
mov edi, ecx
call fcn.00406940
test al, al
jne 0x40f718
push ebx
mov ebx, dword [ebp + 0xc]
movzx eax, bx
shr ebx, 0x10
cmp byte [edi + 0xc8], 0
mov dword [ebp + 0xc], eax
jne 0x40f717
mov eax, dword [edi + 0xd4]
xor esi, esi
mov ecx, dword [edi + 0xd0]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x40f717
nop
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx + 4]
mov al, byte [ecx + 0x31]
test edx, edx
jne 0x40f6eb
test al, al
je 0x40f701
cmp byte [ecx + 0x30], dl
jne 0x40f701
push dword [edi + 4]
jmp 0x40f6f6
test al, al
je 0x40f701
cmp byte [ecx + 0x30], 0
jne 0x40f701
push edx
mov eax, dword [ecx]
push 1
push ebx
push dword [ebp + 0xc]
call dword [eax + 0x10]
mov eax, dword [edi + 0xd4]
inc esi
mov ecx, dword [edi + 0xd0]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f6d0
pop ebx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x200
push dword [edi + 0x54]
call esi
push 0
push dword [edi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x200
push dword [edi + 0x54]
mov byte [edi + 0xc7], 1
call esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x40f760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
mov edi, ecx
call fcn.004072e0
mov ecx, esi
movzx eax, si
shr ecx, 0x10
cmp eax, dword [edi + 0x14]
jg 0x40f7a6
cmp ecx, dword [edi + 0x18]
jg 0x40f7a6
mov eax, dword [edi + 0x104]
cmp ecx, eax
jle 0x40f7ec
sub ecx, eax
mov eax, ecx
cdq
idiv dword [edi + 0x108]
mov dword [edi + 0x10c], eax
pop edi
pop esi
pop ebp
ret 8
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
push dword [edi + 0x54]
mov byte [edi + 0xfc], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x200
push dword [edi + 0x54]
mov byte [edi + 0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 4]
push 0
push 0
push 0xfbd
push dword [eax + 0x54]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x416000
Capabilities:
Access peb ldr_data
Get kernel32 base address

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x10], 0
je 0x41d1c8
mov dword [ebp - 8], 1
jmp 0x41d1cf
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
xor ecx, ecx
jne 0x41d1d5
cmp dword [ebp - 0x14], 0
jne 0x41d1e9
push 0x80004005
call fcn.0040a620
xor edx, edx
jne 0x41d1b9
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41d330
cmp dword [ebp + 8], 0
je 0x41d330
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jbe 0x41d31f
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jbe 0x41d305
cmp dword [ebp - 4], 2
jbe 0x41d256
cmp dword [ebp - 4], 7
je 0x41d29b
jmp 0x41d305
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x41d27b
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 0x41d296
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + ecx], dx
mov eax, 0xd
jmp 0x41d333
jmp 0x41d31d
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x41d2eb
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jb 0x41d2eb
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 0x41d2eb
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jbe 0x41d303
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 0x41d303
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + eax], cx
mov eax, 0xd
jmp 0x41d333
jmp 0x41d31d
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + ecx], dx
mov eax, 0xd
jmp 0x41d333
jmp 0x41d330
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + edx], ax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x41d3f9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
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 0x41d43c
mov eax, dword [ebp - 8]
jmp 0x41d4a2
cmp dword [ebp - 0xc], 1
je 0x41d44f
cmp dword [ebp - 0xc], 2
je 0x41d44f
mov eax, 0xd
jmp 0x41d4a2
cmp dword [ebp + 0xc], 0
je 0x41d496
cmp dword [ebp - 4], 0
je 0x41d485
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x41d47c
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x41d483
mov eax, 0xd
jmp 0x41d4a2
jmp 0x41d496
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41d5f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x41d5f9
cmp dword [ebp + 0xc], 0
je 0x41d60c
mov dword [ebp - 4], 1
jmp 0x41d613
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x41d626
mov eax, 0xd
jmp 0x41d655
xor edx, edx
jne 0x41d5fd
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043c885
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc