joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00404bcb
mov ebx, eax
mov dh, byte [ebx]
mov dl, 1
mov ecx, dword [edi]
or dh, dh
jne 0x404b83
inc ebx
push ecx
mov eax, esp
push eax
push 0
push dword [ebx]
call fcn.00406c61
pop ecx
jecxz 0x404b91
push eax
mov al, byte [eax]
xor al, 0xb5
mov byte [esi], al
pop eax
inc esi
inc eax
loop 0x404b85
or dh, dh
jne 0x404b9d
inc dl
mov cl, dl
cmp ecx, dword [edi]
jl 0x404b70
mov byte [esi], 0
sub esi, dword [ebp + 0xc]
mov dword [edi], esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x405336
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3ba0]
push edi
lea edi, [esi + 0x3718]
lea ebx, [eax + esi + 0x3718]
jmp 0x40538c
push esi
call fcn.00405926
mov eax, ebx
sub eax, edi
push eax
push edi
lea eax, [esi + 0x1bc8]
push eax
call fcn.00405175
mov dword [ebp + 8], eax
test eax, eax
jne 0x405389
push 1
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
push 0xffffffffffffffff
push dword [esi + 0x3708]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
add edi, dword [ebp + 8]
cmp edi, ebx
jb 0x405354
and dword [esi + 0x3ba0], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x405678
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x1b48]
push edi
xor edi, edi
add esi, 0x78
inc edi
sub eax, 0
je 0x4056a9
dec eax
je 0x4056ab
dec eax
jne 0x4056b7
push dword [ebx + 0x1b40]
call dword [fcn.004010c4]
jmp 0x4056b7
mov esi, ebx
push dword [ebx + 0x1b40]
call dword [sym.imp.ntdll.dll_NtOpenKey]
test byte [esi + 0x1b44], 4
je 0x405702
push esi
lea edi, [esi + 0x20]
call fcn.00404f95
lea ecx, [ebx + 0x1b40]
sub ecx, dword [ebx + 0x1b48]
push 0
mov dword [edi], ecx
mov dword [edi + 4], 0x14
push dword [ebx + 0x1b40]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
neg eax
sbb eax, eax
inc eax
push edi
mov dword [edi + 8], eax
call fcn.004059e2
push esi
mov edi, eax
call fcn.00404fb4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40593e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x1b44]
test al, 1
je 0x4059dd
and al, 0xfe
push ebx
mov byte [esi + 0x1b44], al
lea eax, [esi + 0x1b18]
push edi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.ntdll.dll_wcscat]
mov eax, dword [esi + 0x1b40]
mov edi, dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
je 0x405980
push eax
call edi
mov eax, dword [esi + 0x1b10]
test eax, eax
je 0x40598d
push eax
call edi
mov eax, dword [esi + 0x1b0c]
mov ebx, dword [sym.imp.ntdll.dll_LdrLoadDll]
test eax, eax
je 0x4059b8
push 0x7d0
push eax
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [esi + 0x1b0c]
call ebx
and dword [esi + 0x1b0c], 0
mov eax, dword [esi + 0x1b40]
test eax, eax
je 0x4059c5
push eax
call ebx
mov esi, dword [esi + 0x1b10]
test esi, esi
je 0x4059d2
push esi
call ebx
push dword [ebp + 8]
call dword [0x4010a8]
pop edi
pop ebx
pop esi
pop ebp
ret 4

Function at 0x405b51
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [esi + 0x1b44]
test al, 1
jne 0x405bf6
or al, 1
mov byte [esi + 0x1b44], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
push ebx
mov dword [esi + 0x1b48], eax
push edi
lea eax, [esi + 0x1b18]
push eax
mov dword [esi + 0x1b14], ecx
call dword [0x4010ac]
mov ebx, dword [0x4010c0]
xor edi, edi
push edi
push edi
push 1
push edi
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1b40], eax
call ebx
mov dword [esi + 0x1b10], eax
cmp dword [esi + 0x1b40], edi
je 0x405bee
cmp eax, edi
je 0x405bee
cmp dword [ebp + 0x10], edi
je 0x405bdd
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push dword [ebp + 0x10]
push edi
push edi
call dword [0x4010cc]
mov dword [esi + 0x1b0c], eax
cmp eax, edi
je 0x405bee
push dword [ebp + 0x14]
push dword [esi + 0x1b0c]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
jmp 0x405bf4
push esi
call fcn.0040593e
pop edi
pop ebx
movzx eax, byte [esi + 0x1b44]
and eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x40610d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
push edi
mov ebx, 0x80
push ebx
xor edi, edi
push edi
lea eax, [ebp - 0x8c]
push eax
call fcn.00406f95
mov dword [ebp - 4], 3
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 8], edi
je 0x406195
dec eax
jne 0x40621e
mov edx, dword [ebp + 8]
mov eax, dword [edx]
lea ecx, [eax + 6]
cmp dword [0x405086], edi
je 0x40615d
mov ecx, 0x405086
push dword [edx + 4]
add eax, 2
push eax
push ecx
lea eax, [ebp - 0x8c]
push eax
call fcn.00404ce4
test eax, eax
jle 0x40621e
push edi
push 0x12
push 0x12
push edi
lea eax, [ebp - 0xa8]
push eax
call dword [0x401124]
test eax, eax
je 0x406135
jmp 0x40621e
push 0x4464
push 0x40
call dword [sym.imp.ntdll.dll_NtCreateKey]
mov esi, eax
cmp esi, edi
je 0x40620c
or dword [esi + 0x70], 0xffffffff
or byte [esi + 0x5c], 4
call dword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
mov dword [esi + 0x3ba8], eax
push ebx
lea eax, [ebp - 0x8c]
push eax
lea eax, [esi + 0x3c58]
push eax
call fcn.00406f7c
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x40347a
push edi
push edi
mov dword [esi + 0x6c], 3
call dword [0x4010cc]
mov dword [esi + 0x3ba4], eax
cmp eax, edi
je 0x40620c
push 0xfffffffffffffff1
mov dword [ebp - 0x58], edi
push dword [esi + 0x3ba4]
mov dword [ebp - 8], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push dword [ebp - 8]
push esi
call fcn.00405c58
cmp dword [ebp - 8], edi
jne 0x406135
lea eax, [ebp - 0x8c]
push eax
call fcn.00404c6a
push 2
push 1
push 0x400
push dword [0x405044]
call dword [0x40111c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406371
Capabilities:
Read file on windows

Disassembly:
push 0x20
push 0x403cc8
call fcn.00404ca9
and dword [ebp - 0x1c], 0
mov edi, 0x10000
and dword [ebp - 0x24], 0
push 0x401298
call dword [sym.imp.ntdll.dll_NtDisplayString]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x406471
push 0x40127c
push ebx
mov esi, dword [0x4010d0]
call esi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x406471
push 0x4012a4
push ebx
call esi
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x406471
mov esi, 0xc0000004
push edi
push 0x40
call dword [sym.imp.ntdll.dll_NtCreateKey]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x406471
push 0
push edi
push eax
push 5
call dword [ebp - 0x28]
mov ebx, eax
cmp ebx, esi
jne 0x406407
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_memcpy]
and dword [ebp - 0x1c], 0
add edi, edi
jmp 0x40640b
test ebx, ebx
js 0x406471
cmp ebx, esi
je 0x4063d3
mov esi, dword [ebp - 0x1c]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x40645b
push 0x4013a4
push eax
call dword [ebp - 0x2c]
pop ecx
pop ecx
test eax, eax
jne 0x40645b
push dword [esi + 0x44]
push edi
push 0x410
call dword [0x4010a0]
mov esi, eax
cmp esi, edi
je 0x40646d
lea eax, [ebp - 0x24]
push eax
push 0x200ff
push esi
call dword [sym.imp.ntdll.dll_NtReadFile]
push esi
call dword [sym.imp.ntdll.dll_LdrLoadDll]
jmp 0x40646d
cmp dword [esi], edi
je 0x40646d
add esi, dword [esi]
mov dword [ebp - 0x30], esi
jmp 0x406417
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x406480
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp dword [ebp - 0x1c], 0
je 0x40648f
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_memcpy]
mov eax, dword [ebp - 0x24]
call fcn.00406bf9
ret

Function at 0x406498
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0x405074], edi
jne 0x4064cb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4010a4]
push 0x4011dc
push dword [ebp + 8]
call dword [0x4010d4]
xor eax, eax
inc eax
jmp 0x406553
push esi
mov esi, dword [ebp + 8]
push 0x401300
push esi
call dword [0x4010e0]
test edi, edi
je 0x4064e3
mov byte [esi + 0x29], 0
lea eax, [ebp - 4]
push eax
push esi
push 0x80000002
call dword [sym.imp.ntdll.dll_NtSetValueKey]
test eax, eax
jne 0x406540
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x40652b
push 0x40137c
push esi
call dword [0x4010d4]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
test eax, eax
je 0x406540
cmp dword [ebp - 8], 0
je 0x40654b
test edi, edi
jne 0x406550
mov edi, 0x401178
jmp 0x4064cf
xor eax, eax
inc eax
jmp 0x406552
xor eax, eax
pop esi
pop edi
leave
ret 8
Function at 0x406558
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 4
mov esi, 0x1000
push esi
push esi
push 0
push ebx
call dword [sym.imp.ntdll.dll_wcscpy]
mov edi, eax
test edi, edi
je 0x4065be
push 0
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_wcslen]
inc eax
push eax
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
je 0x4065b0
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push edi
push dword [sym.imp.ntdll.dll_NtDisplayString]
push ebx
call fcn.00406a50
push 0x8000
push esi
push edi
push ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push esi
push esi
push dword [ebp + 8]
mov dword [ebx], esi
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x406abf
cmp dword [ebp + 0x1c], esi
jne 0x406a8f
mov dword [ebx], 1
jmp 0x406ab4
push 0xffffffffffffffff
lea eax, [ebp - 8]
push esi
push eax
cmp edi, esi
je 0x406a9e
push 2
jmp 0x406aa0
push 1
call dword [0x4010dc]
cmp eax, esi
jne 0x406ab4
push ebx
push dword [ebp - 8]
call dword [fcn.004010f8]
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_LdrLoadDll]
jmp 0x406ac9
push esi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_wcsncpy]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x40712f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [esi + 0x1a], bx
push 0x7e
push esi
call fcn.0040563e
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x4071b5
cmp ebx, dword [esi]
jl 0x40715b
cmp ebx, edi
jge 0x40715b
mov edi, ebx
mov eax, ebx
sub eax, edi
je 0x407178
dec eax
je 0x407173
dec eax
je 0x40716e
add ebx, dword [ebp + 0xc]
mov bl, byte [ebx]
jmp 0x407187
mov bl, byte [esi + 0x1a]
jmp 0x407191
mov bl, byte [esi + 0x1b]
jmp 0x407191
mov bl, byte [esi + 0x18]
test edi, edi
je 0x407187
cmp edi, dword [ebp + 0x10]
jne 0x407187
or bl, 8
movzx eax, bl
push eax
push esi
call fcn.00407108
movzx eax, bl
bt dword [0x405198], eax
jae 0x4071a8
push 0x7d
push esi
call fcn.0040563e
xor bl, 0x20
movzx eax, bl
push eax
push esi
call fcn.0040563e
inc dword [ebp - 8]
lea eax, [edi + 3]
cmp dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
jl 0x407151
push 0x7e
push esi
call fcn.0040563e
push esi
call fcn.00405336
movzx ecx, byte [esi + 0x18]
shr ecx, 4
and cl, 7
mov edi, ecx
lea eax, [esi + 0x18]
push eax
call fcn.00406f18
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*4 + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi*4 + 0x3c], eax
lea eax, [ebx - 3]
pop edi
pop esi
pop ebx
leave
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404340
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
push edx
push esi
mov edx, 0x403db6
mov eax, dword [0x44746c]
call fcn.00434d70
mov ecx, eax
mov esi, eax
test eax, eax
je 0x40440d
mov ebx, 2
xor edx, edx
call fcn.00434eb0
mov eax, ecx
call fcn.00434fe0
mov dword [0x448010], eax
test eax, eax
jne 0x40439b
mov eax, ecx
mov edx, 0x22
call fcn.00434ac0
mov eax, 2
call fcn.00404b70
mov eax, 2
jmp 0x435047
mov eax, dword [0x448010]
call fcn.00406a40
xor ebx, ebx
xor edx, edx
mov dword [0x447464], eax
mov eax, esi
mov ecx, esi
call fcn.00434eb0
mov edx, 1
xor eax, eax
mov ebx, dword [0x448010]
mov dword [0x44800c], eax
mov eax, dword [0x447464]
call fcn.004350b0
cmp eax, dword [0x448010]
jne 0x40441e
mov eax, esi
call fcn.00434ac0
mov ecx, dword [0x447470]
test ecx, ecx
je 0x404406
mov edx, 0x403e2c
mov eax, ecx
call fcn.00434d70
mov dword [0x448024], eax
test eax, eax
je 0x40443b
call fcn.00408ae0
mov al, 2
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, dword [0x44746c]
call fcn.004352a0
mov al, 1
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, esi
mov edx, 0x1d
call fcn.00434ac0
mov eax, 1
call fcn.00404b70
mov al, 1
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, dword [0x447470]
call fcn.004352a0
mov al, 1
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x435d60
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x4480ec], eax
mov dword [0x44771c], edx
call fcn.00438c50
xor eax, eax
mov dword [0x448814], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x447821], al
shr eax, 0x10
mov word [0x447823], ax
xor eax, eax
mov ax, word [0x447823]
and edx, 0xffff
mov dword [0x447825], eax
xor eax, eax
sar edx, 8
mov al, byte [0x447821]
and edx, 0xff
mov dword [0x447829], eax
xor eax, eax
mov al, dl
mov byte [0x447822], dl
mov dword [0x44782d], eax
mov eax, dword [0x447829]
mov edx, dword [0x44782d]
shl eax, 8
or eax, edx
mov dword [0x447831], eax
cmp byte [0x447821], 4
jae 0x435e87
mov eax, 0x435cf8
push eax
xor edx, edx
push 0x435d25
mov dword [0x44781d], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x435e1a
call edx
mov dword [0x44781d], eax
push 0x104
push 0x4480f0
push 0
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x4481f4
xor eax, eax
mov dword [0x4477ec], 0x4480f0
call fcn.00438d90
mov dword [0x4477f8], 0x4481f4
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00438e30
mov edx, eax
mov bl, byte [eax]
mov dword [0x4480e4], eax
cmp bl, 0x22
je 0x435e91
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x432dd1], 2
je 0x435ea9
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x432dd1], 2
je 0x435eb0
inc eax
jmp 0x435e77
mov eax, 0x435d0e
jmp 0x435df2
inc eax
cmp bl, byte [eax]
je 0x435ea1
cmp byte [eax], 0
je 0x435ea1
inc eax
cmp byte [eax], 0x22
jne 0x435e96
cmp byte [eax], 0
je 0x435e77
inc eax
jmp 0x435e77
test dl, dl
je 0x435e77
inc eax
jmp 0x435e6a
mov dword [0x4477e8], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x435f26
call fcn.00438e70
mov edx, eax
mov bx, word [eax]
mov dword [0x4480e8], eax
cmp bx, 0x22
je 0x435ef9
xor eax, eax
mov ax, word [edx]
call fcn.00438e97
test eax, eax
je 0x435f1b
xor eax, eax
mov ax, word [edx]
call fcn.00438e97
test eax, eax
je 0x435f2b
add edx, 2
jmp 0x435ee6
lea edx, [eax + 2]
cmp bx, word [edx]
je 0x435f10
cmp word [edx], 0
je 0x435f10
add edx, 2
cmp word [edx], 0x22
jne 0x435f01
cmp word [edx], 0
je 0x435ee6
add edx, 2
jmp 0x435ee6
cmp word [edx], 0
je 0x435ee6
add edx, 2
jmp 0x435ed8
mov edx, 0x435d32
mov dword [0x4477f4], edx
test edi, edi
jne 0x435f3e
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x4483fc
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x448500
mov eax, esi
mov dword [0x4477f0], 0x4483fc
call fcn.00438d90
mov dword [0x4477fc], 0x448500
mov eax, 1
pop edi
pop esi
pop ecx
ret

Function at 0x436730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
push 0x40
push 0x1000
mov edx, dword [eax]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop edx
pop ecx
ret
Function at 0x437f90
Capabilities:
Read file on windows

Disassembly:
push ecx
sub esp, 4
test eax, eax
jl 0x437fc1
cmp eax, dword [0x447868]
jae 0x437fc1
push 0
lea ecx, [esp + 4]
push ecx
push ebx
push edx
call fcn.00438b80
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x437fd8
mov eax, dword [esp]
add esp, 4
pop ecx
ret
call dword [0x447720]
mov dword [eax + 4], 4
mov eax, 0xffffffff
add esp, 4
pop ecx
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
call fcn.00442ed0
cmp edx, 0x6d
jne 0x437ff0
cmp dword [esp], 0
je 0x437fb9
mov eax, 0xffffffff
add esp, 4
pop ecx
ret

Function at 0x4387d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
mov edi, ebx
test eax, eax
jl 0x438864
cmp eax, dword [0x447868]
jae 0x438864
call fcn.00438b80
mov edx, eax
mov dword [esp + 4], eax
mov eax, esi
xor ebx, ebx
call fcn.00442e90
test al, 0x80
je 0x438828
mov eax, esi
call dword [0x4476d4]
push 2
push 0
push 0
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x438878
push 0
lea eax, [esp + 4]
push eax
push edi
push ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x438882
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
cmp ebx, 1
jne 0x438855
mov eax, esi
call dword [0x4476d8]
mov eax, edx
call fcn.00442ed0
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x447720]
mov dword [eax + 4], 4
mov eax, 0xffffffff
jmp 0x43885c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x43884d
cmp edi, dword [esp]
je 0x438894
call dword [0x447720]
mov dword [eax + 4], 0xc
cmp ebx, 1
jne 0x4388a1
mov eax, esi
call dword [0x4476d8]
mov eax, dword [esp]
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x43d580
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x20
mov ebp, eax
mov esi, edx
mov edi, ebx
mov ebx, 0x20
mov eax, esp
xor edx, edx
call fcn.00434170
cmp byte [esi], 0
je 0x43d5da
mov al, byte [esi]
movzx ecx, al
mov eax, ecx
cdq
shl edx, 3
sbb eax, edx
sar eax, 3
mov edx, eax
mov eax, ecx
sar eax, 0x1f
xor ecx, eax
sub ecx, eax
and ecx, 7
xor ecx, eax
sub ecx, eax
mov eax, 1
shl eax, cl
mov ecx, eax
movzx eax, byte [esp + edx]
or eax, ecx
inc esi
mov byte [esp + edx], al
cmp byte [esi], 0
jne 0x43d5a0
xor esi, esi
test edi, edi
jbe 0x43d61b
mov ebx, ebp
mov al, byte [ebx]
movzx edx, al
mov eax, edx
mov ecx, edx
sar eax, 0x1f
xor ecx, eax
sub ecx, eax
and ecx, 7
xor ecx, eax
sub ecx, eax
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, edx
cdq
shl edx, 3
sbb eax, edx
sar eax, 3
movzx eax, byte [esp + eax]
test eax, ecx
jne 0x43d61b
inc esi
inc ebx
cmp esi, edi
jb 0x43d5e2
mov eax, esi
add esp, 0x20
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x43f310
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x20
mov ebp, eax
mov esi, edx
mov edi, ebx
mov ebx, 0x20
mov eax, esp
xor edx, edx
call fcn.00434170
cmp byte [esi], 0
je 0x43f36a
mov al, byte [esi]
movzx ecx, al
mov eax, ecx
cdq
shl edx, 3
sbb eax, edx
sar eax, 3
mov edx, eax
mov eax, ecx
sar eax, 0x1f
xor ecx, eax
sub ecx, eax
and ecx, 7
xor ecx, eax
sub ecx, eax
mov eax, 1
shl eax, cl
mov ecx, eax
movzx eax, byte [esp + edx]
or eax, ecx
inc esi
mov byte [esp + edx], al
cmp byte [esi], 0
jne 0x43f330
xor esi, esi
test edi, edi
jbe 0x43f3ab
mov ebx, ebp
mov al, byte [ebx]
movzx edx, al
mov eax, edx
mov ecx, edx
sar eax, 0x1f
xor ecx, eax
sub ecx, eax
and ecx, 7
xor ecx, eax
sub ecx, eax
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, edx
cdq
shl edx, 3
sbb eax, edx
sar eax, 3
movzx eax, byte [esp + eax]
test eax, ecx
jne 0x43f3ab
inc esi
inc ebx
cmp esi, edi
jb 0x43f372
mov eax, esi
add esp, 0x20
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x4431f0
Capabilities:
Terminate process

Disassembly:
mov ecx, eax
call dword [0x4476b8]
cmp dword [0x4480ec], 0
je 0x435084
cmp dword [0x447710], 0
je 0x435071
mov edx, 0xff
mov eax, 0x10
call dword [0x447710]
call dword [0x4476b8]
call dword [0x4476bc]
mov eax, ecx
jmp fcn.00436060
mov edx, 0xff
mov eax, 0x10
call fcn.00437f30
jmp 0x435071
push edx
push ebp
mov ebp, esp
mov eax, dword [0x447808]
add eax, 3
and al, 0xfc
mov edx, dword [0x447808]
sub esp, eax
mov eax, esp
add eax, edx
mov dword [0x44780c], eax
call fcn.00445020
mov edx, dword [0x448930]
mov eax, dword [0x44892c]
call fcn.00406950
jmp 0x435047
Function at 0x1001eb0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 8], bl
mov byte [ebp - 7], bl
xor esi, esi
mov byte [ebp - 6], bl
mov byte [ebp - 5], bl
mov byte [ebp - 4], bl
mov byte [ebp - 3], 5
cmp dword [0x10102d0], 2
je 0x1001ee3
mov eax, dword [0x10102d0]
jmp 0x1001fc4
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001f01
xor eax, eax
jmp 0x1001fc4
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push edi
push edi
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1001f2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1001f2f
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001fae
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1001fae
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push 0
push 0
push 0x220
push 0x20
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001fae
xor edi, edi
cmp dword [esi], edi
jbe 0x1001fa5
lea eax, [esi + 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1001f9a
add dword [ebp - 0x18], 8
inc edi
cmp dword [esi], edi
ja 0x1001f7d
jmp 0x1001fa5
mov ebx, 1
mov dword [0x10102d0], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1001fc2
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret