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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1f4e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x507254]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push eax
mov dword [ebp - 4], eax
push 0x105
mov dword [ebp - 0x10], 1
call fcn.004032d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43289b
mov eax, dword [esi]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x105
jbe 0x4328f1
mov ecx, dword [esi + 0x10]
lea edi, [eax + 1]
cmp edi, ecx
ja 0x4328cd
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4328c2
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], edi
mov word [eax + edi*2], cx
jmp 0x4328db
mov eax, edi
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004032d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4328e5
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
ja 0x432937
test eax, eax
je 0x432967
mov ecx, dword [esi + 0x10]
cmp eax, ecx
ja 0x432911
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x432906
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x43291d
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004032d0
mov ecx, esi
call fcn.0040a470
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
mov edx, 0x1f
lea ecx, [ebp - 0x1c]
call fcn.0040e4a0
mov edx, str.GetTempPath_failed
lea ecx, [ebp - 0x30]
push dword [eax + 4]
push dword [eax]
call fcn.0040de90
add esp, 8
lea eax, [ebp - 0x30]
push 0x503698
push eax
call fcn.004a8436
mov edx, str.GetTempPath_failed
lea ecx, [ebp - 0x30]
call fcn.00409390
push 0x503698
lea eax, [ebp - 0x30]
push eax
call fcn.004a8436
int3
Function at 0x432990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x244], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x238]
mov edi, dword [ebp + 0x10]
push ecx
push 0
push eax
push edx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x432a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], 0x507d40
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
jmp 0x432aeb
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], eax
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432a50
sub ecx, edx
lea eax, [ebp - 0x238]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403940
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi], 0
mov eax, esi
mov dword [edi + 4], 0x507cf0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
jmp 0x432aeb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret

Function at 0x435370
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
lea ecx, [esp + 0xc]
push edi
call fcn.0040ed90
push 0x1388
mov esi, dword [eax]
call fcn.004a6295
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov ecx, 1
mov dword [edi + 0x1384], 0xffffffff
lea edx, [edi + 8]
mov dword [edi + 4], esi
mov eax, esi
lea edx, [edx + 4]
shr eax, 0x1e
xor eax, esi
imul esi, eax, 0x6c078965
add esi, ecx
inc ecx
mov dword [edx - 4], esi
cmp ecx, 0x270
jb 0x4353b1
lea eax, [ebx + 8]
mov dword [edi], 0x270
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x4353ff
mov ecx, dword [eax]
mov dword [eax], edi
test ecx, ecx
je 0x43540d
push 0x1388
push ecx
call fcn.004a6287
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1388
push edi
call fcn.004a6287
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4358a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x4358fe
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4358c0
mov eax, dword [edi]
jmp 0x4359e9
cmp eax, 0x4e0
jb 0x4359e9
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x435920
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x435970
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x436ed0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d25fe
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
movq qword [esi], xmm0
push edx
movlpd qword [ebp - 0x18], xmm0
mov dword [esi + 8], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
jne 0x436f4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x507d40
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x436f5b
mov dword [esi], eax
mov edx, 0x507cf0
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
mov ecx, dword [edx + 4]
mov dword [ebp - 0x20], 1
cmp ecx, dword [0x507cf4]
jne 0x436f94
test eax, eax
jne 0x436f94
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.004a6256
mov esp, ebp
pop ebp
ret
push edx
push eax
mov edx, str.CommandLineToArgvW_failed
lea ecx, [ebp - 0x38]
call fcn.0040de90
add esp, 8
lea eax, [ebp - 0x38]
push 0x503698
push eax
call fcn.004a8436
int3
Function at 0x43c050
Capabilities:
Encode data using xor
Hash data using fnv
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
jb 0x43c066
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x43c082
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x43c071
mov ebx, dword [edi + 0x28]
lea esi, [edi + 0x18]
imul eax, edx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
rol eax, 0xd
lea eax, [eax + eax*4]
add eax, 0xe6546b64
cmp dword [esi + 0x14], 0x10
mov dword [ebp + 8], eax
jb 0x43c0ad
mov esi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x43c0c9
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x43c0b8
imul eax, edx, 0xcc9e2d51
lea esi, [edi + 0x30]
mov edi, dword [esi + 0x10]
rol eax, 0xf
imul ebx, eax, 0x1b873593
xor ebx, dword [ebp + 8]
rol ebx, 0xd
add ebx, 0xfaddaf14
cmp dword [esi + 0x14], 0x10
lea ebx, [ebx + ebx*4]
jb 0x43c0f5
mov esi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x43c111
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x43c100
imul eax, edx, 0xcc9e2d51
pop edi
pop esi
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ebx
rol eax, 0xd
pop ebx
lea eax, [eax + eax*4]
add eax, 0xe6546b64
pop ebp
ret 4

Function at 0x43c1d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x43c1fb
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x43c1e4
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x4429c0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocString
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x42c], esi
cmp esi, 0xffffffff
jne 0x442a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
push edi
push 0xf0000000
push 1
xor edi, edi
mov dword [ebp - 0x428], 0
push edi
push edi
lea eax, [ebp - 0x428]
mov dword [ebp - 0x41c], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x442a51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x442b9b
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x442a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x442b9b
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], edi
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x442ae8
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x442af8
push 0
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x442ae8
push 0
lea eax, [ebp - 0x420]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442aa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x442b9b
push 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x442b2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x442b9b
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x442b35
mov eax, dword [ebx]
mov dword [ebx + 0x10], 0
xor esi, esi
mov byte [eax], 0
cmp dword [ebp - 0x424], esi
jbe 0x442b95
nop dword [eax]
movzx ecx, byte [ebp + esi - 0x14]
mov eax, ecx
mov byte [ebp - 0x416], 0
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [ebp - 0x418], al
movzx eax, byte [ecx + str.0123456789abcdef]
mov ecx, ebx
mov byte [ebp - 0x417], al
lea eax, [ebp - 0x418]
push eax
call fcn.004030c0
inc esi
cmp esi, dword [ebp - 0x424]
jb 0x442b50
mov esi, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x442bac
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x442bbf
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a6256
mov esp, ebp
pop ebp
ret
Function at 0x442d00
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d366e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x24], edi
xorps xmm0, xmm0
push 0
mov dword [ebp - 0x20], 0
push dword [eax]
movlpd qword [ebp - 0x18], xmm0
push 0x8004
push dword [edx]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x442d73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov esi, 0x507d40
jmp 0x442d7b
mov edx, dword [ebp - 0x18]
mov esi, 0x507cf0
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x20], 1
cmp ecx, dword [0x507cf4]
jne 0x442dba
test edx, edx
jne 0x442dba
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
push esi
push edx
mov edx, str.CryptCreateHash_failed
lea ecx, [ebp - 0x38]
call fcn.0040de90
add esp, 8
lea eax, [ebp - 0x38]
push 0x503698
push eax
call fcn.004a8436
int3

Function at 0x442fc0
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push 0
push dword [edx + 4]
xorps xmm0, xmm0
push dword [edx]
movlpd qword [esp + 0x24], xmm0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x442ff4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x507d40
jmp 0x442ffd
mov ecx, dword [esp + 0x18]
mov edx, 0x507cf0
mov eax, dword [edx + 4]
cmp eax, dword [0x507cf4]
jne 0x443010
test ecx, ecx
jne 0x443010
mov esp, ebp
pop ebp
ret
push edx
push ecx
mov edx, str.CryptHashData_failed
lea ecx, [esp + 0xc]
call fcn.0040de90
add esp, 8
lea eax, [esp + 4]
push 0x503698
push eax
call fcn.004a8436
int3
Function at 0x443050
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d36bb
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x507254]
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, edx
mov dword [ebp - 0x248], ecx
push 0x228
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], 0
push 0
push eax
call fcn.004a8a30
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44311a
push str.GetProcessPid
mov edx, 4
lea ecx, [ebp - 0x2f0]
call fcn.004090a0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x48], 0
je 0x4430f4
mov edx, str.CreateToolhelp32Snapshot_failed_err
mov ecx, esi
call fcn.0040cb90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x443108
push eax
mov ecx, esi
call fcn.0040b230
lea ecx, [ebp - 0x2f0]
call fcn.00408f30
xor eax, eax
jmp 0x4431e4
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x443185
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [ebp - 0x248]
lea eax, [ebp - 0x21c]
push eax
call fcn.004b0b72
add esp, 8
test eax, eax
jne 0x443167
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x443167
cmp dword [ebp - 0x14], esi
je 0x443177
lea eax, [ebp - 0x240]
push eax
push edi
call ebx
test eax, eax
jne 0x443132
jmp 0x4431d7
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x244], eax
jmp 0x4431d7
push str.GetProcessPid
mov edx, 4
lea ecx, [ebp - 0x398]
call fcn.004090a0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
cmp byte [esi + 0x48], 0
je 0x4431b8
mov edx, str.Process32First_failed_err
mov ecx, esi
call fcn.0040cb90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x4431cc
push eax
mov ecx, esi
call fcn.0040b230
lea ecx, [ebp - 0x398]
call fcn.00408f30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.004a6256
mov esp, ebp
pop ebp
ret
Function at 0x443890
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004a8a30
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x105
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
Function at 0x443d10
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3886
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x443dac
push str.set_privilege
lea edx, [eax + 4]
lea ecx, [ebp - 0xe4]
call fcn.004090a0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x48], 0
je 0x443d86
push str.LookupPrivilegeValue_err
push esi
call fcn.00412180
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x443d9a
push eax
mov ecx, esi
call fcn.0040b230
lea ecx, [ebp - 0xe4]
call fcn.00408f30
xor al, al
jmp 0x443eae
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], 1
push eax
push 0x10
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push eax
push 0
push esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0x10
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x443e1b
push str.set_privilege
lea edx, [eax + 4]
lea ecx, [ebp - 0xe4]
call fcn.004090a0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
cmp byte [esi + 0x48], 0
je 0x443d86
push str.AdjustTokenPrivileges_1_err
jmp 0x443d7d
cmp byte [ebp + 8], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
je 0x443e3a
or dword [ebp - 0x20], 2
jmp 0x443e3e
and dword [ebp - 0x20], 0xfffffffd
push 0
push 0
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x443eac
push str.set_privilege
lea edx, [eax + 4]
lea ecx, [ebp - 0x18c]
call fcn.004090a0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
cmp byte [esi + 0x48], 0
je 0x443e89
push str.AdjustTokenPrivileges_2_err
push esi
call fcn.00412180
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x443e9d
push eax
mov ecx, esi
call fcn.0040b230
lea ecx, [ebp - 0x18c]
call fcn.00408f30
xor al, al
jmp 0x443eae
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
Function at 0x4477b0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3ebe
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xbc
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x34], 0x50bcf0
mov dword [0x50bcf0], 0
mov dword [0x50bd00], 0
mov dword [0x50bd04], 7
mov dword [0x50bd08], 0
mov dword [0x50bd18], 0
mov dword [0x50bd1c], 7
mov dword [0x50bd20], 0
mov dword [0x50bd30], 0
mov dword [0x50bd34], 7
mov dword [0x50bd38], 0
mov dword [0x50bd48], 0
mov dword [0x50bd4c], 7
mov dword [ebp - 4], 0
push 0x2c
mov dword [0x50bd50], 0
mov dword [0x50bd54], 0
call fcn.004a6295
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x50bd50], eax
mov byte [ebp - 4], 1
push 0x2c
mov dword [0x50bd58], 0
mov dword [0x50bd5c], 0
call fcn.004a6295
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x50bd58], eax
mov edx, 0x50bcc8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.00418320
mov ecx, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp byte [ecx + 0x30], 0
lea eax, [ebp - 0x64]
cmove eax, ecx
lea ecx, [ebp - 0x94]
push eax
call fcn.0042bb70
cmp dword [ebp - 0x68], 0x10
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x7c]
call fcn.00432b10
lea ecx, [ebp - 0x94]
call fcn.00418080
lea ecx, [ebp - 0x64]
call fcn.00418080
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 7
call fcn.00420500
sub esp, 0x60
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], ecx
push 0x50bcc8
call fcn.00403010
movups xmm0, xmmword [ebp - 0x2c]
sub esp, 0x18
mov ecx, esi
mov eax, esp
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00447000
call fcn.00447a50
mov eax, 0x50bcf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret