joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a550
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469753
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045d5e4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00462c7d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00464199
test eax, eax
je 0x43a66c
mov ecx, dword [esp + 0x3c]
call fcn.00462caa
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43a630
push edi
mov ecx, esi
call fcn.00460315
mov ecx, esi
call fcn.0043a7d0
cmp dword [esp + 0x38], 1
jne 0x43a665
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00460450
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d0a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d0d3
push esi
call fcn.00440190
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d0cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43d159
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d142
mov eax, dword [esi + 8]
test eax, eax
je 0x43d0f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d13e
cmp eax, 2
je 0x43d142
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d0ea
cmp eax, 3
je 0x43d11d
cmp eax, 1
jne 0x43d0ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d0ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d0ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d180
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d168
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d180
add esp, 4
pop esi
ret

Function at 0x45e3da
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45e412
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045c491
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c469
jmp 0x45e41e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45facf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45fb11
call fcn.0046557f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45fb11
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45fb08
xor eax, eax
jmp 0x45fb19
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045fb1f
pop edi
pop esi
pop ebx
ret 4

Function at 0x465aaf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x465add
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x465afb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465a15
jmp 0x465afb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x465afb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465a15
test edi, edi
mov eax, edi
jne 0x465ae5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x417e10
Capabilities:
Get disk information

Disassembly:
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x4c74c0], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
mov esi, eax
mov dword [esp + 8], 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x4c3074
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test esi, esi
mov dword [0x4c6afc], eax
je 0x417e5b
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push str.MSWHEEL_ROLLMSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
pop esi
mov ecx, dword [esp]
add ecx, eax
mov eax, ecx
pop ecx
ret

Function at 0x42f0a0
Capabilities:
Encode data using xor

Disassembly:
mov esp, 0x60feaec0
lodsb al, byte [esi]
push ss
inc ebx
xor al, 0xb2
movsb byte es:[edi], byte [esi]
xlatb
jp 0x42f104
popal
loop 0x42f11c
fsub dword [esi - 0x4033efb9]
popfd
sub eax, 0x8ab230d5
fisub word [ebx]
pop es
mov esi, 0x5099c551
ret
in eax, 0x98
inc ecx
invalid
xor edi, dword [bx + 0x39]
push ds
aas
dec esp
pushfd
dec edi
add ebx, dword [esi + 2]
push ds
sub byte [edi - 0x5e6cc99d], ah
pop esp
cdq
pop esp
inc eax
xor al, bl
jnp 0x42f0f3
ret
adc byte [eax + ecx*8 + 0x149f2d2c], 0x74
retf

Function at 0x47c781
Capabilities:
Encode data using xor

Disassembly:
push 0x950eaa7e
mov byte [ebx - 0x6ca879ed], 0x90
fimul dword [eax + 0x5a6e4357]
inc esi
xor dword [esi - 0x52c911fa], eax
sub ah, ah
xchg ebx, eax
mov ebp, 0xefa9ce45
stosb byte es:[edi], al
out dx, eax
rol byte [0x6e3c2763], cl
invalid

Function at 0x493fc1
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov dword [esi], esi
sar byte [ebp - 0x1a87cb9d], cl
add dword [ecx + ebx*4], esp

Function at 0x4a26a1
Capabilities:
Encode data using xor

Disassembly:
xlatb
mov byte [edx], cl
sbb edi, 0x56bd2551
dec ebx
sub eax, 0xaa364ab7
invalid
Function at 0x4bb371
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33b0
cmp edx, dword [eax]
je 0x4bb393
add eax, 8
inc ecx
cmp eax, 0x4c3440
jl 0x4bb384
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33b0]
jne 0x4bb4c1
mov eax, dword [0x4c7d3c]
cmp eax, 1
je 0x4bb49b
test eax, eax
jne 0x4bb3c4
cmp dword [0x4c32d8], 1
je 0x4bb49b
cmp edx, 0xfc
je 0x4bb4c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb3fb
lea eax, [ebp - 0x1a4]
push 0x4c0860
push eax
call fcn.004bbd50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc1e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb43e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc1e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c085c
push edi
call fcn.004be0b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0840
push eax
call fcn.004bbd50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbd60
lea eax, [ebp - 0xa0]
push 0x4c083c
push eax
call fcn.004bbd60
push dword [esi + 0x4c33b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbd60
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0814
push eax
call fcn.004be024
add esp, 0x2c
pop edi
jmp 0x4bb4c1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33b4]
push 0
push eax
push dword [esi]
call fcn.004bc1e0
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
Function at 0x408d10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4a19f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x408d77
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461231
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x408d65
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x408d65
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push 0x489bbc
push eax
call fcn.00463c16
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00461231
mov esp, ebp
pop ebp
ret
Function at 0x408e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.00479b50
mov eax, dword [0x4a19f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2720], eax
mov eax, dword [0x489f78]
mov esi, ecx
mov ecx, dword [str.SoftwareClasses_]
mov ebx, edx
mov edx, dword [0x489f74]
push 0x26fe
mov dword [ebp - 0x270c], eax
mov dword [ebp - 0x2714], ecx
mov ecx, dword [0x489f7c]
mov dword [ebp - 0x2710], edx
mov dx, word [0x489f80]
lea eax, [ebp - 0x2702]
push 0
push eax
mov byte [ebp - 0x2715], 0
mov dword [ebp - 0x2708], ecx
mov word [ebp - 0x2704], dx
call fcn.0046a5d0
mov eax, esi
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408e94
push edi
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408ea5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x408f08
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408ec6
mov cx, word [0x489f84]
mov eax, ebx
mov word [edi], cx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408ee0
lea edi, [ebp - 0x2714]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408ef2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
test eax, eax
jne 0x408fad
mov esi, dword [ebp - 0x2720]
test esi, esi
je 0x408f67
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408f44
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x408f88
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461231
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461231
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.00461231
mov esp, ebp
pop ebp
ret
Function at 0x408fd0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.00479b50
mov eax, dword [0x4a19f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x489f78]
mov eax, dword [str.SoftwareClasses_]
push esi
push edi
mov esi, ecx
mov ecx, dword [0x489f74]
push 0x26fe
mov dword [ebp - 0x270c], edx
mov dword [ebp - 0x2714], eax
mov eax, dword [0x489f7c]
mov dword [ebp - 0x2710], ecx
mov cx, word [0x489f80]
lea edx, [ebp - 0x2702]
push 0
push edx
mov dword [ebp - 0x2708], eax
mov word [ebp - 0x2704], cx
call fcn.0046a5d0
mov eax, esi
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409041
lea edi, [ebp - 0x2714]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409051
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x2714]
push eax
and ecx, 3
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.00461231
mov esp, ebp
pop ebp
ret
Function at 0x40e580
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484bfb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x4a19f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov ecx, dword [0x489348]
mov dword [esi + 0xc], ecx
mov edx, dword [0x48934c]
mov dword [esi + 0x10], edx
mov ecx, dword [0x489350]
mov dword [esi + 0x14], ecx
mov edx, dword [0x489354]
mov dword [esi + 0x18], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [esi + 0x30], edi
cmp edi, ebx
je 0x40e654
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push esi
push edi
call ecx
cmp eax, ebx
mov eax, dword [esi + 0x30]
jl 0x40e645
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
cmp eax, ebx
jl 0x40e654
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea eax, [esi + 4]
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40e654
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 8], ebx
jmp 0x40e654
cmp eax, ebx
je 0x40e654
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x30], ebx
push 8
call fcn.00462d88
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40e685
mov dword [ebx], vtable.tcomxTypeHandler.0
mov dword [ebx + 4], edi
test edi, edi
je 0x40e687
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
jmp 0x40e687
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x34]
mov ecx, 0x96
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x40e692
mov eax, dword [0x4a4318]
mov dword [esi + 0x994], eax
inc eax
mov dword [0x4a4318], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x418740
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x418753.2
jmp dword [eax*4 + 0x4187fc]
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffc0
cmp edx, 0xfffffffc
sete al
push eax
call fcn.00418ea0
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x4187b1
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x4187b1
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x4187b1
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x4187de
push 0x30b
push 0x4a327c
call fcn.00417c70
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x317
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.00417c70
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41e330
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4a19f4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x41e320
call fcn.0046466a
add esp, 4
call fcn.0041e1e0
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
je 0x41e3be
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x41e384
mov edx, dword [ebp - 0x18]
push edx
jmp 0x41e3b8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00446ee0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461231
mov esp, ebp
pop ebp
ret
Function at 0x41e620
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, ebx
sub esp, 0x10
lea edx, [eax + 1]
jmp 0x41e630
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e630
push esi
push edi
sub eax, edx
lea esi, [eax + ebx]
push 0x5c
push ebx
mov dword [ebp - 4], esi
call fcn.00464700
xor ecx, ecx
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
test eax, eax
jne 0x41e660
mov dword [ebp - 0xc], ebx
jmp 0x41e660
cmp byte [esi], 0x5c
jne 0x41e676
inc esi
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], esi
mov byte [esi], 0x5f
mov eax, dword [0x48bcb4]
mov dword [ecx + esi], eax
mov edx, dword [0x48bcb8]
mov dword [ecx + esi + 4], edx
mov al, byte [0x48bcbc]
mov byte [ecx + esi + 8], al
test ebx, ebx
je 0x41e6df
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x41e6dc
lea ecx, [esi + esi + 2]
push ecx
call fcn.00463212
add esp, 4
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
xor edx, edx
mov word [edi + esi*2 - 2], dx
mov esi, dword [ebp - 4]
jmp 0x41e6e1
mov esi, dword [ebp - 4]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push edi
mov dword [ebp - 0x10], eax
call fcn.00462e08
add esp, 4
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41e71b
mov eax, dword [ebp - 0xc]
push 0x2e
push eax
call fcn.00464280
add esp, 8
test eax, eax
je 0x41e723
cmp eax, esi
ja 0x41e723
mov ecx, dword [ebp - 8]
mov byte [eax], 0x5c
jmp 0x41e660
pop edi
mov eax, ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41eed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, eax
test edi, edi
jne 0x41eee8
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test edi, edi
jne 0x41ef06
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41eefd
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41eefd
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
je 0x41eefd
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, dword [ebp + 8]
mov edi, eax
push edi
push ebx
call fcn.0041d0f0
add esp, 8
cmp edi, 2
jb 0x41ef6a
movsx edx, byte [ebx]
cmp edx, 0xff
jne 0x41ef6a
movsx eax, byte [ebx + 1]
cmp eax, 0xfe
jne 0x41ef6a
mov ecx, esi
mov eax, dword [ecx + 8]
cmp dword [eax - 8], 4
jne 0x41ef6a
mov edx, dword [eax - 0x10]
mov byte [edx + 7], 0x10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x48aa78
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x43c3b8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c3c8
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x18], edi
mov edx, edi
cmp edi, ecx
jb 0x43c408
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0x10]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x43c3e5
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x43c476
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x43c470
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x43c444
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x43c468
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x43c430
test ecx, ecx
je 0x43c4b6
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x43c468
cmp ecx, 1
jbe 0x43c4b6
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x43c468
cmp ecx, 2
jbe 0x43c4b6
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x43c4b6
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x43c420
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0043da70
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov edx, dword [edx + 0x10]
mov eax, dword [ecx + edx]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x100
jl 0x43c3b4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x43c485
xor cl, 3
mov byte [eax + 5], cl
jmp 0x43c485