joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47804c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4780e9
push ebx
push esi
call fcn.00478008
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0047543d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x478096
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4780e8
push edi
push eax
call fcn.0046f0e8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4780b6
call fcn.0046cf72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4780e7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0047543d
add esp, 0x20
test eax, eax
jne 0x4780d5
push edi
call fcn.0046cf72
jmp 0x4780dd
push ebx
call fcn.0046cf72
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4780ec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4780fd
pop esi
ret
push ebx
push edi
push esi
call fcn.00478008
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046f0e8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x478125
push ebx
push esi
push edi
call fcn.0042fe60
add esp, 0xc
push 0
call fcn.0046cf72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x478a06
Capabilities:
Set environment variable

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

Function at 0x478e8d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00478d61

Function at 0x484f20
Capabilities:
Parse pe header

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

Function at 0x48a134
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
sar eax, 2
push esi
test eax, eax
je 0x48a1ba
xor esi, esi
mov al, byte [esi + 0x4bb1e0]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x4bb1e0], al
call fcn.0040618b
push eax
call fcn.00406159
mov al, byte [esi + 0x4bb1e0]
mov edx, str.Earth
add al, 0x4e
xor al, 0xdc
pop ecx
mov byte [esi + 0x4bb1e0], al
call fcn.0040618b
push eax
call fcn.00406159
mov al, byte [esi + 0x4bb1e0]
xor al, 0xac
mov dword [esp], 0x49582c
sub al, 0x65
xor al, 0x22
sub al, 0x73
mov byte [esi + 0x4bb1e0], al
call fcn.00458d4b
xor byte [esi + 0x4bb1e0], al
inc esi
pop ecx
cmp esi, 0x4ac
jb 0x48a147
lea ecx, [esp + 0xc]
call fcn.00404eb8
pop esi
pop ecx
ret 0x14
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x36666619
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x1f0f2b51
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4028d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451c73
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x47d00c]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x424]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.0043e2c0
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x402991
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x402991
call fcn.00401b10
mov esi, eax
jmp 0x402a7e
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4029b4
call fcn.00401b10
jmp 0x402a71
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x4029d2
call fcn.00401b10
jmp 0x402a71
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4029f3
mov esi, 0x8007000e
jmp 0x402a73
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00423440
jmp 0x402a1d
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x402a34
mov esi, 0x8007000e
jmp 0x402a73
push esi
push dword [ebp - 0x424]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x402a54
call fcn.00401b10
jmp 0x402a71
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00403720
mov esi, eax
test edi, edi
je 0x402a7e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x402aa0
lea ecx, [ebp - 0x424]
call fcn.00423970
nop word [eax + eax]
mov eax, esi
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.00424a0b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409eb0
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x409f00
push ebx
push edi
push 0x2000
call fcn.00424a54
add esp, 4
mov edi, eax
push 0x1000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x409eec
push edi
call fcn.00424a4f
add esp, 4
mov eax, esi
pop edi
pop ebx
pop esi
ret
push dword [esi]
call fcn.00424a4f
add esp, 4
mov dword [esi], edi
lea eax, [ebx - 1]
mov dword [esi + 4], eax
pop edi
pop ebx
mov eax, esi
pop esi
ret

Function at 0x40c760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.00404b20
mov eax, dword [ebx]
test eax, eax
je 0x40c833
lea edi, [esi + 4]
push edi
push 0
lea ecx, [esi + 8]
push ecx
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c833
mov eax, dword [edi]
test eax, eax
je 0x40c841
add eax, 4
push eax
call fcn.00424a54
mov dword [esi], eax
add esp, 4
mov ecx, dword [edi]
push edi
mov byte [eax + ecx], 0
mov ecx, dword [edi]
mov eax, dword [esi]
mov byte [ecx + eax + 1], 0
mov ecx, dword [edi]
mov eax, dword [esi]
mov byte [ecx + eax + 2], 0
mov eax, dword [esi]
mov ecx, dword [edi]
mov byte [ecx + eax + 3], 0
lea eax, [esi + 8]
push dword [esi]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esi + 8], 7
jne 0x40c847
mov ecx, dword [edi]
cmp ecx, 4
jbe 0x40c847
mov edx, dword [esi]
xor eax, eax
shr ecx, 1
sub ecx, 1
je 0x40c81f
lea ebx, [eax + 0xa]
xor ecx, ecx
cmp cx, word [edx + eax*2]
jne 0x40c815
cmp word [edx + eax*2 + 2], cx
je 0x40c815
mov word [edx + eax*2], bx
mov ecx, dword [edi]
inc eax
shr ecx, 1
dec ecx
cmp eax, ecx
jb 0x40c802
mov eax, dword [edi]
shr eax, 1
xor ecx, ecx
pop edi
mov word [edx + eax*2 - 2], cx
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40c880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
test esi, esi
jne 0x40c8b5
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 8
push edi
test eax, eax
mov edi, 0x46c5fc
mov ecx, esi
cmovne edi, eax
call fcn.00409b90
mov eax, dword [ebx]
test eax, eax
je 0x40c95e
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c95e
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x40c909
cmp eax, 2
je 0x40c909
cmp eax, 7
jne 0x40c95e
mov ebx, dword [ebp - 8]
mov ecx, esi
add ebx, 4
mov dword [ebp - 8], ebx
push 0
shr ebx, 1
push ebx
call fcn.00409f90
lea eax, [ebx - 1]
mov ecx, esi
push eax
call fcn.00409d30
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx - 2]
push eax
mov ecx, esi
call fcn.00409d30
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.00409cd0
push eax
mov eax, dword [ebp - 0x10]
push 0
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c973
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0xc], 7
jne 0x40c9a9
cmp ebx, 3
jbe 0x40c9a9
mov ecx, esi
call fcn.00409cd0
lea edx, [ebx - 1]
xor ecx, ecx
test edx, edx
je 0x40c9a9
lea edi, [ecx + 0xa]
xor esi, esi
cmp si, word [eax + ecx*2]
jne 0x40c9a4
cmp word [eax + ecx*2 + 2], si
je 0x40c9a4
mov word [eax + ecx*2], di
inc ecx
cmp ecx, edx
jb 0x40c991
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 8

Function at 0x40ca50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.0040c5a0
cmp dword [edi], 0
je 0x40cac3
push 0x1fe
mov dword [ebp - 8], 0x1fe
call fcn.00424a54
add esp, 4
mov dword [esi], eax
lea ecx, [ebp - 8]
push 0
push 0
push 0
push 0
push ecx
push eax
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40cab5
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], 0xffffffff
jmp 0x40cabc
mov dword [esi + 4], 0xfffffffe
mov dword [esi + 8], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 8
Function at 0x40cae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.0040c5a0
cmp dword [edi], 0
je 0x40cb4b
push ebx
push 0x7ffe
mov dword [ebp - 8], 0x7ffe
call fcn.00424a54
add esp, 4
mov dword [esi], eax
lea ebx, [esi + 8]
lea ecx, [esi + 4]
push ebx
push 0
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40cb4a
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], 0xffffffff
mov dword [ebx], ecx
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 8

Function at 0x40cc20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x40cc32
xor al, al
pop ebx
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x40cc4e
cmp edx, 1
jae 0x40cc4e
mov edx, edi
call fcn.0040cff0
mov edx, eax
cmp edi, 7
jne 0x40cc7a
cmp edx, 2
jbe 0x40cc7a
push esi
mov esi, edx
xor eax, eax
shr esi, 1
sub esi, 1
je 0x40cc79
cmp word [ecx + eax*2], 0xa
jne 0x40cc71
xor edi, edi
mov word [ecx + eax*2], di
inc eax
cmp eax, esi
jb 0x40cc64
mov edi, dword [ebp + 0xc]
pop esi
push edx
push ecx
push edi
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
sete al
pop ebx
pop ebp
ret 0x10
Function at 0x40ce00
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452150
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x47d00c]
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 edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
call fcn.00409a40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x40], xmm0
call fcn.0040c610
push ecx
push 0x20019
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040c700
mov ecx, edi
call fcn.0040cb60
test eax, eax
je 0x40cef4
lea esi, [eax - 1]
test esi, esi
js 0x40cef4
nop dword [eax]
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040ca50
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x40]
call fcn.0040c690
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40ceef
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x40]
lea ecx, [ebp - 0x34]
push 0x46d658
push ebx
call fcn.00409c70
lea ecx, [ebp - 0x34]
call fcn.00409cd0
push eax
mov ecx, edi
call fcn.0040ce00
sub esi, 1
jns 0x40ce90
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push ebx
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.00409a90
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00409de0
cmp byte [eax + 8], 0
jne 0x40cf24
xor bl, bl
jmp 0x40cf8f
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push ebx
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.00409a90
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00409c00
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a790
push ecx
push 0x20019
lea ecx, [ebp - 0x28]
call fcn.00409cd0
push eax
mov ecx, edi
call fcn.0040c700
test al, al
jne 0x40cf71
xor bl, bl
jmp 0x40cf87
lea ecx, [ebp - 0x1c]
call fcn.00409cd0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
lea ecx, [ebp - 0x28]
call fcn.00409b80
lea ecx, [ebp - 0x1c]
call fcn.00409b80
lea ecx, [ebp - 0x40]
call fcn.00409b80
lea ecx, [ebp - 0x34]
call fcn.00409b80
mov al, bl
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.00424a0b
mov esp, ebp
pop ebp
ret 4
Function at 0x40d270
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4521c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.00409a90
mov dword [ebp - 4], 0
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 2
call fcn.0040d030
mov esi, eax
test esi, esi
jne 0x40d2d6
xor bl, bl
jmp 0x40d2eb
lea ecx, [ebp - 0x1c]
call fcn.00409cd0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
lea ecx, [ebp - 0x1c]
call fcn.00409b80
mov al, bl
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.00424a0b
mov esp, ebp
pop ebp
ret
Function at 0x40d8d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0
test ecx, ecx
mov dword [ebp - 8], edi
lea eax, [ebp - 0xc]
lea esi, [ebp - 8]
push eax
cmovne esi, ecx
push 0xf01ff
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40da49
push ebx
push 0x454788
push 0x94
mov dword [esi], 0x94
call fcn.00424def
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40da48
push 0x454788
push dword [esi]
call fcn.00424def
mov edi, eax
add esp, 8
test edi, edi
je 0x40da3f
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea ecx, [ebx + 4]
push ecx
push str.SeRestorePrivilege
push 0
mov dword [ebx], 0xc
call esi
lea eax, [ebx + 0x10]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call esi
lea eax, [ebx + 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call esi
lea eax, [ebx + 0x28]
push eax
push str.SeSecurityPrivilege
push 0
call esi
lea eax, [ebx + 0x34]
push eax
push str.SeBackupPrivilege
push 0
call esi
lea eax, [ebx + 0x40]
push eax
push str.SeImpersonatePrivilege
push 0
call esi
lea eax, [ebx + 0x4c]
push eax
push str.SeSystemProfilePrivilege
push 0
call esi
lea eax, [ebx + 0x58]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call esi
lea eax, [ebx + 0x64]
push eax
push str.SeTrustedCredManAccessPrivilege
push 0
call esi
lea eax, [ebx + 0x70]
push eax
push str.SeTcbPrivilege
push 0
call esi
lea eax, [ebx + 0x7c]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call esi
lea eax, [ebx + 0x88]
push eax
push str.SeShutdownPrivilege
push 0
call esi
lea eax, [ebx + 0xc]
mov ecx, 0xc
nop word [eax + eax]
mov dword [eax], 2
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x40da10
mov eax, dword [ebp - 0x10]
push eax
push edi
push dword [eax]
push ebx
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40da3f
push edi
call fcn.00424a4f
add esp, 4
xor edi, edi
push ebx
call fcn.00424a4f
add esp, 4
pop ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40da57
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00424a0b
mov esp, ebp
pop ebp
ret
Function at 0x40ed80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push ebx
push 0xfa0
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40edbc
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40eda9
push esi
push edi
sub esp, 8
lea ecx, [ebx + 0xfa4]
push dword [ebp - 0xc]
call fcn.0040b470
mov eax, dword [ebp - 0xc]
lea ecx, [ebx + 0xfb0]
sub esp, 8
add eax, 2
push eax
call fcn.0040b470
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x46d658
lea ecx, [ebx + 0xfb0]
call fcn.00409cd0
push eax
lea ecx, [ebx + 0xfa4]
call fcn.00409cd0
push eax
push str.StringFileInfo_
lea ecx, [ebx + 0xfbc]
call fcn.00409c70
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 4

Function at 0x40f010
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, ecx
cmp byte [ebx + 0x48], 0
lea ecx, [ebx + 8]
jne 0x40f022
pop ebx
jmp fcn.00409cd0
mov eax, dword [ebx]
push esi
push edi
push 1
mov esi, dword [eax]
push 0
push 0x104
push 0
push 0x800
call fcn.00409f90
push eax
push dword [ebx]
call dword [esi + 0xc]
lea ecx, [ebx + 8]
test eax, eax
jns 0x40f052
pop edi
pop esi
pop ebx
jmp fcn.00409cd0
call fcn.00409cd0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f07f
push 0x800
lea ecx, [ebx + 8]
call fcn.00409cd0
push eax
lea ecx, [ebx + 8]
call fcn.00409cd0
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
pop edi
pop esi
lea ecx, [ebx + 8]
pop ebx
jmp fcn.00409cd0

Function at 0x40f300
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov esi, ecx
mov ebx, edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40f337
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40f35c
push ebx
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40f363
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop esi
xor al, al
pop ebx
ret 4
pop esi
mov al, 1
pop ebx
ret 4
Function at 0x40f370
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x10], 0
or eax, 0xffffffff
mov dword [ebp - 8], 0
test edi, edi
lea edx, [ebp - 8]
push ecx
cmove edi, eax
lea ecx, [ebp - 0x10]
xor bl, bl
mov byte [ebp - 0x15], bl
call fcn.0040f300
test al, al
je 0x40f4e2
push esi
push 0x454788
push 0x80000
mov dword [ebp - 0xc], 0x80000
call fcn.00424def
mov esi, eax
add esp, 8
test esi, esi
je 0x40f4b6
push 0
lea eax, [ebp - 0xc]
push eax
push 0x80000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f448
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40f448
push 0
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40f4b6
call fcn.0040b920
push 0
lea eax, [ebp - 0xc]
push eax
push 0x80000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f410
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push dword [ebp - 0x1c]
push 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40f4b6
mov eax, dword [ebp - 0x1c]
push esi
mov ebx, dword [eax]
call fcn.00424a4f
push 0x454788
push ebx
call fcn.00424def
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40f4b3
mov ebx, dword [ebp - 0x1c]
push 0
push ebx
push esi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40f4b3
mov edx, dword [ebx]
mov ecx, esi
push 0
push 0xffff
push dword [ebp - 0x20]
call fcn.0040be00
mov bl, al
jmp 0x40f4b6
mov bl, byte [ebp - 0x15]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40f4c6
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40f4d4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test esi, esi
je 0x40f4e1
push esi
call fcn.00424a4f
add esp, 4
pop esi
cmp edi, 0xffffffff
je 0x40f4f2
test edi, edi
je 0x40f4f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.00424a0b
mov esp, ebp
pop ebp
ret 8