joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x78d14747
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x621d3913
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x409e60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a037c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c1054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x409f14
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x68]
push 9
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
call fcn.00409b00
mov ecx, dword [edi + 0x1c]
xor ebx, ebx
mov edx, dword [edi + 0x10]
mov byte [ebp - 4], 6
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x409f5b
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x409f5b
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x409f65
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
lea eax, [ebp - 0xd]
and ecx, 0x1f
push eax
push 1
push ecx
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.004105d0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x409f94
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x412af0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x412b21
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x412b10
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x41a650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0fad
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4c1054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 8], 0
jne 0x41a698
push 4
push str.Uninstallation
push str.Do_you_want_to_delete_all_possible_files_from_installation_folder___Default:_no__n
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x41a70b
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push str.GWToolboxpp
push eax
call fcn.0041f120
add esp, 8
test al, al
jne 0x41a73b
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41a705
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a6fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a836
push ecx
push edx
call fcn.00475457
add esp, 8
cmp byte [ebp + 8], 0
jne 0x41a71f
push 0
push str.Uninstallation
push str.Uninstallation_successful
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00409db0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov word [ebp - 0x48], 0
cmovae eax, dword [ebp - 0x28]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x5c], eax
mov eax, 0x654
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x64]
movq qword [ebp - 0x50], xmm0
push eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 3
mov dword [ebp - 0x52], 0
mov dword [ebp - 0x4a], str.GWToolbox_uninstallation
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x41a7cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push dword [ebp - 0x44]
push str.SHFileOperationW_failed:_0x_X__GetLastError_0x_X_n
push eax
call fcn.00416e60
add esp, 0x14
lea ecx, [ebp - 0x40]
call fcn.0040ae10
jmp 0x41a6cb
cmp dword [ebp - 0x52], 0
je 0x41a7f6
push str.SHFileOperationW_failed:_fAnyOperationsAborted_n
push 2
call fcn.0047ed4d
add esp, 4
push eax
call fcn.00416e60
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.0040ae10
jmp 0x41a6cb
lea ecx, [ebp - 0x40]
call fcn.0040ae10
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41a705
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a6fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41a6fb
call fcn.0047a7ef
int3
Function at 0x41b720
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a10b0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x4c1054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x41c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push dword [esi]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x41b7a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.EnumProcessModules_failed:__lu_n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
jmp 0x41b915
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x411]
push ecx
shr eax, 2
lea ecx, [ebp - 0x430]
push eax
call fcn.0041b020
mov ebx, dword [ebp - 0x430]
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
mov dword [ebp - 4], 0
push ebx
push dword [esi]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x41b7ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.EnumProcessModules_failed:__lu_n
jmp 0x41b8cb
mov esi, ebx
cmp esi, dword [ebp - 0x42c]
je 0x41b8d4
nop dword [eax]
mov edi, dword [esi]
lea eax, [ebp - 0x410]
push 0x200
push eax
mov eax, dword [ebp - 0x41c]
push edi
push dword [eax]
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
je 0x41b8b6
push 0xc
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp - 0x41c]
push edi
push dword [eax]
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x41b89f
push dword [ebp - 0x420]
lea eax, [ebp - 0x410]
push eax
call fcn.00484397
add esp, 8
test eax, eax
je 0x41b875
add esi, 4
cmp esi, dword [ebp - 0x42c]
jne 0x41b810
jmp 0x41b8d4
mov ecx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x43c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x438]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x410]
push eax
add ecx, 8
call fcn.0041b300
mov al, 1
jmp 0x41b8d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.GetModuleInformation_failed:__lu_n
jmp 0x41b8cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.GetModuleBaseNameW_failed:__lu_n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
mov byte [ebp - 0x411], al
test ebx, ebx
je 0x41b915
mov ecx, dword [ebp - 0x428]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x41b905
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b933
push ecx
push ebx
call fcn.00475457
mov al, byte [ebp - 0x411]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret 8
call fcn.0047a7ef
int3
Function at 0x41c020
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x41b450
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x41c071
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.EnumWindows_failed___lu__n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x41c290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
push dword [ebp + 0x10]
push 0
push 0x10
push dword [ebp + 0xc]
push 0x4a3bfc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x41c2dd
push dword [ebp + 0xc]
push eax
push str.RegGetValueW_failed:_status:0x_lX__KeyName:_ls_n
push 2
call fcn.0047ed4d
add esp, 4
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x41c2f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
je 0x41c334
push esi
mov esi, dword [ebp + 0x10]
push 2
call fcn.0047ed4d
push esi
push dword [ebp + 0xc]
push ebx
push str.RegSetValueExW_failed:_status:0x_lX__KeyName:_ls__Value:_lu_n
push eax
call fcn.00416e60
add esp, 0x18
xor al, al
pop esi
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret
Function at 0x41c370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x4c1054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x808], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.00477340
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c3b7
sub ecx, edx
mov edx, edi
push ebx
sar ecx, 1
lea ebx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41c3d0
sub edx, ebx
sar edx, 1
pop ebx
lea eax, [edx + 2]
add eax, ecx
cmp eax, 0x400
jae 0x41c4d5
push esi
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00484498
push 0x4a4f50
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00484498
push edi
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00484498
xorps xmm0, xmm0
mov dword [ebp - 0x80c], 0
add esp, 0x24
movlpd qword [ebp - 0x83c], xmm0
cmp byte [ebp + 0x14], 0
mov eax, 0x4a4f54
movlpd qword [ebp - 0x824], xmm0
cmove eax, dword [ebp - 0x838]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp - 0x808]
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x844]
push eax
movlpd qword [ebp - 0x81c], xmm0
movlpd qword [ebp - 0x814], xmm0
mov dword [ebp - 0x844], 0x3c
mov dword [ebp - 0x840], 0x100
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x828], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41c4e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.ShellExecuteExA_failed:__lu_n
push eax
call fcn.00416e60
add esp, 0x10
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00475473
mov esp, ebp
pop ebp
ret
Function at 0x41c500
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4c1054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41c557
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.OpenProcessToken_failed:__lu_n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x41c5a4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.LookupPrivilegeValue_failed:__lu_n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x41c60f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.AdjustTokenPrivileges_failed:__lu_n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00475473
mov esp, ebp
pop ebp
ret
Function at 0x41c620
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c1054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41c69b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.AllocateAndInitializeSid_failed:__lu_n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x10]
test eax, eax
jne 0x41c6ed
call dword [sym.imp.ADVAPI32.dll_FreeSid]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.CheckTokenMembership_failed:__lu_n
push eax
call fcn.00416e60
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.00475473
mov esp, ebp
pop ebp
ret
Function at 0x41cbd0
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004755b0
mov eax, dword [0x4c1054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x41cc39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.GetModuleFileNameW_failed:__lu_n
push eax
call fcn.00416e60
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor al, al
pop esi
call fcn.00475473
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x41cc66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.GetCurrentDirectoryW_failed:__lu_n
jmp 0x41cc1f
cmp byte [ebp + 0xc], 0
je 0x41cc75
mov byte [ebp - 0x1008], 1
jmp 0x41cc80
call fcn.0041c620
mov byte [ebp - 0x1008], al
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0041c370
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x41ccd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor dl, dl
movzx ecx, word [eax]
test cx, cx
je 0x41cd49
mov esi, ecx
cmp si, 0x22
jne 0x41ccf4
test dl, dl
jne 0x41cd1b
mov dl, 1
jmp 0x41ccfe
cmp si, 0x20
jne 0x41ccfe
test dl, dl
je 0x41cd40
movzx ecx, word [eax + 2]
add eax, 2
mov esi, ecx
test cx, cx
jne 0x41cce6
push dword [ebp + 8]
push eax
call fcn.0041cbd0
add esp, 8
pop esi
pop ebp
ret
add eax, 2
cmp word [eax], 0x20
jne 0x41cd49
add eax, 2
cmp word [eax], 0x20
je 0x41cd24
push dword [ebp + 8]
push eax
call fcn.0041cbd0
add esp, 8
pop esi
pop ebp
ret
add eax, 2
cmp word [eax], 0x20
je 0x41cd40
push dword [ebp + 8]
push eax
call fcn.0041cbd0
add esp, 8
pop esi
pop ebp
ret
Function at 0x41e1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41e20f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push ebx
push str.Failed_open_file__ls___lu__n
push eax
call fcn.00416e60
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x41e262
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e230
cmp dword [ebp - 4], ebx
je 0x41e262
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push dword [ebp + 8]
push ebx
push str.Failed_to_write__lu_bytes_to_file__ls___lu__n
push eax
call fcn.00416e60
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41efe0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4c1054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x41f041
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.0047ed4d
push esi
push str.PathGetComputerName
push str._S:_Cannot_get_computer_name.___lu__n
push eax
call fcn.00416e90
add esp, 0x14
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x24], 0
jne 0x41f076
push str.PathGetComputerName
push str._S:_GetComputerNameW_returned_no_valid_computer_name._n
push 2
call fcn.0047ed4d
add esp, 4
push eax
call fcn.00416e90
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475473
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebp - 0x24]
mov byte [ebp - 0x40], 0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f083
push dword [ebp - 0x40]
sub ecx, edx
lea eax, [ebp - 0x3c]
sar ecx, 1
push ecx
push edi
push eax
call fcn.00419ab0
add esp, 0x10
lea eax, [ebp - 0x3c]
pop edi
cmp esi, eax
je 0x41f0d0
mov ecx, esi
call fcn.0040ae10
movups xmm0, xmmword [ebp - 0x3c]
xor eax, eax
mov ecx, 7
mov word [ebp - 0x3c], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [esi + 0x10], xmm0
jmp 0x41f0d3
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x41f106
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f0fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f117
push ecx
push edx
call fcn.00475457
add esp, 8
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00475473
mov esp, ebp
pop ebp
ret
call fcn.0047a7ef
int3