joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa16f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xa16ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xa17035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00a16e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xa16fc5
mov edi, 0xa318b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xa17035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00a16e00
add edi, 4
add esp, 0xc
cmp edi, 0xa318c0
jb 0xa17000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xa17070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00a1d082
mov esi, eax
add esp, 8
test esi, esi
je 0xa17107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xa17102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00a1c946
add esp, 8
test eax, eax
je 0xa170e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xa170e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00a1c946
add esp, 8
test eax, eax
jne 0xa170c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xa17102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xa17f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xa2c9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xa18002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a1bdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa18002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00a136e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a1c20b
push 0x10
call fcn.00a1c1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa17fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00a081c0
jmp 0xa17fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a17b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa17ff0
mov ecx, edi
call fcn.00a082c0
push edi
call fcn.00a1c1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa18021
inc ebx
cmp ebx, 0x20
jb 0xa17f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xa19250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa2d808
push 0xa1d288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xa19329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xa19329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00a1c1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xa19329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xa19329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xa1932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00a19351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa19d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa19d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xa19d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa19d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa19d94
push eax
push esi
call fcn.00a1c20b
add esp, 8
pop esi
ret 0x10

Function at 0xa19da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa19e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa19e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa32320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a1bdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xa19dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xa19e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa19ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa19eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa32320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a1bdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xa19eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa19e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xa1a000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xa1a131
push esi
call fcn.00a1d145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a0c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa1a131
push 0
push ebp
call fcn.00a0c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a0c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa1a08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a0c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa1a121
push 0xa32918
push edi
call fcn.00a1b3f0
push eax
push ebx
push esi
call fcn.00a19f60
push 0xa328f8
push edi
call fcn.00a1b3f0
push eax
push ebx
push esi
call fcn.00a19f60
push 0xa328d8
push edi
call fcn.00a1b3f0
push eax
push ebx
push esi
call fcn.00a19f60
push 0xa328c0
push edi
call fcn.00a1b3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a19f60
push 0xa328a0
push edi
call fcn.00a1b3f0
push eax
push ebx
push esi
call fcn.00a19f60
push 0xa32888
push edi
call fcn.00a1b3f0
push eax
push ebx
push esi
call fcn.00a19f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa1b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a1b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a1b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a1b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a1b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa1bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa1bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa2d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa1bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa1bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x24
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
sub esp, 4
mov ebx, eax
lea eax, [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10000
mov dword [esp + 8], 0x412000
mov dword [esp], 4
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vswprintf]
cmp word [0x412000], 0
je 0x401198
mov eax, 0x412000
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x4010d0
sub eax, 0x412000
sar eax, 1
lea esi, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x412000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x401118
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10000
mov dword [esp + 0x10], 0x402000
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x412000
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x402000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x40110b
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x4010e0

Function at 0x4015d0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x402240
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
xor edi, edi
push esi
mov esi, edx
push ebx
sub esp, 0x43c
mov dword [esp], str.AVCONV_DATADIR
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
call sub.msvcrt.dll_getenv
mov dword [esp], 0x4374f2
mov ebp, eax
call sub.msvcrt.dll_getenv
mov dword [esp + 0x44], str..._builds_share_ffmpeg
mov ecx, edi
mov edi, ebp
mov dword [esp + 0x40], eax
mov ebp, ecx
mov eax, 0xffffffff
test edi, edi
je 0x402372
test esi, esi
je 0x402310
cmp ebp, 1
je 0x402390
mov eax, dword [esp + 0x28]
lea ebx, [esp + 0x48]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x4374e2
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], str._s_s__s__s.avpreset
mov dword [esp + 4], 0x3e8
mov dword [esp], ebx
call fcn.00402210
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x44176c
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.avformat_58.dll_avio_open2
test eax, eax
js 0x40231d
add esp, 0x43c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [esp + 0x48]
cmp ebp, 1
je 0x4023f4
mov eax, 0x4374e2
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
mov dword [esp + 8], str._s_s__s.avpreset
mov dword [esp + 4], 0x3e8
mov dword [esp], ebx
call fcn.00402210
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x44176c
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.avformat_58.dll_avio_open2
add ebp, 1
cmp ebp, 2
ja 0x4022fc
test eax, eax
jns 0x4022fc
mov edi, dword [esp + ebp*4 + 0x3c]
jmp 0x402287
mov eax, dword [esp + 0x28]
lea ebx, [esp + 0x48]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str._.avconv
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], str._s_s__s__s.avpreset
mov dword [esp + 4], 0x3e8
mov dword [esp], ebx
call fcn.00402210
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x44176c
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.avformat_58.dll_avio_open2
test eax, eax
jns 0x4022fc
mov eax, str._.avconv
jmp 0x402322
Function at 0x410dc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [0x4480a8], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [esp + 4], 0x4480a8
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [0x4480a8]
sub esp, 8
test edx, edx
jle 0x410f4a
mov edi, eax
test eax, eax
je 0x410f4a
xor esi, esi
xor ebx, ebx
nop
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esi, eax
mov eax, dword [0x4480a8]
sub esp, 0x20
cmp ebx, eax
jl 0x410e10
lea eax, [esi + eax*4 + 4]
mov dword [esp], eax
call sub.avutil_56.dll_av_mallocz
mov dword [esp + 0x20], eax
mov edx, eax
mov dword [0x4480ac], eax
mov eax, dword [0x4480a8]
lea ecx, [eax*4 + 4]
mov dword [esp + 0x24], ecx
test edx, edx
je 0x410f5c
mov ecx, edx
xor ebx, ebx
xor ebp, ebp
test eax, eax
jle 0x410f58
mov eax, ebp
mov ebp, edi
mov edi, eax
jmp 0x410eb6
mov ecx, dword [0x4480ac]
mov eax, dword [esp + 0x24]
add eax, edi
add eax, dword [esp + 0x20]
mov dword [ecx + ebx*4], eax
mov ecx, esi
sub ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
add edi, eax
cmp ebx, dword [0x4480a8]
jl 0x410eb0
mov eax, dword [0x4480ac]
mov edi, ebp
lea eax, [eax + ebx*4]
mov dword [esp + 0x20], eax
mov dword [eax], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x4480a8]
sub esp, 4
mov esi, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [0x4480ac]
mov esi, dword [esp + 0x2c]
mov dword [esi], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
jmp 0x410f22
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
jmp 0x410f4a
Function at 0x417e00
Capabilities:
Create thread

Disassembly:
mov edx, dword [0x4480d4]
cmp dword [0x4480d0], 1
lea eax, [edx + eax*4]
je 0x417ed0
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [eax]
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
test eax, eax
je 0x417eb0
mov eax, dword [eax + 0x54]
test eax, eax
sete al
test al, al
je 0x417e3e
mov dword [ebx + 0x7c], 1
mov dword [esp + 8], 0x48
mov eax, dword [ebx + 0x84]
lea esi, [ebx + 0x68]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.avutil_56.dll_av_thread_message_queue_alloc
test eax, eax
js 0x417ea6
lea eax, [ebx + 0x6c]
mov dword [ebx + 0x70], 0x417ca0
mov dword [ebx + 0x74], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x417830
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov dword [ebx + 0x6c], eax
test eax, eax
je 0x417ed8
xor eax, eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov eax, dword [edx + 4]
mov edi, str.lavfi
mov ecx, 6
mov esi, dword [eax]
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
setne al
jmp 0x417e33
xor eax, eax
ret
mov dword [esp], 1
call sub.msvcrt.dll_strerror
mov dword [esp + 8], str.pthread_create_failed:__s._Try_to_increase__ulimit__v__or_decrease__ulimit__s_._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x10
mov dword [esp], 0
call sub.avutil_56.dll_av_log
mov dword [esp], esi
call sub.avutil_56.dll_av_thread_message_queue_free
mov eax, 0xffffffff
jmp 0x417ea6

Function at 0x4185e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
mov edx, dword [0x4481d4]
test edx, edx
je 0x418690
mov eax, dword [0x4481d0]
test eax, eax
je 0x418668
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [0x4481d4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
sub esp, 0x18
test eax, eax
je 0x418680
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x418680
lea eax, [esp + 0x27]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.msvcrt.dll__read
movzx eax, byte [esp + 0x27]
add esp, 0x3c
ret
call sub.msvcrt.dll__kbhit
test eax, eax
je 0x418680
call sub.msvcrt.dll__getch
add esp, 0x3c
ret
mov eax, 0xffffffff
jmp 0x418660
mov dword [esp], 0xfffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [0x4481d4], eax
lea edx, [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov dword [0x4481d0], eax
jmp 0x4185f6
Function at 0x4285d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x448288
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x448280]
sub esp, 4
test ebx, ebx
je 0x428625
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x42861e
test esi, esi
je 0x42861e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x428600
mov dword [esp], 0x448288
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret