joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4264ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4264e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004089cc
jmp 0x4264ee
mov eax, ebx
mov edx, esi
call fcn.00408c24
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4264f8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x42651a
movzx eax, word [esp]
jmp 0x42651c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42756c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x427691
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00427374
mov esi, eax
mov eax, dword [0x803018]
cmp byte [eax], 0
je 0x427639
mov eax, dword [0x802a28]
call fcn.00405d38
call fcn.00405614
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42753c]
call fcn.0040b6bc
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4276ac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x427675
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x802960]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x807634]
call fcn.0040badc
push eax
call fcn.0041323c
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call fcn.0041325c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427698
lea eax, [ebp - 4]
mov edx, dword [0x42753c]
call fcn.0040b7e0
ret

Function at 0x472b70
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x472bbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0047261c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472bd7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x472be0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0047261c
dec esi
jne 0x472c02
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4752d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x809ff4
cmp dword [edi], 0
jne 0x475350
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x809ff0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x7f77a4
mov ecx, 2
call fcn.004056e0
mov edx, 0x4752ac
lea eax, [esi + 5]
call fcn.004752cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004752cc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x475325
mov dword [0x809ff0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4c0988
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4c0990
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4de9f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040990c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004de4cc
test al, al
jne 0x4dea59
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x803338]
mov dl, 1
mov eax, dword [0x4dd200]
call fcn.004277d4
call fcn.00407f04
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004de434
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e7534
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4e753a
ret

Function at 0x502ca4
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x7fa858
test edx, edx
jne 0x502cc3
xor eax, eax
jmp 0x502de1
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x502ce0
push esi
push edx
push eax
call fcn.00502e04
add esp, 0xc
jmp 0x502de1
push esi
push edx
push eax
call fcn.005030c4
add esp, 0xc
jmp 0x502de1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5e13fc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5e1442
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.005e1350
mov eax, dword [ebp - 4]
call fcn.0040990c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e1449
lea eax, [ebp - 4]
call fcn.00408844
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040990c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5e1469
test al, 0x10
je 0x5e146d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040990c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5e14b6
test al, 0x10
je 0x5e14b6
test ah, 4
je 0x5e14ba
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x5e14c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00408928
xor eax, eax
push ebp
push 0x5e15b9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00408e18
mov ebx, pe_nt_image_headers32
mov eax, edi
mov ecx, ebx
xor edx, edx
call fcn.004089cc
cmp dword [ebp + 0xc], 0
je 0x5e153f
mov eax, dword [ebp + 0xc]
call fcn.0040990c
push eax
push ebx
mov eax, edi
call fcn.00408e08
push eax
mov eax, dword [ebp - 4]
call fcn.0040990c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040990c
push eax
mov eax, dword [ebp - 8]
call fcn.0040990c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov esi, eax
jmp 0x5e156a
push ebx
mov eax, edi
call fcn.00408e08
push eax
mov eax, dword [ebp - 4]
call fcn.0040990c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040990c
push eax
mov eax, dword [ebp - 8]
call fcn.0040990c
push eax
call sub.kernel32.dll_GetProfileStringW
mov esi, eax
test esi, esi
je 0x5e1580
mov eax, dword [edi]
call fcn.0040990c
call fcn.00408d6c
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
mov eax, ebx
sub eax, 8
cmp esi, eax
jl 0x5e1591
cmp ebx, 0x10000
jl 0x5e159c
mov eax, edi
mov edx, esi
call fcn.00409a9c
jmp 0x5e15a3
add ebx, ebx
jmp 0x5e14f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e15c0
lea eax, [ebp - 4]
call fcn.00408844
ret
Function at 0x5e168c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov word [ebp - 0x10], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x5e16d6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0040990c
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0040990c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040990c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x5e16fa
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0040990c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040990c
push eax
call sub.kernel32.dll_GetProfileStringW
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5e176c
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov word [esp], 0
test ebx, ebx
je 0x5e17aa
mov eax, ebx
call fcn.0040990c
push eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
push 0x5e17dc
push 0
mov eax, esi
call fcn.0040990c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x5e17c8
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push 0x5e17dc
push 0
mov eax, esi
call fcn.0040990c
push eax
call sub.kernel32.dll_GetProfileStringW
cmp word [esp], 0
sete al
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5e1ba4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5e1c39
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x5e1bef
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.004089cc
jmp 0x5e1c23
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x5e1c06
lea eax, [ebp - 4]
call fcn.00408844
jmp 0x5e1c19
lea edx, [ebp - 4]
mov eax, ebx
call fcn.005e19f4
mov ebx, eax
test esi, esi
je 0x5e1c19
dec esi
jmp 0x5e1bf6
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00408c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e1c40
lea eax, [ebp - 4]
call fcn.00408844
ret

Function at 0x5e2024
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0042292c
add esp, 0x208
pop ebx
ret

Function at 0x5e2050
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0042292c
add esp, 0x208
pop ebx
ret
Function at 0x5e2124
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5e21a1
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x5e217f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp ax, 6
jb 0x5e217f
lea eax, [ebp - 8]
call fcn.005e2050
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.005e0b78
lea eax, [ebp - 4]
mov edx, 0x5e21bc
call fcn.00409b1c
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.005e0f9c
jmp 0x5e2186
mov eax, esi
call fcn.00408844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e21a8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004088a4
ret

Function at 0x5e23e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5e251e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5e2508
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x5e2445
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x5e2508
cmp dword [ebp - 0x14], 0
jne 0x5e245a
mov eax, dword [ebp - 0xc]
call fcn.00408844
mov bl, 1
jmp 0x5e2508
cmp dword [ebp - 0x14], 0x70000000
jb 0x5e2468
call fcn.004276d0
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.004089cc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00408e08
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x5e240e
test eax, eax
jne 0x5e2508
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x5e24b6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x5e2508
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x5e24be
dec esi
test esi, esi
je 0x5e24cd
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x5e24bd
cmp dword [ebp - 0x10], 7
jne 0x5e24d8
test esi, esi
je 0x5e24d8
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00409a9c
cmp dword [ebp - 0x10], 7
jne 0x5e24fb
test esi, esi
je 0x5e24fb
lea eax, [ebp - 4]
call fcn.00408e08
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408c24
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2525
lea eax, [ebp - 4]
call fcn.00408844
ret
Function at 0x5e2548
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov ebp, eax
push 0
push 0
push 0
push 0
push esi
push ebp
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
sete bl
test bl, bl
je 0x5e25c4
test esi, esi
je 0x5e2575
cmp word [esi], 0
jne 0x5e25c4
call fcn.004283ec
cmp eax, 2
je 0x5e25c4
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 2
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call sub.advapi32.dll_RegEnumValueW
mov edi, eax
test edi, edi
je 0x5e25b2
cmp edi, 0xea
jne 0x5e25c4
test edi, edi
jne 0x5e25c1
cmp word [esp], 0
jne 0x5e25c1
mov bl, 1
jmp 0x5e25c4
inc esi
jmp 0x5e2583
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5e2630
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x5e2644
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
pop esi
pop ebx
ret
cmp dword [0x80a830], 0
jne 0x5e2667
push 0x5e268c
push 0x5e26ac
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00412530
mov dword [0x80a830], eax
cmp dword [0x80a830], 0
je 0x5e2681
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x80a830]
jmp 0x5e2686
mov eax, 0x7f
pop esi
pop ebx
ret
Function at 0x5e26c8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x5e283b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x5e26fc
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x5e2706
mov ebx, 0x57
jmp 0x5e2825
call fcn.004283ec
cmp eax, 2
jne 0x5e2814
push 0
push 8
lea eax, [ebp - 0x14]
push eax
movzx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.005e2608
test eax, eax
jne 0x5e2814
xor eax, eax
push ebp
push 0x5e280d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.004089cc
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x5e2761
sub ebx, 4
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
call fcn.00408e08
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov esi, eax
cmp esi, 0xea
jne 0x5e27cc
mov edi, dword [ebp - 4]
test edi, edi
je 0x5e279c
sub edi, 4
mov edi, dword [edi]
cmp edi, 0x10000
jge 0x5e27f6
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5e27bb
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004089cc
jmp 0x5e2755
test esi, esi
jne 0x5e27f6
mov eax, dword [ebp - 4]
call fcn.0040990c
mov ecx, eax
movzx eax, byte [ebp - 5]
mov edx, dword [ebp - 0x14]
call fcn.005e26c8
test eax, eax
je 0x5e2755
inc dword [ebp - 0x18]
jmp 0x5e2755
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2814
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.005e2630
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2842
lea eax, [ebp - 4]
call fcn.00408844
ret
Function at 0x5e28d4
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov ebx, eax
call fcn.004283ec
cmp eax, 2
je 0x5e28f1
mov byte [ebp - 1], 1
jmp 0x5e2ac6
mov byte [ebp - 1], 0
mov eax, 0x7fd3c0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x5e2ac6
xor eax, eax
push ebp
push 0x5e2abf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp ax, 5
jb 0x5e295a
push 0x5e2ad0
push 0x5e2afc
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00412530
mov ebx, eax
test ebx, ebx
je 0x5e2981
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x5e2aa8
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x5e2aa8
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x5e29d2
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x5e29b3
call fcn.00407ff8
jmp 0x5e2ac6
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x5e29d2
call fcn.00407ff8
jmp 0x5e2ac6
xor eax, eax
push ebp
push 0x5e2aa1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x5e2a15
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x5e2a15
call fcn.00407ff8
call fcn.00407ff8
jmp 0x5e2ac6
mov eax, dword [ebp - 0x14]
call fcn.004054a0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x5e2a47
call fcn.00407ff8
call fcn.00407ff8
jmp 0x5e2ac6
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x5e2a82
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x5e2a7e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x5e2a7e
mov byte [ebp - 1], 1
jmp 0x5e2a82
inc ebx
dec esi
jne 0x5e2a54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2aa8
mov eax, dword [ebp - 0x18]
call fcn.004054bc
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2ac6
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5e3598
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5e3635
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004283ec
cmp eax, 2
jne 0x5e35db
push 1
mov eax, esi
call fcn.0040990c
push eax
mov eax, edi
call fcn.0040990c
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x5e361f
mov eax, esi
call fcn.0040990c
mov edx, eax
lea eax, [ebp - 4]
call fcn.00409970
mov eax, dword [ebp - 4]
call fcn.00421eac
mov ebx, eax
test bl, bl
jne 0x5e3604
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x5e361f
mov eax, esi
call fcn.0040990c
push eax
mov eax, edi
call fcn.0040990c
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e363c
lea eax, [ebp - 4]
call fcn.00408844
ret

Function at 0x5e5b4c
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x5e8fac
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x80a874
mov eax, esi
mov edx, 8
test al, 1
je 0x5e8fc8
shr eax, 1
xor eax, 0xedb88320
jmp 0x5e8fca
shr eax, 1
dec edx
jne 0x5e8fbb
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x5e8fb4
pop esi
ret

Function at 0x5e8fe0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x80a870], 0
jne 0x5e900a
call fcn.005e8fac
mov dword [esp], 0x80a870
mov edx, dword [esp]
mov eax, 1
lock xchg dword [edx], eax
mov eax, edi
test esi, esi
je 0x5e9034
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x80a874]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x5e9010
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5fc018
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
lea edi, [ebp - 0xd]
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x5fc1c8
inc esi

Function at 0x607460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x6074dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.005f3bac
mov eax, dword [ebp - 4]
call fcn.005f34f4
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x30]
mov ebx, dword [eax + 0xc]
dec ebx
cmp ebx, 0
jl 0x6074c4
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 4]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 8]
jne 0x6074be
mov eax, dword [esi]
mov edx, dword [ebp - 4]
call fcn.00409284
je 0x6074c7
dec ebx
cmp ebx, 0xffffffff
jne 0x6074a1
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6074e4
lea eax, [ebp - 4]
call fcn.00408868
ret