joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fcfd
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40fd3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40fdfc
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x18], ebx
call esi
cmp eax, ebx
jne 0x40fd83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40fdef
push dword [ebp - 0x18]
call fcn.004318aa
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push edi
push 1
push dword [ebp - 0x14]
call esi
cmp eax, ebx
je 0x40fdef
cmp dword [ebp - 0x18], ebx
je 0x40fdef
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40fdf5
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x1c]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.004318b5
cmp dword [ebp - 0x14], 0
pop ecx
je 0x40fdeb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x40fe0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.004318b5
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x40fe0a
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
leave
ret

Function at 0x40fe1b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fe42
push eax
jmp 0x40fe7c
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40fe73
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp + 8]
je 0x40fe91
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40fe5b
test esi, esi
je 0x40fe82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043189b
leave
ret
push edi
mov edi, dword [ebp - 0x228]
test esi, esi
je 0x40fea3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x40fe84
Function at 0x410199
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x458090]
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 0x80000000
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 0x410232
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x40c], bl
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x414]
call fcn.0040aae7
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 0x4101fd
mov edi, dword [ebp - 0x414]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x41026f
lea ecx, [eax - 2]
lea edx, [ebp - 0x414]
mov eax, edi
call fcn.00408d86
call fcn.00408905
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
call fcn.00404645
cmp dword [ebp - 0x41c], ebx
je 0x410283
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.0043189b
leave
ret
Function at 0x410dd6
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
mov esi, eax
push 0x44ccdc
lea eax, [ebp - 4]
call fcn.0040455c
lea ebx, [esi + 0x20]
mov edi, ebx
lea ecx, [ebp - 4]
call fcn.0040a23b
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
lea eax, [esi + 8]
push eax
lea eax, [ebp - 4]
call fcn.00425c98
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
pop ecx
je 0x410e43
mov ebx, dword [ebx]
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
lea eax, [edi - 0x10]
call fcn.00404645
mov al, bl
jmp 0x410eee
push 0x459edc
mov eax, esi
lea edi, [ebp - 0x88]
call fcn.0041aa45
push 1
push ebx
lea eax, [esi + 8]
push eax
mov ecx, edi
call fcn.0041ab8a
mov edi, eax
mov eax, dword [esi + 4]
cmp byte [eax + 0x39], 0
je 0x410e80
lea esi, [ebp - 0x88]
call fcn.0041aae3
mov edi, dword [ebp - 4]
xor bl, bl
jmp 0x410e34
test edi, edi
je 0x410ed3
cmp byte [0x45ae9c], 0
je 0x410ed3
push edi
lea eax, [ebp - 0xc]
call fcn.00422593
pop ecx
push dword [eax]
lea eax, [ebp - 8]
push str.Downloading_of_updates_failed._Error:
call fcn.00416c8f
push eax
call fcn.00416ca0
push eax
call fcn.00416ca0
push eax
mov eax, 0x45ae6c
call fcn.0041601d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404645
lea esi, [ebp - 0x88]
call fcn.0041aae3
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
test edi, edi
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4133d1
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x30]
xor ebx, ebx
push edi
cmp dword [eax - 0xc], ebx
jne 0x4133f1
mov al, 1
jmp 0x4135e0
call fcn.004010a8
test al, al
je 0x4134df
push 0x3c
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.004318c0
add esp, 0xc
push str.kernel32.dll
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push str.GlobalMemoryStatusEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x5c]
push ecx
call eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x30]
call fcn.0042253f
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], ebx
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x454bc8]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x41349c
call fcn.00447020
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4134c1
fadd qword [0x454bc0]
jmp 0x4134ba
call fcn.00447020
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x4134c1
fsub qword [0x454bc0]
call fcn.00447020
jmp 0x4134c6
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov esi, edx
test edi, edi
je 0x41357a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41357a
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 [esi + 8]
mov ecx, dword [eax + 0x30]
call fcn.0042253f
fild dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jge 0x413518
fadd qword [0x454bb8]
fmul qword [0x454bc8]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x41354b
call fcn.00447020
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x413570
fadd qword [0x454bc0]
jmp 0x413569
call fcn.00447020
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x413570
fsub qword [0x454bc0]
call fcn.00447020
jmp 0x413575
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov esi, edx
cmp byte [0x45ae9c], 0
je 0x4135b4
push esi
push ebx
push str.Detected_RAM_amount:
lea eax, [ebp - 8]
call fcn.00416c8f
push eax
call fcn.00416ca0
push eax
call fcn.00416dbc
push eax
mov eax, 0x45ae6c
call fcn.0041601d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 0x10]
cdq
cmp esi, edx
jb 0x4135ca
ja 0x4133ea
cmp ebx, eax
jae 0x4133ea
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
add eax, 0x30
push eax
push 0xd4
call fcn.004136d5
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4136d5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x60]
push ebx
push esi
sub eax, 0x10
call fcn.00409c7d
add eax, 0x10
lea ebx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0040f032
mov eax, dword [0x45a140]
mov esi, 0x45a140
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00404378
mov eax, dword [0x45a140]
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [ebp - 8]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push esi
push dword [ebp - 4]
push eax
call fcn.00409762
xor ebx, ebx
add esp, 0x10
cmp byte [0x45ae9c], bl
je 0x413772
push dword [ebp + 8]
lea eax, [ebp + 0xc]
call fcn.00416c8f
push eax
call fcn.00416ca0
push eax
mov eax, 0x45ae6c
call fcn.0041601d
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404645
cmp byte [edi + 0x10], bl
je 0x413782
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41379d
mov eax, dword [edi]
call fcn.004157f7
mov eax, dword [edi]
push ebx
call fcn.004156d0
push 0x30
push eax
lea eax, [ebp + 8]
push eax
call fcn.00415745
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
lea eax, [esi - 0x10]
call fcn.00404645
pop esi
pop ebx
leave
ret 8

Function at 0x415804
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 0x42684f
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 0x415868
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 0x415868
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 0x415841
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4160fd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x458090]
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 0x416251
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x41617f
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.00404539
push 0x2e
call fcn.00408c79
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push ecx
mov ecx, esi
call fcn.00408946
push str..log
push esi
call fcn.00402105
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.00408e65
cmp dword [ebx], 0xffffffff
je 0x416240
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4161cc
mov eax, dword [ebx]
test eax, eax
je 0x4161fd
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4161fd
test eax, eax
jne 0x416240
mov eax, dword [ebx]
test eax, eax
je 0x4161fd
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 0x416250
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.0041626a
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x78]
mov dword [ebp - 0x78], eax
call fcn.0041628f
mov eax, esi
mov esi, edi
call fcn.0041626a
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.00404645
jmp 0x416250
mov eax, dword [ebx]
test eax, eax
je 0x416250
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.0043189b
add ebp, 0x198
leave
ret 4

Function at 0x41626a
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 0x416bbf
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.0040eea0
test al, al
jne 0x416c77
push str.ProgramFilesFolder
push edi
call fcn.00409051
mov esi, str.AppDataFolder
test eax, eax
je 0x416c18
push str.ProgramFiles
push edi
call fcn.004155ef
pop ecx
pop ecx
test al, al
jne 0x416c18
push esi
push edi
call fcn.00409051
test eax, eax
jne 0x416c77
push esi
push edi
call fcn.00409051
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x416c38
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 0x416c57
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 0x416c6e
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.00404539
xor eax, eax
test esi, esi
setne al
jmp 0x416c79
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0043189b
add ebp, 0x190
leave
ret

Function at 0x416e78
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x45ae9c], 0
push esi
mov esi, eax
je 0x416eaf
push dword [esi]
lea eax, [ebp - 4]
call fcn.00416c8f
push eax
call fcn.00416ca0
push eax
mov eax, 0x45ae6c
call fcn.0041601d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
cmp byte [0x459594], 0
je 0x416f13
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x416ec7
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
call fcn.0040455c
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
mov esi, eax
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.00410a26
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.00404645
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
pop edi
jmp 0x416f1b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
leave
ret

Function at 0x4176e4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, eax
push esi
add ebx, 0x18
mov eax, dword [ebx]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [eax - 0xc], edi
je 0x41770c
lea esi, [ebp - 0xc]
call fcn.00409680
xor esi, esi
cmp dword [ebp - 8], edi
jle 0x417731
mov eax, esi
lea ecx, [ebp - 0xc]
call fcn.004096f6
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
cmp esi, dword [ebp - 8]
jl 0x417713
lea esi, [ebp - 0xc]
call fcn.00408e7c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417b1c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, eax
mov eax, dword [0x45a140]
mov esi, 0x45a140
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [0x45a140]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x45a140]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebx + 0x14]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0040bccb
lea eax, [ebp - 4]
lea edi, [ebp - 0xc]
call fcn.00408905
push 0x452d44
xor ecx, ecx
lea esi, [ebp - 4]
call fcn.00408c48
test eax, eax
jne 0x417b97
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, edi
push eax
call fcn.00404539
push 0x44b8d0
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00408dbc
pop ecx
lea ecx, [ebp + 0xc]
call fcn.00408dee
mov eax, dword [ebp - 0x10]
pop ecx
add eax, 0xfffffff0
call fcn.00404645
push 0
lea eax, [ebp + 0xc]
push 1
push eax
call fcn.0040a6a7
add esp, 0xc
push str.instname_target.msi
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebx + 0x18]
call fcn.00408dee
pop ecx
mov edi, esi
call fcn.00408905
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404645
push str.instname_custom.mst
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea edi, [ebx + 0x1c]
call fcn.00408dee
pop ecx
call fcn.00408905
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [esi]
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x417c3a
mov esi, dword [ebp + 8]
mov ecx, 0x45a140
call fcn.0040462a
jmp 0x417c92
push 0x44bd40
lea eax, [ebp - 0x10]
call fcn.0040455c
add ebx, 0x10
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.004180ad
mov bl, al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404645
test bl, bl
je 0x417c80
push edi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
call fcn.00417f4f
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409c7d
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404645
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x418839
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x1a8
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x124], eax
mov eax, dword [ebp + 0x130]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41888c
xor al, al
jmp 0x4189a2
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x78], eax
jle 0x4188a3
lea eax, [eax + ecx*2 - 0x9e]
mov dword [ebp - 0x78], eax
push edi
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x80], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x4188d2
cmp dword [ebp - 0x80], 0xc8
jbe 0x418991
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x418938
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jge 0x418900
push 0x80070057
call fcn.00404606
cmp word [eax], 0x22
je 0x418938
push 0x20
xor ecx, ecx
call fcn.00408c1e
cmp eax, 0xffffffff
je 0x418938
push 0x22
lea eax, [ebp - 0x70]
call fcn.00409b40
mov esi, dword [esi]
push dword [esi - 0xc]
lea eax, [ebp - 0x70]
push esi
call fcn.004022f6
push 0x22
lea eax, [ebp - 0x70]
call fcn.00409b40
jmp 0x418942
mov eax, esi
lea edi, [ebp - 0x70]
call fcn.00408905
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x418960
jl 0x4188f6
cmp word [eax], 0x20
je 0x418960
push 0x20
lea eax, [ebp - 0x70]
call fcn.00409b40
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x70]
call fcn.004022f6
mov esi, dword [ebp - 0x70]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push ebx
push dword [ebp - 0x78]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00404645
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
pop edi
mov ecx, dword [ebp + 0x124]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
add ebp, 0x128
leave
ret
Function at 0x4189b9
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x45a140]
push esi
push edi
mov edi, 0x45a140
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
push 0x64
mov dword [ebp - 4], eax
pop eax
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 4]
call fcn.00408e44
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.00409c5f
mov ecx, edi
mov esi, ebx
call fcn.0040462a
push 0x64
push 0x64
mov eax, ebx
call fcn.00408e44
push eax
push str.UserDomain
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
or eax, 0xffffffff
call fcn.00409c5f
push 0x44b8d0
push ebx
call fcn.00402105
mov esi, dword [ebp - 4]
push dword [esi - 0xc]
mov eax, ebx
push esi
call fcn.004022f6
lea eax, [esi - 0x10]
call fcn.00404645
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x418a49
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x418a72
xor al, al
leave
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
push edi
jle 0x418a88
lea esi, [esi + eax*2 - 0x9e]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x418ab3
cmp edi, 0xea
jne 0x418abf
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret