joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590d70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6a5f90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x10], 0xffffffff
mov byte [ebp - 0x60], 0
push 0x45
push 0
lea eax, [ebp - 0x5f]
push eax
call fcn.00532e90
add esp, 0xc
mov dword [ebp - 0xc], 0
push 0
push 0x20
push 0
lea ecx, [ebp - 0x88]
push ecx
call fcn.005290a0
add esp, 0x10
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x80], 1
cmp dword [ebp + 8], 0
je 0x590f03
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00528910
add esp, 8
mov dword [ebp - 8], eax
push 0
push 0x40
mov eax, dword [ebp + 8]
push eax
call fcn.00528980
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x590e31
lea ecx, [ebp - 0x60]
push ecx
push str.__69_0_9a_fA_F:_
mov edx, dword [ebp - 0xc]
push edx
call fcn.005383bc
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call fcn.00591030
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jle 0x590f03
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x88]
push edx
push 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x68], 0
je 0x590ecb
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 4], 0x17
jne 0x590ecb
push 0
push 0x69a1e8
mov edx, dword [ebp + 8]
push edx
call fcn.00528ad0
add esp, 0xc
mov esi, eax
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.00528910
add esp, 8
lea ecx, [esi + eax + 1]
cmp dword [ebp - 8], ecx
jne 0x590ecb
push 0
lea edx, [ebp - 0x60]
push edx
call fcn.00528910
add esp, 8
mov esi, eax
push 0
push 0x69a1ec
mov eax, dword [ebp + 8]
push eax
call fcn.00528ad0
add esp, 0xc
lea ecx, [esi + eax + 1]
mov dword [ebp - 0x64], ecx
jmp 0x590ef3
push 0
push 0x69a1f0
mov edx, dword [ebp + 8]
push edx
call fcn.00528ad0
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call fcn.00590f20
add esp, 4
lea ecx, [esi + eax + 1]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x68], 0
je 0x590f03
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x64]
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005327db
mov esp, ebp
pop ebp
ret
Function at 0x592d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x6a5f90]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
mov edx, dword [ecx + 0x10e8]
and edx, 0x40
jne 0x592d45
xor eax, eax
jmp 0x592f2b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
and ecx, 0x80
jne 0x592db8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13c]
or eax, 0x80
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x13c], eax
push str.BUG_B
push 0x45
push 0x44
push str.FLEXLM__c_c_sADDATE
lea edx, [ebp - 0x2d0]
push edx
call fcn.00536483
add esp, 0x14
lea eax, [ebp - 0x2d0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0057e940
add esp, 8
test eax, eax
je 0x592db8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13c]
or eax, 0x100
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x13c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13c]
and eax, 0x100
je 0x592e30
cmp dword [ebp + 8], 0
je 0x592e26
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x592def
xor edx, edx
je 0x592def
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x2d4], ecx
jmp 0x592df9
mov dword [ebp - 0x2d4], 0xffffffa8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2d4]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x138
push 0xffffffffffffffa8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00577350
add esp, 0x1c
mov eax, 0xffffffa8
jmp 0x592f2b
mov byte [ebp - 0x208], 0x5c
mov byte [ebp - 0x207], 0
push 0
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00592f40
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x592e64
mov eax, dword [ebp - 4]
jmp 0x592f2b
push 0x200
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00592f40
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x592e9c
mov eax, dword [ebp - 4]
jmp 0x592f2b
mov byte [ebp - 0x208], 0x2f
mov byte [ebp - 0x206], 0x61
mov byte [ebp - 0x205], 0x72
mov byte [ebp - 0x207], 0x76
mov byte [ebp - 0x204], 0
push 0
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00592f40
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x592ee2
mov eax, dword [ebp - 4]
jmp 0x592f2b
mov byte [ebp - 0x208], 0x2f
mov byte [ebp - 0x204], 0
mov byte [ebp - 0x206], 0x6d
mov byte [ebp - 0x207], 0x74
mov byte [ebp - 0x205], 0x70
push 0
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00592f40
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x592f28
mov eax, dword [ebp - 4]
jmp 0x592f2b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005327db
mov esp, ebp
pop ebp
ret
Function at 0x59a7b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x59a7de
cmp dword [ebp + 0x10], 0
jne 0x59a7e0
jmp 0x59a838
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005a35a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59a838
cmp dword [ebp - 0xc], 0
je 0x59a838
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.005a35a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x59a838
cmp dword [ebp - 0xc], 0
je 0x59a838
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0053d5a8
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x59a851
mov eax, dword [ebp - 8]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x59a86a
mov ecx, dword [ebp - 4]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x59a880
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x59a8ae
cmp dword [ebp + 0x10], 0
jne 0x59a8b0
jmp 0x59a908
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005a38a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x59a908
cmp dword [ebp - 0xc], 0
je 0x59a908
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.005a38a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59a908
cmp dword [ebp - 0xc], 0
je 0x59a908
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0053d669
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
je 0x59a921
mov eax, dword [ebp - 4]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x59a93a
mov ecx, dword [ebp - 8]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x5a2a40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0xffffff9d
jne 0x5a2a95
mov dword [0x69a888], 0xffffffff
mov dword [ebp - 4], 0
jmp 0x5a2a68
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jae 0x5a2a90
mov ecx, dword [ebp - 4]
shl ecx, 4
mov dword [ecx + 0x69a850], 0
mov edx, dword [ebp - 4]
shl edx, 4
mov dword [edx + 0x69a854], 0
jmp 0x5a2a5f
jmp 0x5a2c43
cmp dword [ebp + 0x10], 4
jb 0x5a2ab1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x5a2c43
cmp dword [ebp + 0x10], 0
jl 0x5a2abd
cmp dword [ebp + 0x10], 4
jb 0x5a2ac2
jmp 0x5a2c43
cmp dword [0x69a888], 0
jge 0x5a2ad4
cmp dword [0x69a888], 4
jae 0x5a2aeb
push 0
mov eax, dword [0x69a888]
shl eax, 4
mov ecx, dword [eax + 0x69a850]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 0x10]
mov dword [0x69a888], edx
mov eax, dword [0x69a888]
shl eax, 4
cmp dword [eax + 0x69a854], 0
jne 0x5a2b34
mov ecx, dword [0x69a888]
shl ecx, 4
mov edx, dword [ecx + 0x69a850]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005a2c50
add esp, 8
mov ecx, dword [0x69a888]
shl ecx, 4
mov dword [ecx + 0x69a854], 1
push 0
push 0
push 0xaec
mov edx, dword [0x69a888]
shl edx, 4
mov eax, dword [edx + 0x69a850]
push eax
mov ecx, dword [0x69a888]
shl ecx, 4
mov edx, dword [ecx + 0x69a848]
call edx
push 5
mov eax, dword [0x69a888]
shl eax, 4
mov ecx, dword [eax + 0x69a850]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 4], 0
jmp 0x5a2b87
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jae 0x5a2c43
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x69a88c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a2c3e
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x69a890]
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + ecx + 0x138]
and eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x69a890]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 2
je 0x5a2c3e
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x69a890]
imul ecx, ecx, 0x32
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx + 0x13b]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x69a890]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax + 0x138]
and edx, 0xfffffffd
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x69a890]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx + 0x138], dl
jmp 0x5a2b7e
mov esp, ebp
pop ebp
ret
Function at 0x5a2d60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0x80000000
jae 0x5a2dc3
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0xc], ecx
jmp 0x5a2de9
cmp dword [ebp - 0x14], 4
jae 0x5a2de2
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
and eax, 0xffff7fff
mov dword [ebp - 0xc], eax
jmp 0x5a2de9
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x14], 6
jb 0x5a2df8
mov dword [ebp - 0x10], 7
jmp 0x5a2e44
cmp dword [ebp - 0x14], 5
jne 0x5a2e07
mov dword [ebp - 0x10], 6
jmp 0x5a2e44
cmp dword [ebp - 0x14], 4
jne 0x5a2e1c
cmp dword [ebp - 8], 0
jne 0x5a2e1c
mov dword [ebp - 0x10], 4
jmp 0x5a2e44
cmp dword [ebp - 0x14], 3
jne 0x5a2e31
cmp dword [ebp - 8], 0
jne 0x5a2e31
mov dword [ebp - 0x10], 5
jmp 0x5a2e44
cmp dword [ebp - 0x14], 4
jne 0x5a2e44
cmp dword [ebp - 8], 1
jne 0x5a2e44
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x5a2e50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x6a5f90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00532e90
add esp, 0xc
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x12c], 0
cmp dword [0x6aecd4], 0
jne 0x5a3095
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.TerminalServerFlexlmMutex
push 0x69a900
lea ecx, [ebp - 0x110]
push ecx
call fcn.00536483
add esp, 0x10
lea edx, [ebp - 0x110]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x5a2f14
xor eax, eax
jmp 0x5a30a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5a2f30
push 0xffffffffffffffff
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x6aecd4], 0
jne 0x5a307b
call fcn.005a2d60
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x130]
sub edx, 4
mov dword [ebp - 0x130], edx
cmp dword [ebp - 0x130], 3
ja case.default.0x5a2f76
mov eax, dword [ebp - 0x130]
jmp dword [eax*4 + 0x5a30b0]
push 0x69a908
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x6aece8], eax
cmp dword [0x6aece8], 0
je 0x5a3034
push str.WTSEnumerateSessionsA
mov ecx, dword [0x6aece8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6aecdc], eax
cmp dword [0x6aecdc], 0
je 0x5a3034
push 0x69a930
mov edx, dword [0x6aece8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6aece0], eax
cmp dword [0x6aece0], 0
je 0x5a3034
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x128]
push ecx
push 1
push 0
push 0
call dword [0x6aecdc]
cmp dword [ebp - 0x128], 0
je 0x5a300e
mov edx, dword [ebp - 0x128]
cmp dword [edx + 8], 0
jne 0x5a301d
mov eax, dword [ebp - 0x128]
push eax
call dword [0x6aece0]
jmp 0x5a3034
mov ecx, dword [ebp - 0x128]
push ecx
call dword [0x6aece0]
mov dword [0x6aecd8], 1
mov edx, dword [0x6aece8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x6aece8], 0
jmp case.default.0x5a2f76
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je case.default.0x5a2f76
mov dword [0x6aecd8], 1
mov dword [0x6aecd4], 1
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x6aecd8], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005327db
mov esp, ebp
pop ebp
ret
Function at 0x5a34e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6a5f90]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6aecf0], 0
jne 0x5a3583
push 0
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.005290a0
add esp, 0x10
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5a3579
cmp dword [ebp - 0x90], 1
jne 0x5a3548
mov dword [0x6aecec], 2
jmp 0x5a3579
cmp dword [ebp - 0x90], 2
je 0x5a355a
cmp dword [ebp - 0x9c], 6
jb 0x5a3566
mov dword [0x6aecec], 1
jmp 0x5a3579
cmp dword [ebp - 0x90], 0
jne 0x5a3579
mov dword [0x6aecec], 3
mov dword [0x6aecf0], 1
mov eax, dword [0x6aecec]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005327db
mov esp, ebp
pop ebp
ret

Function at 0x5a4220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x5a4261
cmp dword [ebp + 0xc], 0
je 0x5a4261
cmp dword [ebp + 0x10], 0
je 0x5a4261
cmp dword [ebp + 0x14], 0
jne 0x5a4266
jmp 0x5a4339
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a35a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a4339
cmp dword [ebp - 0x14], 0
je 0x5a4339
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a4339
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.0053568a
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a4339
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a4339
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x5a430f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x5a4324
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005a3ab0
add esp, 8
mov dword [ebp - 8], eax
jmp 0x5a4339
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
cmp dword [ebp - 4], 0
je 0x5a4352
mov eax, dword [ebp - 4]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0x5a436b
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x5a4380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x5a43c1
cmp dword [ebp + 0xc], 0
je 0x5a43c1
cmp dword [ebp + 0x10], 0
je 0x5a43c1
cmp dword [ebp + 0x14], 0
jne 0x5a43c6
jmp 0x5a4499
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005a38a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a4499
cmp dword [ebp - 0x14], 0
je 0x5a4499
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a4499
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.0053568a
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a4499
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a4499
mov edx, dword [ebp + 0x10]
cmp dword [edx], 1
je 0x5a446f
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x5a4484
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005a3950
add esp, 8
mov dword [ebp - 4], eax
jmp 0x5a4499
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
cmp dword [ebp - 8], 0
je 0x5a44b2
mov eax, dword [ebp - 8]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x5a44cb
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5a4540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x5a457a
cmp dword [ebp + 0xc], 0
je 0x5a457a
cmp dword [ebp + 0x14], 0
je 0x5a457a
cmp dword [ebp + 0x18], 0
jne 0x5a457f
jmp 0x5a4601
cmp dword [ebp + 0x10], 1
je 0x5a458b
cmp dword [ebp + 0x10], 2
jne 0x5a45e2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005a35a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5a45a6
jmp 0x5a4601
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.005a35a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5a45c1
jmp 0x5a4601
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
jmp 0x5a4601
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x5a461a
mov edx, dword [ebp - 4]
push edx
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x5a4633
mov eax, dword [ebp - 8]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5a4640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x5a467a
cmp dword [ebp + 0xc], 0
je 0x5a467a
cmp dword [ebp + 0x14], 0
je 0x5a467a
cmp dword [ebp + 0x18], 0
jne 0x5a467f
jmp 0x5a4709
cmp dword [ebp + 0x10], 1
je 0x5a468b
cmp dword [ebp + 0x10], 2
jne 0x5a46ea
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005a38a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5a46a6
jmp 0x5a4709
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.005a38a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5a46c1
jmp 0x5a4709
mov ecx, dword [ebp - 0x10]
shl ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
jmp 0x5a4709
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
je 0x5a4722
mov eax, dword [ebp - 8]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x5a473b
mov ecx, dword [ebp - 4]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5a47a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x5a47da
cmp dword [ebp + 8], 0
jne 0x5a47da
jmp 0x5a487e
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp dword [ebp - 8], 0
je 0x5a487e
mov edx, dword [ebp - 8]
push edx
call fcn.0053568a
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5a487e
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5a487e
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005a3ab0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a487e
cmp dword [ebp + 0xc], 0
je 0x5a4878
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jle 0x5a484e
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp - 8], edx
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.005290a0
add esp, 0x10
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00528d90
add esp, 0x10
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0xc], 0
je 0x5a4897
mov eax, dword [ebp - 0xc]
push eax
call fcn.005844f0
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x5a48b0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005844f0
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret