joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70fe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa6000]
mov dword [edi + 0xe7710], 0xcc2f6d20
push edi
jmp 0x70fe6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x70fe71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x70fe60
mov eax, 1
add ebx, ebx
jne 0x70fe83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x70fe94
jne 0x70feb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x70feb3
dec eax
add ebx, ebx
jne 0x70fea0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x70fe78
add ebx, ebx
jne 0x70feaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x70ff05
xor ecx, ecx
sub eax, 3
jb 0x70fecb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x70ff3a
sar eax, 1
mov ebp, eax
jmp 0x70fed6
add ebx, ebx
jne 0x70fed6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x70fea4
inc ecx
add ebx, ebx
jne 0x70fee4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x70fea4
add ebx, ebx
jne 0x70fef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x70fee6
jne 0x70ff02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x70fee6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x70ff24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x70ff16
jmp 0x70fe66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x70ff24
add edi, ecx
jmp 0x70fe66
pop esi
mov edi, esi
mov ecx, 0x3717
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x70ff42
cmp byte [edi], 0x11
jne 0x70ff42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x70ff47
lea edi, [esi + 0x305000]
mov eax, dword [edi]
or eax, eax
je 0x70ffbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x332054]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3321f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x70ff74
mov ecx, edi
jns 0x70ffa3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3321fc]
or eax, eax
je 0x70ffb9
mov dword [ebx], eax
add ebx, 4
jmp 0x70ff91
call dword [esi + 0x3321f8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x70fff0
cmp al, 0xef
ja 0x70ffe3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x70ffc5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x70ffd2
mov ebp, dword [esi + 0x332200]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x710024
sub esp, 0xffffff80
jmp 0x493a78
Function at 0x4ab3d0f9
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ab440ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x214], esi
cmp eax, ebx
jne 0x4ab3d1e5
mov dword [ebp - 0x210], ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call dword [0x4ab44018]
mov esi, eax
cmp esi, ebx
jne 0x4ab3d1be
cmp word [ebp - 0x20c], 0x2e
jne 0x4ab3d1a3
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.4ab3d003
mov edi, eax
cmp edi, ebx
je 0x4ab3d1d1
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4ab3d176
sub eax, edx
sar eax, 1
je 0x4ab3d19d
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s_r_n
call fcn.4ab258f3
add esp, 0xc
mov esi, eax
push edi
call fcn.4ab2142e
cmp dword [0x4ab441b4], ebx
jne 0x4ab3d1e0
inc dword [ebp - 0x210]
cmp esi, ebx
jne 0x4ab3d257
jmp 0x4ab3d12d
cmp esi, 0x103
jne 0x4ab3d257
xor esi, esi
jmp 0x4ab3d257
push ebx
call dword [fcn.4ab212d4]
push eax
call fcn.4ab26d44
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x4ab3d259
push ebx
push eax
call fcn.4ab22b0d
push eax
call fcn.4ab219d6
mov edi, eax
cmp edi, ebx
je 0x4ab3d1e0
push 0x20
push edi
call fcn.4ab22148
cmp eax, ebx
je 0x4ab3d209
xor ecx, ecx
mov word [eax], cx
push edi
push esi
call fcn.4ab3d003
mov ebx, eax
test ebx, ebx
je 0x4ab3d239
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ab3d219
sub eax, edx
sar eax, 1
je 0x4ab3d239
push ebx
push edi
push str._s_s_r_n
call fcn.4ab258f3
mov esi, eax
jmp 0x4ab3d248
xor esi, esi
push edi
inc esi
push esi
push 0x400023a3
call fcn.4ab26d44
add esp, 0xc
push ebx
call fcn.4ab2142e
push edi
call fcn.4ab2142e
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ab213a9
leave
ret 8
Function at 0x4ab3d26f
Capabilities:
Set registry value

Disassembly:
push 0xc
push 0x4ab3d398
call fcn.4ab2264a
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x4ab3d2e6
cmp word [edi], si
je 0x4ab3d2e6
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4ab3d28e
sub eax, edx
sar eax, 1
push eax
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4ab4401c]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
jne 0x4ab3d2cb
push edi
push dword [ebp + 0xc]
push str._s_s_r_n
call fcn.4ab258f3
add esp, 0xc
jmp 0x4ab3d355
push esi
push ebx
call fcn.4ab26d44
push dword [ebp + 0xc]
push 1
push 0x235d
call fcn.4ab26d44
add esp, 0x14
jmp 0x4ab3d355
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4ab21368]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
je 0x4ab3d359
lea eax, [ebp + 0xc]
push eax
push 0x2000000
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [fcn.4ab21360]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, esi
je 0x4ab3d32c
cmp ebx, 2
je 0x4ab3d355
push esi
push ebx
call fcn.4ab26d44
pop ecx
pop ecx
jmp 0x4ab3d355
push 0x4ab23afc
push dword [ebp + 0xc]
call dword [0x4ab21364]
mov ebx, eax
mov dword [ebp + 0x10], eax
cmp ebx, esi
je 0x4ab3d34c
push esi
push ebx
call fcn.4ab26d44
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [fcn.4ab21354]
cmp ebx, esi
jne 0x4ab3d389
mov dword [ebp - 4], esi
push esi
push esi
push esi
push 0x8000000
call dword [0x4ab44040]
jmp 0x4ab3d382
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0x10]
call fcn.4ab213b6
ret 0xc
Function at 0x4ab3d685
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4ab440ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x48], edi
cmp eax, edi
jne 0x4ab3d6ab
xor eax, eax
jmp 0x4ab3d7b5
push ebx
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [0x4ab212f0]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
cmp ebx, 0xffffffff
je 0x4ab3d7b0
push esi
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x40
pop esi
call fcn.4ab3d3db
test eax, eax
je 0x4ab3d6f5
mov eax, 0x5a4d
xor ecx, ecx
cmp ax, word [ebp - 0x44]
sete cl
mov eax, ecx
jmp 0x4ab3d6f7
xor eax, eax
cmp eax, edi
je 0x4ab3d7a6
push edi
push edi
push dword [ebp - 8]
push ebx
call dword [fcn.4ab21284]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, edi
je 0x4ab3d7a6
lea eax, [ebp - 0x50]
push eax
push ebx
push 4
pop esi
call fcn.4ab3d3db
test eax, eax
je 0x4ab3d73c
xor eax, eax
cmp dword [ebp - 0x50], 0x4550
sete al
jmp 0x4ab3d73e
xor eax, eax
cmp eax, edi
je 0x4ab3d7a6
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x14
pop esi
call fcn.4ab3d3db
test eax, eax
je 0x4ab3d7a6
cmp word [ebp - 0x54], di
jbe 0x4ab3d7a6
movzx eax, word [ebp - 0x54]
mov edi, dword [fcn.4ab21294]
push eax
push 8
call edi
push eax
call dword [fcn.4ab212a8]
mov ebx, eax
test ebx, ebx
je 0x4ab3d7a6
movzx esi, word [ebp - 0x54]
push ebx
push dword [ebp - 0x4c]
call fcn.4ab3d3db
test eax, eax
je 0x4ab3d79a
mov edx, dword [ebp - 0x64]
mov ecx, ebx
call fcn.4ab3d3b9
test eax, eax
je 0x4ab3d79a
movzx eax, word [eax]
mov dword [ebp - 0x48], eax
push ebx
push 0
call edi
push eax
call dword [fcn.4ab21290]
push dword [ebp - 0x4c]
call dword [0x4ab212ac]
pop esi
mov ax, word [ebp - 0x48]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.4ab213a9
leave
ret 4
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00402767
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00402767
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00402767
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00402767
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00402767
mov dword [0x41203c], eax
call fcn.00402767
test eax, eax
jge 0x402550
push 8
call fcn.00402767
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00402767
pop ecx
push 1
call fcn.00402767
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00402767
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00402767
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00402767
jmp 0x402495

Function at 0x402767
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x402776
pop dword [ebp - 0x50]
mov eax, 0x47ad0b06
add eax, 0xb8931c70
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3767e
push 0
mov eax, 0x2fe80a86
add eax, 0xd058d652
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x89993a9
add ecx, 0xf766aab0
xor edx, edx
add edx, eax
mov esi, 0x413bc4
add esi, dword [ebp - 0x50]
mov ebx, 0xe957db71
mov dword [ebp - 0x18], 0x5367f865
mov edi, dword [esi]
add dword [ebp - 0x38], eax
xor edi, ebx
sub dword [ebp - 0x1c], 0xbde01800
mov dword [edx], edi
add edx, 0x9f3b8b36
add edx, 0x60c474ce
add esi, 4
loop 0x4027cb
add eax, 0xb13232d7
add eax, 0x4eceb960
xor ebx, ebx
add ebx, eax
add eax, 0x3926a79a
sub eax, 0x3926a795
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x100026c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10002721
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x100026e2
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
jmp 0x403a1c
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405220], eax
mov dword [0x4051a8], 0x403098
mov dword [0x4051a4], 2
jmp 0x403a4c
mov dword [0x4051ac], 0
mov dword [0x4051b0], 0
mov dword [0x4051a0], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051b4], eax
mov dword [0x4051c8], 0x40426e
mov dword [0x4051c0], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051b8], eax
mov dword [0x4051cc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051bc], eax
push 0x4051a0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.justam
push 0x40426e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405218], eax
push 5
push dword [0x405218]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405218]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x403b1f
push 0
push 0
push 0
push 0x4051d0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x403b4c
push 0x4051d0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4051d0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x403b1f
mov eax, dword [0x4051d8]
jmp 0x403b59
call 0x402be1
ret
Function at 0x401270
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 4
push 0
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x407e3c], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop ecx
ret

Function at 0x4012a0
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push ecx
mov ecx, dword [0x407e3c]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [0x407e3c]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esp]
mov ecx, dword [0x407e3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ecx
ret
Function at 0x401c60
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x214
lea eax, [esp + 4]
push esi
push eax
push 0xf003f
push 0
push str.SOFTWAREASUSACPIDRV
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esp + 0x14], 4
mov dword [esp + 4], 4
jne 0x401d7d
lea ecx, [esp + 0x14]
push ebx
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.Version
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x11]
mov ecx, dword [esp + 0x12]
and edx, 0xff
push edx
mov edx, dword [esp + 0x17]
and eax, 0xff
and ecx, 0xff
push eax
and edx, 0xff
push ecx
push edx
lea eax, [esp + 0x12c]
push str.0x_02x_02x_02x_02x
push eax
call fcn.004022d8
mov ecx, dword [esp + 0x238]
add esp, 0x18
lea edx, [esp + 0x1c]
push ecx
push 0xff
push edx
push 0
push str.Version
push str.Strings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [esp + 0x1c]
lea eax, [esp + 0x11c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401d54
test cl, cl
je 0x401d50
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401d54
add eax, 2
add esi, 2
test cl, cl
jne 0x401d2c
xor eax, eax
jmp 0x401d59
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, 0xffffffff
pop ebx
je 0x401d76
test eax, eax
je 0x401d6f
cmp eax, 1
jne 0x401d91
mov esi, 2
jmp 0x401d95
mov esi, 4
jmp 0x401d95
mov esi, 3
jmp 0x401d95
push str._n_ndriver_not_installed...._n_n
mov esi, 1
call fcn.00402220
add esp, 4
jmp 0x401d95
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x214
ret

Function at 0x401db0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401e8a
mov eax, dword [esp + 0x10]
cmp eax, 2
mov eax, dword [esp + 4]
jne 0x401e4f
cmp eax, 5
jne 0x401e19
mov eax, dword [esp + 8]
test eax, eax
jne 0x401df7
mov eax, 1
add esp, 0x94
ret
cmp eax, 1
jne 0x401e08
mov eax, 2
add esp, 0x94
ret
cmp eax, 2
jne 0x401e43
mov eax, 3
add esp, 0x94
ret
cmp eax, 6
jne 0x401e43
mov eax, dword [esp + 8]
test eax, eax
jne 0x401e32
mov eax, 8
add esp, 0x94
ret
cmp eax, 1
jne 0x401e43
mov eax, 9
add esp, 0x94
ret
mov eax, 4
add esp, 0x94
ret
cmp eax, 4
jne 0x401e8a
mov eax, dword [esp + 8]
test eax, eax
jne 0x401e68
mov eax, 5
add esp, 0x94
ret
cmp eax, 0xa
jne 0x401e79
mov eax, 6
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x401e8a
mov eax, 7
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x401ea0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401ebf
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401f09
xor eax, eax
add esp, 0x14
ret
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x401f20
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 8]
push esi
xor ebx, ebx
xor esi, esi
push eax
push 0x20008
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40202c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push edx
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 0
mov byte [esp + 0x46], 0
mov byte [esp + 0x47], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x49], 5
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40202c
mov ecx, dword [esp + 0xc]
push ebp
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [esp + 0x24], ebx
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00402412
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x402010
mov eax, dword [esi]
xor edi, edi
cmp eax, ebx
jbe 0x402010
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp]
push eax
push ecx
call ebx
test eax, eax
jne 0x402008
mov eax, dword [esi]
inc edi
add ebp, 8
cmp edi, eax
jb 0x401fed
jmp 0x402010
mov dword [esp + 0x1c], 1
push esi
call fcn.004023e3
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov esi, dword [esp + 0x1c]
pop edi
xor ebx, ebx
pop ebp
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40203b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x402050
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x407c6c]
test eax, eax
jne 0x40210e
call fcn.00401db0
cmp eax, 3
jne 0x402085
push 6
push str.Static
push str.ATK0110
push str.32770
call fcn.00401180
add esp, 0x10
call fcn.00401270
push 0x407e34
push str.SoftwareMicrosoftDriver_Signing
push 0x80000002
mov dword [0x407e34], 0
mov dword [0x407e2c], 0
mov dword [0x407e28], 0xc8
mov dword [0x407e38], 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [0x407e34]
push 0x407e28
push 0x407e30
push 0x407e38
push 0
push str.Policy
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [0x407e34]
push 4
push 0x407e2c
push 4
push 0
push str.Policy
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x407e34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
ret

Function at 0x402110
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x407c6c]
test eax, eax
jne 0x40218e
call fcn.00401db0
cmp eax, 3
jne 0x402128
call fcn.004012a0
push 0x407e34
push str.SoftwareMicrosoftDriver_Signing
push 0x80000002
mov dword [0x407e34], 0
mov dword [0x407e2c], 0
mov dword [0x407e28], 0xc8
mov dword [0x407e38], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [0x407e34]
push 4
push 0x407e30
push 4
push 0
push str.Policy
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [0x407e34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
ret

Function at 0x404a3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407a48
cmp edx, dword [eax]
je 0x404a5f
add eax, 8
inc ecx
cmp eax, 0x407ad8
jl 0x404a50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407a48]
jne 0x404b8d
mov eax, dword [0x407c7c]
cmp eax, 1
je 0x404b67
test eax, eax
jne 0x404a90
cmp dword [0x407674], 1
je 0x404b67
cmp edx, 0xfc
je 0x404b8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404ac7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405780
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004041e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404b0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004041e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4064b4
push edi
call fcn.00405c30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405780
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405790
lea eax, [ebp - 0xa0]
push 0x406494
push eax
call fcn.00405790
push dword [esi + 0x407a4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405790
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405ba5
add esp, 0x2c
pop edi
jmp 0x404b8d
lea eax, [ebp + 8]
lea esi, [esi + 0x407a4c]
push 0
push eax
push dword [esi]
call fcn.004041e0
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