joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100997b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1008d8da
and dword [ebp - 4], 0
cmp dword [0x100d22a8], 0
mov ebx, eax
jne 0x10099864
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10099915
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10099915
push eax
call fcn.1008d868
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100d22a8], eax
call esi
push eax
call fcn.1008d868
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100d22ac], eax
call esi
push eax
call fcn.1008d868
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100d22b0], eax
call esi
push eax
call fcn.1008d868
pop ecx
mov dword [0x100d22b8], eax
test eax, eax
je 0x10099864
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1008d868
pop ecx
mov dword [0x100d22b4], eax
mov eax, dword [0x100d22b4]
cmp eax, ebx
je 0x100998bc
cmp dword [0x100d22b8], ebx
je 0x100998bc
push eax
call fcn.1008d8e3
push dword [0x100d22b8]
mov esi, eax
call fcn.1008d8e3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100998bc
test edi, edi
je 0x100998bc
call esi
test eax, eax
je 0x100998b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100998b3
test byte [ebp - 0xc], 1
jne 0x100998bc
or dword [ebp + 0x10], 0x200000
jmp 0x100998f5
mov eax, dword [0x100d22ac]
cmp eax, ebx
je 0x100998f5
push eax
call fcn.1008d8e3
pop ecx
test eax, eax
je 0x100998f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100998f5
mov eax, dword [0x100d22b0]
cmp eax, ebx
je 0x100998f5
push eax
call fcn.1008d8e3
pop ecx
test eax, eax
je 0x100998f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100d22a8]
call fcn.1008d8e3
pop ecx
test eax, eax
je 0x10099915
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10099917
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409764
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
jmp 0x40980d
cmp dword [esi + 0x10], 0x1000
jne 0x4097f9
test byte [esi + 0x15], 1
jne 0x4097f9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4097b8
cmp eax, 2
je 0x4097b8
cmp eax, 0x10
je 0x4097b8
cmp eax, 0x20
jne 0x4097cd
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4097cd
mov bl, 1
xor ebp, ebp
jmp 0x4097de
mov eax, dword [esi]
add eax, ebp
call fcn.0040975c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4097d1
test bl, bl
je 0x4097f9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409790
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
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 0x401010
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
je 0x40105d
push str.regedit.exe
lea ecx, [ebp - 0x208]
push ecx
call sub.shlwapi.dll_PathAppendW
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x208]
push ecx
push 0
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x401075
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
push str.regedit.exe
push 0
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4014a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [0x404058], 1
mov dword [0x40405c], 1
mov dword [0x404060], 1
mov dword [0x40406c], 1
mov dword [ebp - 8], 0x400000
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x4014ec
xor eax, eax
jmp 0x4015a0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0x4550
je 0x40150a
xor eax, eax
jmp 0x4015a0
mov edx, dword [ebp - 0xc]
add edx, 0x18
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x10b
je 0x401530
cmp dword [ebp - 0x10], 0x20b
je 0x401564
jmp 0x40159e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x5c], 0xe
ja 0x40153d
xor eax, eax
jmp 0x4015a0
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x60], 0
je 0x401558
mov dword [ebp - 0x14], 1
jmp 0x40155f
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x4015a0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x6c], 0xe
ja 0x401577
xor eax, eax
jmp 0x4015a0
mov edx, 8
imul eax, edx, 0xe
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0x70], 0
je 0x401592
mov dword [ebp - 0x1c], 1
jmp 0x401599
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
jmp 0x4015a0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401a20
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 4], edx
jmp 0x401a60
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 0xc], eax
jae 0x401a8f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0xc]
jb 0x401a8d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 0xc], ecx
jae 0x401a8d
mov eax, dword [ebp - 4]
jmp 0x401a91
jmp 0x401a4e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401aa0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x401ac0
xor eax, eax
jmp 0x401afb
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
je 0x401adb
xor eax, eax
jmp 0x401afb
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x10b
je 0x401af6
xor eax, eax
jmp 0x401afb
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401f40
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x404088], 0
jne 0x401f53
jmp 0x401fac
push 0x404070
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x40408c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401fa2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.kernel32.dll_TlsGetValue
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x401f97
cmp dword [ebp - 8], 0
je 0x401f97
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
call edx
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
jmp 0x401f65
push 0x404070
call sub.kernel32.dll_LeaveCriticalSection
mov esp, ebp
pop ebp
ret
Function at 0x407043
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40708d
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40705c
jmp 0x40708d
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40707d
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x407c1f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x407c54
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x407c7e
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x407c7e
test edi, edi
je 0x407c4b
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x407c4b
test edi, edi
je 0x407c86
mov eax, edi
jmp 0x407c4d
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x407c4d
int3
Function at 0x40ad29
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestMacroForEach.exe_gMozillaPoisonSize], eax
call fcn.00407c1f
pop ecx
mov ecx, dword [sym.TestMacroForEach.exe_gMozillaPoisonSize]
mov dword [sym.TestMacroForEach.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40ad61
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestMacroForEach.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x4011c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x438280], 0x24e1
mov eax, dword [0x438280]
sub eax, 0x24e1
mov dword [0x438280], eax
mov ecx, 1
test ecx, ecx
je 0x40126b
mov edx, dword [0x438280]
cmp edx, dword [ebp + 0xc]
jb 0x4011f7
jmp 0x40126b
cmp dword [0x438280], 0
jne 0x401215
jmp 0x45bd44
mov eax, dword [ebp + 8]
add eax, dword [0x438280]
mov ecx, dword [eax]
add ecx, dword [0x438280]
mov edx, dword [ebp + 8]
add edx, dword [0x438280]
mov dword [edx], ecx
mov dword [ebp - 4], 0x21
mov eax, dword [0x438280]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x438280]
push eax
call fcn.00401270
add esp, 8
mov ecx, dword [0x438280]
add ecx, 4
mov dword [0x438280], ecx
jmp 0x4011dd
mov esp, ebp
pop ebp
ret
Function at 0x401450
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7ec
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x79c], 4
mov dword [ebp - 0x784], 0x80000000
mov dword [ebp - 0x798], 0x20019
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x72c], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp dword [ebp - 0x1c], 0
jne 0x4014ac
xor eax, eax
jmp 0x401814
pushal
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x790], 0x64
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x790], 0x64
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x7ec], str.SOFTWARE11asses
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x790], 0x64
mov dword [ebp - 0x28], 7
call fcn.00401440
mov edx, 0x43
mov eax, dword [ebp - 0x7ec]
mov word [eax + 0x12], dx
mov ecx, 0x6c
mov edx, dword [ebp - 0x7ec]
mov word [edx + 0x14], cx
lea eax, [ebp - 0x34]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x7ec]
push ecx
push 0x80000002
call dword [0x438288]
test eax, eax
je 0x401571
xor eax, eax
jmp 0x401814
lea edx, [ebp - 0x34]
push edx
push 1
push 0
push str.clsid083863f1_70de_11d0_bd40_00a0c911ce86instance129d7e40_c10d_11d0_afb9_00aa00b67a42
push 0x80000000
call dword [0x438288]
test eax, eax
je 0x401594
xor eax, eax
jmp 0x401814
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x4015ac
xor eax, eax
jmp 0x401814
push 1
mov eax, dword [0x438284]
push eax
call fcn.00401ad0
add esp, 8
mov dword [0x438294], eax
mov ecx, dword [0x438294]
push ecx
call fcn.004019b0
add esp, 4
mov dword [ebp - 0x794], eax
mov edx, dword [0x438294]
mov dword [ebp - 0x734], edx
mov eax, dword [ebp - 4]
cmp eax, dword [0x438294]
jae 0x40165b
mov ecx, dword [ebp - 0x734]
push ecx
mov edx, dword [ebp - 0x790]
push edx
call fcn.00401940
add esp, 8
mov dword [ebp - 0x788], eax
mov eax, dword [ebp - 0x788]
push eax
mov ecx, dword [0x438284]
add ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x794]
add edx, dword [ebp - 4]
push edx
call fcn.004010a0
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x790]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x790]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x734]
sub edx, dword [ebp - 0x788]
mov dword [ebp - 0x734], edx
jmp 0x4015e2
mov eax, dword [0x438294]
push eax
mov ecx, dword [ebp - 0x794]
push ecx
call fcn.00401400
add esp, 8
mov edx, dword [ebp + 8]
mov dword [0x438278], edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
push 2
mov eax, dword [0x438284]
push eax
call fcn.00401ad0
jmp 0x45bf7a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4019f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x114], str._system32777.dll
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
jmp loc.0045c61c

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

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x401050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x422ad0
push 0x84
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00402235
push str.net451
lea ecx, [ebp - 8]
call fcn.00401e22
test eax, eax
jne 0x40109b
inc esi
jmp 0x401103
push str.net452
lea ecx, [ebp - 8]
call fcn.00401e22
test eax, eax
jne 0x4010b0
push 2
jmp 0x401102
push 0x422afc
lea ecx, [ebp - 8]
call fcn.00401e22
test eax, eax
jne 0x4010c5
push 3
jmp 0x401102
push str.net461
lea ecx, [ebp - 8]
call fcn.00401e22
test eax, eax
jne 0x4010da
push 4
jmp 0x401102
push str.net462
lea ecx, [ebp - 8]
call fcn.00401e22
test eax, eax
jne 0x4010ef
push 5
jmp 0x401102
push 0x422b28
lea ecx, [ebp - 8]
call fcn.00401e22
test eax, eax
jne 0x401103
push 6
pop esi
lea ecx, [ebp - 8]
call fcn.00401e59
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004097ab
mov esp, ebp
pop ebp
ret
Function at 0x40186a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42800c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push 0x422fe0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x401896
xor al, al
jmp 0x401900
push esi
lea eax, [ebp - 0x20]
xor esi, esi
push eax
push 0x20
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4018ec
mov eax, dword [ebp - 0xc]
push esi
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4018f0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4018ff
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004097ab
mov esp, ebp
pop ebp
ret

Function at 0x401ba1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x401bb3
push 0xd
pop eax
jmp 0x401be4
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x401bbc
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x402349
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402358
mov al, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x402366
xor al, al
ret
cmp eax, 3
setne al
ret
Function at 0x40236d
Capabilities:
Get common file path
Get session user name

Disassembly:
push 0x820
mov eax, 0x41c887
call fcn.0041b973
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
mov dword [ebp - 0x828], ebx
push eax
lea ecx, [ebp - 0x828]
call fcn.00402235
mov dword [ebp - 4], ebx
push 0x5c
push dword [ebp - 0x828]
mov dword [ebp - 0x824], ebx
call fcn.0040b9f1
pop ecx
pop ecx
test eax, eax
jne 0x4023d1
or eax, 0xffffffff
jmp 0x4023d9
sub eax, dword [ebp - 0x828]
sar eax, 1
lea ecx, [ebp - 0x420]
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x824]
call fcn.00402235
push ecx
push ecx
lea ecx, [ebp - 0x824]
mov byte [ebp - 4], 1
call fcn.004025d4
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edi, [ebp - 0x218]
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x40241a
mov ebx, dword [ebp - 0x824]
xor ecx, ecx
mov eax, dword [0x4247f4]
mov edx, ebx
mov dword [edi], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x402439
lea edi, [ebp - 0x218]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40244f
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x218]
call fcn.00402349
test al, al
jne 0x402563
lea eax, [ebp - 0x218]
mov dword [ebp - 0x82c], 0x200
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edi, [ebp - 0x218]
sub edi, 2
xor edx, edx
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, dx
jne 0x4024b9
mov eax, dword [0x4247f4]
mov esi, ebx
mov dword [edi], eax
mov cx, word [ebx]
add ebx, 2
cmp cx, dx
jne 0x4024ce
lea edi, [ebp - 0x218]
sub ebx, esi
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
cmp cx, dx
jne 0x4024e4
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x218]
sub edi, 2
mov cx, word [edi + 2]
lea edi, [edi + 2]
cmp cx, dx
jne 0x402507
lea edx, [ebp - 0x820]
mov dword [edi], eax
mov esi, edx
xor ecx, ecx
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x40251f
lea edi, [ebp - 0x218]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x402535
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x218]
call fcn.00402349
test al, al
jne 0x402563
xor ebx, ebx
inc ebx
jmp 0x402565
xor bl, bl
lea ecx, [ebp - 0x824]
call fcn.00401e59
lea ecx, [ebp - 0x828]
call fcn.00401e59
mov al, bl
call fcn.0041b91d
ret