joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4150
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d63e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.00436c00
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x44f797
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x44f7a8
push 0x3c
push esi
call fcn.0046c40b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x459650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a21c2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4d63e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call fcn.0046edf0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x4596f0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4596e3
jmp 0x45973b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45974e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046edf0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x45974e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459730
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402e30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c678
mov esp, ebp
pop ebp
ret
Function at 0x459970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4d63e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, edx
push esi
mov esi, dword [ebp + 0x10]
mov word [ebp - 0x1c], ax
lea eax, [ecx + 2]
mov dword [ebp - 0xc], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], 7
mov dword [ebp - 0x20], eax
jmp 0x4599b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4599b0
sub ecx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00402e30
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x459a33
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x459a33
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x459a2f
cmp eax, 2
jne 0x459a33
xor esi, esi
jmp 0x459a38
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x459a6e
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459a64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459a81
push edx
push ecx
call fcn.0046c40b
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c678
mov esp, ebp
pop ebp
ret
call fcn.00477ce9
int3

Function at 0x459a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x459ac4
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x459ad4
mov ecx, dword [esi]
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x45be10
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x45be31
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x45be25
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x45bee8
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x45be60
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x4b7c28]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x4b7c28]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x45bed4
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x4b7c28]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x45bed1
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x4b7c28]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x45be60
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45da50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2628
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4d63e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x45da87
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45dbe4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x45daa1
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45dbe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x45dbe4
push esi
lea ecx, [ebp - 0x28]
call fcn.00401980
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x45db13
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x45db0d
lea ebx, [ebx]
cmp ecx, edx
je 0x45db13
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x45db00
sub ecx, edx
sar ecx, 1
jmp 0x45db16
or ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x45db34
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
jmp 0x45dba4
xor eax, eax
mov dword [ebp - 0x30], 0
cmp ebx, ecx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 7
cmovb ecx, ebx
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402e30
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004071b0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x45dba4
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45db9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dc10
push edx
push ecx
call fcn.0046c40b
add esp, 8
cmp dword [ebp - 0x18], 0
je 0x45dc04
lea eax, [ebp - 0x28]
push eax
call fcn.0045da50
add esp, 4
test eax, eax
je 0x45dc04
cmp dword [esi + 0x14], 8
jb 0x45dbc2
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45dbdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45dc04
lea ecx, [ebp - 0x28]
call fcn.00402340
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c678
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.00402340
xor eax, eax
jmp 0x45dbe9
call fcn.00477ce9
int3
Function at 0x45ed70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d63e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.0041d0e0
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x45edb3
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45edb3
test al, 0x10
je 0x45edb3
mov bl, 1
jmp 0x45edb5
xor bl, bl
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x45edeb
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ede1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45edfc
push edx
push ecx
call fcn.0046c40b
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0046c678
mov esp, ebp
pop ebp
ret
call fcn.00477ce9
int3

Function at 0x45f830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x10], 0
je 0x45f851
cmp dword [ecx + 0x14], 8
jb 0x45f83e
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45f851
test al, 0x10
je 0x45f851
mov al, 1
ret
xor al, al
ret
Function at 0x4601d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8a28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4d63e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
jl 0x460371
mov esi, dword [ebp + 0xc]
jg 0x46022d
test esi, esi
je 0x460371
cmp dword [ebx], 0xffffffff
je 0x460371
push esi
lea ecx, [ebp - 0x1c]
call fcn.004603f0
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
sub ecx, edi
mov byte [ebp + 0x13], 0
cmp esi, ecx
jae 0x460270
lea ebx, [edi + esi]
jmp 0x4602a0
jbe 0x4602a3
mov eax, dword [ebp - 0x14]
sub eax, edi
cmp esi, eax
jbe 0x460290
lea eax, [ebp + 0x13]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0042dac0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x4602a3
sub esi, ecx
push esi
push 0
push ebx
call fcn.0046edf0
add esp, 0xc
add ebx, esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp edi, ebx
je 0x46032e
mov ecx, ebx
sub ecx, edi
mov dword [ebp + 0x10], ecx
cmp ecx, 0x1000
jb 0x4602f9
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x46039c
push eax
call fcn.0046c3db
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4603a1
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp + 0x10]
jmp 0x46030d
test ecx, ecx
je 0x46030b
push ecx
call fcn.0046c3db
mov ecx, dword [ebp + 0x10]
add esp, 4
jmp 0x46030d
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, ecx
push ecx
mov dword [esi + 8], eax
mov esi, dword [esi]
push edi
push esi
call fcn.0046e870
sub ebx, edi
add esp, 0xc
add ebx, esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
test edi, edi
je 0x46035b
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x460351
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4603a1
push ecx
push edi
call fcn.0046c40b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00402a50
call fcn.00477ce9
int3
Function at 0x460e20
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x460ff2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x460ff2
push edi
mov ecx, esi
call fcn.004616c0
mov edi, eax
cmp edi, 0xffffffff
je 0x460fe9
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x460fd5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x460fcb
test eax, eax
je 0x460fcb
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x460ed6
call ebx
cmp eax, 0x7a
jne 0x460fcb
push dword [ebp - 4]
call fcn.0046c419
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x460fc2
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x460fc2
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x460fc2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x460f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x460fcb
push dword [ebp - 4]
call fcn.0046c419
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x460faf
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x460faf
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x460faf
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.0046c422
push dword [ebp - 8]
call fcn.0046c422
add esp, 8
test bl, bl
jne 0x460fd5
jmp 0x460fcb
push ebx
call fcn.0046c422
push dword [ebp - 8]
call fcn.0046c422
add esp, 8
jmp 0x460fcb
push ebx
call fcn.0046c422
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x460fe9
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8bad
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4d63e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x232]
xor ebx, ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
call fcn.00460e20
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.0046edf0
add esp, 0xc
cmp byte [0x4def08], bl
jne 0x4613fb
xor eax, eax
mov dword [ebp - 0x220], ebx
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00404ed0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x238], ebx
call fcn.0045a580
add esp, 4
mov byte [ebp - 0x231], 0
test al, al
je 0x461402
mov byte [ebp - 0x231], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x46144e
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x46144e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461444
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4614d1
push edx
push ecx
call fcn.0046c40b
add esp, 8
cmp byte [ebp - 0x231], 0
lea eax, [ebp - 0x218]
je 0x461476
push 0xa
push 0xffffffffffffffff
push 0
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.00461020
add esp, 0x18
jmp 0x461484
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00404ed0
cmp byte [ebp - 0x232], 0
je 0x4614b4
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c678
mov esp, ebp
pop ebp
ret
call fcn.00477ce9
int3
Function at 0x4616c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8beb
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4d63e4]
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
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4618d0
cmp dword [ebp - 0x248], 0xffffffff
je 0x4618d0
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x461899
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call fcn.0046edf0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x461810
jmp 0x4617a0
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call fcn.00478330
add esp, 8
test eax, eax
jne 0x4617ee
cmp edi, ebx
je 0x4617cf
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x4617ee
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00403380
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4617a0
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x461899
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x461884
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x461884
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x461884
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x46188d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x461820
jmp 0x461893
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x4618cc
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x4618c2
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4618f2
push ebx
push esi
call fcn.0046c40b
add esp, 8
mov eax, edi
jmp 0x4618d6
mov eax, dword [ebp - 0x244]
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.0046c678
mov esp, ebp
pop ebp
ret
call fcn.00477ce9
int3
Function at 0x461b20
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8cf9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d63e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0045cfa0
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.0045cfa0
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0045cfa0
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
call fcn.0045cfa0
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 3
call fcn.0045cfa0
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 4
call fcn.0045cfa0
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 5
call fcn.0045cfa0
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 6
call fcn.0045cfa0
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 7
call fcn.0045cfa0
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 8
call fcn.0045cfa0
lea ecx, [esi + 0xf0]
mov byte [ebp - 4], 9
call fcn.0045cfa0
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 0xa
call fcn.0045cfa0
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 0xb
call fcn.0045cfa0
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 0xc
call fcn.0045cfa0
lea ecx, [esi + 0x150]
mov byte [ebp - 4], 0xd
call fcn.0045cfa0
lea ecx, [esi + 0x168]
mov byte [ebp - 4], 0xe
call fcn.0045cfa0
lea ecx, [esi + 0x180]
mov byte [ebp - 4], 0xf
call fcn.0045cfa0
lea ecx, [esi + 0x198]
mov byte [ebp - 4], 0x10
call fcn.0045cfa0
mov dword [esi + 0x1b0], 0
mov eax, esi
mov dword [esi + 0x1b4], 0
mov dword [esi + 0x1b8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48b084
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048abd7

Function at 0x48deb8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048dd2e

Function at 0x49ae50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9f33
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d63e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x4ad120
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.0041f750
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
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