joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4258f0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00426f60
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.00426ef0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x425936
push edi
call fcn.00426f70
mov eax, dword [edi]
mov dword [eax + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
add esp, 8
mov dword [esi], fcn.00424ce0
mov dword [esi + 4], fcn.00424e30
mov dword [esi + 8], fcn.00424ef0
mov dword [esi + 0xc], fcn.00424fa0
mov dword [esi + 0x10], 0x425050
mov dword [esi + 0x14], 0x4250c0
mov dword [esi + 0x18], 0x425130
mov dword [esi + 0x1c], 0x425410
mov dword [esi + 0x20], 0x425550
mov dword [esi + 0x24], 0x4256a0
mov dword [esi + 0x28], 0x4257b0
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x425a11
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
push ecx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x425a11
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x4259ec
cmp al, 0x4d
jne 0x425a04
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x437864
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x482308]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x482db4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x482db8], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0043df67
mov dword [esi + 0x58], 0x4377d6
mov dword [esi + 0x5c], 0x437822
mov dword [esi + 0x10], fcn.00436961
mov dword [esi + 0x30], 0x436ae9
mov dword [esi + 0x64], 0x436bf6
mov dword [esi + 0x60], 0x436c44
mov dword [esi + 0x34], 0x43736b
mov dword [esi + 0x24], 0x43720a
mov dword [esi + 0x28], 0x437233
mov dword [esi + 0x2c], 0x43725e
mov dword [esi + 0x44], 0x437660
mov eax, esi
pop esi
ret 4
Function at 0x438d5f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ecx + 0xd4]
mov dword [ebp - 4], esi
je 0x438de6
imul esi, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
imul eax, dword [ebp + 0x18]
neg dword [ebp + 0x10]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x438dc7
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x18]
jne 0x438dac
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
jne 0x438ddb
add edx, dword [ebp + 0x10]
jmp 0x438dde
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x438d8c
pop edi
pop ebx
pop esi
leave
ret 0x1c

Function at 0x439d09
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xd4]
push edi
mov edi, dword [ebp + 0xc]
je 0x439d97
mov dword [ebp - 4], edi
imul edi, dword [ebp + 0x18]
imul eax, eax, 3
add edi, dword [ebp + 8]
neg dword [ebp - 4]
push ebx
push esi
mov esi, edx
imul esi, dword [ebp + 0x10]
add edi, eax
mov dword [ebp + 0x10], edi
mov eax, dword [ecx + 0xcc]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xc8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x439d72
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x18]
jne 0x439d58
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
cmp dword [ecx + 0xe8], 0
mov edi, dword [ebp + 0x10]
jne 0x439d89
add edi, dword [ebp - 4]
jmp 0x439d8c
add edi, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x10], edi
jne 0x439d3a
pop esi
pop ebx
pop edi
leave
ret 0x1c
Function at 0x439e00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
imul eax, eax, 3
cmp dword [ebp + 0x18], 0
mov dword [ebp - 8], eax
je 0x439eac
mov eax, dword [ebp + 0xc]
imul ecx, ecx, 3
neg eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x14]
add eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0xcc]
imul ecx, dword [ebp + 0x10]
add ecx, dword [edi + 0xc8]
add ecx, esi
test edx, edx
jle 0x439e87
mov eax, 0xff
sub eax, dword [ebp + 0x1c]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
movzx edx, byte [edx]
movzx eax, byte [ecx]
imul edx, dword [ebp + 0x1c]
imul eax, dword [ebp - 0xc]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc dword [ebp + 8]
mov byte [ecx], al
inc ecx
dec dword [ebp - 4]
jne 0x439e61
dec dword [ebp + 0x18]
inc dword [ebp + 0x10]
cmp dword [edi + 0xe8], 0
mov ecx, dword [ebp + 0x14]
jne 0x439e9e
add ecx, dword [ebp - 0x10]
jmp 0x439ea1
add ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0x14], ecx
jne 0x439e37
pop esi
pop ebx
leave
ret 0x18
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x44a010
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardType]
push 1
mov edi, eax
call ebx
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push 0x84feb0
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push 0
call ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test edi, edi
je 0x44a08f
mov edx, dword [0x64fd60]
push 0x64fa78
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalVegaPlagiatus
push 0
lea eax, [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
pop edi
pop esi
mov dword [0x64fd5c], eax
pop ebx
add esp, 0x14
ret
Function at 0x403ba8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403d60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403c09
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403d7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403c76
xor eax, eax
push ebp
push 0x403c6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403c58
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403d9c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c76
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x403d57
cmp byte [ebp - 0xd], 0
jne 0x403cb8
cmp byte [ebp - 0x12], 0
je 0x403d57
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403cd1
dec ebx
cmp byte [ebx], 0x2e
je 0x403ce0
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403cd0
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403d57
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403d0d
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403d57
cmp byte [ebp - 0xd], 0
je 0x403d57
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403d57
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405930
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405a3a
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x405983
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004030d0
jmp 0x405a21
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.004058e4
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00405904
mov ebx, eax
test esi, esi
je 0x4059ab
dec esi
test esi, esi
jl 0x4059ab
cmp edi, ebx
jne 0x40598a
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403110
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403318
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
cmp eax, 2
jl 0x405a21
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x405a21
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x405a21
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403158
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a41
lea eax, [ebp - 0x110]
call fcn.00402fec
ret

Function at 0x405a98
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405b30
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x405ae5
mov eax, dword [ebx + 0x19]
call fcn.0040330c
push eax
push esi
mov eax, edi
call fcn.0040330c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040330c
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x405b1a
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.0040330c
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.004057cc
mov eax, dword [ebp - 8]
call fcn.0040330c
push eax
mov eax, edi
call fcn.0040330c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040330c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b37
lea eax, [ebp - 8]
call fcn.00402fec
ret
Function at 0x409234
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
cmp byte [0x40d1c4], 0xff
je 0x40924a
mov al, byte [0x40d1c4]
jmp 0x4092aa
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x409283
mov al, 3
mov edx, dword [esp + 4]
cmp edx, 6
jb 0x40926f
mov al, 6
jmp 0x4092a5
cmp edx, 5
jb 0x4092a5
cmp dword [esp + 8], 1
jb 0x40927f
mov al, 5
jmp 0x4092a5
mov al, 4
jmp 0x4092a5
cmp eax, 1
jne 0x4092a3
mov al, 1
cmp dword [esp + 4], 4
ja 0x40929f
cmp dword [esp + 4], 4
jne 0x4092a5
cmp dword [esp + 8], 0xa
jb 0x4092a5
mov al, 2
jmp 0x4092a5
xor eax, eax
mov byte [0x40d1c4], al
add esp, 0x94
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401383
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x401f1a
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x44e080]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push edi
push 1
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x401f44
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401fa4
push ebx
push esi
push 0x14
push str.Schedule
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
push edi
call ebx
test esi, esi
je 0x401f95
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401f92
cmp dword [esp + 0x14], 4
je 0x401f9d
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x401f9d
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401fa2
push esi
call ebx
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
xor ecx, esp
call fcn.00421c45
add esp, 0x20
ret

Function at 0x4022cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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 0x402323
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402323
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x402315
cmp esi, ecx
jae 0x402323
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x402303
cmp esi, ecx
jae 0x402323
cmp word [esi], 0
je 0x402323
mov eax, esi
jmp 0x402325
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x402a57
Capabilities:
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x44e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x402bc7
call fcn.0040219e
push eax
lea ecx, [ebp - 0x10]
call fcn.00401fe1
push 0x443058
lea ecx, [ebp - 0x14]
call fcn.00402742
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.004076b2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402471
mov esi, str..bat
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00404e09
push edi
push 0x80
push 2
push edi
push edi
mov edi, dword [ebp - 0x10]
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402b01
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402bbf
push edi
lea ecx, [ebp - 0x10]
call fcn.004043c1
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402bec
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402471
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402471
test esi, esi
je 0x402b4e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebx + 4]
lea ecx, [ebp - 0x14]
call fcn.00407369
cmp byte [ebx + 8], 0
jne 0x402b76
mov esi, dword [ebp - 0x14]
xor eax, eax
push eax
push esi
push eax
push edi
push 0x443648
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x402bb7
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00423750
xor eax, eax
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x50], 0x500
mov dword [ebp - 0x48], str.runas
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esi - 0x10]
call fcn.00402471
lea ecx, [edi - 0x10]
call fcn.00402471
mov ecx, dword [ebx + 4]
sub ecx, 0x10
call fcn.00402471
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.00402471
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40403b
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x436248
call fcn.00422682
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x16c], esi
jle 0x4040a4
lea ebx, [edi + 0x168]
push esi
mov ecx, ebx
call fcn.004041c5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov ecx, ebx
call fcn.004041c5
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.00407369
and dword [ebp - 4], 0
lea edx, [edi + 0x180]
mov ecx, eax
call fcn.004077b8
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402471
inc esi
cmp esi, dword [edi + 0x16c]
jl 0x404059
xor ebx, ebx
cmp dword [edi + 0x160], ebx
jle 0x404160
lea esi, [edi + 0x15c]
push ebx
mov ecx, esi
call fcn.004041c5
push ebx
mov ecx, esi
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
call fcn.004041c5
mov eax, dword [eax]
add eax, 4
mov dword [ebp - 0x10], eax
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4040e6
and dword [ebp - 0x10], eax
jmp 0x4040fb
push dword [edi + 0x17c]
mov ecx, dword [ebp - 0x10]
call fcn.00401fb5
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.00407eef
cmp eax, dword [ebp - 0x10]
jle 0x40412e
push ebx
mov ecx, esi
call fcn.004041c5
mov esi, dword [eax]
mov ecx, esi
call fcn.00404637
lea ecx, [esi + 4]
call fcn.0040243c
and dword [esi + 0xc], 0
lea esi, [edi + 0x15c]
push ebx
mov ecx, esi
call fcn.004041c5
mov esi, dword [eax]
test esi, esi
je 0x40414d
mov ecx, esi
call fcn.00402a57
push 0x10
push esi
call fcn.004221a2
pop ecx
pop ecx
inc ebx
lea esi, [edi + 0x15c]
cmp ebx, dword [edi + 0x160]
jl 0x4040b8
xor eax, eax
call fcn.0042265c
ret

Function at 0x404168
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebx
push esi
push str.Global_MSIExecute
xor ebx, ebx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x404191
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne bl
jmp 0x4041a1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4041a1
xor ebx, ebx
inc ebx
test esi, esi
je 0x4041ac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4062b4
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x44e080]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebp
push dword [edi]
call fcn.00406258
mov esi, eax
test esi, esi
jne 0x40638d
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x100
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
push dword [esp + 0x30]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call ebx
test eax, eax
jne 0x406368
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.004062b4
mov esi, eax
test esi, esi
jne 0x40638d
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x40632d
jmp 0x40636a
xor esi, esi
cmp dword [esp + 0x14], 0
je 0x40637f
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
push ebp
mov ecx, edi
mov dword [esp + 0x1c], esi
call fcn.00406456
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.004063e8
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00421c45
add esp, 0x21c
ret 4