joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b190
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x41b1ba
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ebx, dword [esp + 0x20]
mov esi, ebx
and esi, 1
mov eax, ebx
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
and ecx, 0x10
mov eax, edx
or eax, 0x10
mov dword [esp + 0x14], ecx
test ecx, ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
and bl, 0x20
mov ebx, 0x41000000
cmove ecx, eax
mov eax, dword [esp + 0x14]
test eax, eax
cmove ebx, edx
or ebx, ecx
test esi, esi
jne 0x41b223
test eax, eax
mov ebx, 0x41800000
mov edx, 0x81800000
cmove ebx, edx
or ebx, ecx
push 0
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
cmp eax, 0x28
jbe 0x41b304
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x41b304
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push eax
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [esp + 0x10], ax
jne 0x41b2f9
cmp dword [edi + 0x54], 0
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x34]
jb 0x41b2f9
ja 0x41b2b2
cmp dword [edi + 0x50], ecx
jbe 0x41b2f9
push 0
push 0
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x41b2f3
cmp eax, 0x454e
je 0x41b2f3
cmp eax, 0x454c
je 0x41b2f3
cmp eax, 0x4550
jne 0x41b2f9
or ebx, 0x400000
push 0
push 0
push 0
push dword [edi + 0x64]
call esi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
mov dword [ebp + 0x10], ebx
push eax
push ecx
call fcn.004bd9c0
mov ecx, dword [esp + 0x34]
mov dword [ebp], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x38]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004bd9c0
mov ecx, dword [esp + 0x24]
mov dword [ebp + 4], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x28]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004bd9c0
mov dword [ebp + 8], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [esp + 0x10]
movzx eax, word [esp + 0x14]
shl ecx, 0x10
pop edi
or ecx, eax
xor eax, eax
pop esi
mov dword [ebp + 0xc], ecx
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x41ceb0
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 0x41cf0b
mov edx, 0x8b1f
call fcn.0041d8f0
mov edx, 0x808
mov ecx, esi
call fcn.0041d8f0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.0041d8f0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.0041d8f0
mov edx, 0xb02
mov ecx, esi
call fcn.0041d8f0
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.0041da60
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.0041d8f0
mov edx, 0x403
mov ecx, esi
call fcn.0041d8f0
mov edx, 0x2d
mov ecx, esi
call fcn.0041d8f0
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.0041d8f0
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.0041d8f0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.0041d8f0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.0041d8f0
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.0041d8f0
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.0041d8f0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d8f0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d8f0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d8f0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d8f0
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.0041d8f0
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.0041d8f0
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.0041da60
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.0041d8f0
mov edx, 0x10
mov ecx, esi
call fcn.0041d8f0
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.0041d8f0
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.0041d8f0
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.004bdc90
mov edx, eax
mov ecx, esi
call fcn.0041d8f0
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.0041d8f0
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.0041d8f0
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.0041d8f0
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.004bdc90
mov edx, eax
mov ecx, esi
call fcn.0041d8f0
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.0041d8f0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x41d061
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.0041da60
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x41d800
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x41d807
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x41d8c7
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 + 0x4c3968]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c3968]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c3968]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c3968]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c3968]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c3968]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c3968]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c3968]
sub edi, 1
jne 0x41d820
pop edi
test esi, esi
je 0x41d8ea
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 + 0x4c3968]
sub esi, 1
jne 0x41d8d0
not ecx
mov eax, ecx
pop esi
ret
Function at 0x41d8f0
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 0x41da4f
mov eax, edx
mov byte [esp + 4], dl
shr eax, 8
mov dword [esp + 8], eax
mov byte [esp + 5], al
mov eax, dword [edi]
test al, 0x10
je 0x41d9d7
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 + 0x4c3968]
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 + 0x4c3968]
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 + 0x4c3968]
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 + 0x4c3968]
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
mov eax, dword [edi]
test al, 1
je 0x41da17
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 0x41da01
ja 0x41d9f5
cmp ecx, dword [edi + 0x30]
jb 0x41da01
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 0x41da40
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 0x41da39
cmp dword [esp + 0xc], 2
je 0x41da40
mov dword [edi + 0x20], 3
test dword [edi], 0x40000000
je 0x41da4f
mov dword [edi + 0x20], 0x14
pop edi
add esp, 0xc
ret
Function at 0x41da60
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test ebp, ebp
je 0x41dbcb
cmp dword [esi + 0x20], 0
jne 0x41dbcb
test byte [esi], 0x10
je 0x41db59
mov ecx, dword [esi + 0x44]
mov eax, ecx
test ecx, ecx
je 0x41daa4
cmp dword [esi + 0x48], ebp
jae 0x41daa4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x44], 0
jmp 0x41daa8
test eax, eax
jne 0x41dace
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 0x41dace
mov dword [esi + 0x20], 2
jmp 0x41dbbc
push ebp
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
add esp, 0xc
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x41db56
push ebx
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 + 0x4c3968]
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 + 0x4c3968]
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 0x41dae4
pop ebx
mov edi, dword [esi + 0x44]
test byte [esi], 1
je 0x41db99
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 0x41db80
ja 0x41db77
cmp ecx, dword [esi + 0x30]
jb 0x41db80
mov dword [esi + 0x20], 0xb
jmp 0x41dbbc
mov eax, dword [esi + 4]
push ebp
add eax, edx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x28], ebp
adc dword [esi + 0x2c], 0
jmp 0x41dbbc
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41dbb5
cmp dword [esp + 0x10], ebp
je 0x41dbbc
mov dword [esi + 0x20], 3
test dword [esi], 0x40000000
je 0x41dbcb
mov dword [esi + 0x20], 0x14
pop edi
pop esi
pop ebp
ret
Function at 0x41dd00
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 0x41dd1f
pop edi
mov dword [esi + 0x20], 0x14
xor eax, eax
pop esi
pop ebp
pop ecx
ret
test al, al
jns 0x41dd6a
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x68]
cmp eax, dword [esi + 0x6c]
ja 0x41dd8a
jb 0x41dd37
cmp ecx, edi
jae 0x41dd8a
mov eax, dword [esp + 0x14]
sub edi, ecx
mov dword [esp + 0xc], edi
push ebx
mov ebx, edi
cmp edi, eax
jbe 0x41dd50
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 0x41dd95
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 0x41dd91
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.0041d800
add esp, 4
mov dword [esi + 0x60], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x420160
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 0x4202e5
cmp dword [eax + 0x18], 0
jne 0x4202e5
cmp dword [eax + 0x3c], 0
je 0x4202e5
cmp dword [eax + 0x1c], 0
je 0x4202e5
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 0x4201a0
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 0x420252
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4201d0
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 0x4201f4
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
lea ecx, [eax + 8]
cmp edx, 0x400
ja 0x420231
cmp eax, ecx
sbb eax, eax
and eax, ecx
call fcn.004bdae0
mov edi, esp
test edi, edi
je 0x420254
mov dword [edi], 0xcccc
add edi, 8
jmp 0x420254
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 0x420254
mov dword [edi], 0xdddd
add edi, 8
jmp 0x420254
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 0x420260
mov ecx, ebx
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x420274
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 0x4202b0
test edi, edi
je 0x4202d9
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x4202d9
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 0x421020
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 0x42106b
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 0x421086
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x42108c
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 0x421450
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4ec710], ecx
mov eax, 1
nop dword [eax + eax]
mov ecx, dword [eax*4 + 0x4ec70c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [eax*4 + 0x4ec710], ecx
inc eax
cmp eax, 0x270
jl 0x421460
mov dword [0x4e8a10], 1
mov dword [0x4ec70c], 1
ret

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

Disassembly:
cmp dword [0x4ec70c], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4ec710
jne 0x4214bf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.00421450
mov eax, dword [0x4ec710]
mov ebx, 0xe3
mov dword [0x4e8a10], 0x270
mov dword [0x4ed0d0], 0x4ec710
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 0x4214e0
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 0x421520
mov eax, dword [0x4ec710]
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 0x421590
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4e8a10], 1
jne 0x42159e
call fcn.004214a0
mov eax, dword [0x4ed0d0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4ed0d0], 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 0x4215e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4e8a10], 1
jne 0x4215ee
call fcn.004214a0
mov eax, dword [0x4ed0d0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4ed0d0], 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 + 0x4e1280]
mulsd xmm0, qword [0x4e10e8]
ret

Function at 0x421e30
Capabilities:
Write clipboard data

Disassembly:
cmp byte [ecx + 0x17], 0
jne 0x421e39
mov ecx, dword [ecx + 0xc]
cmp byte [ecx + 0x17], 2
jne 0x421e52
cmp dword [0x4ec4bc], 0
je 0x421e52
mov ecx, 0x4ec4b0
jmp fcn.00405c70
mov al, byte [ecx + 0x15]
and al, 0x86
cmp byte [esp + 4], 0
mov byte [ecx + 0x15], al
je 0x421e66
or al, 1
mov byte [ecx + 0x15], al
mov eax, 1
ret 4
Function at 0x424170
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x124
cmp byte [0x4ed8ca], 0
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0xab4], eax
jne 0x4242fc
cmp byte [ebx + 0xaf8], 0
je 0x4242fc
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4e97d8]
push 0
push 1
mov dword [0x4ed95c], eax
call fcn.00401520
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 [0x4e97dc]
xor eax, eax
mov word [esp + 0x13a], ax
add esp, 0xc
mov eax, dword [0x4e7024]
mov ecx, 0x42
add eax, 0x108
mov esi, 0x4e96c0
mov edi, eax
mov dword [0x4e7024], eax
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4eb958
mov dword [eax + 0x2c], 0
call fcn.00423e50
cmp dword [0x4e97f0], 0
xorps xmm0, xmm0
movlpd qword [0x4ec458], xmm0
je 0x42423c
mov eax, dword [0x4e8a04]
mov ecx, 0x4bfba0
test eax, eax
je 0x424235
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebx + 0xaa8]
mov esi, dword [0x4e701c]
mov dword [0x4e701c], 0
mov byte [0x4ed8ca], 1
mov byte [0x4e8db0], 0
test ecx, ecx
je 0x42427f
call fcn.004015e0
test eax, eax
je 0x42427f
cmp byte [0x4e8db0], 0
jne 0x42427f
mov byte [0x4e8db0], 1
jmp 0x4242d0
mov byte [0x4e8db0], 1
mov dword [esp + 0x18], 0
call fcn.004564c0
mov dword [esp + 0x10], eax
lea ecx, [ebx + 0xa74]
mov eax, dword [0x4ed95c]
cdq
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [ebx + 0xaa8], 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.00491770
cmp eax, 3
jne 0x424348
xor al, al
mov byte [0x4ed8ca], al
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jle 0x424352
lea ecx, [esp + 0x30]
call fcn.00404920
mov dword [0x4e701c], esi
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [0x4e8db0], 0
jne 0x424338
cmp eax, 6
jne 0x424338
mov eax, dword [0x4eb048]
mov ecx, dword [0x4ed95c]
pop edi
pop esi
cmp word [eax], 0
mov eax, 8
mov byte [0x4e8db0], 1
cmovne ecx, dword [ebp + 0xc]
mov dword [0x4ed95c], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov byte [0x4e8db0], 0
push eax
call fcn.00424360
mov eax, dword [ebp + 8]
mov byte [0x4ed8ca], 0
push dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.00424360
int3
Function at 0x424a20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdffd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x4ec65c]
mov dword [ebp - 0x68], vtable.TextStream.0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
cmp eax, 0xffffffff
je 0x424a93
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
neg eax
sbb al, al
and byte [ebp - 0x4e], al
mov dword [ebp - 0x68], vtable.TextMem.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0xa
mov dword [ebp - 4], 0
push str.E4847ED08866458F8DD35F94B37001C0
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x424c07
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x424c07
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x424c07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x424c07
cmp dword [eax], 0x4034b50
jne 0x424bd4
call fcn.00404bf0
test al, al
je 0x424c1e
xor edx, edx
nop word [eax + eax]
mov eax, dword [edx*4 + 0x4e8164]
lea ecx, [edx + 1]
inc edx
mov word [eax], cx
cmp edx, 0xa
jl 0x424b40
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp + 8]
push 0x4e8164
push dword [ebp - 0x18]
call fcn.004a5230
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x424bd4
lea edi, [ebx + 2]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x14], 1
push ebx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x1c]
add esp, 0xc
xor ecx, ecx
push ebx
push ecx
push esi
mov word [eax + ebx], cx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 0x18], edi
call fcn.00404bf0
test al, al
je 0x424c1e
mov ecx, dword [0x4e9870]
call fcn.004200b0
mov ecx, dword [0x4e986c]
call fcn.004200b0
mov edi, dword [ebp - 0x10]
push 0xfde9
push 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x68]
call fcn.0049eca0
mov eax, dword [edi + 0xae0]
mov ecx, edi
inc dword [0x4eb040]
mov dword [0x4eb044], eax
lea eax, [ebp - 0x68]
push eax
call fcn.00424c40
mov esi, eax
jmp 0x424c20
push 0
push dword [ebp + 8]
xorps xmm3, xmm3
xor edx, edx
mov ecx, str.Could_not_extract_script_from_EXE.
call fcn.004a7f40
add esp, 8
xor esi, esi
lea ecx, [ebp - 0x68]
call fcn.00422cf0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc