joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b40
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 0x404b61
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 0x404e20
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [esi + 0x54]
push 0
push ecx
mov dword [esi + 0x68], eax
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]
ret

Function at 0x405830
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40588c
mov eax, dword [esi + 0x54]
push 0
push 0
push 0x200
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x54]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x10c]
mov eax, dword [esi + 0x54]
push 0x472
push str.ck_W
push edx
push eax
call sym.Install_comm.exe_int___cdecl_ShowTray_struct_HWND_____struct_HICON_____wchar_t_const___unsigned_int_
mov ecx, dword [esi + 0x54]
push 2
push 0x4594ec
push 0x4594f4
push ecx
call sym.Install_comm.exe_int___cdecl_ShowBalloon_struct_HWND_____wchar_t_const___wchar_t_const___int_
add esp, 0x20
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xffffffab
push edi
mov edi, ecx
cmp eax, 0xe6
ja 0x408826
mov eax, dword [edi + 0x114]
mov ecx, dword [ebp + 0xc]
lea edx, [eax + 0x58]
cmp ecx, edx
jl 0x408826
add eax, 0x67
cmp ecx, eax
jg 0x408826
mov eax, dword [edi + 0x54]
push esi
push eax
mov eax, dword [edi + 0xc8c]
lea esi, [edi + 0x186c]
call fcn.00407250
pop esi
pop edi
pop ebp
ret 8
mov ecx, dword [edi + 0x18c0]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 0x18c0]
push 0
push 0
push 0x200
push edx
mov byte [edi + 0x1933], 1
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebp
ret 8
Function at 0x409f20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451838
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x467080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [esi + 0x3ec], 0
jle 0x40a0aa
xor edi, edi
jmp 0x409f60
cmp byte [esi + 0xc7], 0
jne 0x40a0f7
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x64
jl 0x409f60
dec dword [esi + 0x3ec]
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 + 0x3ec]
push eax
push 0x459878
lea edi, [ebp - 0x10]
call fcn.00406080
mov edx, dword [ebp - 0x10]
mov ebx, dword [esi + 0x228]
lea eax, [esi + 0x228]
lea edi, [edx - 0x10]
sub ebx, 0x10
add esp, 8
cmp edi, ebx
je 0x40a074
cmp dword [ebx + 0xc], 0
jl 0x40a06a
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40a06a
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40a007
cmp eax, dword [edi]
jne 0x40a007
mov dword [ebp - 0x14], edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40a043
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 0x40a108
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.00419491
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40a05c
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 + 0x228], eax
jmp 0x40a074
mov ebx, dword [edx - 0xc]
push edx
push eax
call fcn.00405ba0
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 0x40a09d
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
cmp dword [esi + 0x3ec], 0
jg 0x409f54
mov ecx, dword [esi + 0x3e8]
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 0x54]
push 0
mov ebx, 1
push eax
mov dword [esi + 0x68], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x54]
push 0
push 0
push 0x200
push ecx
mov byte [esi + 0xc7], bl
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0x54]
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.00405ef0
int3
Function at 0x40cff0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4515c6
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x467080]
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.004058a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x50]
add esi, 0x1c
call fcn.004058a0
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, 0x459658
call fcn.00405a20
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x18], 0
mov edi, dword [ebp - 0x50]
add edi, 0x1c
mov edx, 0x459658
call fcn.00405a20
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 0x40e1e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4512fb
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x467080]
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.004058c0
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.004058c0
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 0x412510
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 0x412525
xor edx, edx
jne 0x412525
cmp dword [ebp - 0xc], 0
jne 0x41253d
push 0x80004005
call fcn.004064c0
xor eax, eax
jne 0x412519
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 0x412650
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jbe 0x412648
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jbe 0x412637
cmp dword [ebp - 0x14], 2
jbe 0x4125a0
cmp dword [ebp - 0x14], 7
je 0x4125d6
jmp 0x412637
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4125c5
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 0x4125d4
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, 0xd
jmp 0x412653
jmp 0x412646
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x412626
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jb 0x412626
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 0x412626
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jbe 0x412635
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 0x412635
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax], dx
mov eax, 0xd
jmp 0x412653
jmp 0x412646
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx], cx
mov eax, 0xd
jmp 0x412653
jmp 0x412650
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 0x412660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x412669
xor ecx, ecx
jne 0x412669
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 0x4126b0
mov eax, dword [ebp - 0xc]
jmp 0x41270d
cmp dword [ebp - 4], 1
je 0x4126c3
cmp dword [ebp - 4], 2
je 0x4126c3
mov eax, 0xd
jmp 0x41270d
cmp dword [ebp + 0xc], 0
je 0x412701
cmp dword [ebp - 8], 0
je 0x4126f9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4126f0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4126f7
mov eax, 0xd
jmp 0x41270d
jmp 0x412701
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 0x413a40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413aa4
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x3a8]
test edx, edx
je 0x413a80
push 5
push 0
push 0
mov eax, dword [ebp - 4]
add eax, 0x10c
call fcn.00405a60
push eax
push 0x4596cc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x384]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x5c]
call edx
mov eax, 2
mov esi, dword [ebp - 4]
call fcn.00404e20
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4183f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x4183f9
xor ecx, ecx
jne 0x4183f9
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 0x418432
call fcn.00418920
jmp 0x418448
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x418446
push 0x26
call fcn.0040f930
add esp, 4
jmp 0x418448
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x418dfa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x467080]
jne 0x418e04
repz ret
jmp fcn.00419e34
Function at 0x4215e1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x467080]
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.0041d4ea
and dword [ebp - 0x14], 0
cmp dword [0x469f34], 0
mov dword [ebp - 0x18], eax
jne 0x421694
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42173c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x454dcc
push ebx
call edi
test eax, eax
je 0x42173c
mov esi, dword [0x467e90]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x469f34], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x469f38], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x469f3c], eax
call edi
push eax
call esi
mov dword [0x469f44], eax
test eax, eax
je 0x421694
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x469f40], eax
mov eax, dword [0x469f40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x467e94]
cmp eax, ecx
je 0x4216ed
cmp dword [0x469f44], ecx
je 0x4216ed
push eax
call esi
push dword [0x469f44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4216ed
test ebx, ebx
je 0x4216ed
call edi
test eax, eax
je 0x4216e4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4216e4
test byte [ebp - 8], 1
jne 0x4216ed
or dword [ebp + 0x10], 0x200000
jmp 0x421720
mov eax, dword [0x469f38]
cmp eax, dword [ebp - 0x18]
je 0x421720
push eax
call esi
test eax, eax
je 0x421720
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x421720
mov eax, dword [0x469f3c]
cmp eax, dword [ebp - 0x18]
je 0x421720
push eax
call esi
test eax, eax
je 0x421720
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x469f34]
call esi
test eax, eax
je 0x42173c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42173e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418dfa
leave
ret
Function at 0x435120
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x467080]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x218], ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x4599b0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x435164
xor eax, eax
jmp 0x435220
cmp dword [ebp + 0xc], 0
je 0x435203
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00419d00
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x4351a9
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x4351ba
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push edx
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x435201
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x435220
jmp 0x435211
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00418dfa
mov esp, ebp
pop ebp
ret 0xc

Function at 0x435360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x467080]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 4], 0xf003f
cmp dword [ebp + 0x14], 0
je 0x43539a
mov eax, dword [ebp - 4]
or eax, 0x100
mov dword [ebp - 4], eax
jmp 0x4353af
call sym.Install_comm.exe_int___cdecl_isWow64_void_
test eax, eax
je 0x4353af
mov ecx, dword [ebp - 4]
or ecx, 0x200
mov dword [ebp - 4], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435437
mov dword [ebp - 0x10], 0x104
push 0x20a
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.00419d00
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43542d
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x435439
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00418dfa
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4356a0
Capabilities:
Create thread

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450955
mov eax, dword fs:[0]
push eax
sub esp, 0x8c4
mov eax, dword [0x467080]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call sym.Install_comm.exe_private:_bool___thiscall_CNsLog::isLog_void_
movzx eax, al
test eax, eax
jne 0x436a91
jmp 0x436be3
lea esi, [ebp - 0x14]
call fcn.004058a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call sym.Install_comm.exe_private:_void___thiscall_CNsLog::GetLogFileName_class_ATL::CStringT_wchar_t__class_ATL::StrTraitATL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
push 0x459b04
lea eax, [ebp - 0x14]
call fcn.00405a60
push eax
call fcn.0042ba5e
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x436bd4
lea edx, [ebp + 0x10]
mov dword [ebp - 0x18], edx
xor eax, eax
mov word [ebp - 0x82c], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x82a]
push ecx
call fcn.00419d00
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x400
lea ecx, [ebp - 0x82c]
push ecx
call fcn.0042d35a
add esp, 0x10
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea esi, [ebp - 0x8b8]
call fcn.004058a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x82c]
push eax
movzx ecx, word [ebp - 0x20]
push ecx
movzx edx, word [ebp - 0x22]
push edx
movzx eax, word [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x26]
push ecx
movzx edx, word [ebp - 0x2a]
push edx
movzx eax, word [ebp - 0x2c]
push eax
push 0x459b20
lea edi, [ebp - 0x8b8]
call fcn.00406080
add esp, 0x20
lea eax, [ebp - 0x8b8]
call fcn.00405a60
push eax
lea ecx, [ebp - 0x8b4]
call fcn.00411540
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x8b4]
call fcn.00411500
push eax
call fcn.0041a680
add esp, 4
push eax
push 1
lea ecx, [ebp - 0x8b4]
call fcn.00411500
push eax
call fcn.0042b91b
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call fcn.004234fa
add esp, 4
lea ecx, [ebp - 0x8b4]
call fcn.00411570
mov byte [ebp - 4], 0
lea eax, [ebp - 0x8b8]
call fcn.00405990
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
call fcn.00405990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00418dfa
mov esp, ebp
pop ebp
ret