joyce8/EMBER2024-capa huggingface dataset:
Function at 0x514484
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5146b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406bfc
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.00403bd8
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.00403bd8
push 0x5146c0
push 0x5146e8
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a178
test eax, eax
je 0x51450e
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x51451a
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x514692
test bl, bl
je 0x51454a
call fcn.0051483c
mov edx, dword [eax]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x514565
lea eax, [ebp - 4]
mov edx, 0x514710
call fcn.00406bfc
cmp dword [ebp - 0x11c], 5
jne 0x514589
cmp dword [ebp - 0x118], 0
jne 0x514589
lea eax, [ebp - 4]
mov edx, 0x514734
call fcn.00406bfc
jmp 0x514692
cmp dword [ebp - 0x11c], 5
jne 0x5145ad
cmp dword [ebp - 0x118], 1
jne 0x5145ad
lea eax, [ebp - 4]
mov edx, 0x51475c
call fcn.00406bfc
jmp 0x514692
cmp dword [ebp - 0x11c], 5
jne 0x5145f3
cmp dword [ebp - 0x118], 2
jne 0x5145f3
cmp byte [ebp - 6], 1
jne 0x5145e1
cmp word [ebp - 0x144], 9
jne 0x5145e1
lea eax, [ebp - 4]
mov edx, 0x51475c
call fcn.00406bfc
jmp 0x514692
lea eax, [ebp - 4]
mov edx, 0x514780
call fcn.00406bfc
jmp 0x514692
cmp dword [ebp - 0x11c], 6
jne 0x514614
cmp dword [ebp - 0x118], 0
jne 0x514614
lea eax, [ebp - 4]
mov edx, 0x5147b4
call fcn.00406bfc
jmp 0x514692
cmp dword [ebp - 0x11c], 6
jne 0x514635
cmp dword [ebp - 0x118], 1
jne 0x514635
lea eax, [ebp - 4]
mov edx, 0x5147dc
call fcn.00406bfc
jmp 0x514692
cmp dword [ebp - 0x11c], 6
jne 0x51465b
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x51465b
lea eax, [ebp - 4]
mov edx, 0x5147fc
call fcn.00406bfc
jmp 0x514692
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x514680
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x514680
lea eax, [ebp - 4]
mov edx, 0x51481c
call fcn.00406bfc
jmp 0x514692
cmp eax, 0xa
jne 0x514692
lea eax, [ebp - 4]
mov edx, 0x51481c
call fcn.00406bfc
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406ba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5146b9
lea eax, [ebp - 4]
call fcn.00406b98
ret

Function at 0x51496c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406db8
add esp, 0x200
pop ebx
ret
Function at 0x51570c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b90
xor eax, eax
push ebp
push 0x5158a1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov eax, 2
call fcn.0050fc9c
mov esi, eax
mov dword [ebp - 0x234], 0x22c
lea edx, [ebp - 0x234]
mov eax, esi
call fcn.0050fcbc
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x51586d
lea eax, [ebp - 0x240]
lea edx, [ebp - 0x210]
mov ecx, 0x104
call fcn.00406db8
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x23c]
call fcn.0047221c
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
call fcn.004703bc
mov eax, dword [ebp - 0x238]
push eax
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 4]
call fcn.004703bc
mov edx, dword [ebp - 0x244]
pop eax
call fcn.00407204
je 0x515837
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x210]
mov ecx, 0x104
call fcn.00406db8
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.004703bc
mov eax, dword [ebp - 0x248]
push eax
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 4]
call fcn.004703bc
mov edx, dword [ebp - 0x250]
pop eax
call fcn.00407204
jne 0x51585a
mov eax, dword [ebp - 0x22c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov edi, eax
push 0
push edi
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 8], eax
push edi
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x234]
mov eax, esi
call fcn.0050fcdc
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x515792
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5158a8
lea eax, [ebp - 0x250]
mov edx, 7
call fcn.00406ba0
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x517370
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x517468
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00471f84
cmp dword [ebp - 4], 0
je 0x5173b1
mov eax, dword [ebp - 4]
mov edx, 0x517484
call fcn.00407204
jne 0x5173c5
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov eax, dword [ebp - 8]
mov edx, 0x517494
call fcn.00406f8c
jmp 0x517427
xor eax, eax
push ebp
push 0x5173f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x65
mov eax, dword [ebp - 4]
call fcn.00471a74
test al, al
jne 0x5173ef
mov eax, dword [ebp - 4]
call fcn.00471a98
dec ebx
jne 0x5173d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x517427
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
call fcn.00406c34
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
setne al
test al, al
je 0x517452
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00471bc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51746f
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x517fc4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x517fdd
add esp, 0xfffffff0
call fcn.00404974
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406b90
xor eax, eax
push ebp
push 0x518161
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x21], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0xffffffff
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.00406ba8
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004a0a48
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00404490
mov dl, 1
mov eax, dword [0x517000]
call fcn.00491c08
mov esi, eax
mov dword [ebx + 0x14], esi
lea eax, [ebx + 0xc]
sub eax, 4
mov dword [eax], esi
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.00406ba8
cmp dword [ebx + 0x10], 0
je 0x518130
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.00517c64
mov eax, dword [ebx + 0x10]
call fcn.00471a2c
test al, al
jne 0x518126
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.00471f84
mov eax, dword [ebp - 4]
test eax, eax
je 0x5180a8
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5180a8
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405d0c
test eax, eax
je 0x5180b1
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x5180bd
mov eax, dword [ebp - 4]
call fcn.00517d98
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00406c34
push eax
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
cmp esi, 0xffffffff
je 0x518126
cmp dword [ebp + 8], 0
je 0x518120
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call fcn.00408324
test eax, eax
jle 0x518120
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00408324
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebx + 0x24], 0
je 0x518130
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x517ebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518168
lea eax, [ebp - 8]
mov edx, dword [0x46ebf0]
call fcn.0040860c
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x51fb60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
dec ecx
test ecx, ecx
jl 0x51fbcf
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [esi + ebx]
xor eax, edx
mov edx, dword [eax*8 + 0x6897e4]
mov eax, dword [eax*8 + 0x6897e0]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc ebx
dec ecx
jne 0x51fb84
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x51fbe0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x51fc08
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x6893e0]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x51fbea
pop esi
pop ebx
ret
Function at 0x524114
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x524145
dec al
je 0x524180
dec al
je 0x5241c5
dec al
je 0x52422e
jmp 0x5242b8
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5242b8
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x524155
jmp 0x5242b8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5242b8
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x524190
jmp 0x5242b8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5242b8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x5241f4
xor ebp, ebp
jmp 0x524204
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x52420d
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5241d5
jmp 0x5242b8
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5242b8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x524287
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0051fc0c
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x524242
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5303c4
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x530566
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi + 5], eax
mov byte [esi], 0
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.005302ec
test al, al
je 0x530430
mov eax, dword [0x693cc4]
cmp byte [eax], 0
je 0x530421
mov ecx, 0x3ef8
mov edx, 0x530580
mov eax, 0x530624
call fcn.00405a68
push 0x530668
call sub.kernel32.dll_OutputDebugStringW
jmp 0x53054b
mov eax, ebx
call fcn.0052ff64
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x53054b
mov byte [ebp - 0xd], 0xe9
sub edi, ebx
sub edi, 5
mov dword [ebp - 0xc], edi
movzx eax, byte [esi]
cmp al, byte [ebp - 0xd]
jne 0x530500
push 0x530690
call sub.kernel32.dll_OutputDebugStringW
movzx eax, byte [esi]
mov byte [ebp - 0xd], al
mov byte [esi], 0
xor edi, edi
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0xd], 0xe9
jne 0x5304aa
mov edi, ebx
add edi, 5
add edi, dword [esi + 1]
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x34]
mov ecx, 2
mov eax, 0x5306cc
call fcn.00472ef8
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x530704
call fcn.00406f8c
mov eax, dword [ebp - 0x18]
mov ecx, 0x3f1f
mov edx, 0x530580
call fcn.00405a68
jmp 0x53054b
mov dword [esi + 5], ebx
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test esi, esi
je 0x53054b
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53056d
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00406ba0
ret
Function at 0x530740
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp byte [esi], 0
je 0x5307ec
test ebx, ebx
je 0x5307ec
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.005302ec
test al, al
je 0x530797
mov eax, dword [0x693cc4]
cmp byte [eax], 0
je 0x53078b
mov ecx, 0x3f3e
mov edx, 0x530800
mov eax, 0x5308a4
call fcn.00405a68
push 0x5308e8
call sub.kernel32.dll_OutputDebugStringW
jmp 0x5307ec
mov eax, ebx
call fcn.0052ff64
mov ebx, eax
test ebx, ebx
je 0x5307ec
lea eax, [esp + 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
push esp
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
mov edi, eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test edi, edi
je 0x5307e9
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov byte [esi], 0
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5360e8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x536157
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x536170
call fcn.00472ef8
mov eax, dword [ebp - 4]
call fcn.00406c34
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53615e
lea eax, [ebp - 4]
call fcn.00406b98
ret

Function at 0x536278
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5362d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x5362ec
call fcn.00472ef8
mov eax, dword [ebp - 4]
call fcn.00406c34
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5362dc
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x53639c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x536611
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x69b650], 0
je 0x5365f6
mov ebx, dword [0x69b650]
call fcn.00404a2c
mov eax, ebx
call fcn.00404d4c
or edx, 0xffffffff
call fcn.00404ad8
xor eax, eax
push ebp
push 0x5365ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x69b650]
mov edx, dword [eax + 0x30]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x536506
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x69b650]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x69b650]
mov edx, dword [0x51b774]
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], 0x52bf6c
mov eax, dword [0x69b650]
call fcn.005350d0
mov eax, dword [0x69b650]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
mov eax, dword [0x69b650]
mov ebx, dword [eax + 0x38]
cmp byte [0x69b68c], 0
je 0x5364a6
test ebx, ebx
je 0x5364a6
xor edi, edi
test ebx, ebx
je 0x5364a6
cmp dword [ebx + 4], 0xfffffffe
jne 0x53649f
inc edi
push 0x53662c
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004712b0
push dword [ebp - 0x14]
push 0x53666c
push dword [ebx]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040705c
mov eax, dword [ebp - 0x10]
call fcn.00406c34
push eax
call sub.kernel32.dll_OutputDebugStringW
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x536464
mov eax, dword [0x69b650]
mov ebx, dword [eax + 0x38]
test ebx, ebx
je 0x5364dd
mov esi, dword [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 4], 0xfffffffe
mov dword [ebx + 8], 0xe6
mov edx, dword [ebx + 0xc]
mov ecx, ebx
mov eax, dword [0x69b650]
call fcn.0053538c
mov ebx, esi
test ebx, ebx
jne 0x5364b2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53650d
mov eax, dword [0x69b650]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x69b650]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536618
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406ba0
ret
Function at 0x53ddbc
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x53de08
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x53de1c
call sub.user32.dll_FindWindowW
mov ebx, eax
test ebx, ebx
je 0x53ddfa
push 0xffffffffffffffec
push ebx
call sub.user32.dll_GetWindowLongW
test eax, 0x400000
setne byte [ebp - 1]
jmp 0x53ddfe
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53de12
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x53e078
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
xor edx, edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x53e20d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 4]
xor eax, eax
call fcn.00514484
mov edx, 0x53e228
mov eax, dword [ebp - 4]
call fcn.00470760
test al, al
je 0x53e0b9
mov bl, 2
jmp 0x53e1f7
mov edx, 0x53e24c
mov eax, dword [ebp - 4]
call fcn.00470760
test al, al
je 0x53e0d1
mov bl, 3
jmp 0x53e1f7
mov edx, 0x53e274
mov eax, dword [ebp - 4]
call fcn.00470760
test al, al
je 0x53e0e9
mov bl, 5
jmp 0x53e1f7
mov edx, 0x53e298
mov eax, dword [ebp - 4]
call fcn.00470760
test al, al
je 0x53e101
mov bl, 4
jmp 0x53e1f7
mov edx, 0x53e2cc
mov eax, dword [ebp - 4]
call fcn.00470760
test al, al
je 0x53e119
mov bl, 6
jmp 0x53e1f7
mov edx, 0x53e2f4
mov eax, dword [ebp - 4]
call fcn.00470760
test al, al
je 0x53e131
mov bl, 7
jmp 0x53e1f7
mov edx, 0x53e314
mov eax, dword [ebp - 4]
call fcn.00470760
test al, al
je 0x53e1d3
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.00403bd8
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.00403bd8
push 0x53e328
push 0x53e350
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040a178
test eax, eax
je 0x53e1a4
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x53e1b0
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x53e1f7
cmp dword [ebp - 0x11c], 6
jne 0x53e1cf
cmp dword [ebp - 0x118], 3
jne 0x53e1cf
mov bl, 9
jmp 0x53e1f7
mov bl, 8
jmp 0x53e1f7
mov edx, 0x53e378
mov eax, dword [ebp - 4]
call fcn.00470760
test al, al
je 0x53e1f7
mov eax, dword [0x693ad4]
cmp dword [eax], 0x55f0
jl 0x53e1f5
mov bl, 0xb
jmp 0x53e1f7
mov bl, 0xa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53e214
lea eax, [ebp - 4]
call fcn.00406b98
ret
Function at 0x53e390
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x53e47f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00406ba8
mov dl, 1
mov eax, dword [0x48b8c0]
call fcn.00491c08
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x53e462
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x53e438
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetCommandLineW_1
push eax
call sub.shell32.dll_CommandLineToArgvW
mov edi, eax
mov esi, edi
test edi, edi
je 0x53e42e
mov ebx, dword [ebp - 8]
test ebx, ebx
jle 0x53e41d
lea eax, [ebp - 0x10]
mov edx, dword [esi]
call fcn.00406d64
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add esi, 4
dec ebx
jne 0x53e402
push edi
call sub.kernel32.dll_LocalFree
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53e44c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53e469
mov eax, dword [ebp - 0xc]
call fcn.00404490
ret