joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ef80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c8728
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [str.Assertion_failed:__s__file__s__line__d_n]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [str.Assertion_failed:__s__file__s__line__d_n]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x1003f0d4
cmp byte [ebx + 0x45], 0
je 0x1003f0d4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1003efe0
xor al, al
jmp 0x1003f0d6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x1003f020
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1003f061
dec eax
je 0x1003f065
sub eax, 2
je 0x1003f0bb
xor bl, bl
jmp 0x1003f0bd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x1003f09c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.1005c05d
add esp, 0x10
cmp esi, eax
jne 0x1003f05d
cmp byte [ebx + 0x45], 0
je 0x1003f0bb
test esi, esi
jne 0x1003f020
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.100357f0
jmp 0x1003f020
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x1003f0d0
push dword [esp + 0x18]
call fcn.10057943
add esp, 4
mov al, bl
jmp 0x1003f0d6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100585a6
mov esp, ebp
pop ebp
ret
Function at 0x10040270
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c88c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [str.Assertion_failed:__s__file__s__line__d_n]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [str.Assertion_failed:__s__file__s__line__d_n]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10006170
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.10040190
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x100402ed
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.10059dc5
cmp dword [esp + 0x24], 0x10
mov dword [esi], 0x100d5b50
jb 0x10040316
push dword [esp + 0x10]
call fcn.10057943
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], 0x100dcbe4
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
invalid
invalid
invalid

Function at 0x10042280
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x3e8
call fcn.10057d25
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100422a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pushal
mov eax, 1
xor edx, edx
xor ecx, ecx
cpuid
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
popal
mov esi, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push 0x100eb304
push esi
call dword [0x100ce460]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10042550
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c14
call fcn.10058a10
mov eax, dword [str.Assertion_failed:__s__file__s__line__d_n]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
jne 0x10042584
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100585a6
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [0x100ce160]
push esi
push edi
mov dword [ebp - 0x2c0c], 0
xor esi, esi
lea esp, [esp]
push esi
lea eax, [ebp - 0x104]
push 0x100eb2f0
push eax
call fcn.10042710
add esp, 0xc
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [0x100ce2d8]
mov edi, eax
cmp edi, 0xffffffff
je 0x100426b8
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c14], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.10058a40
add esp, 0xc
lea eax, [ebp - 0x2c14]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [0x100ce2dc]
test eax, eax
je 0x100426b5
push 0x3e7
lea eax, [ebp - 0x4eb]
push 0
push eax
call fcn.10058a40
mov ecx, dword [ebp - 0x2be4]
xor al, al
add esp, 0xc
mov byte [ebp - 0x4ec], al
test ecx, ecx
jle 0x10042691
lea eax, [ebp - 0x4ec]
push eax
push ecx
lea ecx, [ebp - 0x2bfc]
call fcn.100423f0
mov al, byte [ebp - 0x4ec]
movsx eax, al
push eax
call fcn.1005a4e1
add esp, 4
test eax, eax
jne 0x100426c4
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.1005a4e1
add esp, 4
test eax, eax
jne 0x100426c4
push edi
call ebx
inc esi
cmp esi, 0x10
jl 0x100425a0
jmp 0x100426eb
lea eax, [ebp - 0x4ec]
push eax
push 0x3e9
push dword [ebp - 0x2c10]
call fcn.1005bb3f
add esp, 0xc
mov dword [ebp - 0x2c0c], 1
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c0c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100585a6
mov esp, ebp
pop ebp
ret 4
Function at 0x10045c00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xor eax, eax
push ebx
push esi
push edi
jmp 0x10045c10
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x101811a0], ecx
inc eax
cmp eax, 0x100
jb 0x10045c10
cmp eax, 0x800
jae 0x10045ce3
lea esp, [esp]
mov edx, dword [eax*4 + 0x10180da0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x101811a0]
mov dword [eax*4 + 0x101811a0], edx
inc eax
cmp eax, 0x800
jb 0x10045cc0
mov dword [0x1017f434], 0x10046930
mov dword [ebp - 4], 0x40000
pushfd
pop eax
mov edx, eax
xor eax, dword [ebp - 4]
push eax
popfd
pushfd
pop eax
xor eax, edx
push edx
popfd
and dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10045e00
mov dword [ebp - 8], 0x200000
pushfd
pop eax
mov edx, eax
xor eax, dword [ebp - 8]
push eax
popfd
pushfd
pop eax
xor eax, edx
push edx
popfd
and dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10045e00
lea eax, [ebp - 0x20]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
call fcn.100469e0
add esp, 0xc
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x18]
mov ecx, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100469e0
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov esi, edi
xor ecx, ecx
shr esi, 8
mov eax, 0x10178308
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [ebp - 0x24]
cmp dword [eax - 8], ebx
jne 0x10045d9f
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x1c]
jne 0x10045d9f
cmp dword [eax], ebx
je 0x10045dae
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x10045d88
or ecx, 0xffffffff
sub ecx, 0
je 0x10045de7
dec ecx
je 0x10045dd6
dec ecx
jne 0x10045e00
cmp esi, 6
jb 0x10045e00
jne 0x10045df6
cmp edi, 0xf
jb 0x10045e00
mov dword [0x1017f434], 0x100469d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x10045e00
jne 0x10045df6
cmp edi, 6
jb 0x10045e00
cmp edi, 0xa
jmp 0x10045df4
cmp esi, 6
jb 0x10045e00
jne 0x10045df6
cmp edi, 0x100c
je 0x10045e00
mov dword [0x1017f434], 0x100469d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10046f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x10046f20
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x10046f49
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x10046f46
inc esi
cmp esi, edx
jb 0x10046f37
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x10047051
cmp ecx, 3
jbe 0x10046f62
xor eax, eax
jmp 0x10046fa0
dec ecx
shl eax, cl
and eax, 7
je 0x10046fa0
movzx ecx, byte [eax + 0x100e5768]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x100e0818], 0
mov cl, byte [edx + 4]
je 0x10046f8a
test cl, cl
je 0x10046f8a
cmp cl, 0xff
jne 0x10046f9d
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x10046f30
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x10046fc2
cmp cl, 0xff
je 0x10046fc2
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x10046f30
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x1004701e
movzx edx, byte [eax + 0x100e5768]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x1004700a
cmp dl, 0xff
jne 0x1004701e
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x10046fe0
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x10046f30
pop esi
pop ebx
cmp ecx, 3
jbe 0x10047066
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1007d6a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c98e1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [str.Assertion_failed:__s__file__s__line__d_n]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x38]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.10085590
mov dword [edi + 0x38], eax
lea ecx, [edi + 0x40]
mov dword [ebp - 4], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.1007c060
mov dword [edi + 0x40], eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 1
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
call fcn.100b23f0
mov dword [edi + 0x48], eax
mov eax, edi
mov byte [ebp - 4], 2
lea ecx, [edi + 0x38]
mov dword [eax + 0x50], 0
call fcn.10085600
lea ecx, [edi + 0x40]
call fcn.10085600
mov eax, dword [edi + 0x48]
lea ecx, [edi + 0x48]
push dword [eax + 4]
call fcn.100b24a0
mov eax, dword [edi + 0x48]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x48]
mov dword [eax], eax
mov eax, dword [edi + 0x48]
mov dword [eax + 8], eax
mov dword [edi + 0x4c], 0
call fcn.10087bc0
mov ecx, edi
mov dword [ecx + 0x28], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100b7f40
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
add al, 0xe0
popfd
mov dword [esi + 0x50006a28], 0x462c86c7
cmp al, 7
loopne 0x100b7e65
add eax, 0xb61e800
cli
dec dword [ebx + 0x3c460886]
pop es
pop ss
les ecx, [ecx + ecx*4]
xchg byte [esi + eax*2], cl
cmp al, 7
mov eax, esi
add bl, al
int3
or al, 0x46
cmp al, 7
loopne 0x100b7eba
add eax, 0x1086c700
inc esi
cmp al, 7
loopne 0x100b7ec4
add eax, 0x7ec35e00
jecxz 0x100b7f29
add al, 0
push ebp
mov ebp, esp
ret 0xc08
or al, 0x46
cmp al, 7
sub eax, dword [ebx + 0x73c4608]
sar eax, 2
cmp ecx, eax
jge 0x100b7fba
mov eax, dword [ebx + 0x73c4608]
push esi
lea esi, [eax + ecx*4]
push edi
mov edi, dword [esi]
test edi, edi
je 0x100b7f8e
cmp dword [edi + 0x14], 8
jb 0x100b7f72
push dword [edi]
call 0xe5057933
invalid
mov ecx, dword [ebx + 0x71447c7]
loopne 0x100b7f17
add eax, 0xc71047c7
xchg byte [eax + ebx], dl
push edi
mov word [edi], ax
call 0xe5057933
invalid
mov eax, dword [ebx + 0x73c460c]
lea ecx, [esi + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push esi
call 0xe5059480
invalid
xor eax, eax
pop ebx
adc eax, 0x8c000880
mov word [esp + ecx*4 - 0x33737374], cs
int3
Function at 0x404945
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
mov eax, dword [0x413140]
xor eax, esp
mov dword [esp + 0x460], eax
push esi
lea eax, [esp + 0x258]
push eax
xor eax, eax
push eax
push eax
push 0x1c
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x4049ce
push 0x4029a0
mov edx, 0x104
lea ecx, [esp + 0x25c]
call fcn.00404e60
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4049b4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4049ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4049ce
mov ecx, 0x402940
call fcn.004049e9
mov esi, 0x80070005
mov ecx, dword [esp + 0x464]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004106d0
mov esp, ebp
pop ebp
ret
Function at 0x405ef3
Capabilities:
Create process on windows

Disassembly:
push 0xfac
mov eax, 0x4112ef
call fcn.00410c01
mov esi, ecx
call fcn.00405fd8
test eax, eax
jns 0x405fc1
mov ecx, dword [esi + 0xa0]
xor edi, edi
mov dword [ebp - 0xfb4], edi
mov dword [ebp - 4], edi
mov eax, edi
mov dword [ebp - 0xfb8], eax
test ecx, ecx
je 0x405f4f
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [ebp - 0xfb8]
push eax
push 0x402df4
push ecx
mov ecx, esi
call dword [0x414398]
call esi
mov eax, dword [ebp - 0xfb8]
mov dword [ebp - 4], 1
test eax, eax
je 0x405f71
mov ecx, dword [eax]
lea edx, [ebp - 0xfb4]
push edx
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x414398]
call esi
push ecx
lea edx, [ebp - 0xfb0]
call fcn.0040b902
test eax, eax
je 0x405fb6
push 0x21
push 0x402c24
lea eax, [ebp - 0xfb0]
push eax
push dword [ebp - 0xfb4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x405fb6
push 5
push edi
push edi
push 0x402c68
push edi
push dword [ebp - 0xfb4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0xfb8]
call fcn.00406cf5
call fcn.00410b9e
ret

Function at 0x407033
Capabilities:
Check os version
Query or enumerate registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x413140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x12c], 4
xor edi, edi
mov dword [ebp - 0x120], 0x11c
xor esi, esi
mov dword [ebp - 0x124], edi
push eax
inc esi
mov dword [ebp - 0x128], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40709f
cmp dword [ebp - 0x11c], 5
jne 0x40709f
cmp dword [ebp - 0x118], esi
jne 0x40709f
cmp word [ebp - 0xc], 2
jae 0x40709f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x124]
push eax
push esi
push edi
push 0x402d50
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4070fa
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
push eax
push edi
push edi
push 0x403164
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4070ee
mov ecx, dword [ebp - 0x128]
dec ecx
neg ecx
sbb ecx, ecx
and esi, ecx
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004106d0
leave
ret
Function at 0x4072c9
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x413140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x258], 0
and dword [ebp - 0x254], 0
push ebx
push esi
push edi
mov dword [ebp - 0x25c], eax
mov edi, edx
lea eax, [ebp - 0x258]
mov ebx, ecx
push eax
push 0x200eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407459
mov ecx, dword [ebp - 0x258]
lea edx, [ebp - 0x48]
call fcn.004076ef
mov esi, eax
test esi, esi
jne 0x40744b
lea eax, [ebp - 0x254]
push eax
push esi
push esi
push dword [ebp - 0x25c]
push dword [ebp + 0xc]
push ebx
push edi
xor ebx, ebx
push ebx
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x407443
push 0x40
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x2b0], 0x44
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
lea eax, [ebp - 0x250]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40742d
push ecx
lea eax, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x254]
lea edx, [ebp - 0x25c]
mov dword [ebp - 0x25c], eax
call fcn.0040774d
mov esi, eax
test esi, esi
jne 0x407435
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x2b0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40742d
push 0x1388
push dword [ebp - 0x26c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40744b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407461
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106d0
leave
ret 0xc
Function at 0x40747a
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor eax, eax
mov ebx, edx
inc eax
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test ebx, ebx
je 0x4074c2
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x4074b9
mov eax, dword [ebp + 8]
push dword [eax + edi*8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4074b0
test byte [esi + 4], 0x10
je 0x4074c8
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x407498
mov eax, dword [ebp - 4]
add esi, 8
sub ebx, 1
jne 0x407491
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4074b9

Function at 0x4074d5
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], eax
inc edi
mov dword [ebp - 4], ecx
xor esi, esi
test ebx, ebx
je 0x407511
mov eax, dword [ebp + 8]
push dword [eax + esi*8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x407537
inc esi
cmp esi, ebx
jb 0x4074f3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x40754e
xor esi, esi
test ebx, ebx
je 0x407540
mov eax, dword [ebp + 8]
push dword [eax + esi*8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x40753b
inc esi
cmp esi, ebx
jb 0x40751b
jmp 0x40753d
xor edi, edi
jmp 0x40754e
xor edi, edi
mov eax, dword [ebp - 8]
add ecx, 8
sub eax, 1
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jne 0x407515
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x409838
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
je 0x409892
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x40985c
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x409854
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, 0x80004005
call fcn.00406f61
int3