joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421e60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x425af0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d3c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea edi, [esi + 4]
mov ecx, edi
call dword [0x42f628]
lea ebx, [esi + 0x14]
mov ecx, ebx
mov dword [esp + 0x20], 0
call dword [0x42f628]
lea ebp, [esi + 0x24]
mov ecx, ebp
call dword [0x42f628]
lea ecx, [esi + 0x2c]
call dword [0x42f628]
mov dword [esi], 0x9a
mov eax, dword [0x43d3a0]
mov dword [esi + 8], eax
mov ecx, dword [0x43d3a4]
xor eax, eax
mov dword [esi + 0xc], ecx
push 0x431e5c
mov ecx, ebp
mov byte [esp + 0x24], 3
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
call dword [0x42f208]
mov ecx, esi
call fcn.00421bb0
push 0x431e7c
mov ecx, ebx
call dword [0x42f208]
push 0x431e7c
mov ecx, edi
call dword [0x42f208]
push 0x431e7c
lea ecx, [esi + 0x2c]
call dword [0x42f208]
or eax, 0xffffffff
or ecx, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], 0xcdfe60
mov dword [esi + 0x34], ecx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40506b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x43ddf6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jne 0x405092
push dword [ebp + 8]
call fcn.00425812
add esp, 0x10
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x405091

Function at 0x405084
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x43ddf6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jne 0x405092
push dword [ebp + 8]
call fcn.00425812
add esp, 0x10
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x405091
Function at 0x40a000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4c7480]
mov dword [esp + 4], ecx
push esi
push edi
test al, 1

Function at 0x40a019
Capabilities:
Resolve function by parsing pe exports

Disassembly:
je 0x40b536
mov edi, dword [ebp + 0x10]
xor eax, eax
push 8
mov word [esp + 0x5c], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], 1
call fcn.00420ff6
mov edx, eax
mov dword [esp + 0x20], eax
add esp, 4
test edx, edx
je 0x40b68a
mov dword [edx], 0x14
mov esi, dword [ebp + 0xc]
mov dword [edx + 4], 0
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [esp + 0x50], 1
mov dword [esp + 0x10], 0x17
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
movsx eax, word [eax + 0xa]
mov dword [esp + 0x5c], eax
jmp 0x40a10a
or eax, 1
mov dword [0x4c7488], 0
push 0x43b83c
mov dword [0x4c7480], eax
mov dword [0x4c7490], 0
mov dword [0x4c7494], 1
call fcn.00422f80
add esp, 4
jmp 0x40a01f
xor edx, edx
mov dword [esp + 0x1c], edx
jmp 0x40a064
Function at 0x40b580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [esi + 1], al
add byte [ebx + 0x4c8d0c75], cl
and al, 0x20

Function at 0x40fe40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
sub esp, 0x10
adc byte [ecx - 0x74d7dba4], cl
inc esi
add al, 0xc7
inc esp
and al, 0x30
add eax, dword [eax]
add byte [eax], al
mov edx, dword [edi]
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
lea ecx, [ebx + 0x134]
mov dword [edx + 0xc], eax
inc dword [eax]
call fcn.004082e0
mov dword [esp + 0x44], eax
test eax, eax
je 0x444b47
mov eax, dword [ebx + 0x148]
xor ecx, ecx
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [edi]
mov dword [esp + 0x70], eax
inc ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x7c], 1
mov dword [esp + 0x4c], 0x48fb84
mov dword [esp + 0x50], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0x491cc0
mov dword [edi], ecx
cmp word [eax + 8], 0x47
jne 0x444b5f
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ecx
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x18], ecx
push eax
push edi
push esi
mov ecx, ebx
call fcn.0040f394
test eax, eax
js 0x444fc2
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x10]
cmp eax, dword [0x4c72a0]
jg 0x41082c
test eax, eax
jle 0x41082c
shl eax, 4
add eax, dword [0x4c72dc]
mov edi, dword [eax + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
cmp word [eax + 8], 0
jne 0x40ff78
cmp dword [eax], 0x2b
je 0x444b71
mov edx, 3
xor ebx, ebx
mov esi, edx
cmp dword [ecx + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jg 0x410500
xor eax, eax
jmp 0x40ff5f
jmp 0x101bfdb1
ud0
call 0xb7b5bb00
xlatb
ud0
Function at 0x40fe59
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
sub esp, 0x10
adc byte [ecx - 0x74d7dba4], cl
inc esi
add al, 0xc7
inc esp
and al, 0x30
add eax, dword [eax]
add byte [eax], al
mov edx, dword [edi]
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
lea ecx, [ebx + 0x134]
mov dword [edx + 0xc], eax
inc dword [eax]
call fcn.004082e0
mov dword [esp + 0x44], eax
test eax, eax
je 0x444b47
mov eax, dword [ebx + 0x148]
xor ecx, ecx
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [edi]
mov dword [esp + 0x70], eax
inc ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x7c], 1
mov dword [esp + 0x4c], 0x48fb84
mov dword [esp + 0x50], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0x491cc0
mov dword [edi], ecx
cmp word [eax + 8], 0x47
jne 0x444b5f
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ecx
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x18], ecx
push eax
push edi
push esi
mov ecx, ebx
call fcn.0040f394
test eax, eax
js 0x444fc2
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x10]
cmp eax, dword [0x4c72a0]
jg 0x41082c
test eax, eax
jle 0x41082c
shl eax, 4
add eax, dword [0x4c72dc]
mov edi, dword [eax + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
cmp word [eax + 8], 0
jne 0x40ff78
cmp dword [eax], 0x2b
je 0x444b71
mov edx, 3
xor ebx, ebx
mov esi, edx
cmp dword [ecx + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jg 0x410500
xor eax, eax
jmp 0x40ff5f
jmp 0x101bfdb1
ud0
call 0xb7b5bb00
xlatb
ud0
Function at 0x415e58
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x415e80
push cs
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x415e72
pop edi
pop esi
pop ebp
ret 4
Function at 0x45fcb1
Capabilities:
Encode data using xor

Disassembly:
mov dword [esi + edi], eax
test ecx, ecx
jle 0x45fcc1
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x45fcb8
add eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x468a8a
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4c4190]
jne 0x468a9c
call 0x11eaf2c
mov eax, dword [0x4c7ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c7ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffd8df8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x468adf
fadd qword [0x4bbac8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4bbaa0]
mov esp, ebp
pop ebp
ret

Function at 0x469393
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xe8004bba
dec ebp
and bh, ch
call [esi + 0x3d]
add byte [ecx], al
push eax
push 0xffb8057c
inc dword [eax]
add al, dl
or byte [eax], al

Function at 0x46a0ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x205c
call fcn.00431ba9
cmp byte [0x894c6280], 6
push ebx
push esi
push edi
mov edi, ecx
jne 0x46a2e5
cmp dword [edi + 0xf8], 1
je 0x11ea2e5
mov esi, dword [0x48f604]
lea eax, [ebp - 0x272058]
mov ebx, 0x6890fff
push ebx
push eax
push 0x66
push dword [0x4c6278]
call esi
lea eax, [ebp - 0x272058]
push eax
lea ecx, [ebp - 0x54]
call 0x69407f5a
push ebx
lea eax, [ebp - 0x272058]
push eax
push dword [ebp + 8]
push dword [0x4c6278]
call esi
lea eax, [ebp - 0x272058]
push eax
lea ecx, [ebp - 0x44]
call 0x69407f5a
add edx, dword [edi + 0x200fff4]
push edx
call fcn.0040715c
push edx
mov ebx, eax
call fcn.0045ff8e
push edx
mov dword [ebp - 4], eax
stc
call dword [edx - 0x75]
fsubr st(0)
xor bl, byte [esi - 1]
call dword [edx - 0x77]
inc ebp
cld
call 0x1effc0
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.004077e0
lea eax, [ebp - 0x34]
push eax
push esi
call 0x1efff2
test byte [ecx - 0x73], dh
test dword [eax + 0x74ffd8df], ebp
adc al, 0xff
jne 0x46a152
mov esi, dword [ebp - 4]
push esi
push 0x4b9e70
push eax
call fcn.004238f1
jmp 0x46a1b1
inc ebp
les edx, [eax]
lea eax, [ebp - 0x272058]
lea ecx, [ebp - 0x14]
push eax
call fcn.00407f5a
dec esp
invalid
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x48e06f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
inc ebp
call 0xfad43867
movzx ebx, word [esi + 2]
add esi, 4
movzx eax, word [esi]
add byte [ebx + 0x5d6a5866], al
pop edx
cmp ax, 0x5c
jne 0x48e099
cmp word [esi + 2], dx
jne 0x48e099
add esi, 2
jmp 0x48e0d2
cmp ax, dx
je 0x48e0dd
cmp ax, bx
jne 0x48e0a9
fdivr st(7)
Function at 0x404a80
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], 0
test eax, eax
jne 0x404a9e
mov eax, 0x414160
lea ecx, [esp + 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x404abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
push esi
call fcn.0040790b
mov edi, eax
mov eax, dword [ebx + 4]
add esp, 4
test eax, eax
jne 0x404ad5
mov eax, 0x414160
push edi
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x404af2
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0x41798c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404b22
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor esi, esi
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 4], eax
jmp 0x404b2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x404b37
push edi
call fcn.00404d8a
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x40d279
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418710
cmp edx, dword [eax]
je 0x40d29b
add eax, 8
inc ecx
cmp eax, 0x4187a0
jl 0x40d28c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418710]
jne 0x40d3c9
mov eax, dword [0x419934]
cmp eax, 1
je 0x40d3a3
test eax, eax
jne 0x40d2cc
cmp dword [0x417e24], 1
je 0x40d3a3
cmp edx, 0xfc
je 0x40d3c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d303
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b7d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004094f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d346
lea eax, [ebp - 0x1a4]
push eax
call fcn.004094f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414a3c
push edi
call fcn.0040f720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b7d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b7e0
lea eax, [ebp - 0xa0]
push 0x414a1c
push eax
call fcn.0040b7e0
push dword [esi + 0x418714]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b7e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411647
add esp, 0x2c
pop edi
jmp 0x40d3c9
lea eax, [ebp + 8]
lea esi, [esi + 0x418714]
push 0
push eax
push dword [esi]
call fcn.004094f0
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 0x401010
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46f20c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x110
lea eax, [ebp - 0x114]
xor bl, bl
push 0
push eax
call fcn.0040ae60
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40107c
cmp dword [ebp - 0x114], 6
ja 0x40106b
jne 0x40107c
cmp dword [ebp - 0x110], 0
jbe 0x40107c
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409118
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00409118
mov esp, ebp
pop ebp
ret

Function at 0x401390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x101
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401400
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EulaAccepted
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x401400
cmp dword [ebp - 8], 0
je 0x401400
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46f20c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push str.SoftwareMicrosoftwindows_ntcurrentversion
xor esi, esi
mov dword [ebp - 0x214], 0x208
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4015c0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push 0x4606a4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4015b4
lea eax, [ebp - 0x20c]
push eax
push str.iotuap
call fcn.004152bb
add esp, 8
mov ecx, 1
test eax, eax
cmove esi, ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409118
mov esp, ebp
pop ebp
ret
Function at 0x4015e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
xor esi, esi
mov dword [ebp - 0xc], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x401652
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.NanoServer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401649
cmp dword [ebp - 8], 4
jne 0x401649
mov eax, 1
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4018a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test edi, edi
je 0x401950
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401950
push esi
xor esi, esi
cmp dword [edi], ebx
jle 0x40192e
nop dword [eax]
nop dword [eax + eax]
push 0x460614
push dword [eax + esi*4]
call fcn.004152bb
add esp, 8
test eax, eax
je 0x401907
mov eax, dword [ebp + 0x10]
push str._accepteula
push dword [eax + esi*4]
call fcn.004152bb
add esp, 8
test eax, eax
je 0x401907
mov eax, dword [ebp + 0x10]
inc esi
xor ebx, ebx
cmp esi, dword [edi]
jl 0x4018d0
jmp 0x40192e
mov edx, dword [edi]
mov ebx, 1
lea eax, [edx - 1]
cmp esi, eax
jge 0x401929
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + esi*4 + 4]
mov dword [ecx + esi*4], eax
inc esi
mov edx, dword [edi]
lea eax, [edx - 1]
cmp esi, eax
jl 0x401918
lea eax, [edx - 1]
mov dword [edi], eax
push ebx
push dword [ebp + 8]
call fcn.00401a00
add esp, 8
mov ecx, 1
test eax, eax
cmovne ebx, ecx
xor eax, eax
pop esi
test ebx, ebx
pop edi
setne al
pop ebx
pop ebp
ret
pop edi
pop ebx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
pop ebp
jmp fcn.00401cf0

Function at 0x4019d0
Capabilities:
Terminate process

Disassembly:
push dword [0x46f0c4]
push 0x460784
call fcn.00401ea0
push str.This_is_the_first_run_of_this_program._You_must_accept_EULA_to_continue._n
call fcn.00401ea0
push str.Use__accepteula_to_accept_EULA._n_n
call fcn.00401ea0
add esp, 0x10
push 1
call fcn.0041584d
int3
Function at 0x401ed0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x46f20c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
push 0
push eax
call fcn.0040ae60
push 0x208
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x618], 0x400
push 0
push eax
call fcn.0040ae60
add esp, 0x18
mov dword [ebp - 0x614], 0x104
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x402041
cmp dword [ebp - 0x61c], 3
jne 0x402041
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x402041
push edi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov edi, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
movzx esi, byte [eax]
lea eax, [ebp - 0x404]
lea ebx, [esi - 1]
push ebx
push eax
call edi
cmp dword [eax], 0xffffffff
cmovne ebx, esi
mov dword [ebp - 0x610], ebx
inc bl
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
push eax
call fcn.00409126
add esp, 4
mov dword [ebp - 0x620], eax
lea eax, [ebp - 0x404]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov ebx, dword [ebp - 0x620]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSid]
mov eax, dword [ebp - 0x610]
xor esi, esi
test eax, eax
je 0x402019
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x404]
push eax
call edi
push esi
push ebx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, dword [edi]
inc esi
mov edi, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov dword [eax], ecx
mov eax, dword [ebp - 0x610]
cmp esi, eax
jb 0x401ff0
push eax
push ebx
call edi
push ebx
mov dword [eax], 0x200
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
pop edi
test eax, eax
je 0x402041
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409118
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00409118
mov esp, ebp
pop ebp
ret

Function at 0x402060
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00401ed0
add esp, 4
test eax, eax
jne 0x402076
xor al, al
pop ebp
ret
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00402080
Function at 0x402220
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x46fe80], 0
jne 0x402262
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push 0
call sub.NETAPI32.dll_NetWkstaUserGetInfo
mov eax, dword [ebp - 4]
push 0x46fe84
push dword [eax + 4]
push 0
call sub.NETAPI32.dll_NetGetDCName
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
mov byte [0x46fe80], 1
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
or ecx, 1
mov dword [edx], ecx
mov eax, dword [0x46fe7c]
mov dword [edx + 4], eax
mov eax, dword [0x46fe84]
test eax, eax
jne 0x402285
lea eax, [esi + 0x18]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edx + 0x10], eax
cmp dword [esi + 0x10], 0
pop esi
je 0x4022a3
or ecx, 0x800
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4041f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x46f20c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
lea eax, [ebp - 0x54]
push edi
mov edi, dword [ebp + 8]
push eax
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x54]
sub dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x50]
sub dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
push eax
push str.SoftwareSysinternalsShareEnum
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x54]
push 4
push eax
push 4
push 0
push str.xywh
push dword [ebp - 0x58]
call ebx
push 4
lea eax, [ebp - 0x50]
push eax
push 4
push 0
push 0x460cf4
push dword [ebp - 0x58]
call ebx
push 4
lea eax, [ebp - 0x4c]
push eax
push 4
push 0
push 0x460cf8
push dword [ebp - 0x58]
call ebx
push 4
lea eax, [ebp - 0x48]
push eax
push 4
push 0
push 0x460cfc
push dword [ebp - 0x58]
call ebx
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xffffffff
je 0x4042b6
mov eax, dword [ebp - 0x50]
cmp eax, 0xffffffff
je 0x4042b6
push 4
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push eax
push ecx
push 0
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor esi, esi
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x44]
push 0x460d00
push eax
call fcn.004044a0
add esp, 0xc
push 0
push esi
push 0x101d
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x58]
call ebx
inc esi
cmp esi, 8
jl 0x4042c0
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409118
mov esp, ebp
pop ebp
ret