joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dc14
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.00425ecf
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.00411f01
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x46dd21
push esi
call fcn.004ab72b
mov edi, eax
pop ecx
test edi, edi
jne 0x46dc5f
lea ecx, [ebp - 4]
call fcn.00402907
push edi
jmp 0x46dd2b
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.00411f01
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46dc51
lea eax, [ebp - 8]
push eax
call fcn.004441b6
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 0x46dcaf
cmp dword [ebp - 0x10], 0
je 0x46dcaf
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x4eb460
push ecx
push eax
jmp 0x46dcbe
push 0x4eb460
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.004492b5
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.00411f01
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46dd14
cmp dword [ebp - 0x18], 0
je 0x46dd14
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.004046c1
mov ecx, esi
call fcn.00402907
lea ecx, [ebp - 4]
call fcn.00402907
push edi
call fcn.004af6b2
mov al, 1
jmp 0x46dd32
lea ecx, [ebp - 8]
call fcn.00402907
jmp 0x46dc51
lea ecx, [ebp - 4]
call fcn.00402907
push 0
call fcn.004af6b2
xor al, al
pop ecx
pop edi
pop esi
leave
ret

Function at 0x46de66
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.004ab72b
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 0x46deb8
inc dword [ebp - 4]
jmp 0x46de79
cmp eax, ebx
jne 0x46deda
cmp dword [ebp - 8], 1
je 0x46dee8
cmp dword [ebp - 8], 4
jne 0x46de79
push dword [esi]
push 0x4f44f8
push edi
call fcn.004492b5
add esp, 0xc
mov bl, 1
push esi
call fcn.004af6b2
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.004046e4
call fcn.004432a9
lea ecx, [ebp + 0xc]
call fcn.00402907
push esi
call fcn.004af6b2
mov al, 1
jmp 0x46dee2
Function at 0x46e0f8
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 0x46e127
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46e13f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x46e13d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46e2a4
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.004af810
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 0x46e2e3
lea esi, [ebp - 0xc]
call fcn.0047e6c1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [edx - 0xc]
neg ecx
sbb ecx, ecx
and ecx, edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x64]
push edx
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp byte [ebp + 0x18], bl
je 0x46e326
lea esi, [ebp - 0xc]
call fcn.0047e6d7
cmp edi, ebx
jne 0x46e339
lea esi, [ebp - 0xc]
call fcn.0047e6d7
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0x10], ebx
je 0x46e355
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 0x46e32a
Function at 0x46e362
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.004af810
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x400
cmp dword [ebp + 0xc], ebx
je 0x46e397
mov dword [ebp - 0x3c], 0x440
push edi
mov edi, dword [esi]
mov ecx, esi
call fcn.0045d840
test al, al
je 0x46e3a8
add edi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x30], edi
sete al
mov dword [ebp - 0x34], 0x4ed238
pop edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x46e3cb
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
push eax
call fcn.0045c6d0
mov esi, dword [ebp - 4]
pop ecx
lea ecx, [ebp - 4]
call fcn.0045d840
test al, al
je 0x46e3e7
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 0x46e406
lea ecx, [ebp - 4]
call fcn.00402907
pop esi
mov al, bl
pop ebx
leave
ret
cmp dword [ebp + 0xc], ebx
je 0x46e427
cmp dword [ebp - 8], ebx
je 0x46e427
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 0x46e3f8
Function at 0x46e94a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x51f714]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
lea ecx, [ebp - 0x410]
push ecx
mov ebx, 0x3ff
push ebx
lea ecx, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x410], edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x41c], eax
push eax
jmp 0x46e9db
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x40c], 0
lea eax, [ebp - 0x40c]
push eax
call fcn.0045e3c0
push 0
lea eax, [ebp - 0x410]
push eax
push ebx
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x41c]
call edi
cmp dword [ebp - 0x410], 0
jne 0x46e9aa
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x46ea12
lea ecx, [eax - 2]
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.00438242
mov edi, esi
call fcn.004432a9
lea ecx, [ebp - 0x414]
call fcn.00402907
cmp dword [ebp - 0x41c], 0
je 0x46ea27
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.004ad67b
leave
ret
Function at 0x46f8a8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x51f714]
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 0x46f938
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004046e4
lea ebx, [ebp - 0x7c]
call fcn.0045b3f0
inc dword [ebp - 0x74]
mov ecx, ebx
call fcn.00402907
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 0x46f8f5
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.004ad67b
add ebp, 0x19c
leave
ret 4

Function at 0x46f951
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 0x46f9b3
push dword [ebp - 4]
call fcn.00402872
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.00411f01
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.004028ba
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x470240
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov esi, eax
push 0x4f5360
lea eax, [ebp - 4]
push eax
call fcn.004046e4
lea edi, [esi + 0x1c]
lea ecx, [ebp - 4]
call fcn.0045cea0
lea ecx, [ebp - 4]
call fcn.00402907
lea ebx, [esi + 4]
push ebx
lea esi, [ebp - 8]
call fcn.0047f9f7
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
pop ecx
je 0x4702a9
mov edi, dword [edi]
push 0
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.00402907
mov al, bl
jmp 0x470356
push 0x521510
push edi
xor eax, eax
lea esi, [ebp - 0x98]
call fcn.0047a3b0
xor esi, esi
push esi
push esi
push 1
push esi
push edi
push ebx
lea ecx, [ebp - 0x98]
call fcn.0047a4dc
test eax, eax
je 0x4702e3
lea esi, [ebp - 0x98]
call fcn.0047a443
xor bl, bl
jmp 0x47029a
lea ecx, [ebp - 0x98]
call fcn.0047a561
mov ebx, eax
cmp ebx, esi
je 0x47033e
cmp byte [0x523354], 0
je 0x47033e
lea eax, [ebp - 0xc]
push eax
call fcn.0045c1f0
pop ecx
push dword [eax]
lea eax, [ebp - 4]
push str.Downloading_of_updates_failed._Error:
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
call fcn.00474819
push eax
mov eax, 0x523324
call fcn.00473bef
lea ecx, [ebp - 4]
call fcn.00402907
lea ecx, [ebp - 0xc]
call fcn.00402907
lea esi, [ebp - 0x98]
call fcn.0047a443
lea ecx, [ebp - 8]
call fcn.00402907
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4715cc
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 0x4715ec
mov al, 1
jmp 0x4717d9
call fcn.0045b730
test al, al
je 0x4716da
push 0x3c
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.004af810
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.0045c100
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 [0x4ffd98]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x471697
call fcn.004cc080
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4716bc
fadd qword [0x4ffd20]
jmp 0x4716b5
call fcn.004cc080
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x4716bc
fsub qword [0x4ffd20]
call fcn.004cc080
jmp 0x4716c1
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov edi, edx
test esi, esi
je 0x471775
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x471775
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.0045c100
fild dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jge 0x471713
fadd qword [0x4ffd18]
fmul qword [0x4ffd98]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x471746
call fcn.004cc080
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x47176b
fadd qword [0x4ffd20]
jmp 0x471764
call fcn.004cc080
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x47176b
fsub qword [0x4ffd20]
call fcn.004cc080
jmp 0x471770
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov edi, edx
cmp byte [0x523354], 0
je 0x4717ad
push edi
push ebx
push str.Detected_RAM_amount:
lea eax, [ebp - 8]
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
call fcn.0047490e
push eax
mov eax, 0x523324
call fcn.00473bef
lea ecx, [ebp - 8]
call fcn.00402907
mov eax, dword [ebp - 0x10]
cdq
cmp edi, edx
jb 0x4717c3
ja 0x4715e5
cmp ebx, eax
jae 0x4715e5
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, 0x30
push eax
push 0xd4
call fcn.00471909
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x471909
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.00425ecf
lea eax, [ebp - 0xc]
push eax
call fcn.0046dc14
pop ecx
lea eax, [ebp - 8]
push eax
call fcn.004441b6
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.004045bd
lea eax, [ebp - 4]
push eax
call fcn.004441b6
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
call fcn.004492b5
add esp, 0x10
cmp byte [0x523354], 0
je 0x47198c
push dword [ebp - 4]
lea eax, [ebp + 8]
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
mov eax, 0x523324
call fcn.00473bef
lea ecx, [ebp + 8]
call fcn.00402907
cmp byte [esi + 0x10], 0
je 0x47199d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4719b9
mov eax, dword [esi]
call fcn.004734bd
mov eax, dword [esi]
push 0
call fcn.004733d0
push 0x30
push eax
lea eax, [ebp - 4]
push eax
call fcn.00473441
lea ecx, [ebp - 4]
call fcn.00402907
lea ecx, [ebp - 8]
call fcn.00402907
lea ecx, [ebp - 0xc]
call fcn.00402907
leave
ret 8

Function at 0x4734ca
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 0x48029c
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 0x47352e
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 0x47352e
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 0x473507
pop edi
pop esi
pop ebx
leave
ret
Function at 0x473cc7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x51f714]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push edi
lea ebx, [eax + 0x28]
xor edi, edi
mov dword [ebp - 0x80], eax
cmp dword [ebx], edi
jne 0x473e0c
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x473d47
push 0x208
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x74], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.004046c1
push 0x2e
call fcn.00443314
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push esi
call fcn.0045e4a0
push str..log
push esi
call fcn.00443470
mov esi, dword [esi]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, ebx
call fcn.004185f7
cmp dword [ebx], 0xffffffff
je 0x473dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x473d94
mov eax, dword [ebx]
test eax, eax
je 0x473dc5
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x473dc5
test eax, eax
jne 0x473dfb
mov eax, dword [ebx]
test eax, eax
je 0x473dc5
push 2
pop ecx
push 0
lea edx, [ebp - 0x78]
push edx
push ecx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx], 0
je 0x473e0b
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.00473e25
lea eax, [ebp - 0x78]
push eax
call fcn.004441b6
lea esi, [ebp - 0x78]
call fcn.00473e4a
mov eax, esi
mov esi, edi
call fcn.00473e25
lea ecx, [ebp - 0x78]
call fcn.00402907
jmp 0x473e0b
mov eax, dword [ebx]
test eax, eax
je 0x473e0b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
pop esi
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.004ad67b
add ebp, 0x198
leave
ret 4

Function at 0x473e25
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 + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x4746ea
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x51f714]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.0046da82
test al, al
jne 0x4747a2
push str.ProgramFilesFolder
push edi
call fcn.00438350
mov esi, str.AppDataFolder
test eax, eax
je 0x474743
push str.ProgramFiles
push edi
call fcn.0046ee8c
pop ecx
pop ecx
test al, al
jne 0x474743
push esi
push edi
call fcn.00438350
test eax, eax
jne 0x4747a2
push esi
push edi
call fcn.00438350
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x474763
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 0x474782
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 0x474799
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.004046c1
xor eax, eax
test esi, esi
setne al
jmp 0x4747a4
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004ad67b
add ebp, 0x190
leave
ret

Function at 0x4749b7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x523354], 0
je 0x4749e9
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
mov eax, 0x523324
call fcn.00473bef
lea ecx, [ebp - 4]
call fcn.00402907
cmp byte [0x520c9c], 0
je 0x474a3c
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x474a01
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.004046e4
push edi
lea eax, [ebp - 8]
push eax
call fcn.004441b6
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.0047f840
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00402907
lea ecx, [ebp - 4]
call fcn.00402907
pop edi
leave
ret
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret
Function at 0x47551a
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 [0x51f714]
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 0x47556a
xor al, al
jmp 0x475677
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x6c], eax
jle 0x475581
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 0x4755b0
cmp dword [ebp - 0x74], 0xc8
jbe 0x475666
lea eax, [ebp - 0x68]
push eax
call fcn.004441b6
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x47560f
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jge 0x4755d1
push 0x80070057
call fcn.00402978
cmp word [eax], 0x22
je 0x47560f
push 0x20
xor ecx, ecx
mov esi, edi
call fcn.004432ea
cmp eax, 0xffffffff
je 0x47560c
push 0x22
lea edi, [ebp - 0x68]
call fcn.00457380
mov eax, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.004434e9
push 0x22
call fcn.00457380
mov esi, dword [ebp - 0x78]
jmp 0x475619
mov esi, dword [ebp - 0x78]
mov eax, edi
lea edi, [ebp - 0x68]
call fcn.004432a9
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x475634
jl 0x4755c7
cmp word [eax], 0x20
je 0x475634
push 0x20
lea edi, [ebp - 0x68]
call fcn.00457380
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x68]
call fcn.004434e9
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.00402907
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.004ad67b
add ebp, 0x130
leave
ret