joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fa8c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0041f0fb
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.0040d3d2
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x45fb98
push esi
call fcn.0049bd19
mov edi, eax
pop ecx
test edi, edi
jne 0x45fad7
lea ecx, [ebp - 4]
call fcn.004058e3
push edi
jmp 0x45fba2
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.0040d3d2
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45fac9
lea ecx, [ebp - 8]
call fcn.00409513
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45fb26
cmp dword [ebp - 0x10], 0
je 0x45fb26
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x4d57d4
push ecx
push eax
jmp 0x45fb35
push 0x4d57d4
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.0043e52f
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.0040d3d2
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45fb8b
cmp dword [ebp - 0x18], 0
je 0x45fb8b
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.00405d31
mov ecx, esi
call fcn.004058e3
lea ecx, [ebp - 4]
call fcn.004058e3
push edi
call fcn.0049d65c
mov al, 1
jmp 0x45fba9
lea ecx, [ebp - 8]
call fcn.004058e3
jmp 0x45fac9
lea ecx, [ebp - 4]
call fcn.004058e3
push 0
call fcn.0049d65c
xor al, al
pop ecx
pop edi
pop esi
leave
ret

Function at 0x45fcdd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov dword [ebp - 4], 0xc8
xor ebx, ebx
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049bd19
pop ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x45fd2f
inc dword [ebp - 4]
jmp 0x45fcf0
cmp eax, ebx
jne 0x45fd51
cmp dword [ebp - 8], 1
je 0x45fd5f
cmp dword [ebp - 8], 4
jne 0x45fcf0
push dword [esi]
push 0x4dbe80
push edi
call fcn.0043e52f
add esp, 0xc
mov bl, 1
push esi
call fcn.0049d65c
mov al, bl
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + ecx*2], ax
push esi
lea eax, [ebp + 0xc]
push eax
call fcn.00405d54
call fcn.00438b14
lea ecx, [ebp + 0xc]
call fcn.004058e3
push esi
call fcn.0049d65c
mov al, 1
jmp 0x45fd59
Function at 0x45ffc2
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45fff1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x460009
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x460007
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46020e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], 0x44
call fcn.0049d850
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
cmp byte [ebp + 0x18], bl
je 0x46024d
lea esi, [ebp - 0xc]
call fcn.0046f722
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
call fcn.0040d3d2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp byte [ebp + 0x18], bl
je 0x460281
lea esi, [ebp - 0xc]
call fcn.0046f738
cmp edi, ebx
jne 0x460294
lea esi, [ebp - 0xc]
call fcn.0046f738
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x4602b0
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x460285
Function at 0x4602bd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push 0x38
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.0049d850
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [ebp + 0xc], ebx
je 0x4602eb
mov dword [ebp - 0x3c], 0x40
push edi
mov edi, dword [esi]
mov ecx, esi
call fcn.00450650
test al, al
je 0x4602fc
add edi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x30], edi
sete al
mov dword [ebp - 0x34], str.open
pop edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x46031f
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.0044f580
mov esi, dword [ebp - 4]
pop ecx
lea ecx, [ebp - 4]
call fcn.00450650
test al, al
je 0x46033b
add esi, 8
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x46035a
lea ecx, [ebp - 4]
call fcn.004058e3
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0xc], ebx
je 0x46037b
cmp dword [ebp - 8], ebx
je 0x46037b
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x46034c
Function at 0x46089a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x502344]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push eax
mov dword [ebp - 0x414], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x410]
push ecx
mov edi, 0x3ff
push edi
lea ecx, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x410], ebx
push eax
jmp 0x460933
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x40c], bl
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x414]
call fcn.00460d9b
push ebx
lea eax, [ebp - 0x410]
push eax
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x41c]
call esi
cmp dword [ebp - 0x410], ebx
jne 0x4608fe
mov edi, dword [ebp - 0x414]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x46096d
lea ecx, [eax - 2]
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0042df91
call fcn.00438b14
lea ecx, [ebp - 0x414]
call fcn.004058e3
cmp dword [ebp - 0x41c], ebx
je 0x460981
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049cdcb
leave
ret
Function at 0x46185e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x502344]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4618ee
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00405d54
lea ebx, [ebp - 0x7c]
call fcn.0044e430
inc dword [ebp - 0x74]
mov ecx, ebx
call fcn.004058e3
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4618ab
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.0049cdcb
add ebp, 0x19c
leave
ret 4

Function at 0x461907
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x461969
push dword [ebp - 4]
call fcn.00405c39
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.0040d3d2
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.004094c6
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x4621f6
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov esi, eax
push 0x4dcc98
lea eax, [ebp - 4]
push eax
call fcn.00405d54
lea edi, [esi + 0x1c]
lea ecx, [ebp - 4]
call fcn.0044fcb0
lea ecx, [ebp - 4]
call fcn.004058e3
lea ebx, [esi + 4]
push ebx
lea esi, [ebp - 8]
call fcn.00470d28
mov eax, dword [ebp - 8]
pop ecx
xor ecx, ecx
push ecx
cmp dword [eax - 0xc], ecx
je 0x46225f
mov edi, dword [edi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
lea ecx, [ebp - 8]
call fcn.004058e3
mov al, bl
jmp 0x46230a
push edi
mov eax, 0x5042e0
lea esi, [ebp - 0x98]
call fcn.0046bd8c
xor esi, esi
push esi
push esi
push 1
push esi
push edi
push ebx
lea ecx, [ebp - 0x98]
call fcn.0046beae
test eax, eax
je 0x462297
lea esi, [ebp - 0x98]
call fcn.0046be15
xor bl, bl
jmp 0x462250
lea ecx, [ebp - 0x98]
call fcn.0046bf33
mov ebx, eax
cmp ebx, esi
je 0x4622f2
cmp byte [0x506010], 0
je 0x4622f2
lea eax, [ebp - 0xc]
push eax
call fcn.00460099
pop ecx
push dword [eax]
lea eax, [ebp - 4]
push str.Downloading_of_updates_failed._Error:
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
call fcn.00466622
push eax
mov eax, 0x505fe0
call fcn.00465a03
lea ecx, [ebp - 4]
call fcn.004058e3
lea ecx, [ebp - 0xc]
call fcn.004058e3
lea esi, [ebp - 0x98]
call fcn.0046be15
lea ecx, [ebp - 8]
call fcn.004058e3
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46368a
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x30]
push esi
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x4636aa
mov al, 1
jmp 0x463897
call fcn.0044e720
test al, al
je 0x463798
push 0x3c
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0049d850
add esp, 0xc
push str.kernel32.dll
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.GlobalMemoryStatusEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x5c]
push ecx
call eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x30]
call fcn.0045fd89
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x1c]
mov dword [ebp - 0xc], edi
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x4e6840]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x463755
call fcn.004b8180
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x46377a
fadd qword [0x4e67f0]
jmp 0x463773
call fcn.004b8180
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x46377a
fsub qword [0x4e67f0]
call fcn.004b8180
jmp 0x46377f
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov edi, edx
test esi, esi
je 0x463833
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x463833
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x30]
call fcn.0045fd89
fild dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jge 0x4637d1
fadd qword [0x4e67d8]
fmul qword [0x4e6840]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x463804
call fcn.004b8180
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x463829
fadd qword [0x4e67f0]
jmp 0x463822
call fcn.004b8180
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x463829
fsub qword [0x4e67f0]
call fcn.004b8180
jmp 0x46382e
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov edi, edx
cmp byte [0x506010], 0
je 0x46386b
push edi
push ebx
push str.Detected_RAM_amount:
lea eax, [ebp - 8]
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
call fcn.00466714
push eax
mov eax, 0x505fe0
call fcn.00465a03
lea ecx, [ebp - 8]
call fcn.004058e3
mov eax, dword [ebp - 0x10]
cdq
cmp edi, edx
jb 0x463881
ja 0x4636a3
cmp ebx, eax
jae 0x4636a3
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, 0x30
push eax
push 0xd4
call fcn.004639c7
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4639c7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
sub esp, 0xc
add eax, 0x54
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041f0fb
lea eax, [ebp - 0xc]
push eax
call fcn.0045fa8c
pop ecx
lea ecx, [ebp - 8]
call fcn.00409513
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00405ac1
lea ecx, [ebp - 4]
call fcn.00409513
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
call fcn.0043e52f
add esp, 0x10
cmp byte [0x506010], 0
je 0x463a48
push dword [ebp - 4]
lea eax, [ebp + 8]
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
mov eax, 0x505fe0
call fcn.00465a03
lea ecx, [ebp + 8]
call fcn.004058e3
cmp byte [esi + 0x10], 0
je 0x463a59
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x463a75
mov eax, dword [esi]
call fcn.004654d3
mov eax, dword [esi]
push 0
call fcn.004653f4
push 0x30
push eax
lea eax, [ebp - 4]
push eax
call fcn.00465465
lea ecx, [ebp - 4]
call fcn.004058e3
lea ecx, [ebp - 8]
call fcn.004058e3
lea ecx, [ebp - 0xc]
call fcn.004058e3
leave
ret 8

Function at 0x4654e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x4715cd
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x10], eax
mov ebx, 0x1ff
jmp 0x465544
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x465544
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call edi
cmp eax, 1
je 0x46551d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x465ae1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x502344]
xor eax, ebp
mov dword [ebp + 0x190], eax
push edi
lea edi, [ebx + 8]
xor ecx, ecx
cmp dword [edi], ecx
jne 0x465c0f
mov eax, dword [ebx]
push esi
cmp dword [eax - 0xc], ecx
jne 0x465b58
push 0x208
lea eax, [ebp - 0x78]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x78], cx
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.00405d31
push 0x2e
mov esi, ebx
call fcn.00438b7f
mov ecx, eax
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
sub eax, ecx
push ebx
call fcn.00451210
push str..log
push ebx
call fcn.00438cdb
xor ecx, ecx
mov eax, dword [ebx]
push ecx
push 0x80
push 4
push ecx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov esi, edi
call fcn.004125fe
cmp dword [edi], 0xffffffff
je 0x465c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x465ba4
mov eax, dword [edi]
test eax, eax
je 0x465bd5
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x465bd5
test eax, eax
jne 0x465c07
mov eax, dword [edi]
test eax, eax
je 0x465bd5
push 2
pop ecx
push 0
lea edx, [ebp - 0x7c]
push edx
push ecx
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 0x80], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [edi], 0
je 0x465c0e
lea eax, [ebx + 4]
mov esi, ebx
call fcn.00465c25
lea ecx, [ebp - 0x7c]
call fcn.00409513
lea esi, [ebp - 0x7c]
call fcn.00465c4a
mov eax, esi
mov esi, ebx
call fcn.00465c25
lea ecx, [ebp - 0x7c]
call fcn.004058e3
jmp 0x465c0e
push 0
call fcn.004125fe
pop esi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop edi
call fcn.0049cdcb
add ebp, 0x194
leave
ret

Function at 0x465c25
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x4664f3
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x502344]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.0045f8fa
test al, al
jne 0x4665ab
push str.ProgramFilesFolder
push edi
call fcn.0042e0ac
mov esi, str.AppDataFolder
test eax, eax
je 0x46654c
push str.ProgramFiles
push edi
call fcn.00460dd2
pop ecx
pop ecx
test al, al
jne 0x46654c
push esi
push edi
call fcn.0042e0ac
test eax, eax
jne 0x4665ab
push esi
push edi
call fcn.0042e0ac
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x46656c
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jbe 0x46658b
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x7c], ax
inc esi
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
cmp word [ebp - 0x7c], ax
je 0x4665a2
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00405d31
xor eax, eax
test esi, esi
setne al
jmp 0x4665ad
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0049cdcb
add ebp, 0x190
leave
ret

Function at 0x4667bc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x506010], 0
je 0x4667ee
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
mov eax, 0x505fe0
call fcn.00465a03
lea ecx, [ebp - 4]
call fcn.004058e3
cmp byte [0x503af8], 0
je 0x466840
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x466806
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.00405d54
push edi
lea ecx, [ebp - 8]
call fcn.00409513
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.00470b58
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.004058e3
lea ecx, [ebp - 4]
call fcn.004058e3
pop edi
leave
ret
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret
Function at 0x467102
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x130]
sub esp, 0x1b0
mov eax, dword [0x502344]
xor eax, ebp
mov dword [ebp + 0x12c], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov esi, edx
push SysReAllocStringLen
mov edi, ecx
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x467152
xor al, al
jmp 0x46725e
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x6c], eax
jle 0x467169
lea eax, [eax + ecx*2 - 0x9e]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x7c], eax
cmp eax, ebx
jne 0x467198
cmp dword [ebp - 0x74], 0xc8
jbe 0x46724d
lea ecx, [ebp - 0x68]
call fcn.00409513
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x4671f6
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jge 0x4671b8
push 0x80070057
call fcn.00405c7a
cmp word [eax], 0x22
je 0x4671f6
push 0x20
xor ecx, ecx
mov esi, edi
call fcn.00438b55
cmp eax, 0xffffffff
je 0x4671f3
push 0x22
lea edi, [ebp - 0x68]
call fcn.0044f120
mov eax, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00438d54
push 0x22
call fcn.0044f120
mov esi, dword [ebp - 0x78]
jmp 0x467200
mov esi, dword [ebp - 0x78]
mov eax, edi
lea edi, [ebp - 0x68]
call fcn.00438b14
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x46721b
jl 0x4671ae
cmp word [eax], 0x20
je 0x46721b
push 0x20
lea edi, [ebp - 0x68]
call fcn.0044f120
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x68]
call fcn.00438d54
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push 1
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x7c], eax
call fcn.004058e3
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x7c], ebx
sete al
mov ecx, dword [ebp + 0x12c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049cdcb
add ebp, 0x130
leave
ret