joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411bb0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4bc084]
test eax, eax
je 0x411c9d
mov ecx, dword [0x4bc088]
imul ecx, ecx, 0x70
add eax, ecx
mov cl, byte [esp + 8]
mov byte [eax + 5], dl
mov dx, word [esp + 0xc]
mov byte [eax], cl
mov word [eax + 2], dx
push esi
mov byte [eax + 4], 0x69
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4bdeec]
mov dword [0x4bc08c], eax
mov dword [esp + 4], ecx
fild dword [esp + 4]
jns 0x411c03
fadd dword [0x4b0c70]
fdiv qword [0x4b0c68]
mov edx, dword [0x4bc088]
mov ecx, dword [0x4bc084]
mov dword [0x4bdeec], eax
imul edx, edx, 0x70
fstp dword [esp + 4]
fld dword [esp + 4]
fstp dword [edx + ecx + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x411c62
mov edx, dword [0x4bc088]
mov eax, dword [0x4bc084]
imul edx, edx, 0x70
cmp esi, dword [0x4bc090]
je 0x411c5b
push 0x64
lea ecx, [edx + eax + 0xc]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x411c79
mov byte [edx + eax + 0xc], 0
jmp 0x411c79
mov ecx, dword [0x4bc088]
mov edx, dword [0x4bc084]
imul ecx, ecx, 0x70
mov dword [ecx + edx + 0xc], 0x412f4e
mov eax, dword [0x4bc088]
inc eax
mov dword [0x4bc090], esi
mov dword [0x4bc088], eax
pop esi
cmp eax, dword [0x4b73cc]
jl 0x411c9d
mov dword [0x4bc088], 0
pop ecx
ret

Function at 0x411ca0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
movzx eax, bl
push esi
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp ebp, 1
je 0x411ccf
cmp ebp, 2
jne 0x411dd5
cmp esi, ebp
je 0x411dd5
cmp bl, 0x90
jne 0x411cf6
push 0xffc3d44d
push 0
push 0
push 0
push 0x90
push 1
call fcn.0040fda0
add esp, 0x18
push edi
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 2
call fcn.0040fda0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x4bd780]
cmp eax, ecx
sete bl
test bl, bl
je 0x411d61
mov dword [0x4b73c8], 0
cmp ecx, edi
jne 0x411d4f
push 1
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
jmp 0x411d57
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4b73c8], 1
cmp byte [esp + 0x14], 0x14
jne 0x411dd4
cmp ebp, 2
jne 0x411dd4
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x411dd4
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push ebp
call fcn.0040fda0
add esp, 0x18
test bl, bl
je 0x411dd4
mov dword [0x4b73c8], 0
cmp dword [0x4bd780], edi
jne 0x411dc2
push 1
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
mov dword [0x4b73c8], 1
pop ebx
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4b73c8], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x412530
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x4bb8a0], 0
je 0x412546
cmp byte [esp + 4], 0
jne 0x412546
mov al, byte [0x4bb76b]
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x412563
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x412577
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x41258b
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x41259f
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4125b3
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4125c7
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4125d8
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x4125e9
or bl, 0x80
cmp dword [0x4bb8a0], 0
je 0x412626
mov al, bl
not al
and al, byte [0x4bb76b]
je 0x412626
mov cl, byte [0x4bb76f]
not al
and byte [0x4bb76b], al
and byte [0x4bb76e], al
and cl, al
mov al, cl
mov byte [0x4bb76f], cl
mov ecx, 0x4bb790
call fcn.00412630
pop esi
mov al, bl
pop ebx
ret

Function at 0x4129f0
Capabilities:
Get keyboard layout

Disassembly:
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x412a05
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x412a07
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
xor eax, eax
call fcn.00412a30
xor ecx, ecx
add esp, 4
cmp eax, 3
sete al
ret

Function at 0x412b80
Capabilities:
Log keystrokes

Disassembly:
push esi
push edi
mov esi, eax
mov edi, ecx
xor eax, eax
jmp 0x412b90
cmp byte [eax*8 + 0x4b81dc], bl
je 0x412bbc
inc eax
cmp eax, 0x6d
jl 0x412b90
push ebp
movzx ebp, bl
push 2
push ebp
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov byte [edi], al
test al, al
je 0x412bd8
pop ebp
mov byte [edi + 1], 0
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [eax*8 + 0x4b81d8]
dec esi
push esi
push eax
push edi
call fcn.004954d0
add esp, 0xc
mov byte [esi + edi], 0
mov eax, edi
pop edi
pop esi
ret
cmp byte [esp + 0x10], 0
je 0x412bf7
test bl, bl
je 0x412bf7
push ebp
push str.vk_02X
call fcn.0047dd10
add esp, 8
pop ebp
mov eax, edi
pop edi
pop esi
ret
pop ebp
mov byte [edi], 0
mov eax, edi
pop edi
pop esi
ret

Function at 0x412d60
Capabilities:
Log keystrokes via polling

Disassembly:
cmp al, 0xa
jne 0x412d67
mov al, 0xd
ret
push ecx
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx eax, ax
mov edx, eax
shr edx, 8
cmp dl, 0xff
jne 0x412d83
cmp al, 0xff
jne 0x412d83
xor al, al
ret
test dl, 0x38
jne 0x412d80
test esi, esi
je 0x412dce
mov cl, dl
and cl, 6
cmp cl, 6
jne 0x412d9b
or byte [esi], 8
jmp 0x412dbd
test dl, 2
je 0x412dac
mov cl, byte [esi]
test cl, 3
jne 0x412dac
or cl, 1
mov byte [esi], cl
test dl, 4
je 0x412dbd
mov cl, byte [esi]
test cl, 0xc
jne 0x412dbd
or cl, 4
mov byte [esi], cl
test dl, 1
je 0x412dce
mov cl, byte [esi]
test cl, 0x30
jne 0x412dce
or cl, 0x10
mov byte [esi], cl
ret
Function at 0x412ff0
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov bl, byte [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
mov byte [esi], 0
test bl, bl
jne 0x41301c
test di, di
jne 0x41300f
pop edi
pop ebp
mov eax, esi
pop ebx
ret
mov ecx, edi
call fcn.00413360
mov byte [esp + 0x10], al
jmp 0x413033
test di, di
jne 0x41303c
mov eax, dword [esp + 0x10]
push eax
xor bl, bl
call fcn.004130e0
add esp, 4
movzx edi, ax
mov bl, byte [esp + 0x10]
test di, di
je 0x413068
cmp bl, 0x9c
jb 0x413046
cmp bl, 0x9f
jbe 0x413068
xor eax, eax
jmp 0x413050
cmp word [eax*8 + 0x4b8544], di
je 0x413097
inc eax
cmp eax, 0xd
jl 0x413050
mov byte [esi], 0
cmp byte [esi], 0
jne 0x413009
xor eax, eax
lea ebx, [ebx]
cmp byte [eax*8 + 0x4b81dc], bl
je 0x4130b2
inc eax
cmp eax, 0x6d
jl 0x413070
movzx eax, bl
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov byte [esi], al
test al, al
je 0x4130cd
mov byte [esi + 1], 0
jmp 0x4130d0
mov ecx, dword [eax*8 + 0x4b8540]
lea edi, [ebp - 1]
push edi
push ecx
push esi
call fcn.004954d0
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x413063
mov edx, dword [eax*8 + 0x4b81d8]
lea edi, [ebp - 1]
push edi
push edx
push esi
call fcn.004954d0
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x4130d0
mov byte [esi], 0
cmp byte [esi], 0
mov eax, esi
jne 0x4130db
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
ret

Function at 0x413360
Capabilities:
Log keystrokes

Disassembly:
movzx eax, cx
cmp eax, 0x11c
jg 0x4133b8
je 0x4133b5
sub eax, 0x1d
cmp eax, 0x36
ja case.0x4133c9.286
movzx eax, byte [eax + 0x413438]
jmp dword [eax*4 + 0x4133f0]
mov al, 0xa0
ret
mov al, 0xa2
ret
mov al, 0xa4
ret
mov al, 0x6a
ret
mov al, 0x6d
ret
mov al, 0x6b
ret
mov al, 0x2e
ret
mov al, 0xc
ret
mov al, 0x2d
ret
mov al, 0x26
ret
mov al, 0x28
ret
mov al, 0x25
ret
mov al, 0x27
ret
mov al, 0x24
ret
mov al, 0x23
ret
mov al, 0x21
ret
mov al, 0x22
ret
mov al, 0xd
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x4133c9.286
movzx edx, byte [eax + 0x41348c]
jmp dword [edx*4 + 0x413470]
mov al, 0xa1
ret
mov al, 0xa3
ret
mov al, 0xa5
ret
mov al, 0x90
ret
mov al, 0x6f
ret
mov al, 0x5d
ret
movzx eax, cl
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
ret
Function at 0x414ed0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
not eax
cmp edx, 8
jb 0x414f9f
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a96d8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a96d8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a96d8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a96d8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a96d8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a96d8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a96d8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a96d8]
add ecx, 8
sub edx, 8
dec esi
jne 0x414ee2
pop edi
test edx, edx
je 0x414fbc
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4a96d8]
inc ecx
dec edx
jne 0x414fa3
not eax
pop esi
ret

Function at 0x415320
Capabilities:
Read file on windows

Disassembly:
push ecx
test byte [esi], 1
push edi
mov edi, eax
jne 0x415351
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 8]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41534a
mov dword [esi + 8], 7
pop edi
pop ecx
ret
mov eax, dword [esp + 4]
pop edi
pop ecx
ret
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ebx
lea ebx, [ecx + edi]
cmp ebx, eax
pop ebx
jbe 0x415364
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 4]
push edi
add eax, ecx
push eax
push edx
call fcn.0049b8f0
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
pop edi
pop ecx
ret
Function at 0x415a90
Capabilities:
Get common file path

Disassembly:
push esi
push 0x1a8
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x415aa9
lea eax, [esi + 2]
pop esi
ret
push 0xa4
push 0
push esi
call fcn.0049a020
add esp, 0xc
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 4], edi
test edi, edi
je 0x415b4c
mov eax, dword [esp + 0xc]
push 0x2a
lea ecx, [esi + 0x38]
push 0
push ecx
mov dword [esi + 0x10], eax
mov dword [esi], 1
call fcn.0049a020
mov eax, dword [esi + 0xc]
or dword [esi], 0xc
add esp, 0xc
mov dword [esi + 0x5e], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0xa4]
push eax
mov edx, 8
push 0x103
mov word [esi + 0x3e], dx
mov dword [esi + 0x24], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov cl, 0x5c
test eax, eax
je 0x415b33
cmp byte [eax + esi + 0xa3], cl
je 0x415b42
mov byte [eax + esi + 0xa4], cl
mov byte [eax + esi + 0xa5], 0
mov ecx, dword [esp + 8]
mov dword [ecx], esi
xor eax, eax
pop esi
ret
mov eax, 9
pop esi
ret

Function at 0x415f10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x28]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x415fb4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov eax, dword [esi]
test eax, eax
jne 0x415f6f
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x415f98
mov ecx, dword [esi - 4]
push 0x40
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.0049a020
jmp 0x415f95
mov edx, dword [esi - 4]
push 0x40
push 0x1000
push eax
add edx, ebx
push edx
call ebp
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push edi
call fcn.0049b8f0
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
mov dword [esp + 0x10], eax
cmp eax, edx
jl 0x415f40
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x415fc0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor edx, edx
xor ebp, ebp
lea eax, [ecx + ebx + 0x18]
cmp dx, word [ebx + 6]
jae 0x416075
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x416017
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41605d
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov edx, dword [ecx*4 + 0x4b7398]
test eax, 0x4000000
je 0x416031
or edx, 0x200
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x41604c
test al, 0x40
je 0x416041
mov ecx, dword [ebx + 0x20]
jmp 0x416048
test al, al
jns 0x41605d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x41605d
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x415fe4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x416450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0x5a4d
push esi
push edi
cmp word [ebp], ax
je 0x416475
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
jne 0x416463
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x3000
push ecx
push edx
call esi
mov edi, eax
test edi, edi
jne 0x4164c2
mov eax, dword [ebx + 0x50]
push 0x40
push 0x3000
push eax
push edi
call esi
mov edi, eax
test edi, edi
jne 0x4164c2
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x4164f8
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x24]
push 0x40
mov dword [esi + 4], edi
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov edx, dword [ebx + 0x54]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
push ecx
push ebp
push eax
mov dword [esp + 0x20], eax
call fcn.0049b8f0
mov eax, dword [esp + 0x20]
add eax, dword [ebp + 0x3c]
add esp, 0xc
push esi
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.00415f10
mov eax, edi
add esp, 0xc
sub eax, dword [ebx + 0x34]
je 0x41656d
push eax
mov eax, esi
call fcn.004160c0
add esp, 4
mov ebx, esi
call fcn.00416140
test eax, eax
je 0x4165a8
push esi
call fcn.00415fc0
add esp, 4
mov eax, esi
call fcn.00416080
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4165bb
push esi
push 1
add eax, edi
push edi
call eax
test eax, eax
jne 0x4165b4
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004166a0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x416a60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4ba6a8], eax
mov edx, 1
mov eax, 0x4ba6a8
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4bb064
jl 0x416a70
mov dword [0x4b7394], 1
mov dword [0x4bd0d4], 1
pop edi
ret
Function at 0x416ab0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4bd0d4], 0
push esi
mov esi, 0x4ba6a8
jne 0x416aca
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.00416a60
mov dword [0x4b7394], 0x270
mov dword [0x4ba6a4], esi
mov ecx, 0xe3
nop
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi + 0x634]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x416ae0
mov ecx, 0x18c
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi - 0x38c]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x416b15
mov ecx, dword [esi]
mov eax, dword [0x4ba6a8]
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, dword [esi]
and al, 1
movzx edx, al
shr ecx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
ret

Function at 0x416b80
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4b7394]
jne 0x416b8d
call fcn.00416ab0
mov eax, dword [0x4ba6a4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4ba6a4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
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 0x416bd0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x4b7394]
jne 0x416bde
call fcn.00416ab0
mov ecx, dword [0x4ba6a4]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4ba6a4], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp], edx
fild dword [esp]
jns 0x416c25
fadd qword [0x4b0c38]
fmul qword [0x4b0c78]
pop ecx
ret

Function at 0x417530
Capabilities:
Write clipboard data

Disassembly:
cmp byte [eax + 0x17], 0
jne 0x417539
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x17], 2
jne 0x41755a
cmp dword [0x4bd7d0], 0
je 0x41755a
mov dword [esp + 4], 1
mov ecx, 0x4bd7c4
jmp fcn.00403fd0
and byte [eax + 0x15], 0x86
cmp byte [esp + 4], 0
mov cl, byte [eax + 0x15]
je 0x41756e
or cl, 1
mov byte [eax + 0x15], cl
mov eax, 1
ret 4
Function at 0x419a10
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4b73d4]
mov ecx, dword [0x4ba310]
add eax, 4
push ebx
imul eax, eax, 0xe8
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push eax
push ecx
call fcn.004924ea
xor ebx, ebx
add esp, 8
mov dword [0x4ba310], eax
cmp eax, ebx
jne 0x419a4a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov esi, dword [0x4b7468]
mov edx, dword [0x4bb770]
push 0x403470
push 0x4ef6d80
mov edi, eax
mov ecx, 0x3a
push 0xe
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push edx
mov dword [0x4b7468], eax
call edi
cmp dword [ebp + 0x34c], ebx
jne 0x419a8e
mov dword [esp + 0x14], 1
jmp 0x419b3a
mov eax, dword [0x4b7468]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [eax + 0xc8], bl
call esi
mov ecx, dword [0x4b7468]
mov dword [ecx + 0xb8], eax
mov dword [ecx + 0xbc], 0x64
cmp byte [0x4bb8c8], bl
jne 0x419adc
mov ecx, dword [0x4bb770]
push 0x403370
push 0x64
push 0xb
push ecx
call edi
test eax, eax
setne dl
mov byte [0x4bb8c8], dl
mov byte [ebp + 0x5f9], 1
call esi
mov ecx, dword [ebp + 0x34c]
push ebx
mov esi, 1
add dword [0x4bb8dc], esi
push ebx
push esi
mov dword [ebp + 0x614], eax
mov dword [ebp + 0x610], eax
call fcn.00429ae0
sub dword [0x4bb8dc], esi
mov dword [esp + 0x14], eax
cmp byte [0x4bb8c8], bl
je 0x419b34
mov eax, dword [0x4bb770]
push 0xb
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x419b34
mov byte [0x4bb8c8], bl
mov byte [ebp + 0x5f9], bl
mov eax, dword [0x4b7468]
cmp dword [eax + 0xdc], ebx
lea ecx, [eax + 0xdc]
je 0x419b66
mov edx, dword [eax + 0xe0]
push edx
push ecx
call fcn.00433280
mov dword [esp + 0x1c], eax
mov eax, dword [0x4b7468]
add esp, 8
push 1
push ebx
mov byte [eax + 0xc8], 1
mov esi, eax
mov dword [eax + 0x94], ebx
mov dword [eax + 0x98], ebx
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov byte [eax + 0xd4], bl
mov dword [eax + 0x28], ebx
mov dword [eax + 0x4c], ebx
mov byte [eax + 0xc4], bl
mov dword [eax + 0x48], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xdc], ebx
mov byte [eax + 0xe4], bl
mov ecx, 0x3a
mov edi, 0x4ba400
rep movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
mov byte [eax + 0xc8], 1
mov dword [eax + 0xbc], ebx
mov word [eax + 0xc9], 1
mov dword [eax + 0x2c], CreateStatusWindowA
mov eax, dword [0x4bbf74]
push 0x4a6904
push eax
call fcn.00481890
mov ecx, dword [0x4b85b0]
cmp word [ecx], bx
jne 0x419c44
cmp dword [0x4bd074], ebx
jne 0x419c44
cmp dword [0x4bb8a0], ebx
jne 0x419c44
cmp dword [0x4bb8a4], ebx
jne 0x419c44
cmp byte [0x4bb8c4], bl
jne 0x419c44
mov ecx, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
push ebx
and ecx, 7
add ecx, 2
push 0x4bd7e0
xor eax, eax
call fcn.00419c80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x419c80
Capabilities:
Set current directory

Disassembly:
sub esp, 0x48c
push ebx
push ebp
mov ebp, dword [esp + 0x498]
xor ebx, ebx
push esi
push edi
mov dword [ebp + 0x5b4], ecx
cmp eax, ebx
je 0x419ca6
mov byte [esp + 0x17], 1
cmp byte [eax], bl
je 0x419caa
mov byte [esp + 0x17], bl
cmp eax, ebx
je 0x419d13
cmp byte [eax], bl
je 0x419d13
push eax
push str.Critical_Error:__s_n_nThe_program_will_exit.
mov esi, 0x400
lea edi, [esp + 0xa0]
call fcn.0047dd10
mov edx, dword [0x4bddc0]
mov ecx, dword [0x4bb770]
add esp, 8
push 0x10000
push edx
mov eax, edi
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x4bb770]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x419d0c
mov eax, dword [0x4bb770]
push eax
mov byte [0x4bb76a], 1
call dword [sym.imp.USER32.dll_DestroyWindow]
push 2
call fcn.0040ac20
cmp dword [ebp + 0x5b0], ebx
je 0x419e45
cmp byte [0x4bdf4a], bl
jne 0x419e45
mov esi, dword [0x4bbf74]
cmp byte [esi + 0x17], bl
jne 0x419d39
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x419d46
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x419d5f
test byte [esi + 0x15], 4
je 0x419d5a
mov eax, esi
call fcn.00433620
mov eax, dword [esi + 8]
jmp 0x419d6f
cmp al, 2
jne 0x419d6a
call fcn.00401000
jmp 0x419d6f
mov eax, 0x4bd07e
push 0x7f
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004954d0
mov eax, dword [0x4b7468]
inc dword [0x4bb8dc]
add eax, 0xe8
mov edi, eax
mov byte [esp + 0xa3], bl
mov ecx, 0x3a
mov esi, 0x4ba400
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [0x4b7468], eax
mov dword [eax + 0x2c], ebx
push ebx
mov eax, 0x4bd7e0
call fcn.00419910
mov dword [0x4bdde0], ebx
mov dword [0x4bdde4], ebx
cmp dword [0x4bb90c], ebx
je 0x419dd6
push 0x4bbf78
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [0x4b73c8]
mov ecx, dword [ebp + 0x5b0]
mov dword [0x4b73c8], ebx
mov byte [0x4bdf4a], 1
call fcn.00401210
test eax, eax
jne 0x419e06
mov edx, dword [esp + 0x4a4]
push edx
push ebp
call fcn.00419e70
mov byte [0x4bdf4a], bl
cmp byte [esp + 0x17], bl
je 0x419e20
mov eax, dword [esp + 0x4a4]
push eax
push ebp
call fcn.00419e70
lea ecx, [esp + 0x18]
push ecx
call fcn.00403230
add esp, 4
pop edi
mov dword [0x4b73c8], esi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x48c
ret 8
mov eax, dword [esp + 0x4a4]
mov edx, dword [0x4b7468]
push eax
push ebp
mov dword [0x4b73c8], ebx
mov byte [edx + 0xd4], bl
call fcn.00419e70
int3