joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bbd0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40bc06
mov esi, 0x4e39
jmp 0x40bcdd
lea eax, [ebp - 0x10]
push eax
push 1
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40bc45
call esi
cmp eax, 0x3f0
jne 0x40bc63
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40bc63
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
add ecx, ecx
mov dword [eax - 4], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40bc7f
call esi
mov esi, eax
test esi, esi
je 0x40bc78
jle 0x40bcdd
movzx esi, si
or esi, 0x80070000
jmp 0x40bcdd
mov esi, 0x80070001
jmp 0x40bcdd
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 3
push dword [ebp - 0x10]
call esi
push dword [ebp + 0xc]
call fcn.004451f4
add esp, 4
mov ebx, eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp + 0xc]
push ebx
push 3
push dword [ebp - 0x10]
call esi
mov ebx, dword [ebx]
xor ecx, ecx
test ebx, ebx
je 0x40bcd8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add eax, 4
mov esi, dword [ebp - 0x1c]
cmp dword [eax + 4], edx
jne 0x40bcd0
cmp dword [eax], esi
je 0x40bd23
inc ecx
add eax, 0xc
cmp ecx, ebx
jb 0x40bcc7
mov esi, 0x490
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x40bd10
add eax, 0xffffffe0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bd10
mov ecx, dword [ebp + 8]
add ecx, 0xffffffe0
push ecx
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor esi, esi
test byte [eax + 8], 2
je 0x40bd33
mov dword [edi], 1
jmp 0x40bcdd
mov dword [edi], 0
jmp 0x40bcdd
Function at 0x40cca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], esi
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x40ccc1
pop esi
mov eax, 0x4e39
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [eax + 0xd8]
test edi, edi
jne 0x40ccd8
pop edi
pop esi
mov eax, 0x4e39
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [eax + 0x64], 0x63
jne 0x40cd53
mov eax, dword [esi + 8]
test eax, eax
je 0x40cd47
cmp eax, 0xffffffff
je 0x40cd47
push 0
add esi, 0x20
lea ecx, [ebp - 0x10]
push esi
push 0xa
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esi], 0xa
jne 0x40cd47
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0xd8]
add eax, 0x150
push eax
lea eax, [ebp - 0x1c]
push 0xa
push eax
call fcn.0043f280
lea ecx, [ebp - 0x10]
add esp, 0xc
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
cmp eax, dword [edx]
jne 0x40cd40
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x40cd40
movzx eax, word [ecx + 8]
cmp ax, word [edx + 8]
je 0x40cd7d
mov ebx, 0x17
jmp 0x40cd7d
pop edi
pop esi
mov eax, 0x4e20
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x240]
or eax, dword [edi + 0x244]
jne 0x40cd7d
cmp dword [edi + 0x258], ebx
jne 0x40cd7d
mov eax, dword [edi + 0x230]
mov ecx, 0x17
cmp eax, dword [edi + 0x234]
cmovne ebx, ecx
mov eax, dword [edi]
test eax, eax
je 0x40cd98
cmp eax, 0xffffffff
je 0x40cd98
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [edi + 0x208], 8
mov dword [edi], 0
jne 0x40cdb3
lea eax, [edi + 4]
push eax
call fcn.00444670
add esp, 4
mov dword [edi + 0x208], 0
cmp edi, 0xffffffff
je 0x40cdd2
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esi + 0x24]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword [ecx + 0xd8], 0
mov esp, ebp
pop ebp
ret

Function at 0x40d0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4778c4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
not ebx
mov edx, ecx
mov dword [ebp - 4], edx
jne 0x40d0d3
call fcn.0040d180
mov edx, dword [ebp - 4]
test esi, esi
je 0x40d0f4
test dl, 3
je 0x40d0f4
movzx eax, byte [edx]
inc edx
xor eax, ebx
shr ebx, 8
and eax, 0xff
xor ebx, dword [eax*4 + 0x47bd48]
dec esi
jne 0x40d0d7
cmp esi, 4
jb 0x40d147
push edi
mov edi, esi
shr edi, 2
nop
xor ebx, dword [edx]
sub esi, 4
mov ecx, ebx
mov eax, ebx
shr ecx, 0x10
add edx, 4
and ecx, 0xff
shr eax, 8
and eax, 0xff
mov ecx, dword [ecx*4 + 0x47c148]
xor ecx, dword [eax*4 + 0x47c548]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x47bd48]
movzx eax, bl
xor ecx, dword [eax*4 + 0x47c948]
mov ebx, ecx
dec edi
jne 0x40d100
pop edi
test esi, esi
je 0x40d16a
jmp 0x40d150
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ebx
shr ebx, 8
and eax, 0xff
xor ebx, dword [eax*4 + 0x47bd48]
dec esi
jne 0x40d150
not ebx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d180
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4778c4], 0
jne 0x40d273
mov dword [0x4778c4], 1
xor eax, eax
lea esp, [esp]
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x47bd48], ecx
inc eax
cmp eax, 0x100
jb 0x40d1a0
cmp eax, 0x800
jae 0x40d273
lea esp, [esp]
mov edx, dword [eax*4 + 0x47b948]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x47bd48]
mov dword [eax*4 + 0x47bd48], edx
inc eax
cmp eax, 0x800
jb 0x40d250
ret
Function at 0x40d280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4588f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp + 8]
cmp dword [edx - 8], 0
jne 0x40d2ba
xor esi, esi
jmp 0x40d3d6
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 8], 0
jle 0x40d39e
lea eax, [ebp + 8]
push eax
push 0x4627a0
lea eax, [ebp - 0x18]
push eax
call fcn.00409520
mov byte [ebp - 4], 3
push 0x462dd0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00409410
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004093a0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0xc]
push eax
call fcn.00408f00
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x40d33a
lea ecx, [eax - 0x20]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d33a
mov eax, dword [ebp - 0x10]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x40d369
lea ecx, [eax - 0x20]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d369
mov eax, dword [ebp - 0x14]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x40d398
lea ecx, [eax - 0x20]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d398
mov eax, dword [ebp - 0x18]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp dword [eax - 8], esi
cmove eax, esi
cmp dword [ecx - 8], esi
cmove ecx, esi
mov esi, dword [edx - 8]
add esi, esi
mov dword [edx - 4], esi
lea edx, [ebx + 0x44]
push edx
push ebx
push eax
push 0
push 0x4000000
push 0
push 0
push 0
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
lea edx, [ecx - 0x20]
cmp edx, dword [0x476474]
je 0x40d405
add ecx, 0xffffffe0
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d405
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x40d434
lea ecx, [eax - 0x20]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d434
mov eax, dword [ebp + 0xc]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x40d464
add eax, 0xffffffe0
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40d464
mov eax, dword [ebp + 0x10]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40dbc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
push edi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push 0x38
push 0
push eax
mov dword [ebp - 0x48], 0x3c
call fcn.004486f0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x3c], str.runas
mov ecx, dword [eax - 8]
add ecx, ecx
mov dword [eax - 4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
add ecx, ecx
mov dword [eax - 4], ecx
xor ecx, ecx
mov eax, dword [ebp + 0xc]
test esi, esi
mov dword [ebp - 0x34], eax
mov eax, 0x100
cmovne eax, ecx
mov dword [ebp - 0x30], 0
or eax, 0x40
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40dc67
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40dca2
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x40dc73
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
test esi, esi
jne 0x40dc9d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x64
call esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x40dc83
cmp dword [ebp + 0x10], 0x103
je 0x40dc83
mov esi, 1
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x40dcd4
lea ecx, [eax - 0x20]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40dcd4
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
call fcn.004471aa
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x40dd04
add eax, 0xffffffe0
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40dd04
mov ecx, dword [ebp + 0xc]
add ecx, 0xffffffe0
push ecx
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40df70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x208]
sub esp, 0x410
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40df84
lea ecx, [ebp - 0x208]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dfa0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20a], 0x5c
jne 0x40dfc4
xor eax, eax
mov word [ebp + ecx*2 - 0x20a], ax
push esi
push 2
lea esi, [ebp - 0x208]
mov eax, esi
push 0x461828
push eax
call fcn.00446579
add esp, 0xc
test eax, eax
jne 0x40dffc
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.0044646f
mov esi, eax
add esp, 8
test esi, esi
je 0x40e099
push edi
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.0044646f
mov edi, eax
add esp, 8
test edi, edi
je 0x40e098
add edi, 2
je 0x40e098
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp word [edi], 0
je 0x40e097
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0044646f
mov edi, eax
add esp, 8
test edi, edi
je 0x40e064
lea eax, [ebp - 0x208]
mov esi, edi
sub esi, eax
sar esi, 1
push esi
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0044666d
add esp, 0xc
xor eax, eax
mov word [ebp + esi*2 - 0x410], ax
jmp 0x40e088
xor eax, eax
jmp 0x40e070
movzx ecx, word [ebp + eax - 0x208]
lea eax, [eax + 2]
mov word [ebp + eax - 0x412], cx
test cx, cx
jne 0x40e070
push 0
lea eax, [ebp - 0x410]
push eax
call ebx
test edi, edi
jne 0x40e021
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x458ae8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x10], 1
jne 0x40e5a1
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40e5a1
cmp dword [ebp - 0x10], 0x103
jne 0x40e5a1
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40e5af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [edi + 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x18]
push esi
neg eax
mov dword [edi + 0x10], 1
lea esi, [edi + 0x34]
push esi
sbb eax, eax
and eax, 4
push eax
push edi
push 0x434e10
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x47fda4
mov dword [edi + 0x30], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x47fda4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0
mov ecx, 0x47fdbc
push esi
call fcn.004091a0
mov dword [eax], edi
mov dword [ebp - 4], 0xffffffff
push 0x47fda4
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [edi + 0x30], eax
pop esi
setne al
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40f0b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4006
call fcn.00446e22
push 0x4006
mov ebx, eax
push 0
push ebx
call fcn.004486f0
add esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4615c0
push 0x2002
push ebx
call fcn.00435330
push 0x4006
call fcn.00446e22
push 0x4006
mov edi, eax
push 0
push edi
call fcn.004486f0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 0x1000
push edi
call fcn.00446ec8
add esp, 0x38
test eax, eax
js 0x40f12a
cmp eax, 0x1000
ja 0x40f12a
jne 0x40f133
xor eax, eax
mov word [edi + 0x2000], ax
push 0x4006
call fcn.00446e22
push 0x4006
mov esi, eax
push 0
push esi
call fcn.004486f0
push ebx
push 0x2002
push esi
call fcn.00446403
push edi
push 0x2002
push esi
call fcn.00446403
mov ecx, esi
add esp, 0x28
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f170
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0xa
je 0x40f19a
push 0x4615dc
push 0x2002
push esi
call fcn.00446403
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.00446dea
push edi
call fcn.00446dea
push ebx
call fcn.00446dea
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40f770
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458ba0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00405440
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0041a720
test eax, eax
je 0x40f814
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f7f5
mov ecx, dword [ebp + 8]
push 0
mov edx, dword [ecx - 8]
add edx, edx
mov dword [ecx - 4], edx
push dword [esi + 0x10]
push dword [ebp + 8]
push dword [esi + 4]
call eax
test eax, eax
je 0x40f7f5
xor esi, esi
jmp 0x40f819
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
add ecx, ecx
mov dword [eax - 4], ecx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x40f814
xor esi, esi
jmp 0x40f819
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x40f84c
add eax, 0xffffffe0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f84c
mov ecx, dword [ebp + 8]
add ecx, 0xffffffe0
push ecx
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40f860
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov dword [ebp - 4], 0
mov edx, dword [ecx + 0xc]
mov eax, dword [edx - 8]
add eax, eax
mov dword [edx - 4], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ecx + 0x10]
or eax, 2
push eax
push 0
push dword [ecx + 0xc]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f8d6
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
add ecx, ecx
mov dword [eax - 4], ecx
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40f8d6
mov esi, 1
jmp 0x40f8d8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x20]
cmp ecx, dword [0x476474]
je 0x40f90b
add eax, 0xffffffe0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f90b
mov ecx, dword [ebp + 8]
add ecx, 0xffffffe0
push ecx
call fcn.004471aa
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x412f50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8008
call fcn.00447a40
push edi
xor eax, eax
mov dword [ebp - 4], 0x3fff
push eax
push eax
push eax
mov edi, ecx
mov word [ebp - 0x8008], ax
push eax
cmp dword [edi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x8008]
push eax
push dword [edi + 0x1c]
push dword [edi + 0x18]
je 0x412f9b
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x412fa5
pop edi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x412ff7
push ebx
push esi
lea eax, [ebp - 0x8008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [ebp + 8]
mov esi, eax
push esi
mov ecx, ebx
mov dword [ebp - 8], esi
call fcn.0040a880
test eax, eax
je 0x412ff0
add esi, esi
lea eax, [ebp - 0x8008]
push esi
push eax
lea eax, [esi + 2]
push eax
push dword [ebx]
call fcn.00445948
mov eax, dword [ebx]
add esp, 0x10
mov ecx, dword [ebp - 8]
mov dword [eax - 8], ecx
xor ecx, ecx
mov eax, dword [ebx]
mov word [esi + eax], cx
inc dword [edi + 0x1c]
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x413260
Capabilities:
Acquire debug privileges

Disassembly:
push esi
push edi
push 1
push str.SeDebugPrivilege
mov esi, ecx
call fcn.0042b300
mov eax, dword [esi + 0x34c]
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x413290
push eax
call edi
mov dword [esi + 0x34c], 0
mov eax, dword [esi + 0x348]
test eax, eax
je 0x4132a7
push eax
call edi
mov dword [esi + 0x348], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ecx, eax
mov dword [esi + 0x348], ecx
cmp ecx, 0xffffffff
jne 0x4132d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
pop edi
cmovne ecx, eax
mov eax, ecx
pop esi
ret
lea eax, [esi + 0x11c]
mov dword [eax], 0x22c
push eax
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x413302
push dword [esi + 0x348]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x413304
call esi
pop edi
pop esi
ret
xor eax, eax
pop edi
pop esi
ret
Function at 0x414060
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
cmp dword [eax - 8], 0
je 0x414086
cmp dword [eax - 0x20], 0
jl 0x41407c
call fcn.00427ff0
jmp 0x414086
push 0x46155c
call fcn.00409040
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41409a
pop edi
pop ebx
pop ebp
ret 4
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea ecx, [esi*2 + 2]
add dword [0x47bce8], ecx
push ecx
adc dword [0x47bcec], 0
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov ebx, eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test ebx, ebx
jne 0x414132
xor esi, esi
mov dword [ebp + 8], esi
push esi
mov ecx, edi
call fcn.0040a880
test eax, eax
je 0x41410d
add esi, esi
push esi
push ebx
lea eax, [esi + 2]
push eax
push dword [edi]
call fcn.00445948
mov eax, dword [edi]
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [eax - 8], ecx
xor ecx, ecx
mov eax, dword [edi]
mov word [esi + eax], cx
test ebx, ebx
je 0x414126
cmp ebx, 0xffffffff
je 0x414126
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
jns 0x4140df
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x414360
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4592a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
test ax, ax
jne 0x414394
movzx eax, word [ecx + 0x120]
push 0x100
lea ecx, [ebp - 0x210]
movzx eax, ax
push ecx
push 0x5a
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4143b7
mov word [ebp - 0x210], ax
mov eax, dword [0x476478]
push esi
mov esi, dword [ebp + 8]
mov dword [esi], eax
lea eax, [ebp - 0x210]
shr eax, 0x10
test eax, eax
lea eax, [ebp - 0x210]
jne 0x4143e2
movzx eax, ax
mov ecx, esi
push eax
call fcn.0041c880
jmp 0x414412
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x414411
push edi
mov ecx, esi
call fcn.0040a900
test eax, eax
je 0x414411
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
call fcn.004480a0
add esp, 0xc
pop edi
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8