joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f100
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10015991
call fcn.10013750
sub esp, 0x28
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x14], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.10009d0f
push eax
mov eax, dword [ebp - 0x34]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000f16b
push 0x1001ed54
lea ecx, [ebp - 0x30]
call fcn.10009909
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.1000b16d
push 0x1001a0f8
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x1000f17c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100159a5
call fcn.10013750
sub esp, 0x38
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x2710
push 0x2710
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x18], 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.10009cdf
push eax
mov eax, dword [ebp - 0x44]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1000f213
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call fcn.1001373b
pop ecx
push 0x1001ed54
lea ecx, [ebp - 0x3c]
call fcn.10009909
and dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.1000b16d
push 0x1001a0f8
lea eax, [ebp - 0x30]
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x18], 7
je 0x1000f22c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
call fcn.1001373b
pop ecx
xor eax, eax
jmp 0x1000f22f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1000f23d
Capabilities:
Set registry value

Disassembly:
mov eax, 0x100159b9
call fcn.10013750
sub esp, 0x24
mov dword [ebp - 0x30], ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push 0
mov ecx, dword [ebp + 8]
call fcn.10009d0f
push eax
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000f2a3
push 0x1001ed54
lea ecx, [ebp - 0x2c]
call fcn.10009909
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.1000b16d
push 0x1001a0f8
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x1000f2fb
Capabilities:
Set registry value

Disassembly:
mov eax, 0x100159cd
call fcn.10013750
sub esp, 0x24
mov dword [ebp - 0x30], ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 7
push 0
mov ecx, dword [ebp + 8]
call fcn.10009cdf
push eax
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000f360
push 0x1001ed54
lea ecx, [ebp - 0x2c]
call fcn.10009909
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.1000b16d
push 0x1001a0f8
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1000f3be
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10015a0a
call fcn.10013750
sub esp, 0x68
mov dword [ebp - 0x74], ecx
and dword [ebp - 0x68], 0
and dword [ebp - 0x24], 0
mov al, byte [ebp - 0x6c]
mov byte [ebp - 0x20], al
mov al, byte [ebp - 0x70]
mov byte [ebp - 0x1f], al
and byte [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
call fcn.100036b0
mov dword [ebp - 4], 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x74]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x1000f44f
push 0x1001ed54
lea ecx, [ebp - 0x50]
call fcn.10009909
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.1000b16d
push 0x1001a0f8
lea eax, [ebp - 0x44]
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0x208
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
push 0x104
push 0
push dword [ebp - 0x28]
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 0x34], 0
jmp 0x1000f482
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x24]
jae 0x1000f4e4
mov dword [ebp - 0x10], 0x104
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x74]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x1000f4bb
jmp 0x1000f4e4
push dword [ebp - 0x28]
lea ecx, [ebp - 0x60]
call fcn.100098df
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x20]
call fcn.10008c2b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.10009e47
jmp 0x1000f47b
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x64]
call fcn.1001373b
pop ecx
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov al, byte [ebp - 0x1f]
mov ecx, dword [ebp + 8]
mov byte [ecx + 1], al
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x18]
mov byte [eax + 8], cl
mov ecx, dword [ebp + 8]
call fcn.100036b0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.100035ce
mov eax, dword [ebp - 0x68]
or al, 1
mov dword [ebp - 0x68], eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.100033c7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1000f7e7
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
mov eax, 0x10015a81
call fcn.10013750
sub esp, 0x4c
mov dword [ebp - 0x58], ecx
push dword [ebp - 0x58]
push 0x1000f9e0
call dword [sym.imp.USER32.dll_EnumWindowStationsW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
inc eax
movzx eax, al
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x1000f965
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1000f8fd
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
push eax
push 0
push dword [ebp - 0x18]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1000f8e8
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.100098df
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.10009e96
lea ecx, [ebp - 0x3c]
call fcn.10009e47
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10009e47
cmp dword [ebp - 0x18], 0
je 0x1000f8fd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
call fcn.1001373b
pop ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
cmp eax, dword [0x1001ed64]
je 0x1000f933
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
cmp eax, dword [0x1001ed64]
je 0x1000f92b
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
jmp 0x1000f914
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
jmp 0x1000f960
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 8]
jne 0x1000f94f
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
jmp 0x1000f933
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x50]
je 0x1000f960
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
jmp 0x1000f81f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x10012666
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x63c730
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 5
je 0x63c74b
push eax
push esi
call fcn.0063cd70
add esp, 8
test eax, eax
jle 0x63c793
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.00571060
add esp, 8
test edi, edi
jg 0x63c790
push edi
call fcn.005b92b0
add esp, 4
test eax, eax
je 0x63c790
push 0xa
push esi
call fcn.005717c0
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10007073
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007073
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10007073
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10007073
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10007073
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10007073
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10007073
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10007073
push 0xd008
push edi
call fcn.10007073
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10007073
int3

Function at 0x10007073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10007082
pop dword [ebp - 0x44]
mov eax, 0x2382572c
add eax, 0xec7e1956
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3bf21
push 0
mov eax, 0xe4fb19b0
sub eax, 0xd4f9d94c
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x53aa
mov ebx, eax
mov esi, 0x10018600
add esi, dword [ebp - 0x44]
mov edx, 0xa8b6987b
add edx, 0x5e3f8460
xor dword [ebp - 0x3c], 0xce7a7e93
mov edi, dword [esi]
add dword [ebp - 0x3c], eax
xor edi, edx
xor dword [ebp - 0x24], 0x3824c580
mov dword [ebx], edi
sub dword [ebp - 0x40], edx
add ebx, 0xb0bdd77b
sub ebx, 0xb0bdd777
add esi, 4
loop 0x100070d5
add eax, 0x6b965bd6
sub eax, 0x6b951a5b
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x64ddbd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x658398
cmp edx, dword [eax]
je 0x64dddf
add eax, 8
inc ecx
cmp eax, 0x658428
jl 0x64ddd0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x658398]
jne 0x64df0d
mov eax, dword [0xa5bcf0]
cmp eax, 1
je 0x64dee7
test eax, eax
jne 0x64de10
cmp dword [0x6582c4], 1
je 0x64dee7
cmp edx, 0xfc
je 0x64df0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64de47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064e7a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064ec30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64de8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064ec30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x653ccc
push edi
call fcn.00650b00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064e7a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064e7b0
lea eax, [ebp - 0xa0]
push 0x653cac
push eax
call fcn.0064e7b0
push dword [esi + 0x65839c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064e7b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00650a74
add esp, 0x2c
pop edi
jmp 0x64df0d
lea eax, [ebp + 8]
lea esi, [esi + 0x65839c]
push 0
push eax
push dword [esi]
call fcn.0064ec30
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 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4028a2
Capabilities:
Encode data using xor

Disassembly:
inc eax
add byte [ebx + 0x31], dl
fisttp dword [ecx]
sal byte [esp + ebx - 0x75], cl
inc eax
in al, 0x31
leave
mov cl, byte [eax]
cmp ecx, dword [edx - 4]
jne 0x4028c7
dec edx
mov bh, byte [eax + ecx]
cmp al, 8
xor bh, byte [ecx - 0x20187ff6]
jne 0x4028c8
dec ecx
jne 0x4028b9
inc ebx
mov al, bl
pop ebx
ret

Function at 0x40790c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407928
shr eax, 1
xor eax, 0xedb88320
jmp 0x40792a
shr eax, 1
dec edx
jne 0x40791b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407914
pop esi
ret

Function at 0x407957
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x407963
call fcn.0040790c
push 1
push 0x40c558
call fcn.00404478
mov eax, edi
test esi, esi
je 0x40798e
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407969
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40114a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440008]
jne 0x401154
repz ret
jmp fcn.0040211b

Function at 0x412a50
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.0040ae9c
and dword [ebp - 4], 0
cmp dword [0x442d78], 0
mov ebx, eax
jne 0x412b01
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412bb2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x412bb2
push eax
call fcn.0040ae2a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x442d78], eax
call esi
push eax
call fcn.0040ae2a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x442d7c], eax
call esi
push eax
call fcn.0040ae2a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x442d80], eax
call esi
push eax
call fcn.0040ae2a
pop ecx
mov dword [0x442d88], eax
test eax, eax
je 0x412b01
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ae2a
pop ecx
mov dword [0x442d84], eax
mov eax, dword [0x442d84]
cmp eax, ebx
je 0x412b59
cmp dword [0x442d88], ebx
je 0x412b59
push eax
call fcn.0040aea5
push dword [0x442d88]
mov esi, eax
call fcn.0040aea5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412b59
test edi, edi
je 0x412b59
call esi
test eax, eax
je 0x412b50
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412b50
test byte [ebp - 0xc], 1
jne 0x412b59
or dword [ebp + 0x10], 0x200000
jmp 0x412b92
mov eax, dword [0x442d7c]
cmp eax, ebx
je 0x412b92
push eax
call fcn.0040aea5
pop ecx
test eax, eax
je 0x412b92
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412b92
mov eax, dword [0x442d80]
cmp eax, ebx
je 0x412b92
push eax
call fcn.0040aea5
pop ecx
test eax, eax
je 0x412b92
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442d78]
call fcn.0040aea5
pop ecx
test eax, eax
je 0x412bb2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412bb4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432870
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov dword [esp], 0x20
add dword [esp], 0x20
mov al, 0x65
mov byte [0x442e69], al
mov byte [0x442e6c], al
mov al, 0x6c
push 0x442e68
mov byte [0x442e68], 0x6b
mov byte [0x442e6a], 0x72
mov byte [0x442e6b], 0x6e
mov byte [0x442e6d], al
mov byte [0x442e6e], 0x33
mov byte [0x442e6f], 0x32
mov byte [0x442e70], 0x2e
mov byte [0x442e71], 0x64
mov byte [0x442e72], al
mov byte [0x442e73], al
mov byte [0x442e74], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x444650]
mov edx, dword [0x443368]
lea eax, [esp + 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
ret
Function at 0x432b10
Capabilities:
Clear file content
Create pipe

Disassembly:
mov eax, dword [0x444650]
sub esp, 0xc
push ebx
mov ebx, dword [0x443368]
push edi
mov edi, eax
cmp eax, 0x5dd
jne 0x432b31
push 0
call dword [sym.imp.KERNEL32.dll_LocalHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00432a00
add esp, 4
cmp dword [0x444650], 0x2f
jne 0x432ba8
xor eax, eax
xor edx, edx
mov word [esp + 0x12], ax
xor ecx, ecx
mov word [esp + 0xa], dx
lea eax, [esp + 8]
push eax
mov word [esp + 0xc], cx
mov ecx, dword [esp + 0xc]
push ecx
mov word [esp + 0x18], dx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.xamasu
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call fcn.00432a70
cmp dword [0x444650], 0x568
pop edi
pop ebx
jne 0x432bc3
push 0
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
add esp, 0xc
ret
Function at 0x7813480f
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ebx, ebx
push ebx
push ebx
mov ebp, str.__MSVCRT_HEAP_SELECT
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x78134961
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x7813495f
push esi
push ebx
push ebp
call edi
test eax, eax
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
jbe 0x78134953
cmp eax, esi
ja 0x78134953
cmp byte [ebx], 0
mov ecx, ebx
je 0x78134889
mov al, byte [ecx]
cmp al, 0x61
jl 0x78134883
cmp al, 0x7a
jg 0x78134883
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x78134875
push 0x16
push ebx
push str.__GLOBAL_HEAP_SELECTED
call sym.MSVCR80.dll__spawnvpe
add esp, 0xc
test eax, eax
jne 0x781348a1
mov edi, ebx
jmp 0x781348fc
push 0x105
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x78134953
push 3
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x781348e5
mov al, byte [ecx]
cmp al, 0x61
jl 0x781348df
cmp al, 0x7a
jg 0x781348df
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x781348d1
push esi
push ebx
call sym.MSVCR80.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
test edi, edi
je 0x78134953
push 0x2c
push edi
call sym.MSVCR80.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x78134953
inc eax
cmp byte [eax], 0x20
je 0x7813490e
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x78134953
cmp cl, 0x39
jg 0x78134934
imul esi, esi, 0xa
movsx ecx, cl
inc eax
lea esi, [esi + ecx - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x7813491d
cmp esi, 2
je 0x78134943
cmp esi, 3
je 0x78134943
cmp esi, 1
jne 0x78134953
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov eax, esi
jmp 0x781349c1
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
call sym.MSVCR80.dll__get_osplatform
test eax, eax
pop ecx
je 0x7813497d
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call sym.MSVCR80.dll__get_winmajor
test eax, eax
pop ecx
je 0x78134999
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [esp + 0x10], 2
jne 0x781349ac
cmp dword [esp + 0x14], 5
jb 0x781349ac
xor eax, eax
inc eax
jmp 0x781349c1
lea eax, [esp + 0x18]
push eax
call fcn.781347e2
cmp byte [esp + 0x1c], 6
pop ecx
sbb eax, eax
add eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x78138894
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.MSVCR80.dll__invalid_parameter