joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456820
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49a958
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x456859
inc eax
mov dword [esi + 0x10], eax
jmp 0x45696c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x45686d
mov eax, 0xffffffc7
jmp 0x45696e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x45687e
cmp dword [esi + 8], eax
jne 0x45686d
cmp dword [esi + 8], eax
jne 0x456897
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x456897
mov eax, 0xffffffc7
jmp 0x45696e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4568ab
push eax
mov ecx, ebx
call fcn.00456050
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00427280
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4568dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004272a0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004557c0
test eax, eax
mov dword [esp + 0x38], eax
je 0x45690f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4b97b0
call fcn.00427480
mov eax, dword [esp + 0x38]
jmp 0x45696e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00456680
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x456953
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004566a0
mov esi, eax
test esi, esi
jne 0x456983
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00456680
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x456925
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4b97b0
call fcn.00427480
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4b97b0
call fcn.00427480
mov eax, esi
jmp 0x45696e

Function at 0x459aa0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x459b00
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x459b00
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x459b00
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x459b00
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x459b40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x45fca0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49af88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00491ec1
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0045f640
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00491def
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048e5d6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048e5d6
push 1
push 0
push 0
mov ecx, esi
call fcn.0048e57e
push 1
push 0
push 1
mov ecx, esi
call fcn.0048e57e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00491f33
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x45fe20
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49afa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00491ec1
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0045f640
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00491def
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x45fee4
cmp dword [esp + 0x40], 1
jne 0x45fee2
cmp ecx, eax
jge 0x45fee4
mov eax, ecx
cmp eax, 0xc8
jge 0x45fef0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0045fca0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00491f33
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x460670
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49b013
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048c9f7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00492169
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004936c1
test eax, eax
je 0x46078c
mov ecx, dword [esp + 0x3c]
call fcn.00492196
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x460750
push edi
mov ecx, esi
call fcn.0048f755
mov ecx, esi
call fcn.004608f0
cmp dword [esp + 0x38], 1
jne 0x460785
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048f8bf
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4631a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4631d3
push esi
call fcn.004662b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4631cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x463259
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x463242
mov eax, dword [esi + 8]
test eax, eax
je 0x4631f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46323e
cmp eax, 2
je 0x463242
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4631ea
cmp eax, 3
je 0x46321d
cmp eax, 1
jne 0x4631ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4631ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4631ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00463280
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x463268
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00463280
add esp, 4
pop esi
ret

Function at 0x4708f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x470993
test eax, eax
jbe 0x470993
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x470993
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47093e
xor esi, esi
jmp 0x470944
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47096f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00427cd0
add esi, eax
push esi
mov ebx, esi
call fcn.00427cd0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x470950
pop ebp
test edi, edi
pop edi
jne 0x470993
test ebx, ebx
je 0x470993
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047c0c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x470ad5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x470bed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x470bed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048ce49
mov esi, eax
test esi, esi
je 0x470bed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x470bed
mov ecx, esi
call fcn.00470a40
cmp edi, eax
jge 0x470bed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x470b73
mov dword [esp + 0x34], 1
jmp 0x470bce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x470bed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046ffd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x48d7ec
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48d824
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048b879
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048b851
jmp 0x48d830
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48eede
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48ef20
call fcn.00494bc3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48ef20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48ef17
xor eax, eax
jmp 0x48ef28
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048ef2e
pop edi
pop esi
pop ebx
ret 4
Function at 0x4950f3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x495121
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49513f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00495059
jmp 0x49513f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49513f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00495059
test edi, edi
mov eax, edi
jne 0x495129
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x46c760
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push esi
mov esi, eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x46c771
cmp eax, 9
jne 0x46c776
add esi, 2
jmp 0x46c764
movzx ecx, word [esi]
test cx, cx
jne 0x46c783
xor al, al
pop esi
pop ecx
ret
cmp word [esi + 2], 0
lea eax, [esi + 2]
jne 0x46c79d
mov eax, dword [esp + 0xc]
mov word [eax + 2], cx
mov byte [eax], 0
mov al, 1
pop esi
pop ecx
ret
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
push 0x2b
xor bl, bl
push eax
mov byte [edi], 1
mov byte [esp + 0x1b], bl
call fcn.00491a11
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x46c86c
lea eax, [ebp - 2]
cmp eax, esi
jbe 0x46c7e4
lea esp, [esp]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x46c7dd
cmp ecx, 9
jne 0x46c7e4
sub eax, 2
cmp eax, esi
ja 0x46c7d0
sub eax, esi
sar eax, 1
lea edi, [eax + 1]
push edi
push 0x4a5214
push esi
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x46c803
or bl, 1
jmp 0x46c831
push edi
push 0x4a520c
push esi
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x46c81b
or bl, 4
jmp 0x46c831
push edi
push str.Shift
push esi
call fcn.0049109d
add esp, 0xc
test eax, eax
jne 0x46c8a4
or bl, 0x10
lea esi, [ebp + 2]
movzx eax, word [esi]
cmp eax, 0x20
je 0x46c841
cmp eax, 9
jne 0x46c846
add esi, 2
jmp 0x46c834
cmp word [esi], 0
je 0x46c8a4
lea eax, [esi + 2]
push 0x2b
push eax
call fcn.00491a11
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x46c7c2
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], bl
cmp word [esi + 2], 0
jne 0x46c8b0
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edx, word [esi]
push eax
lea ecx, [esp + 0x1b]
push ecx
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, eax
call fcn.00414510
mov bl, byte [esp + 0x1f]
movzx eax, al
add esp, 0xc
mov word [edi + 2], ax
jmp 0x46c8ce
pop edi
pop ebp
mov byte [esp + 0xb], bl
pop ebx
xor al, al
pop esi
pop ecx
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
xor ecx, ecx
mov eax, esi
call fcn.00414420
movzx ecx, al
add esp, 8
mov word [edi + 2], cx
test bl, 1
je 0x46c8d6
or byte [edi], 8
test bl, 4
je 0x46c8de
or byte [edi], 0x10
test bl, 0x10
je 0x46c8e6
or byte [edi], 4
cmp word [edi + 2], 0
pop edi
pop ebp
pop ebx
setne al
pop esi
pop ecx
ret
Function at 0x401f20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x24]
movzx ecx, word [edx + 4]
movzx eax, word [edx + 6]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
movzx ebp, word [edx]
push esi
push edi
movzx edi, word [edx + 2]
mov esi, ecx
shr esi, 1
add eax, edi
add esi, ebp
and ecx, reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], esi
jns 0x401f5f
dec ecx
or ecx, 0xfffffffe
inc ecx
mov esi, dword [edx + 0x14]
neg ecx
sbb ecx, ecx
neg ecx
cmp eax, edi
mov dword [esp + 0x24], ecx
jle 0x4020a0
jmp 0x401f88
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x10]
movzx edi, word [edx]
imul ecx, eax
add ecx, dword [ebx]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
mov dword [esp + 0x14], edi
add ecx, edi
mov eax, edi
mov edi, dword [ebx + 0x14]
imul edi, ebp
add edi, dword [ebx + 4]
mov dword [esp + 0x18], ebp
mov ebp, dword [ebx + 0x18]
imul ebp, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
add ebp, eax
add ebp, dword [ebx + 8]
add edi, eax
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x14], eax
jge 0x402083
mov edx, dword [esp + 0x10]
and edx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x401fe2
dec edx
or edx, 0xfffffffe
inc edx
sub eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov edi, edi
mov dl, byte [esi + 3]
movzx ebx, byte [esi]
or al, 0xff
sub al, dl
movzx edx, dl
imul ebx, edx
mov dword [esp + 0x14], edx
movzx edx, byte [ecx]
movzx eax, al
imul edx, eax
add ebx, edx
sar ebx, 8
mov byte [ecx], bl
inc ecx
cmp dword [esp + 0x20], 0
jne 0x40204c
movzx ebx, byte [edi]
movzx edx, byte [esi + 1]
imul ebx, eax
imul edx, dword [esp + 0x14]
add edx, ebx
sar edx, 8
mov byte [edi], dl
movzx ebx, byte [ebp]
movzx edx, byte [esi + 2]
imul ebx, eax
imul edx, dword [esp + 0x14]
add edx, ebx
sar edx, 8
inc edi
mov byte [ebp], dl
inc ebp
mov al, byte [esi + 7]
movzx ebx, byte [ecx]
add esi, 4
or dl, 0xff
sub dl, al
movzx edx, dl
imul edx, ebx
movzx ebx, byte [esi]
movzx eax, al
imul ebx, eax
add edx, ebx
sar edx, 8
mov byte [ecx], dl
inc ecx
add esi, 4
sub dword [esp + 0x18], 1
jne 0x401ff0
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x24], 0
je 0x40208d
add esi, 4
mov eax, dword [esp + 0x10]
dec eax
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
jg 0x401f80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x403e70
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.MSVCR90.dll_printf]
push str.ffplay_version_SVN_r16722__Copyright__c__2003_2007_Fabrice_Bellard__et_al._nusage:_ffplay__options__input_file_nSimple_media_player_n
call esi
push 0x40d08c
call esi
push 0
push 4
push str.Main_options:_n
push 0x40cc98
call fcn.004010a0
push 4
push 4
push str._nAdvanced_options:_n
push 0x40cc98
call fcn.004010a0
push str._nWhile_playing:_nq__ESC______________quit_nf___________________toggle_full_screen_np__SPC______________pause_na___________________cycle_audio_channel_nv___________________cycle_video_channel_nt___________________cycle_subtitle_channel_nw___________________show_audio_waves_nleft_right__________seek_backward_forward_10_seconds_ndown_up_____________seek_backward_forward_1_minute_nmouse_click_________seek_to_percentage_in_file_corresponding_to_fraction_of_width_n
call esi
add esp, 0x2c
push 1
call dword [sym.imp.MSVCR90.dll_exit]
pop esi
int3
Function at 0x406fc0
Capabilities:
Terminate process

Disassembly:
call dword [sym.imp.avformat.dll_av_register_all]
cmp dword [0x411248], 0
mov dword [0x443630], 0
je 0x403f33
mov dword [0x411288], 1
push 0x31
call sub.SDL.dll_SDL_Init
add esp, 4
test eax, eax
je 0x403f67
call sub.SDL.dll_SDL_GetError
push eax
push str.Could_not_initialize_SDL____s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR90.dll_exit]
push 0
push 1
call sub.SDL.dll_SDL_EventState
push 0
push 4
call sub.SDL.dll_SDL_EventState
push 0
push 0xd
call sub.SDL.dll_SDL_EventState
push 0
push 0x18
call sub.SDL.dll_SDL_EventState
push 0x411298
call sub.avcodec.dll_av_init_packet
push 0x6c
push 0
push 0x443f40
mov dword [0x4112a8], 0x40d388
call sub.MSVCR90.dll_memset
add esp, 0x30
mov dword [0x443f40], 0xfffffffe
ret
jmp 0x403f10

Function at 0x407860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40bb27
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QThread::constructor_class_QObject__]
mov ebx, dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSharedMemory::constructor_class_QObject__]
xor edi, edi
push edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esi], vtable.QProcessCmdThread.0
mov dword [esi + 0xc], edi
call ebx
mov ecx, dword [sym.imp.QtCore4.dll_struct_QString::Data_QString::shared_null]
mov dword [esi + 0x18], ecx
mov edx, ecx
mov eax, 1
lock xadd dword [edx], eax
mov ecx, dword [sym.imp.QtCore4.dll_struct_QString::Data_QString::shared_null]
mov dword [esi + 0x1c], ecx
mov edx, ecx
mov eax, 1
lock xadd dword [edx], eax
push edi
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 3
call ebx
mov ecx, dword [sym.imp.QtCore4.dll_struct_QByteArray::Data_QByteArray::shared_null]
mov dword [esi + 0x30], ecx
mov edx, ecx
mov eax, 1
lock xadd dword [edx], eax
mov ecx, dword [sym.imp.QtCore4.dll_struct_QString::Data_QString::shared_null]
mov dword [esi + 0x34], ecx
mov edx, ecx
mov eax, 1
lock xadd dword [edx], eax
fldz
mov bl, 6
fstp qword [esi + 0x50]
mov byte [esp + 0x18], bl
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0x1f
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x78], edi
call dword [sym.imp.MSVCR90.dll__getpid]
push 0x14
mov dword [esi + 0x38], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x18], 7
cmp eax, edi
je 0x40794b
push edi
mov ecx, eax
call fcn.00406e90
jmp 0x40794d
xor eax, eax
push 0xc
mov byte [esp + 0x1c], bl
mov dword [esi + 8], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x18], 8
cmp eax, edi
je 0x407977
mov ecx, eax
call fcn.00406d50
mov dword [esi + 0xc], eax
jmp 0x40797a
mov dword [esi + 0xc], edi
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40a4c0
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
push edi
push eax
call dword [sym.imp.WINMM.dll_timeKillEvent]
mov eax, dword [esi + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp eax, edi
je 0x4016e8
push 0x7d0
push eax
mov dword [esi + 0x20], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4016df
push 0x40c7d0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esi + 0x1c]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x1c]
push edx
call ebx
mov dword [esi + 0x1c], edi
mov ecx, esi
call fcn.00401610
mov eax, dword [esi + 4]
cmp eax, edi
je 0x401701
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 4], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x401713
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x401720
push eax
call ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x34], edi
pop edi
mov dword [esi + 0x38], 0xffffffff
pop esi
pop ebx
ret
mov ecx, 0x443b88
jmp 0x401690