joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e83
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4122c4]
mov eax, dword [0x411b80]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x404049
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4122e0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x404049
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x403eed
xor eax, eax
jmp 0x40405d
test al, 0x20
je 0x403efe
push 2
push edi
push edi
push ecx
call fcn.0040511a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x403fd3
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40401a
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x403f60
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x403f51
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x403f33
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403fa0
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x403fac
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x403f27
jmp 0x403fae
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x404044
cmp dword [ebp + 0x3a4], edi
je 0x40401a
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40400c
mov dword [0x411e4c], eax
jmp 0x404050
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403ffe
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x403fae
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x403fae
push dword [ebp + 0x3a4]
call fcn.00405005
pop ecx
jmp 0x40405a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404032
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x403ee6
mov dword [0x411e48], 0x1c
mov dword [0x411e4c], edi
jmp 0x40405a
sub eax, dword [ebp - 0x7c]
jmp 0x40405d
and dword [0x411e4c], 0
mov dword [0x411e48], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00404f62
add ebp, 0x39c
leave
ret
Function at 0x4042bf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x411b80]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x411a38]
je 0x4042f4
inc eax
cmp eax, 0x13
jb 0x4042e5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x411a38]
jne 0x40441a
mov eax, dword [0x411ea4]
cmp eax, 1
je 0x4043f2
cmp eax, edx
jne 0x404324
cmp dword [0x411a24], 1
je 0x4043f2
cmp ecx, 0xfc
je 0x40441a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40435a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405ea0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404e40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40438e
mov eax, edi
push eax
call fcn.00404e40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4085b0
push edi
call fcn.00405fa0
add esp, 0x10
push edi
call fcn.00404e40
push dword [esi + 0x411a3c]
mov ebx, eax
call fcn.00404e40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404ba0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405ea0
push edi
push ebx
call fcn.00405eb0
push 0x408590
push ebx
call fcn.00405eb0
push dword [esi + 0x411a3c]
push ebx
call fcn.00405eb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405da4
add esp, 0x2c
jmp 0x40441a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x411a3c]
push dword [esi]
call fcn.00404e40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00404f62
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x405da4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x411fcc], ebx
push esi
push edi
jne 0x405e24
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405e5f
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x411fcc], eax
je 0x405e5f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x411fd0], eax
call esi
cmp dword [0x411e54], 2
mov dword [0x411fd4], eax
jne 0x405e24
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x411fdc], eax
je 0x405e24
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x411fd8], eax
mov eax, dword [0x411fd8]
test eax, eax
je 0x405e69
call eax
test eax, eax
je 0x405e50
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x411fdc]
test eax, eax
je 0x405e50
test byte [ebp - 8], 1
jne 0x405e69
cmp dword [0x411e60], 4
jb 0x405e63
or byte [ebp + 0x12], 0x20
jmp 0x405e88
xor eax, eax
jmp 0x405e98
or byte [ebp + 0x12], 4
jmp 0x405e88
mov eax, dword [0x411fd0]
test eax, eax
je 0x405e88
call eax
mov ebx, eax
test ebx, ebx
je 0x405e88
mov eax, dword [0x411fd4]
test eax, eax
je 0x405e88
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x411fcc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4068de
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40690c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406913
cmp ebx, dword [eax + 4]
jae 0x406913
xor eax, eax
jmp 0x406b03
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406924
xor eax, eax
inc eax
jmp 0x406b02
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40693a
cmp ecx, edx
jae 0x406a7f
cmp dword [eax + 4], 0
je 0x406943
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40692b
cmp dword [ebp + 8], 0
je 0x406965
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406a7f
cmp eax, esi
jae 0x406a7f
mov eax, dword [0x411fe8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40698a
cmp dword [esi*4 + 0x411ff0], edi
je 0x406a83
inc esi
cmp esi, eax
jl 0x406978
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x406aff
cmp dword [ebp - 8], 0x1000000
jne 0x406aff
test byte [ebp - 0xc], 0xcc
je 0x406a08
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406aff
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406aff
cmp word [eax + 0x18], 0x10b
jne 0x406aff
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406aff
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406a08
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406a08
test byte [ecx + 0x27], 0x80
jne 0x406a7f
push 1
push 0x412030
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x40691c
mov ecx, dword [0x411fe8]
test ecx, ecx
mov edx, ecx
jle 0x406a3c
lea eax, [ecx*4 + 0x411fec]
cmp dword [eax], edi
je 0x406a3c
dec edx
sub eax, 4
test edx, edx
jg 0x406a30
test edx, edx
jne 0x406a6d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406a49
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406a61
lea eax, [edx*4 + 0x411ff0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406a4f
cmp ecx, 0x10
jge 0x406a6d
inc ecx
mov dword [0x411fe8], ecx
push 0
push 0x412030
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x40691c
xor eax, eax
jmp 0x406b02
test esi, esi
jle 0x40691c
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x412030
call ebx
test eax, eax
jne 0x40691c
cmp dword [esi*4 + 0x411ff0], edi
je 0x406ad9
mov eax, dword [0x411fe8]
lea esi, [eax - 1]
test esi, esi
jl 0x406ac7
cmp dword [esi*4 + 0x411ff0], edi
je 0x406ac3
dec esi
jns 0x406ab7
test esi, esi
jge 0x406ad7
cmp eax, 0x10
jge 0x406ad2
inc eax
mov dword [0x411fe8], eax
lea esi, [eax - 1]
jmp 0x406ad9
je 0x406af1
xor ecx, ecx
test esi, esi
jl 0x406af1
lea eax, [ecx*4 + 0x411ff0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406adf
push 0
push 0x412030
call ebx
jmp 0x40691c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40785d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404ba0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4078f8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x411e54]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4078f8
cmp eax, 1
je 0x407919
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4078f8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4078c5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4078f4
xor eax, eax
inc eax
jmp 0x407938
cmp edi, eax
jae 0x4078fc
xor eax, eax
jmp 0x407938
cmp eax, esi
jae 0x407903
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x411e54]
jmp 0x40791c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414ecf
Capabilities:
Hash data using sha1

Disassembly:
push 0x40
lea eax, [esi + 0x38]
push 0
push eax
call fcn.0043c820
push 0x15
lea eax, [esi + 4]
push 0
push eax
call fcn.0043c820
and dword [esi + 0x30], 0
and dword [esi + 0x34], 0
add esp, 0x18
mov dword [esi + 0x1c], 0x67452301
mov dword [esi + 0x20], 0xefcdab89
mov dword [esi + 0x24], 0x98badcfe
mov dword [esi + 0x28], 0x10325476
mov dword [esi + 0x2c], 0xc3d2e1f0
ret

Function at 0x4150a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push edi
push 0x40
push dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
call fcn.0043cbf0
add esp, 0xc
xor edi, edi
lea eax, [ebp + edi - 0x54]
call fcn.00416a59
mov dword [ebp + edi - 0x194], eax
add edi, 4
cmp edi, 0x40
jl 0x4150c2
push 0x40
lea ecx, [ebp - 0x18c]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
add ecx, 4
dec edx
rol eax, 1
mov dword [ecx + 0x34], eax
jne 0x4150e3
mov eax, dword [esi]
mov ebx, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
jmp 0x41511d
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, 0x14
jge 0x415130
mov ecx, edx
not ecx
and ecx, ebx
mov ebx, edi
and ebx, edx
or ecx, ebx
jmp 0x415146
cmp eax, 0x28
jl 0x415140
cmp eax, 0x3c
jge 0x415140
mov ecx, edi
or ecx, edx
jmp 0x415126
mov ecx, ebx
xor ecx, edi
xor ecx, edx
cmp eax, 0x14
jge 0x415154
mov dword [ebp - 0x10], 0x5a827999
jmp 0x41517a
cmp eax, 0x28
jge 0x415162
mov dword [ebp - 0x10], 0x6ed9eba1
jmp 0x41517a
xor ebx, ebx
cmp eax, 0x3c
setge bl
dec ebx
and ebx, 0xc4b8fb06
add ebx, 0xca62c1d6
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
rol eax, 5
add eax, dword [ebp + ebx*4 - 0x194]
mov ebx, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], edi
add eax, ecx
add eax, dword [ebp - 0x14]
inc dword [ebp - 4]
rol edx, 0x1e
cmp dword [ebp - 4], 0x50
mov edi, edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], eax
jl 0x415117
mov ecx, dword [esi]
add ecx, eax
mov eax, dword [esi + 4]
add eax, edx
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
add eax, edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [esi], ecx
mov ecx, dword [ebp - 8]
add eax, ecx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
add eax, ebx
push 0x40
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0043c820
add esp, 0xc
pop edi
pop ebx
leave
ret
Function at 0x416c95
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x479548]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x190], eax
mov eax, dword [ebp + 0xc]
push 0x41
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x54]
mov esi, edx
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x194], esi
call fcn.0043c820
push 0x41
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0043c820
add esp, 0x18
mov ebx, vtable.clx::sha1.0
cmp edi, 0x40
jbe 0x416d3c
lea esi, [ebp - 0x18c]
mov dword [ebp - 0x18c], ebx
call fcn.00414ecf
test edi, edi
je 0x416d14
push edi
push dword [ebp - 0x194]
mov edi, esi
call fcn.00414f18
lea ecx, [ebp - 0x18c]
call fcn.00414fbd
push 0x14
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043cbf0
push 0x14
lea eax, [ebp - 0x188]
push eax
jmp 0x416d49
push edi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0043cbf0
push edi
push esi
lea eax, [ebp - 0x9c]
push eax
call fcn.0043cbf0
add esp, 0x18
xor eax, eax
xor byte [ebp + eax - 0x54], 0x36
xor byte [ebp + eax - 0x9c], 0x5c
inc eax
cmp eax, 0x40
jl 0x416d5a
lea esi, [ebp - 0x114]
mov dword [ebp - 0x114], ebx
call fcn.00414ecf
push 0x40
lea eax, [ebp - 0x54]
push eax
mov edi, esi
call fcn.00414f18
cmp dword [ebp + 0x10], 0
je 0x416d9f
push dword [ebp + 0x10]
push dword [ebp - 0x198]
call fcn.00414f18
lea ecx, [ebp - 0x114]
call fcn.00414fbd
mov esi, dword [ebp - 0x190]
mov dword [esi], ebx
call fcn.00414ecf
push 0x40
lea eax, [ebp - 0x9c]
push eax
mov edi, esi
call fcn.00414f18
push 0x14
lea eax, [ebp - 0x110]
push eax
call fcn.00414f18
mov ecx, edi
call fcn.00414fbd
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c781
leave
ret

Function at 0x417cd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x417cfc
mov edx, dword [esp + 4]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x469eb0]
dec ecx
inc edx
test ecx, ecx
jne 0x417ce0
pop esi
not eax
ret 8

Function at 0x41d5d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [edi + 0xc]
mov ecx, dword [edi]
and ecx, 1
and eax, 0x13c9e684
xor eax, ecx
mov dword [esp], 1
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x13c9e684
mov ecx, 0x10
mov edx, eax
sar edx, cl
sar ecx, 1
xor eax, edx
test ecx, ecx
jg 0x41d606
test al, 1
jne 0x41d64b
xor edx, edx
push esi
lea esp, [esp]
mov esi, dword [esp + edx*4 + 4]
mov ecx, 1
xor eax, eax
jmp 0x41d630
test ecx, esi
jne 0x41d647
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x41d630
inc edx
cmp edx, 4
jl 0x41d620
pop esi
add esp, 0x10
ret
xor dword [edi + edx*4], ecx
pop esi
add esp, 0x10
ret
Function at 0x41d6c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push edi
mov edi, ecx
mov dword [edi], eax
mov eax, 1
jmp 0x41d6d0
mov edx, dword [ecx]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, eax
mov dword [ecx + 4], esi
inc eax
add ecx, 4
cmp eax, 0x270
jl 0x41d6d0
mov dword [edi + 0x9c0], 0x270
call fcn.0041d5d0
pop edi
pop esi
ret
Function at 0x41f6f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x457826
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x718
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 0x90
lea esi, [eax + 4]
push edi
push esi
mov dword [esp + 0x18], vtable.CCS::CCSAutoLock.0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x72c], 0
mov eax, dword [0x53d410]
test eax, eax
je 0x41f8fe
cmp dword [ebp + 0x10], 0
je 0x41f8fe
cmp dword [ebp + 0x14], 0
je 0x41f8fe
mov ecx, dword [eax]
lea edx, [esp + 0x2d0]
push edx
push 0
push 0
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ebx, dword [ebp + 0xc]
lea edx, [esp + 0x20]
push edx
mov ecx, 0x80
lea esi, [esp + 0x4d4]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x53d410]
mov ecx, dword [eax]
push 1
xor edi, edi
push edi
push eax
mov eax, dword [ecx + 0x38]
call eax
test eax, eax
jge 0x41f7ae
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x41f8ff
mov ecx, dword [esp + 0x3c]
mov eax, ecx
and eax, 0x80000
je 0x41f7e0
test ecx, 0x10000
je 0x41f7e0
test ecx, 0x100000
je 0x41f7e0
cmp dword [esp + 0xe4], 0xfffe0101
jb 0x41f7e0
mov dword [ebx + 0x200], edi
jmp 0x41f80e
cmp eax, edi
je 0x41f8f3
test ecx, 0x10000
je 0x41f7fc
mov dword [ebx + 0x200], 1
jmp 0x41f80e
cmp eax, edi
je 0x41f8f3
mov dword [ebx + 0x200], 2
push edi
push 0x469c54
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], edi
call sub.DDRAW.dll_DirectDrawCreateEx
mov esi, dword [esp + 0xc]
mov dword [esp + 0x1c], esi
push 0x17c
lea eax, [esp + 0x154]
push edi
push eax
mov byte [esp + 0x738], 1
call fcn.0043c820
add esp, 0xc
push 0
lea edx, [esp + 0x154]
mov dword [esp + 0x154], 0x17c
mov ecx, dword [esi]
mov eax, dword [ecx + 0x2c]
push edx
push esi
call eax
cmp dword [esp + 0xe4], 0xfffe0200
mov ecx, dword [esp + 0x18c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x204], ecx
setae cl
cmp dword [esp + 0xec], 0xffff0200
mov dword [ebx + 0x208], edx
mov dword [ebx + 0x20c], eax
mov eax, dword [ebp + 8]
setae dl
mov byte [ebx + 0x210], cl
mov byte [ebx + 0x211], dl
cmp byte [eax + 0x30], 0
mov byte [esp + 0x72c], 0
sete cl
mov byte [ebx + 0x212], cl
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x724]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x14]
call fcn.0041c080
jmp 0x41f905
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x724]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424330
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45778c
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push 0
push 0x469b88
lea edi, [esi + 0x50]
push edi
push 0
push 0
mov ecx, esi
call fcn.00435bb0
mov dword [esp + 0x18], 0
push edi
mov dword [esi], vtable.CCS::CAsyncReader.0
mov dword [esi + 0xc], vtable.CCS::CAsyncReader.1.0
mov dword [esi + 0x10], vtable.CCS::CAsyncReader.2.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x24]
push eax
lea ebx, [esi + 0x68]
push ebx
mov byte [esp + 0x20], 1
call fcn.00424170
mov ecx, dword [esp + 0x28]
push 1
push str.Source_Output
push ecx
push edi
push esi
lea ebp, [esi + 0xf8]
push 0
mov ecx, ebp
mov byte [esp + 0x30], 2
call fcn.00436280
mov dword [esi + 0xf0], vtable.CCS::CAsyncOutputPin.0
mov dword [ebp], vtable.CCS::CAsyncOutputPin.1.0
mov dword [esi + method.CCS::CAsyncOutputPin.2.virtual_0], vtable.CCS::CAsyncOutputPin.2.0
mov dword [esi + method.CCS::CAsyncOutputPin.3.virtual_0], vtable.CCS::CAsyncOutputPin.3.0
mov dword [esi + 0x190], esi
mov dword [esi + 0x194], ebx
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x18], 3
call fcn.004330b0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42e9e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4575a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
mov edi, ebx
push edi
mov dword [esp + 0x18], edi
call ebp
mov dword [esp + 0x20], 0
mov byte [esi + 0x38], 1
call fcn.0042eb50
test eax, eax
je 0x42ea87
mov dword [esp + 0x10], ebx
lea esp, [esp]
push eax
lea ecx, [esi + 0x54]
call fcn.00433330
test eax, eax
je 0x42ea47
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea ecx, [esi + 0x3c]
mov byte [esp + 0x20], 1
call fcn.00433480
cmp dword [esi + 0x44], 0
mov edi, eax
jne 0x42ea6d
mov edx, dword [esi + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
test edi, edi
jne 0x42ea30
mov edi, dword [esp + 0x14]
cmp dword [esi + 0x74], 0
jle 0x42ead8
push edi
mov byte [esi + 0x39], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x78]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, ebx
push edi
call ebp
cmp dword [esi + 0x74], 0
je 0x42eace
nop
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x78]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, ebx
push edi
call ebp
cmp dword [esi + 0x74], 0
jne 0x42eab0
mov eax, dword [esi + 0x70]
mov byte [esi + 0x39], 0
push eax
jmp 0x42eadc
mov ecx, dword [esi + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x42eb00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 0x80], 0
jne 0x42eb4c
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp]
push ecx
push 0
push esi
push 0x42e500
push 0
push 0
call fcn.0043ecf0
add esp, 0x18
mov dword [esi + 0x80], eax
test eax, eax
jne 0x42eb4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42eb4e
and eax, 0xffff
or eax, 0x80070000
pop ecx
ret
xor eax, eax
pop ecx
ret