joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4224a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, esi
cmp dword [esi], 0
jge 0x4224fb
mov edx, 0x8b1f
call fcn.00422fe0
mov edx, 0x808
mov ecx, esi
call fcn.00422fe0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00422fe0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00422fe0
mov edx, 0xb02
mov ecx, esi
call fcn.00422fe0
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.004230a0
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.00422fe0
mov edx, 0x403
mov ecx, esi
call fcn.00422fe0
mov edx, 0x2d
mov ecx, esi
call fcn.00422fe0
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.00422fe0
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.00422fe0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.00422fe0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.00422fe0
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.00422fe0
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.00422fe0
or edx, 0xffffffff
mov ecx, esi
call fcn.00422fe0
or edx, 0xffffffff
mov ecx, esi
call fcn.00422fe0
or edx, 0xffffffff
mov ecx, esi
call fcn.00422fe0
or edx, 0xffffffff
mov ecx, esi
call fcn.00422fe0
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.00422fe0
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.00422fe0
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.004230a0
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.00422fe0
mov edx, 0x10
mov ecx, esi
call fcn.00422fe0
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.00422fe0
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.00422fe0
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.004b7350
mov edx, eax
mov ecx, esi
call fcn.00422fe0
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.00422fe0
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.00422fe0
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.00422fe0
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.004b7350
mov edx, eax
mov ecx, esi
call fcn.00422fe0
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.00422fe0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x422651
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.004230a0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x422e30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x422e37
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x422ef7
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
sub edi, 1
jne 0x422e50
pop edi
test esi, esi
je 0x422f1a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
sub esi, 1
jne 0x422f00
not ecx
mov eax, ecx
pop esi
ret

Function at 0x422f20
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4bbe48]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x422f70
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
movsx ecx, dl
push esi
push edi
mov edx, dword [ebx]
mov eax, edx
xor eax, ecx
mov esi, dword [ebx + 8]
movzx eax, al
mov edi, esi
shr edx, 8
and edi, 0xfffd
or edi, 2
mov eax, dword [eax*4 + 0x4bbe48]
xor eax, edx
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4bbe48]
mov eax, edi
xor eax, 1
mov dword [ebx + 8], esi
imul eax, edi
pop edi
pop esi
pop ebx
shr eax, 8
xor al, cl
ret
Function at 0x422fe0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
jne 0x42309a
mov eax, dword [edi]
push ebx
mov ebx, edx
mov byte [esp + 8], dl
shr ebx, 8
mov byte [esp + 9], bl
test al, 0x10
je 0x423022
push esi
lea ecx, [edi + 0x34]
call fcn.00422f70
mov dl, bl
mov byte [esp + 0xc], al
lea ecx, [edi + 0x34]
call fcn.00422f70
mov byte [esp + 0xd], al
mov eax, dword [edi]
pop esi
pop ebx
test al, 1
je 0x423062
mov edx, dword [edi + 0x28]
mov ecx, edx
mov eax, dword [edi + 0x2c]
add ecx, 2
adc eax, 0
test eax, eax
jb 0x42304c
ja 0x423040
cmp ecx, dword [edi + 0x30]
jb 0x42304c
mov dword [edi + 0x20], 0xb
pop edi
add esp, 8
ret
mov ecx, dword [edi + 4]
mov ax, word [esp + 4]
mov word [edx + ecx], ax
add dword [edi + 0x28], 2
adc dword [edi + 0x2c], 0
jmp 0x42308b
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423084
cmp dword [esp + 8], 2
je 0x42308b
mov dword [edi + 0x20], 3
test dword [edi], 0x40000000
je 0x42309a
mov dword [edi + 0x20], 0x14
pop edi
add esp, 8
ret

Function at 0x4230a0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x4231ae
cmp dword [esi + 0x20], 0
jne 0x4231ae
test byte [esi], 0x10
je 0x42313d
mov ecx, dword [esi + 0x40]
mov eax, ecx
test ecx, ecx
je 0x4230e0
cmp dword [esi + 0x44], ebx
jae 0x4230e0
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x40], 0
xor eax, eax
test eax, eax
jne 0x423106
lea eax, [ebx + ebx]
push eax
push 0
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x40], eax
test eax, eax
jne 0x423106
mov dword [esi + 0x20], 2
jmp 0x42319f
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x42313a
push ebp
nop dword [eax + eax]
mov eax, dword [esi + 0x40]
lea ecx, [esi + 0x34]
mov dl, byte [eax + edi]
call fcn.00422f70
mov ecx, dword [esi + 0x40]
mov byte [edi + ecx], al
inc edi
cmp edi, ebx
jb 0x423120
pop ebp
mov edi, dword [esi + 0x40]
test byte [esi], 1
je 0x42317c
mov edx, dword [esi + 0x28]
mov ecx, edx
mov eax, dword [esi + 0x2c]
add ecx, ebx
adc eax, 0
test eax, eax
jb 0x423163
ja 0x42315a
cmp ecx, dword [esi + 0x30]
jb 0x423163
mov dword [esi + 0x20], 0xb
jmp 0x42319f
mov eax, dword [esi + 4]
push ebx
add eax, edx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x28], ebx
adc dword [esi + 0x2c], 0
jmp 0x42319f
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423198
cmp dword [esp + 0x10], ebx
je 0x42319f
mov dword [esi + 0x20], 3
test dword [esi], 0x40000000
je 0x4231ae
mov dword [esi + 0x20], 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x4232f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov eax, dword [esi]
test eax, 0x40000000
je 0x42330f
pop edi
mov dword [esi + 0x20], 0x14
xor eax, eax
pop esi
pop ebx
pop ecx
ret
test al, al
jns 0x42334c
mov ecx, dword [esi + 0x6c]
mov edi, dword [esi + 0x68]
cmp ecx, edi
jae 0x42336c
mov eax, dword [esp + 0x14]
sub edi, ecx
mov dword [esp + 0xc], edi
push ebp
mov ebp, edi
cmp edi, eax
jbe 0x423336
mov edi, eax
mov ebp, eax
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x64]
push edi
add eax, ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x6c], ebp
pop ebp
jmp 0x423377
push 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x423373
mov dword [esi + 0x20], 7
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [esp + 0xc]
add dword [esi + 0x58], edi
mov edx, ebx
mov ecx, dword [esi + 0x60]
adc dword [esi + 0x5c], 0
push edi
call fcn.00422e30
add esp, 4
mov dword [esi + 0x60], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x425350
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov dword [ebp - 4], eax
push esi
mov esi, edx
push edi
test eax, eax
je 0x4254d5
cmp dword [eax + 0x14], 0
jne 0x4254d5
cmp dword [eax + 0x2c], 0
je 0x4254d5
cmp dword [eax + 0x18], 0
je 0x4254d5
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425390
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
lea ecx, [eax + 8]
cmp eax, ecx
sbb eax, eax
test ecx, eax
je 0x425442
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4253c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
lea ecx, [eax + 8]
cmp eax, ecx
sbb edx, edx
and edx, ecx
mov ecx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4253e4
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
lea ecx, [eax + 8]
cmp edx, 0x400
ja 0x425421
cmp eax, ecx
sbb eax, eax
and eax, ecx
call fcn.004b71a0
mov edi, esp
test edi, edi
je 0x425444
mov dword [edi], 0xcccc
add edi, 8
jmp 0x425444
cmp eax, ecx
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x425444
mov dword [edi], 0xdddd
add edi, 8
jmp 0x425444
xor edi, edi
mov edx, edi
mov ecx, ebx
sub edx, ebx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x425450
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x425464
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push dword [eax + 0x2c]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
sub ebx, edi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx + ecx - 2], ax
test ax, ax
jne 0x4254a0
test edi, edi
je 0x4254c9
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x4254c9
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4258a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x4e56fc]
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [0x4e7a40]
test eax, eax
je 0x4258c1
cmp dword [eax + 4], 0
jne 0x425916
mov eax, dword [eax]
test eax, eax
jne 0x4258b5
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x425a5f
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x4258f3
mov ecx, dword [0x4e56fc]
mov dword [eax], ecx
mov dword [0x4e56fc], eax
test eax, eax
je 0x425a5f
mov ebx, dword [eax + 4]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0x424750
mov dword [esp + 0x18], ebx
mov ecx, dword [ebx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x10]
call fcn.00425ab0
test eax, eax
je 0x425a58
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
test eax, eax
je 0x425a5f
push 0x2c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x425a58
mov ecx, dword [esp + 0x14]
mov dl, byte [esi + 0x14]
mov ebx, dword [esp + 0x10]
and dl, 0xf8
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x1c]
mov al, cl
and al, 1
mov dword [esi], ebx
or dl, al
mov eax, dword [esi + 0x18]
xor eax, dword [esp + 0x20]
and eax, 0xf
mov byte [esi + 0x14], dl
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x28], eax
test ecx, ecx
je 0x4259e3
mov eax, dword [edi - 5]
mov dword [esi + 0xc], eax
mov ax, word [edi - 1]
mov word [esi + 0x10], ax
mov al, byte [edi + 1]
mov byte [esi + 0x12], al
jmp 0x4259ee
mov eax, dword [edi]
mov dword [esi + 0xc], eax
mov al, byte [edi + 4]
mov byte [esi + 0x10], al
and dl, 1
lea edi, [ebx - 5]
movzx eax, dl
cmove edi, ebx
lea ebx, [eax*2 + 5]
lea eax, [esp + 0xc]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x425a5f
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x425a2f
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov ecx, ebx
call fcn.00425830
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x425e10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4e7b20], ecx
mov eax, 1
nop dword [eax + eax]
mov ecx, dword [eax*4 + 0x4e7b1c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [eax*4 + 0x4e7b20], ecx
inc eax
cmp eax, 0x270
jl 0x425e20
mov dword [0x4e3b4c], 1
mov dword [0x4e84e0], 1
ret

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

Disassembly:
cmp dword [0x4e84e0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4e7b20
jne 0x425e7f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.00425e10
mov eax, dword [0x4e7b20]
mov ebx, 0xe3
mov dword [0x4e3b4c], 0x270
mov dword [0x4e84e4], 0x4e7b20
nop dword [eax]
mov edi, dword [esi + 4]
mov ecx, edi
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub ebx, 1
jne 0x425ea0
mov ebp, 0x18c
nop word [eax + eax]
mov ebx, dword [esi + 4]
lea esi, [esi + 4]
mov ecx, ebx
mov eax, ebx
xor ecx, edi
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
mov edi, ebx
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x390]
mov dword [esi - 4], ecx
sub ebp, 1
jne 0x425ee0
mov eax, dword [0x4e7b20]
mov ecx, ebx
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, ebx
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
sub dword [0x4e3b4c], 1
jne 0x425f5e
call fcn.00425e60
mov eax, dword [0x4e84e4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4e84e4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

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

Disassembly:
sub dword [0x4e3b4c], 1
jne 0x425fae
call fcn.00425e60
mov eax, dword [0x4e84e4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4e84e4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4dba70]
mulsd xmm0, qword [0x4db888]
ret

Function at 0x4267b0
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x4267b9
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x4267d2
cmp dword [0x4e6d08], 0
je 0x4267d2
mov ecx, 0x4e6cfc
jmp fcn.00405e80
mov al, byte [ecx + 0x15]
and al, 0x86
cmp byte [esp + 4], 0
mov byte [ecx + 0x15], al
je 0x4267e6
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4
Function at 0x42a950
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4e2118]
push ebx
push ebp
add eax, 4
mov ebx, ecx
imul eax, eax, 0x108
push esi
push edi
push eax
push dword [0x4e4858]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
mov dword [0x4e4858], eax
test eax, eax
jne 0x42a982
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4e211c]
mov edi, eax
push 0x4048f0
push 0x4ef6d80
push 0xe
push dword [0x4e4b98]
mov ecx, 0x42
mov dword [0x4e211c], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
call esi
cmp dword [ebx + 0x60c], 0
jne 0x42a9c3
mov ebp, 1
jmp 0x42aa87
mov eax, dword [0x4e211c]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [eax + 0xec], 0
call edi
cmp byte [0x4e4855], 0
mov ecx, dword [0x4e211c]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
jne 0x42aa10
push 0x404850
push 0x64
push 0xb
push dword [0x4e4b98]
call esi
test eax, eax
setne byte [0x4e4855]
mov byte [ebx + 0xaf5], 1
call edi
inc dword [0x4e4b84]
push str.Auto_execute
mov dword [ebx + 0xb14], eax
mov dword [ebx + 0xb10], eax
call fcn.0040bf30
mov ecx, dword [ebx + 0x60c]
push 0
push 0
push 1
call fcn.0043e790
sub dword [0x4e3aec], 0xc
mov ebp, eax
dec dword [0x4e4b84]
cmp byte [0x4e4855], 0
je 0x42aa80
push 0xb
push dword [0x4e4b98]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4e4855]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4e4855], cl
mov byte [ebx + 0xaf5], 0
mov ebx, dword [0x4e211c]
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x42aadd
cmp dword [eax + 8], 6
jne 0x42aaab
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x104]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42aac2
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebx + 0x104]
add esp, 4
push 0x10
push eax
call fcn.004b5fff
mov dword [ebx + 0x104], 0
add esp, 8
mov ebx, dword [0x4e211c]
mov ecx, ebx
call fcn.004049b0
push 1
push 0
mov byte [ebx + 0xec], 1
mov ecx, 0x42
mov esi, ebx
mov edi, 0x4e4860
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4e4b80]
push 0xffffffffffffffff
push 0x4b8cc8
mov word [ebx + 0xec], 0x101
mov dword [ebx + 0xe0], 0
mov byte [ebx + 0xee], 0
mov dword [ebx + 0x2c], connect
call fcn.004a0110
cmp word [0x4e56e4], 0
jne 0x42ab7a
cmp dword [0x4e56cc], 0
jne 0x42ab7a
cmp dword [0x4e4bb4], 0
jne 0x42ab7a
cmp dword [0x4e4bb0], 0
jne 0x42ab7a
cmp byte [0x4e4ba9], 0
jne 0x42ab7a
test ebp, ebp
mov ecx, 2
mov eax, 9
cmove eax, ecx
mov ecx, 0x4e6d58
push 0
push eax
call fcn.0042ae40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x42ad40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
cmp dword [0x4e4c00], 0
push esi
push edi
mov esi, ecx
jne 0x42adca
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0xc], 1
mov edi, eax
jne 0x42ade4
mov edx, dword [edi]
lea ecx, [esp + 0x10]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x42adba
test ax, ax
je 0x42adb6
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x42adba
add ecx, 4
add edx, 4
test ax, ax
jne 0x42ad94
xor eax, eax
jmp 0x42adbf
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42ade4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4e4bc8]
push str._restart
jmp 0x42ae1f
push dword [esi + 0xadc]
lea eax, [esp + 0x21c]
push str._restart___s_
push 0x304
push eax
call fcn.0049c210
add esp, 0x10
lea eax, [esp + 0x218]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4e4bc8]
push eax
push dword [esi + 0xae8]
mov ecx, 0x4e6d58
call fcn.004488b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42ae40
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x124
cmp byte [0x4e8ced], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0xab0], eax
jne 0x42afed
cmp byte [ebx + 0xaf4], 0
je 0x42afed
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4e4b80]
push 0
push 1
mov dword [0x4e8f98], eax
call fcn.004016c0
push 0x7f
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
inc dword [0x4e4b84]
xor eax, eax
mov word [esp + 0x13a], ax
add esp, 0xc
mov eax, dword [0x4e211c]
mov ecx, 0x42
add eax, 0x108
mov esi, 0x4e4860
mov edi, eax
mov dword [0x4e211c], eax
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4e6d58
mov dword [eax + 0x2c], 0
call fcn.0042a850
cmp dword [0x4e4b94], 0
xorps xmm0, xmm0
movlpd qword [0x4e7858], xmm0
je 0x42aefb
push 0x4e4970
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [0x4e2114]
push str.OnExit
mov dword [0x4e2114], 0
mov byte [0x4e8ced], 1
call fcn.0040bf30
mov ecx, dword [ebx + 0xaa4]
mov eax, 1
mov dword [esp + 0xc], eax
mov byte [0x4e3ef8], 0
test ecx, ecx
je 0x42af55
call fcn.00401780
test eax, eax
mov eax, dword [esp + 0xc]
je 0x42af55
xor ecx, ecx
movzx eax, al
cmp byte [0x4e3ef8], cl
cmove eax, ecx
mov dword [esp + 0xc], eax
mov byte [0x4e3ef8], 1
test al, al
je 0x42afb6
mov dword [esp + 0x18], 0
call fcn.0045cb90
mov dword [esp + 0x10], eax
lea ecx, [ebx + 0xa70]
mov eax, dword [0x4e8f98]
cdq
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [ebx + 0xaa4], eax
mov dword [esp + 0x28], 1
sete al
mov dword [esp + 0x24], edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call fcn.0048f540
mov edx, dword [esp + 0xc]
movzx ecx, dl
xor edx, edx
cmp eax, 3
cmove ecx, edx
mov al, cl
sub dword [0x4e3aec], 0xc
test al, al
mov eax, dword [ebp + 8]
mov byte [0x4e8ced], 0
jne 0x42b039
cmp eax, 3
je 0x42b039
lea ecx, [esp + 0x30]
call fcn.004046d0
mov dword [0x4e2114], esi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x4e3ef8], 0
jne 0x42b029
cmp eax, 9
jne 0x42b029
mov eax, dword [0x4e63e8]
mov ecx, dword [0x4e8f98]
pop edi
pop esi
cmp word [eax], 0
mov eax, 8
mov byte [0x4e3ef8], 1
cmovne ecx, dword [ebp + 0xc]
mov dword [0x4e8f98], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov byte [0x4e3ef8], 0
push eax
call fcn.0042b050
push dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0042b050
int3