joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v3.5
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401445
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Install
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40144b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
jne 0x401445
push 8
push 0x521e
push 5
push 3
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v3.5
call section..text
add esp, 0x14
test al, al
je 0x401445
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Client
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4014e5
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Install
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4014eb
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
jne 0x4014e5
push 0
push 0x766f
push 0
push 4
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Client
call section..text
add esp, 0x14
test al, al
je 0x4014e5
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401585
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Install
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40158b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
jne 0x401585
push 0
push 0x766f
push 0
push 4
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Full
call section..text
add esp, 0x14
test al, al
je 0x401585
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4015c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40163a
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Release
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401625
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0x5c615
mov al, 1
jae 0x40163c
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Full
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4016ca
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Release
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4016b5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0x5c733
mov al, 1
jae 0x4016cc
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ea0
Capabilities:
Create thread
Inspect load icon resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535988
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x586f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
call fcn.00510af8
push eax
call fcn.00510ac5
add esp, 8
call fcn.004016e0
mov ecx, esi
call fcn.00417a93
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00418382
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x402f9a
call fcn.004133ab
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402f1f
push 0x80004005
call fcn.00406890
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
push 0x65
mov dword [ebp - 4], 0
call fcn.004137b4
test eax, eax
je 0x402f4e
push 0x65
push eax
lea ecx, [ebp - 0x10]
call fcn.00406290
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x402f77
mov ecx, dword [ebx + 4]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuW]
push 0
push 0
push 0x800
push ecx
call ebx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push edi
push 0x10
push 0
push eax
call ebx
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x154]
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push 1
push 0x80
push edx
call edi
mov eax, dword [esi + 0x154]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call edi
call fcn.00419452
call fcn.00419452
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x402ff2
or dword [esi + 0x17c], 2
mov dword [esi + 0x184], eax
mov eax, 0x563f58
lea edx, [esi + 0x188]
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403000
or dword [esi + 0x17c], 4
call fcn.00419452
mov eax, dword [eax + 0xc]
push 0x82
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
push eax
lea ecx, [esi + 0x52c]
call fcn.004183b7
call fcn.00405000
test eax, eax
jne 0x403051
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
push 0x404d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x403071
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x586f40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40518d
xor ecx, ecx
push esi
mov dword [ebp - 0x17], ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov dword [ebp - 0x224], ecx
push 0x208
lea ecx, [ebp - 0x220]
push ecx
push eax
mov byte [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405083
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051026e
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
add eax, 0xfffffff0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x224]
push eax
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp byte [ebp + eax - 0x18], 0
jne 0x4050f7
cmp byte [ebp + eax - 0x17], 0
jne 0x4050ec
cmp byte [ebp + eax - 0x16], 0
jne 0x4050ef
cmp byte [ebp + eax - 0x15], 0
jne 0x4050f4
add eax, 4
cmp eax, 0x10
jl 0x4050c6
jmp 0x4050f7
inc eax
jmp 0x4050f7
add eax, 2
jmp 0x4050f7
add eax, 3
lea eax, [ebp + eax - 0x18]
mov edx, 0x1bc893c
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405102
push 0x22
push 0x1bc8918
push 0xffffffffffffffff
push 0x1bc893c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x405146
xor eax, eax
xor edx, edx
mov word [eax*2 + 0x1bc8918], dx
lea eax, [edx + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051026e
mov esp, ebp
pop ebp
ret
cmp eax, 0x22
jge 0x405167
xor edx, edx
mov word [eax*2 + 0x1bc8918], dx
lea eax, [edx + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051026e
mov esp, ebp
pop ebp
ret
cmp word [0x1bc895a], 0
je 0x405179
xor eax, eax
mov word [0x1bc8918], ax
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051026e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0051026e
mov esp, ebp
pop ebp
ret
Function at 0x406150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40616b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4061a2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40619e
jmp 0x406190
cmp esi, eax
jae 0x4061a2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406190
cmp esi, eax
jb 0x4061a9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x100
mov dword [ebp - 8], 1
xor edi, edi
call fcn.00510b49
push 0x100
mov esi, eax
push edi
push esi
call fcn.005121a0
mov edx, dword [ebp + 0xc]
add esp, 0x10
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [eax]
push edi
push edx
push ecx
mov dword [ebp - 4], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406eb2
lea edi, [eax + 1]
test esi, esi
jne 0x406e8b
push eax
push esi
mov ecx, ebx
call fcn.00406780
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406e90
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, ebx
call fcn.00406780
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
call fcn.00406570
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4072a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
jne 0x4072c3
mov eax, 2
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test ax, ax
sete cl
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x4072e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 0x40
mov esi, eax
lea eax, [ebp - 0x58]
push 0
push eax
mov dword [ebp - 0x5c], 0
call fcn.005121a0
xor ecx, ecx
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
test esi, esi
je 0x40738f
cmp word [esi], ax
je 0x40738f
mov cx, word [ebp + 8]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
push 0
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x14]
test edi, edi
jne 0x40737b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407369
push eax
call esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40738f
push ecx
call esi
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [edi + 8], edx
mov dword [edi + 0xc], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4073a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x586f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 2
mov dword [ebp - 0x234], eax
xor bl, bl
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40742b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
je 0x40742a
lea ecx, [ecx]
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0051415c
add esp, 8
test eax, eax
jne 0x40741c
mov bl, 1
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x407400
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0051026e
mov esp, ebp
pop ebp
ret
Function at 0x407760
Capabilities:
Contain obfuscated stackstrings
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x586f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x21e]
push edx
mov dword [ebp - 0x430], eax
mov word [ebp - 0x220], cx
call fcn.005121a0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x426]
push ecx
mov word [ebp - 0x428], ax
call fcn.005121a0
add esp, 0x18
lea edx, [ebp - 0x220]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x18], 0x310030
mov dword [ebp - 0x14], 0x330032
mov dword [ebp - 0x10], 0x350034
mov dword [ebp - 0xc], 0x370036
mov dword [ebp - 8], 0x390038
xor esi, esi
lea ecx, [ecx]
call fcn.00510ad7
cdq
mov ecx, 0xa
idiv ecx
inc esi
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp + esi*2 - 0x42a], dx
cmp esi, ecx
jl 0x4077f0
lea eax, [ebp - 0x428]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407817
push edi
lea edi, [ebp - 0x220]
sub eax, edx
add edi, 0xfffffffe
mov edi, edi
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x407830
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x220]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
pop edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407856
mov ecx, dword [str..html]
mov edx, dword [0x564c50]
push 0
push 0
push 2
push 0
mov dword [eax], ecx
mov ecx, dword [0x564c54]
push 0
mov dword [eax + 4], edx
push 0x40000000
lea edx, [ebp - 0x220]
push edx
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4078ce
push 0
push 0
push str.file_error
call fcn.0041283e
push 0
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.0041283e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051026e
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4078d3
push 0
lea ecx, [ebp - 0x42c]
push ecx
sub eax, edx
push eax
push ebx
push esi
mov dword [ebp - 0x42c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x430]
lea eax, [ebp - 0x220]
mov ecx, eax
sub edx, ecx
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407910
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0051026e
mov esp, ebp
pop ebp
ret
Function at 0x407e50
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x586f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x407eb3
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x407ea6
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0051026e
mov esp, ebp
pop ebp
ret

Function at 0x408390
Capabilities:
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x586f40]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, edx
cmp ecx, 0x564cd0
jne 0x4083b7
mov eax, 0x28
jmp 0x4083c4
cmp ecx, str._PROGRAMFILES_
jne 0x4083c4
mov eax, 0x26
push 0
push eax
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4083e9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051026e
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x4083f0
movzx ecx, word [ebp + eax - 0x414]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x4083f0
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408412
mov ecx, dword [0x564d0c]
mov eax, esi
mov dword [edi], ecx
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408430
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408446
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x20c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0x10
sete cl
pop edi
pop esi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051026e
mov esp, ebp
pop ebp
ret
Function at 0x40c930
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x586f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov dword [ebp - 0x18], 0x310030
mov dword [ebp - 0x14], 0x330032
mov dword [ebp - 0x10], 0x350034
mov dword [ebp - 0xc], 0x370036
mov dword [ebp - 8], 0x390038
call fcn.00510af8
push eax
call fcn.00510ac5
add esp, 8
xor esi, esi
call fcn.00510ad7
cdq
mov ecx, 0xa
idiv ecx
inc esi
mov dx, word [ebp + edx*2 - 0x18]
mov word [edi + esi*2 - 2], dx
cmp esi, ecx
jl 0x40c976
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051026e
mov esp, ebp
pop ebp
ret

Function at 0x40f105
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40f14d
call fcn.00419452
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f14d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40f190
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40f179
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40f179
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40f18d
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x410fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00419452
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410ff9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00410bfd
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x411057
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x41107b
cmp dword [edi + 0x74], 0
jne 0x41107b
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00419452
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00411018
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8