joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b545c
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd4
mov byte [0x6d67dd], 0
push 0x6b55e8
call sub.kernel32.dll_GetModuleHandleW
mov ebx, eax
push 0x6b5604
push ebx
call fcn.00414020
mov esi, eax
test esi, esi
je 0x6b5504
lea eax, [esp + 2]
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x6b5504
cmp word [esp], 0
je 0x6b5504
mov byte [0x6d67dd], 1
movzx eax, word [esp + 2]
sub ax, 0x14c
je 0x6b54c8
sub ax, 0xb4
je 0x6b54d4
sub ax, 0x8464
je 0x6b54e0
sub ax, 0x2400
je 0x6b54ec
jmp 0x6b54f8
mov byte [0x6cd73d], 1
jmp 0x6b55a0
mov byte [0x6cd73d], 3
jmp 0x6b55a0
mov byte [0x6cd73d], 2
jmp 0x6b55a0
mov byte [0x6cd73d], 4
jmp 0x6b55a0
mov byte [0x6cd73d], 0
jmp 0x6b55a0
push 0x6b5624
push ebx
call fcn.00414020
test eax, eax
je 0x6b554c
lea edx, [esp + 8]
push edx
call eax
push 0x6b564c
push ebx
call fcn.00414020
mov esi, eax
test esi, esi
je 0x6b5556
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x6b5556
cmp dword [esp + 4], 0
je 0x6b5556
mov byte [0x6d67dd], 1
jmp 0x6b5556
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetSystemInfo
movzx eax, word [esp + 8]
sub ax, 1
jb 0x6b5575
sub ax, 5
je 0x6b557e
sub ax, 3
je 0x6b5587
sub ax, 3
je 0x6b5590
jmp 0x6b5599
mov byte [0x6cd73d], 1
jmp 0x6b55a0
mov byte [0x6cd73d], 3
jmp 0x6b55a0
mov byte [0x6cd73d], 2
jmp 0x6b55a0
mov byte [0x6cd73d], 4
jmp 0x6b55a0
mov byte [0x6cd73d], 0
cmp byte [0x6d67dd], 0
je 0x6b55e1
call fcn.0060bf6c
test al, al
je 0x6b55da
push 0x6b566c
push ebx
call fcn.00414020
test eax, eax
je 0x6b55da
push 0x6b56a0
push 0x6b56c0
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00414020
test eax, eax
jne 0x6b55e1
mov byte [0x6d67dd], 0
add esp, 0x2c
pop esi
pop ebx
ret

Function at 0x6b56dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 1
lea eax, [ebp - 4]
push eax
mov ecx, 0x6b574c
mov edx, 0x80000002
xor eax, eax
call fcn.005c7a14
test eax, eax
jne 0x6b5745
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x6b57a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x6b573c
cmp dword [ebp - 0xc], 4
jne 0x6b573c
cmp dword [ebp - 8], 4
jne 0x6b573c
movzx eax, word [ebp - 0x10]
mov word [0x6d67f4], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
mov esp, ebp
pop ebp
ret
Function at 0x6b5948
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffdd0
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x6b59f7
movzx eax, byte [esp + 4]
shl eax, 0x18
movzx edx, byte [esp + 8]
shl edx, 0x10
or eax, edx
movzx edx, word [esp + 0xc]
or eax, edx
mov dword [0x6d67f0], eax
cmp byte [0x6d67dc], 0
je 0x6b59f7
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x6b59e8
mov dword [esp + 0x114], 0x11c
lea eax, [esp + 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x6b59f7
movzx eax, byte [esp + 0x228]
shl eax, 8
movzx edx, byte [esp + 0x22a]
or ax, dx
mov word [0x6d67f4], ax
movzx eax, byte [esp + 0x22e]
mov byte [0x6d67f6], al
movzx eax, word [esp + 0x22c]
mov word [0x6d67f8], ax
jmp 0x6b59f7
cmp eax, 4
jne 0x6b59f7
call fcn.006b56dc
call fcn.006b57b8
add esp, 0x230
ret

Function at 0x6b6998
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6b6a40
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6b6a5c
push ebx
push 0x6b6a6c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040b550
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00407760
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x6b6a1e
mov eax, dword [0x6cded8]
mov eax, dword [eax + 0x20c]
call fcn.006b68ec
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b6a47
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x6b740c
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6b75fa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.005c75e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0060d3b4
test al, al
jne 0x6b7479
xor eax, eax
push ebp
push 0x6b746f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.0060d8b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6b7479
push 0
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
mov eax, dword [0x6d68d0]
call fcn.0040b278
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x6b74a8
mov eax, dword [0x6cded8]
mov eax, dword [eax + 0x208]
call fcn.006b68ec
push 0x80
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.kernel32.dll_SetFileAttributesW
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x6d2634]
push eax
push 0
mov ecx, 0x6b7608
mov edx, 0x6b760c
xor eax, eax
call fcn.00414da0
mov dword [ebp - 8], eax
push 0x6b6ab0
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [0x6d68fc], eax
xor eax, eax
push ebp
push 0x6b75c3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x6cdec4]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.005c6fb0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x6b7628
call fcn.004244f8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.005c6e90
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.0040b470
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.006b6998
mov dword [ebp - 0xc], eax
call fcn.006b6a74
test al, al
jne 0x6b75a3
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x6b7581
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b75ca
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x6b8998
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x6b8c4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6cdec4]
mov eax, dword [eax]
mov edx, 0x6b8c68
call fcn.005b8250
push 5
mov eax, dword [0x6cdec4]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x6b8c15
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.006af824
lea eax, [ebp - 0x10]
call fcn.005c745c
mov eax, dword [ebp - 0x10]
call fcn.00424020
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.005c6fb0
mov edx, dword [ebp - 0x14]
mov eax, 0x6d68d0
call fcn.0040a5a8
call fcn.006b6c80
lea ecx, [ebp - 0x18]
mov edx, 0x6b8c88
mov eax, dword [0x6d68d0]
call fcn.005c4f90
mov edx, dword [ebp - 0x18]
mov eax, 0x6d68d4
call fcn.0040a5a8
lea ecx, [ebp - 0x1c]
mov edx, 0x6b8ca0
mov eax, dword [0x6d68d0]
call fcn.005c4f90
mov edx, dword [ebp - 0x1c]
mov eax, 0x6d68d8
call fcn.0040a5a8
push 2
push 0
push 1
mov ecx, dword [0x6d68d0]
mov dl, 1
mov eax, dword [0x5cb65c]
call fcn.005cbfb8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6b8af0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.005cbf78
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.005cbf50
cmp dword [ebp - 0xc], 0x67734d49
je 0x6b8acb
mov cl, 1
xor edx, edx
mov eax, dword [0x6d68d8]
call fcn.005cd6bc
jmp 0x6b8ada
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x6d68d0]
call fcn.005cd6bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b8af7
mov eax, dword [ebp - 4]
call fcn.00408444
ret
Function at 0x6b8de4
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6b8f21
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x6b8f3c
mov edx, ebx
call fcn.0040b4c8
mov eax, dword [ebp - 0x25c]
call fcn.0040b278
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x6b8efb
xor eax, eax
push ebp
push 0x6b8ef4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x6b8f58
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.004241a0
test eax, eax
jne 0x6b8ec5
test byte [ebp - 0x258], 0x10
jne 0x6b8ec5
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.0040b318
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b4c8
mov esi, dword [ebp - 0x258]
test esi, 1
je 0x6b8ebd
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.00423a20
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x6b8e55
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b8efb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b8f28
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.0040a228
lea eax, [ebp - 4]
call fcn.0040a1c8
ret
Function at 0x6b8f64
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x6b9062
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.0040a1c8
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.005c5428
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x6b907c
call fcn.004244f8
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040b4c8
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x6b9002
test esi, 0x10
jne 0x6b9032
test esi, 1
je 0x6b9002
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov eax, dword [ebp - 8]
call fcn.0040b278
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040b278
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x6b902c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040a5a8
jmp 0x6b903f
inc edi
cmp edi, 0xa
je 0x6b903f
inc ebx
cmp ebx, 0x3e8
jne 0x6b8fa3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b9069
lea eax, [ebp - 0x14]
call fcn.0040a1c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a228
ret
Function at 0x4ce400
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x9c0]
cmp eax, 0x270
jl 0x4ce4d6
cmp eax, 0x271
jne 0x4ce429
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov ecx, esi
call fcn.004ce3a0
push edi
mov ecx, esi
mov edi, 0xe3
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
xor eax, edx
add ecx, 4
and eax, 0x7fffffff
xor eax, edx
mov edx, eax
and edx, 1
shr eax, 1
mov edx, dword [edx*4 + 0x4d142c]
xor edx, eax
mov eax, dword [ecx + 0x630]
xor edx, eax
dec edi
mov dword [ecx - 4], edx
jne 0x4ce431
lea ecx, [esi + 0x38c]
mov edi, 0x18c
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
xor eax, edx
add ecx, 4
and eax, 0x7fffffff
xor eax, edx
mov edx, eax
and edx, 1
shr eax, 1
mov edx, dword [edx*4 + 0x4d142c]
xor edx, eax
mov eax, dword [ecx - 0x390]
xor edx, eax
dec edi
mov dword [ecx - 4], edx
jne 0x4ce46b
mov ecx, dword [esi + 0x9bc]
mov edi, dword [esi]
mov eax, ecx
mov dword [esi + 0x9c0], 0
xor eax, edi
pop edi
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
mov edx, dword [ecx*4 + 0x4d142c]
mov ecx, dword [esi + 0x630]
xor edx, ecx
xor edx, eax
mov dword [esi + 0x9bc], edx
mov eax, dword [esi + 0x9c0]
mov ecx, dword [esi + eax*4]
inc eax
mov dword [esi + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
pop esi
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x4cf430
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x14]
test al, al
jne 0x4cf4ae
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
cmp eax, 0x12
jne 0x4cf45a
call fcn.004cf4c0
push 1
mov ecx, esi
call fcn.004cf500
pop edi
pop esi
ret 4
cmp eax, 0xa0
jl 0x4cf468
cmp eax, 0xa9
jle 0x4cf484
cmp eax, 0x100
jl 0x4cf476
cmp eax, 0x107
jle 0x4cf484
cmp eax, 0x200
jl 0x4cf4ae
cmp eax, 0x209
jg 0x4cf4ae
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
jne 0x4cf4ae
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
sub eax, edx
cmp eax, ecx
jbe 0x4cf4ae
call edi
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.004cf380
pop edi
pop esi
ret 4

Function at 0x4cf500
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x30]
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
mov byte [esi + 0x12], 1
je 0x4cf540
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x4cf540
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call ebp
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4cf551
push eax
call ebp
mov dword [esi + 0x2c], 0
mov eax, dword [0x4d2650]
pop edi
pop esi
pop ebp
test eax, eax
je 0x4cf56e
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x4d2650], 0
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ecx
ret 4

Function at 0x4cf5b0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
mov eax, dword [0x4d1010]
mov dword [esi + 0x24], eax
mov eax, dword [0x4d1090]
and eax, 0x30
je 0x4cf605
cmp eax, 0x10
je 0x4cf5e0
cmp eax, 0x20
je 0x4cf605
pop edi
pop esi
mov al, 1
pop ebx
ret
mov byte [esi + 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4cfae0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
pop edi
mov dword [0x4d2650], eax
pop esi
mov al, 1
pop ebx
ret
lea edi, [esi + 0x12]
push ebp
mov byte [esi + 0x11], 1
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
lea ebx, [esi + 0x2c]
push 0
push 0x1f03ff
push ebx
mov dword [esi + 0x28], eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
pop ebp
je 0x4cf67d
cmp dword [ebx], 0
je 0x4cf67d
lea ecx, [esi + 0x18]
push ecx
push 0
push edi
push 0x4cfa00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x1c], eax
push 1
je 0x4cf67f
push 0x4cfb20
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x4cf67d
pop edi
pop esi
mov al, 1
pop ebx
ret
push 1
mov ecx, esi
call fcn.004cf500
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4cfca0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
test esi, esi
mov eax, dword [edi]
je 0x4cfcdb
mov ecx, dword [esp + 0x10]
push ebx
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4d1434]
xor eax, edx
inc ecx
dec esi
jne 0x4cfcb5
mov dword [edi], eax
pop ebx
pop edi
pop esi
ret 0xc
mov dword [edi], eax
pop edi
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401a15
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40bfe0], esi
push edi
jne 0x401a35
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40bfdc], esi
mov byte [0x40bfd8], al
jne 0x401a9b
mov ecx, dword [0x40c5d4]
test ecx, ecx
leave
je 0x401a7c
mov eax, dword [0x40c5d0]
sub eax, 4
cmp eax, ecx
jmp 0x401a75
mov eax, dword [eax]
test eax, eax
je 0x401a67
call eax
mov eax, dword [0x40c5d0]
sub eax, 4
cmp eax, dword [0x40c5d4]
mov dword [0x40c5d0], eax
jae 0x401a5f
mov eax, 0x40b724
mov esi, 0x40b828
cmp eax, esi
mov edi, eax
jae 0x401a9b
mov eax, dword [edi]
test eax, eax
je 0x401a94
call eax
add edi, 4
cmp edi, esi
jb 0x401a8c
mov eax, 0x40b92c
mov esi, 0x40ba30
cmp eax, esi
mov edi, eax
jae 0x401aba
mov eax, dword [edi]
test eax, eax
je 0x401ab3
call eax
add edi, 4
cmp edi, esi
jb 0x401aab
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401ad4
push dword [ebp + 8]
mov dword [0x40bfe0], 1
call fcn.00401945
pop ebp
ret

Function at 0x401b16
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40bb84]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40bb90]
je 0x401b4b
inc eax
cmp eax, 0x13
jb 0x401b3c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40bb90]
jne 0x401c71
mov eax, dword [0x40bf8c]
cmp eax, 1
je 0x401c49
cmp eax, edx
jne 0x401b7b
cmp dword [0x40bb8c], 1
je 0x401c49
cmp ecx, 0xfc
je 0x401c71
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40bb94]
push dword [esi]
call fcn.004029c0
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]
Function at 0x40268d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40c0fc], ebx
push esi
push edi
jne 0x40270d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402748
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40c0fc], eax
je 0x402748
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40c100], eax
call esi
cmp dword [0x40bfa0], 2
mov dword [0x40c104], eax
jne 0x40270d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40c10c], eax
je 0x40270d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40c108], eax
mov eax, dword [0x40c108]
test eax, eax
je 0x402752
call eax
test eax, eax
je 0x402739
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40c10c]
test eax, eax
je 0x402739
test byte [ebp - 8], 1
jne 0x402752
cmp dword [0x40bfac], 4
jb 0x40274c
or byte [ebp + 0x12], 0x20
jmp 0x402771
xor eax, eax
jmp 0x402781
or byte [ebp + 0x12], 4
jmp 0x402771
mov eax, dword [0x40c100]
test eax, eax
je 0x402771
call eax
mov ebx, eax
test ebx, ebx
je 0x402771
mov eax, dword [0x40c104]
test eax, eax
je 0x402771
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40c0fc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b3a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x402b68
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x402b6f
cmp ebx, dword [eax + 4]
jae 0x402b6f
xor eax, eax
jmp 0x402d5f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402b80
xor eax, eax
inc eax
jmp 0x402d5e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402b96
cmp ecx, edx
jae 0x402cdb
cmp dword [eax + 4], 0
je 0x402b9f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x402b87
cmp dword [ebp + 8], 0
je 0x402bc1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402cdb
cmp eax, esi
jae 0x402cdb
mov eax, dword [0x40c110]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x402be6
cmp dword [esi*4 + 0x40c118], edi
je 0x402cdf
inc esi
cmp esi, eax
jl 0x402bd4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402d5b
cmp dword [ebp - 8], 0x1000000
jne 0x402d5b
test byte [ebp - 0xc], 0xcc
je 0x402c64
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x402d5b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402d5b
cmp word [eax + 0x18], 0x10b
jne 0x402d5b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x402d5b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402c64
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402c64
test byte [ecx + 0x27], 0x80
jne 0x402cdb
push 1
push 0x40c158
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x402b78
mov ecx, dword [0x40c110]
test ecx, ecx
mov edx, ecx
jle 0x402c98
lea eax, [ecx*4 + 0x40c114]
cmp dword [eax], edi
je 0x402c98
dec edx
sub eax, 4
test edx, edx
jg 0x402c8c
test edx, edx
jne 0x402cc9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402ca5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402cbd
lea eax, [edx*4 + 0x40c118]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x402cab
cmp ecx, 0x10
jge 0x402cc9
inc ecx
mov dword [0x40c110], ecx
push 0
push 0x40c158
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x402b78
xor eax, eax
jmp 0x402d5e
test esi, esi
jle 0x402b78
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40c158
call ebx
test eax, eax
jne 0x402b78
cmp dword [esi*4 + 0x40c118], edi
je 0x402d35
mov eax, dword [0x40c110]
lea esi, [eax - 1]
test esi, esi
jl 0x402d23
cmp dword [esi*4 + 0x40c118], edi
je 0x402d1f
dec esi
jns 0x402d13
test esi, esi
jge 0x402d33
cmp eax, 0x10
jge 0x402d2e
inc eax
mov dword [0x40c110], eax
lea esi, [eax - 1]
jmp 0x402d35
je 0x402d4d
xor ecx, ecx
test esi, esi
jl 0x402d4d
lea eax, [ecx*4 + 0x40c118]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x402d3b
push 0
push 0x40c158
call ebx
jmp 0x402b78
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret