joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10084800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c7ba6
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.10088ad0
mov eax, dword [0x100fb03c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1030], 0
lea ecx, [ebp - 0x102c]
call fcn.10004970
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x1014]
call fcn.10005570
lea ecx, [ebp - 0x1014]
call fcn.100053b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1014]
call fcn.10005cd0
push 0x1000
push 0
lea eax, [ebp - 0x1010]
push eax
call fcn.1008ac40
add esp, 0xc
push 0
push 0x1c
lea ecx, [ebp - 0x1010]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100848b1
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x102c]
call fcn.100047e0
lea ecx, [ebp - 0x1014]
call fcn.10005fe0
lea eax, [ebp - 0x102c]
push eax
mov ecx, dword [ebp + 8]
call fcn.100048e0
mov ecx, dword [ebp - 0x1030]
or ecx, 1
mov dword [ebp - 0x1030], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1014]
call fcn.10005430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x102c]
call fcn.10004840
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100881a5
mov esp, ebp
pop ebp
ret
Function at 0x10085870
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c7dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100fb03c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.1000b380
add esp, 4
movzx edx, al
test edx, edx
jne 0x100858c4
mov eax, dword [ebp + 0x18]
mov dword [eax], 3
xor al, al
jmp 0x10085a72
mov ecx, dword [ebp + 8]
call fcn.10004780
push eax
call fcn.10008640
mov ecx, eax
call fcn.10008730
movzx ecx, al
test ecx, ecx
jne 0x100858f0
mov edx, dword [ebp + 0x18]
mov dword [edx], 4
xor al, al
jmp 0x10085a72
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008cd0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x100859f7
lea ecx, [ebp - 0x44]
call fcn.10004970
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
push ecx
call fcn.10087b70
add esp, 4
movzx edx, al
test edx, edx
jne 0x1008595c
mov eax, dword [ebp + 0x18]
mov dword [eax], 5
mov byte [ebp - 0x46], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10004840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10004840
mov al, byte [ebp - 0x46]
jmp 0x10085a72
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10087e60
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x100859a7
mov edx, dword [ebp + 0x18]
mov dword [edx], 5
mov byte [ebp - 0x47], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10004840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10004840
mov al, byte [ebp - 0x47]
jmp 0x10085a72
cmp dword [ebp + 0x14], 2
jne 0x100859c5
lea eax, [ebp - 0x2c]
push eax
call fcn.100878b0
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.10087340
add esp, 4
push 4
push 0
lea ecx, [ebp - 0x2c]
call fcn.10004780
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea ecx, [ebp - 0x44]
call fcn.10004780
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10004840
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x45], 0
mov edx, dword [ebp + 0x18]
mov dword [edx], 6
cmp dword [ebp + 0x10], 0
jne 0x10085a2a
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.1000d410
add esp, 0xc
mov byte [ebp - 0x45], al
jmp 0x10085a41
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.1000d3f0
add esp, 0xc
mov byte [ebp - 0x45], al
movzx eax, byte [ebp - 0x45]
test eax, eax
je 0x10085a5a
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov cl, byte [ebp - 0x45]
mov byte [ebp - 0x48], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10004840
mov al, byte [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100881a5
mov esp, ebp
pop ebp
ret
Function at 0x10087fb0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jbe 0x10087ffe
cmp dword [ebp + 0xc], 0xffffffff
jbe 0x10087fd1
mov dword [ebp - 0xc], 0xffffffff
jmp 0x10087fd7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.ADVAPI32.dll_SystemFunction036
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 4]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x10087fbc
mov esp, ebp
pop ebp
ret

Function at 0x100a1bfa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a18ba
Function at 0x100b1950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c7ba6
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.10088ad0
mov eax, dword [0x100fb03c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1030], 0
lea ecx, [ebp - 0x102c]
call fcn.10004970
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x1014]
call fcn.10005570
lea ecx, [ebp - 0x1014]
call fcn.100053b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1014]
call fcn.10005cd0
push 0x1000
push 0
lea eax, [ebp - 0x1010]
push eax
call fcn.1008ac40
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x1010]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100b1a01
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x102c]
call fcn.100047e0
lea ecx, [ebp - 0x1014]
call fcn.10005fe0
lea eax, [ebp - 0x102c]
push eax
mov ecx, dword [ebp + 8]
call fcn.100048e0
mov ecx, dword [ebp - 0x1030]
or ecx, 1
mov dword [ebp - 0x1030], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1014]
call fcn.10005430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x102c]
call fcn.10004840
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100881a5
mov esp, ebp
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6a57556a
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x734814a0
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1000abe8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
push str.QHFileSmasher.exe
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.1000d5db
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e36c
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x1000ac66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1000ac6d
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebp
ret

Function at 0x1000ac71
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.SB_RightMenu
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [ebp - 4], eax
setne al
leave
ret

Function at 0x1000acaf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push ebx
push edi
push 4
pop edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
push str.SB_State
mov ebx, str.SOFTWARE360Safe_safemon
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0
je 0x1000ad3b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
push str.SB_SupportOS
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 2
je 0x1000ad29
cmp eax, 3
je 0x1000ad29
test eax, eax
jne 0x1000ad3b
cmp dword [ebp - 4], eax
je 0x1000ad3b
inc eax
jmp 0x1000ad3d
call fcn.1000b526
cmp dword [eax + 4], 0xa
jae 0x1000ad3b
call fcn.1000ade9
jmp 0x1000ad3d
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x1000af77
Capabilities:
Check if file exists

Disassembly:
push 0x630
mov eax, 0x10030ee1
call fcn.10013510
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1000af96
xor eax, eax
jmp 0x1000b092
call fcn.100038ff
push eax
lea ecx, [ebp - 0x62c]
call fcn.10001c63
push esi
push str._shredfilelist
lea eax, [ebp - 0x62c]
xor ebx, ebx
push str._s__s_
push eax
mov dword [ebp - 4], ebx
call fcn.10009666
add esp, 0x10
lea ecx, [ebp - 0x63c]
call fcn.1000d9c1
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push ebx
push eax
call sub.msvcrt.dll_memset
push str.QHFileSmasher.exe
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1000d5db
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x62c]
test eax, eax
je 0x1000b07c
push 0x410
lea eax, [ebp - 0x628]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x218]
push eax
push str.__s___s
lea eax, [ebp - 0x628]
push 0x208
push eax
call fcn.1000c2e6
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
call fcn.1000cd1c
test eax, eax
jne 0x1000b07c
call fcn.1000b526
cmp dword [eax + 4], 6
jb 0x1000b07c
push 1
push ebx
push ebx
push ebx
push esi
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
push ebx
call fcn.1000beb1
lea ecx, [ebp - 0x63c]
call fcn.1000da09
lea ecx, [esi - 0x10]
call fcn.10004e6b
xor eax, eax
inc eax
call fcn.10013490
ret 4
Function at 0x1000b09a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030f2a
mov eax, dword fs:[0]
push eax
mov eax, 0x223c
call fcn.1002e380
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1000b0da
xor eax, eax
jmp 0x1000b231
call fcn.100038ff
push eax
lea ecx, [ebp - 0x2228]
call fcn.10001c63
and dword [ebp - 4], 0
lea eax, [ebp - 0x2228]
push esi
push str._queryfilelist
push str._s__s_
push eax
call fcn.10009666
mov esi, 0x200c
lea eax, [ebp - 0x2224]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x2224], esi
lea edi, [ebp - 0x2238]
mov dword [ebp - 0x221c], 0x2000
stosd dword es:[edi], eax
push 4
push str.SHRM
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2238]
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
push edi
push 6
push str._func_d__cmd_s
mov dword [ebp - 0x2230], eax
lea eax, [ebp - 0x2218]
push 0x1000
push eax
mov dword [ebp - 0x2234], esi
call fcn.1000c2e6
add esp, 0x3c
lea ecx, [ebp - 0x2248]
call fcn.1000d9c1
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
xor ebx, ebx
push esi
inc ebx
push eax
mov byte [ebp - 4], bl
call sub.msvcrt.dll_memset
push str.360ShellPro.exe
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1000d5db
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000b21c
call fcn.100038ff
push eax
lea ecx, [ebp - 0x222c]
call fcn.10001c63
lea eax, [ebp - 0x2218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x222c]
push str._sendmsg1__s
push eax
call fcn.10009666
push esi
push esi
mov esi, dword [ebp - 0x222c]
lea eax, [ebp - 0x218]
push 5
push esi
push eax
call fcn.1000ce48
add esp, 0x20
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.10004e6b
lea ecx, [ebp - 0x2248]
call fcn.1000da09
lea ecx, [edi - 0x10]
call fcn.10004e6b
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002e36c
leave
ret 4
Function at 0x1000b38d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1000b457
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x1000b457
push edi
push dword [ebp + 0x10]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000b457
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x1000b453
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1000b44c
push ebx
push dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
xor ebx, ebx
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1000b445
push ebx
push dword [ebp - 4]
call fcn.100097d4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1000b43c
mov ecx, dword [esi + 8]
mov dword [esi + 8], ebx
test ecx, ecx
je 0x1000b43c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov esi, ebx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
jmp 0x1000b459
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000bcae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push eax
mov eax, dword [esi + 0xc]
or eax, 1
push eax
push 0
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000bcfe
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esi + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
jmp 0x1000bd00
xor eax, eax
pop esi
leave
ret
Function at 0x1000cd1c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x54], esi
add esp, 0xc
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 5
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x1000cd79
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1000ce48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0x1400
test edi, edi
jne 0x1000ce8d
test esi, esi
je 0x1000ce94
mov dword [ebp - 0x38], 0x1440
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
test ebx, ebx
je 0x1000cec6
test edi, edi
je 0x1000ceb2
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
test esi, esi
je 0x1000cebd
mov eax, dword [ebp - 4]
mov dword [esi], eax
jmp 0x1000cec6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1000d5db
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp word [0x10047480], 0
push ebx
mov ebx, 0x10047480
jne 0x1000d649
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d649
cmp dword [ebp - 4], eax
je 0x1000d649
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x410
push eax
push 0
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000c2a1
cmp dword [ebp + 0x10], 0
pop ebx
je 0x1000d66a
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x1000da99
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10046894]
test ecx, ecx
js 0x1000dac2
xor eax, eax
test ecx, ecx
setne al
jmp 0x1000db66
and dword [0x10046894], 0
lea eax, [ebp - 0x144]
push esi
push 0x24
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x1000db21
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x1000db63
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000db63
lea ecx, [ebp - 0x144]
push ecx
call eax
cmp word [ebp - 0x144], 9
je 0x1000db59
cmp word [ebp - 0x144], 6
jne 0x1000db63
xor eax, eax
inc eax
mov dword [0x10046894], eax
jmp 0x1000db65
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e36c
leave
ret

Function at 0x100129a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x100129de
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x100129d7
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x100129e0
add eax, 0x28
cmp eax, edi
jne 0x100129c7
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x10013390
Capabilities:
Get process heap force flags

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx + 0xa4]
shl eax, 0x10
or eax, dword [ecx + 0xa8]
ret
Function at 0x10014870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x10014897
mov ecx, 5
int 0x29
push 2
call fcn.10013f80
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x100149a2
test esi, esi
jne 0x100149a2
push 2
call fcn.10013f80
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1002e36c
mov esp, ebp
pop ebp
ret