joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425d00
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 0x425d5b
mov edx, 0x8b1f
call fcn.004267f0
mov edx, 0x808
mov ecx, esi
call fcn.004267f0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.004267f0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.004267f0
mov edx, 0xb02
mov ecx, esi
call fcn.004267f0
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.00426960
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.004267f0
mov edx, 0x403
mov ecx, esi
call fcn.004267f0
mov edx, 0x2d
mov ecx, esi
call fcn.004267f0
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.004267f0
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.004267f0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.004267f0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.004267f0
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.004267f0
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.004267f0
or edx, 0xffffffff
mov ecx, esi
call fcn.004267f0
or edx, 0xffffffff
mov ecx, esi
call fcn.004267f0
or edx, 0xffffffff
mov ecx, esi
call fcn.004267f0
or edx, 0xffffffff
mov ecx, esi
call fcn.004267f0
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.004267f0
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.004267f0
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.00426960
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.004267f0
mov edx, 0x10
mov ecx, esi
call fcn.004267f0
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.004267f0
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.004267f0
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.004cc880
mov edx, eax
mov ecx, esi
call fcn.004267f0
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.004267f0
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.004267f0
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.004267f0
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.004cc880
mov edx, eax
mov ecx, esi
call fcn.004267f0
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.004267f0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x425eb1
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.00426960
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x426700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x426707
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x4267c7
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 + 0x4d1f08]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1f08]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1f08]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1f08]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1f08]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1f08]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1f08]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1f08]
sub edi, 1
jne 0x426720
pop edi
test esi, esi
je 0x4267ea
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 + 0x4d1f08]
sub esi, 1
jne 0x4267d0
not ecx
mov eax, ecx
pop esi
ret
Function at 0x4267f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
sub esp, 0xc
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
cmp dword [edi + 0x20], 0
jne 0x42694d
mov eax, edx
mov byte [esp + 4], dl
shr eax, 8
test byte [edi], 0x10
mov dword [esp + 8], eax
mov byte [esp + 5], al
je 0x4268d4
push ebx
mov ebx, dword [edi + 0x38]
movsx eax, dl
xor eax, ebx
shr ebx, 8
movzx eax, al
push esi
mov esi, dword [edi + 0x40]
mov ecx, esi
and ecx, 0xfffd
xor ebx, dword [eax*4 + 0x4d1f08]
or ecx, 2
movzx eax, bl
add eax, dword [edi + 0x3c]
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4d1f08]
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, esi
and ecx, 0xfffd
or ecx, 2
shr eax, 8
xor al, byte [esp + 0x14]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x10]
movsx eax, al
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4d1f08]
movzx eax, bl
add eax, edx
mov dword [edi + 0x38], ebx
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0x3c], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4d1f08]
mov eax, ecx
xor eax, 1
mov dword [edi + 0x40], esi
imul eax, ecx
pop esi
pop ebx
shr eax, 8
xor al, byte [esp + 8]
mov byte [esp + 5], al
test byte [edi], 1
je 0x426915
mov edx, dword [edi + 0x28]
mov ecx, edx
mov eax, dword [edi + 0x2c]
add ecx, 2
adc eax, 0
cmp eax, dword [edi + 0x34]
jb 0x4268ff
ja 0x4268f3
cmp ecx, dword [edi + 0x30]
jb 0x4268ff
mov dword [edi + 0x20], 0xb
pop edi
add esp, 0xc
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 0x42693e
push 0
lea eax, [esp + 0x10]
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 0x426937
cmp dword [esp + 0xc], 2
je 0x42693e
mov dword [edi + 0x20], 3
test dword [edi], 0x40000000
je 0x42694d
mov dword [edi + 0x20], 0x14
pop edi
add esp, 0xc
ret
Function at 0x426960
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, edx
push esi
mov esi, ecx
test ebp, ebp
je 0x426ad7
cmp dword [esi + 0x20], 0
push edi
lea edi, [esi + 0x20]
jne 0x426ad6
test byte [esi], 0x10
je 0x426a67
mov ecx, dword [esi + 0x44]
mov eax, ecx
test ecx, ecx
je 0x4269a8
cmp dword [esi + 0x48], ebp
jae 0x4269a8
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x44], 0
jmp 0x4269ac
test eax, eax
jne 0x4269d4
lea eax, [ebp*2]
push eax
push 0
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x4269d4
mov dword [edi], 2
lea edi, [esi + 0x20]
jmp 0x426ac8
push ebp
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
add esp, 0xc
mov dword [esp + 0x14], edx
test ebp, ebp
je 0x426a61
nop dword [eax]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x38]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x40]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d1f08]
movzx eax, cl
add eax, dword [esi + 0x3c]
imul eax, eax, 0x8088405
mov dword [esi + 0x38], ecx
mov ecx, edi
xor ecx, 1
imul ecx, edi
inc eax
mov dword [esi + 0x3c], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x4d1f08]
mov dword [esi + 0x40], edx
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x44]
mov byte [edx + eax], cl
inc edx
mov dword [esp + 0x14], edx
cmp edx, ebp
jb 0x4269f0
mov ebx, dword [esi + 0x44]
lea edi, [esi + 0x20]
test byte [esi], 1
je 0x426aa6
mov edx, dword [esi + 0x28]
mov ecx, edx
mov eax, dword [esi + 0x2c]
add ecx, ebp
adc eax, 0
cmp eax, dword [esi + 0x34]
jb 0x426a8d
ja 0x426a85
cmp ecx, dword [esi + 0x30]
jb 0x426a8d
mov dword [edi], 0xb
jmp 0x426ac8
mov eax, dword [esi + 4]
push ebp
add eax, edx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x28], ebp
adc dword [esi + 0x2c], 0
jmp 0x426ac8
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426ac2
cmp dword [esp + 0x14], ebp
je 0x426ac8
mov dword [edi], 3
test dword [esi], 0x40000000
je 0x426ad6
mov dword [edi], 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x426c10
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
mov ebp, edx
push edi
mov eax, dword [esi]
test eax, 0x40000000
je 0x426c2f
pop edi
mov dword [esi + 0x20], 0x14
xor eax, eax
pop esi
pop ebp
pop ecx
ret
test al, al
jns 0x426c7a
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x68]
cmp eax, dword [esi + 0x6c]
ja 0x426c9a
jb 0x426c47
cmp ecx, edi
jae 0x426c9a
mov eax, dword [esp + 0x14]
sub edi, ecx
mov dword [esp + 0xc], edi
push ebx
mov ebx, edi
cmp edi, eax
jbe 0x426c60
mov edi, eax
mov ebx, eax
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x64]
push ebx
add eax, ecx
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x70], ebx
adc dword [esi + 0x74], 0
pop ebx
jmp 0x426ca5
push 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebp
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x426ca1
mov dword [esi + 0x20], 7
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov edi, dword [esp + 0xc]
add dword [esi + 0x58], edi
mov edx, ebp
mov ecx, dword [esi + 0x60]
adc dword [esi + 0x5c], 0
push edi
call fcn.00426700
add esp, 4
mov dword [esi + 0x60], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x429000
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 0x429185
cmp dword [eax + 0x18], 0
jne 0x429185
cmp dword [eax + 0x3c], 0
je 0x429185
cmp dword [eax + 0x1c], 0
je 0x429185
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 0x429040
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 0x4290f2
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429070
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 0x429094
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
lea ecx, [eax + 8]
cmp edx, 0x400
ja 0x4290d1
cmp eax, ecx
sbb eax, eax
and eax, ecx
call fcn.004cc6d0
mov edi, esp
test edi, edi
je 0x4290f4
mov dword [edi], 0xcccc
add edi, 8
jmp 0x4290f4
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 0x4290f4
mov dword [edi], 0xdddd
add edi, 8
jmp 0x4290f4
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 0x429100
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x429114
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push dword [eax + 0x3c]
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 0x429150
test edi, edi
je 0x429179
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x429179
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 0x429cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x4fb608]
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x429cdc
cmp dword [eax + 4], 0
jne 0x429d33
mov eax, dword [eax]
test eax, eax
jne 0x429cd0
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x429e9f
xor edi, edi
mov dword [eax + 8], 0
lea edx, [eax + 0x20]
lea esi, [edi + 0x20]
mov dword [edx], edi
mov ecx, edx
mov dword [eax + 4], edx
add esi, 0x20
add edx, 0x20
mov edi, ecx
cmp esi, 0xfe0
jbe 0x429d07
mov ecx, dword [0x4fb608]
mov dword [eax], ecx
mov dword [0x4fb608], eax
test eax, eax
je 0x429e9f
mov ebp, dword [eax + 4]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebp
mov ecx, dword [ebp]
inc dword [eax + 8]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
call fcn.00429f40
test eax, eax
je 0x429e98
push 0x28
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x429e98
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
and ebx, 0xf
mov ecx, dword [esp + 0x30]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
mov eax, edx
and eax, 1
shl ebx, 3
or ebx, eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x38]
and eax, 0xffffff80
or ebx, eax
mov dword [esi + 0x24], ecx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], eax
test edx, edx
je 0x429de3
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 0x429dee
mov eax, dword [edi]
mov dword [esi + 0xc], eax
mov al, byte [edi + 4]
mov byte [esi + 0x10], al
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
shl ebx, 0x1f
sar ebx, 0x1f
test ebx, ebx
lea edi, [eax - 5]
cmove edi, eax
xor eax, eax
test ebx, ebx
push ecx
setne al
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x429e40
mov ecx, ebp
call fcn.00429c50
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x1c]
sub eax, edi
mov byte [edi], 0xe9
sub eax, 5
mov dword [edi + 1], eax
test ebx, ebx
je 0x429e5c
mov eax, dword [esp + 0x18]
mov word [eax], 0xf9eb
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
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, dword [esp + 0x48]
test eax, eax
je 0x429e8e
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, ebp
call fcn.00429c50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
Function at 0x429eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
shl ecx, 0x1f
sar ecx, 0x1f
test ecx, ecx
lea edi, [eax - 5]
cmove edi, eax
xor ebx, ebx
test ecx, ecx
lea eax, [esp + 0x10]
push eax
setne bl
push 0x40
lea ebx, [ebx*2 + 5]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x429efb
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x429f16
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x429f1c
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x42a2a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4fd9c8], ecx
mov eax, 1
nop dword [eax + eax]
mov ecx, dword [eax*4 + 0x4fd9c4]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [eax*4 + 0x4fd9c8], ecx
inc eax
cmp eax, 0x270
jl 0x42a2b0
mov dword [0x4f9be4], 1
mov dword [0x4fe388], 1
ret

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

Disassembly:
cmp dword [0x4fe388], 0
push esi
push edi
mov edi, 0x4fd9c8
jne 0x42a30d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.0042a2a0
mov eax, dword [0x4fd9c8]
mov esi, 0xe3
push ebx
mov dword [0x4f9be4], 0x270
mov dword [0x4fe38c], 0x4fd9c8
push ebp
nop dword [eax]
mov ebx, dword [edi + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, ebx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, ebx
xor ecx, dword [edi + 0x634]
mov dword [edi], ecx
add edi, 4
sub esi, 1
jne 0x42a330
mov ebp, 0x18c
nop word [eax + eax]
mov esi, dword [edi + 4]
lea edi, [edi + 4]
mov ecx, esi
mov eax, esi
xor ecx, ebx
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, ebx
mov ebx, esi
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [edi - 0x390]
mov dword [edi - 4], ecx
sub ebp, 1
jne 0x42a370
mov ecx, dword [0x4fd9c8]
and esi, 0x80000001
mov eax, ecx
and cl, 1
and eax, 0x7ffffffe
or esi, eax
movzx eax, cl
shr esi, 1
neg eax
pop ebp
sbb eax, eax
and eax, 0x9908b0df
xor esi, eax
xor esi, dword [edi - 0x38c]
pop ebx
mov dword [edi], esi
pop edi
pop esi
ret

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

Disassembly:
sub dword [0x4f9be4], 1
jne 0x42a3ee
call fcn.0042a2f0
mov eax, dword [0x4fe38c]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4fe38c], 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 0x42a430
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4f9be4], 1
jne 0x42a43e
call fcn.0042a2f0
mov eax, dword [0x4fe38c]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4fe38c], 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 + 0x4f20e0]
mulsd xmm0, qword [0x4f1ef8]
ret

Function at 0x42ac80
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x42ac89
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x42aca2
cmp dword [0x4fd77c], 0
je 0x42aca2
mov ecx, 0x4fd770
jmp fcn.004068a0
mov al, byte [ecx + 0x15]
and al, 0x86
cmp byte [esp + 4], 0
mov byte [ecx + 0x15], al
je 0x42acb6
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4
Function at 0x42e750
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x4f8170]
push ebx
push ebp
add eax, 4
imul eax, eax, 0x108
push esi
push edi
push eax
push dword [0x4fa940]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
mov dword [0x4fa940], eax
test eax, eax
jne 0x42e780
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [0x4f8174]
mov edi, eax
push 0x405040
push 0x4ef6d80
push 0xe
push dword [0x4faa80]
mov ecx, 0x42
mov dword [0x4f8174], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
call edi
cmp dword [0x4fd220], 0
jne 0x42e7c1
mov ebp, 1
jmp 0x42e8bb
mov eax, dword [0x4f8174]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [eax + 0xec], 0
call esi
cmp byte [0x4fa90d], 0
mov ecx, dword [0x4f8174]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], 0x64
jne 0x42e80e
push 0x404f20
push 0x64
push 0xb
push dword [0x4faa80]
call edi
test eax, eax
setne byte [0x4fa90d]
mov byte [0x4fd709], 1
call esi
inc dword [0x4faa68]
mov ecx, dword [0x4f9b74]
mov dword [0x4fd72c], eax
mov dword [0x4fd728], eax
cmp ecx, dword [0x4f9b78]
jne 0x42e840
call fcn.00406c70
mov ecx, dword [0x4f9b74]
cmp ecx, dword [0x4f9b70]
jb 0x42e855
mov eax, dword [0x4fd25c]
mov dword [ecx], eax
mov ecx, dword [0x4f9b74]
add ecx, 0xc
mov dword [0x4f9b74], ecx
push 0
push 0
mov dword [ecx], 0
mov dword [ecx + 4], str.Auto_execute
mov dword [ecx + 8], 0
mov ecx, dword [0x4fd220]
push 1
call fcn.00443a70
sub dword [0x4f9b74], 0xc
mov ebp, eax
dec dword [0x4faa68]
cmp byte [0x4fa90d], 0
je 0x42e8b4
push 0xb
push dword [0x4faa80]
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x42e8b4
mov byte [0x4fa90d], 0
mov byte [0x4fd709], 0
mov ebx, dword [0x4f8174]
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x42e910
cmp dword [eax + 8], 6
jne 0x42e8d9
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x104]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x42e8f0
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x10
push dword [ebx + 0x104]
call fcn.004cb6c4
mov dword [ebx + 0x104], 0
add esp, 8
mov ebx, dword [0x4f8174]
mov ecx, ebx
call fcn.00405150
push 1
push 0
mov byte [ebx + 0xec], 1
mov ecx, 0x42
mov esi, ebx
mov edi, 0x4fa948
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4faa64]
push 0xffffffffffffffff
push 0x4cecf8
mov word [ebx + 0xec], 0x101
mov dword [ebx + 0xe0], 0
mov byte [ebx + 0xee], 0
mov dword [ebx + 0x2c], closesocket
call fcn.004b4bf0
cmp word [0x4fb5ec], 0
mov esi, 1
jne 0x42e9ad
cmp dword [0x4fb5d4], 0
jne 0x42e9ad
cmp dword [0x4faa98], 0
jne 0x42e9ad
cmp dword [0x4faa94], 0
jne 0x42e9ad
cmp byte [0x4fa925], 0
jne 0x42e9ad
test ebp, ebp
mov ecx, 6
push 0
cmove ecx, esi
push ecx
mov ecx, 0x4fcc10
call fcn.0042eac0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x42e9c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10230
call fcn.004cc6a0
cmp dword [0x4faae4], 0
push esi
push edi
mov esi, ecx
jne 0x42ea4e
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 0x42ea68
mov edx, dword [edi]
lea ecx, [esp + 0x10]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x42ea3e
test ax, ax
je 0x42ea3a
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x42ea3e
add ecx, 4
add edx, 4
test ax, ax
jne 0x42ea18
xor eax, eax
jmp 0x42ea43
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42ea68
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 [0x4faaac]
push str._restart
jmp 0x42eaa3
push dword [esi + 0xae0]
lea eax, [esp + 0x21c]
push str._restart___s_
push 0x8010
push eax
call fcn.004b0610
add esp, 0x10
lea eax, [esp + 0x218]
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push dword [0x4faaac]
push eax
push dword [esi + 0xaec]
mov ecx, 0x4fcc10
call fcn.0044ecf0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4