joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0xebe1eed
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4c4d648d
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

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 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x4049f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4096c8
cmp edx, dword [eax]
je 0x404a17
add eax, 8
inc ecx
cmp eax, 0x409758
jl 0x404a08
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4096c8]
jne 0x404b45
mov eax, dword [0x409b60]
cmp eax, 1
je 0x404b1f
test eax, eax
jne 0x404a48
cmp dword [0x409614], 1
je 0x404b1f
cmp edx, 0xfc
je 0x404b45
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404a7f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404fa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405110
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404ac2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405110
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407578
push edi
call fcn.00405da0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404fa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404fb0
lea eax, [ebp - 0xa0]
push 0x407558
push eax
call fcn.00404fb0
push dword [esi + 0x4096cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404fb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405d0e
add esp, 0x2c
pop edi
jmp 0x404b45
lea eax, [ebp + 8]
lea esi, [esi + 0x4096cc]
push 0
push eax
push dword [esi]
call fcn.00405110
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]
pop esi
leave
ret
Function at 0x40105d
Capabilities:
Execute command
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.daemon
push dword [ebp + 8]
mov esi, edx
mov edi, ecx
call dword [sym.imp.libav.dll_Ordinal_44283]
cmp dword [eax + 0x18], 0
pop ecx
pop ecx
jne 0x4010c5
lea eax, [ebp - 4]
push eax
push str.EXIT__d
push esi
call dword [sym.imp.MSVCR110.dll_sscanf]
add esp, 0xc
cmp eax, 1
jne 0x4010af
push dword [ebp - 4]
push edi
push str._s:_EXIT__d_n
call fcn.004077c4
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.MSVCR110.dll_exit]
push esi
call dword [sym.imp.MSVCR110.dll_system]
pop ecx
cmp eax, 0xffffffff
jne 0x4010e8
push esi
push edi
push str._s:_system__s__failed_n
jmp 0x4010e0
push 0
push esi
push esi
push 1
call dword [sym.imp.MSVCR110.dll__spawnlp]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4010e8
push esi
push edi
push str._s:_couldnt_execute___s_._n
call fcn.004077c4
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x40136d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x1fe
mov word [ebp - 0x208], ax
xor ebx, ebx
lea eax, [ebp - 0x206]
push ebx
push eax
call sub.MSVCR110.dll_memset
push str.Software_
mov esi, 0x100
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
push str.iPCAP
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0x24
lea eax, [ebp - 0x21c]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x208]
push eax
push Ordinal_5
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40147b
mov word [ebp - 0x218], ax
lea edi, [ebp - 0x216]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
pop edi
push edi
lea eax, [ebp - 0x220]
push eax
push edi
push ebx
push str.dwHighDateTime
push dword [ebp - 0x21c]
call esi
push edi
lea eax, [ebp - 0x224]
push eax
push edi
push ebx
push str.dwLowDateTime
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407bf7
leave
ret
Function at 0x40148a
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x23c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
xor eax, eax
push esi
push edi
mov word [esp + 0x30], ax
lea edi, [esp + 0x32]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
xor ebp, ebp
push 0x1fe
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push ebp
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edi, dword [esp + 0x2c]
push str.Software_
mov esi, 0x100
lea eax, [esp + 0x44]
push esi
and edi, 0x7fffffff
xor ebx, ebx
or ebx, dword [esp + 0x30]
push eax
or edi, ebp
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
push str.iPCAP
lea eax, [esp + 0x50]
push esi
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push ebp
lea eax, [esp + 0x4c]
push eax
push Ordinal_5
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4015b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebp
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.dwHighDateTime
push dword [esp + 0x30]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
xor ebp, ebp
push ebp
push str.dwLowDateTime
push dword [esp + 0x30]
call esi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
xor eax, eax
or eax, dword [esp + 0x24]
and ecx, 0x7fffffff
or ecx, ebp
push ebp
sub ebx, eax
push 0x989680
sbb edi, ecx
push edi
push ebx
call fcn.00408510
cmp edx, ebp
jl 0x4015e5
jg 0x4015e0
cmp eax, 0x35e8
jbe 0x4015e5
xor eax, eax
inc eax
jmp 0x4015e7
xor eax, eax
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407bf7
add esp, 0x23c
ret

Function at 0x401600
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Get common file path
Terminate process

Disassembly:
push 0x8000
call dword [sym.imp.MSVCR110.dll___iob_func]
push eax
call dword [sym.imp.MSVCR110.dll__fileno]
pop ecx
push eax
call dword [sym.imp.MSVCR110.dll__setmode]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.libav.dll_Ordinal_44286]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 0x10
jmp fcn.0040163a
Function at 0x40250b
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x64
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, ecx
push 0x10
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], edx
xor edx, edx
movsw word es:[edi], word [esi]
mov ebp, edx
mov ebx, edx
mov esi, edx
mov dword [esp + 0x18], edx
cmp dword [esp + 0x78], edx
jbe 0x4025f7
push 6
pop ecx
mov edi, eax
mov eax, dword [esp + 0x1c]
shl ebp, 8
movsx ax, byte [esi + eax]
add ax, bp
movzx ebp, ax
add edx, 8
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
cmp dx, cx
jbe 0x4025c7
movzx eax, bp
mov dword [esp + 0x20], eax
movzx ecx, dx
lea eax, [edx - 7]
push 6
pop ebp
xor dx, dx
mov esi, dword [esp + 0x20]
div bp
mov edx, dword [esp + 0x28]
sub ecx, ebp
mov dword [esp + 0x14], ecx
inc ax
movzx ebp, ax
mov eax, esi
shr eax, cl
mov ecx, dword [esp + 0x14]
sub ecx, 6
add edx, 0xfffa
and eax, 0x3f
mov dword [esp + 0x14], ecx
mov al, byte [esp + eax + 0x2c]
mov byte [edi + ebx], al
inc ebx
dec ebp
jne 0x402599
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
push 6
pop ecx
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x78]
jb 0x40254e
test dx, dx
je 0x4025ee
movzx eax, bp
sub cl, dl
shl ax, cl
and eax, 0x3f
mov al, byte [esp + eax + 0x2c]
mov byte [edi + ebx], al
inc ebx
mov eax, edi
jmp 0x4025f7
mov byte [eax + ebx], 0x3d
inc ebx
test bl, 3
jne 0x4025f2
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00407bf7
add esp, 0x64
ret
Function at 0x403767
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.libav.dll_Ordinal_44340]
push esi
push edi
mov esi, edx
push 6
push esi
mov edi, ecx
call ebx
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x40385b
push edi
push str._s.cvd
lea eax, [ebp - 0x24]
push 0x20
push eax
call dword [sym.imp.libav.dll_Ordinal_44276]
add esp, 0x10
cmp eax, 0x20
jae 0x403849
cmp eax, 0xffffffff
je 0x403849
lea eax, [ebp - 0x24]
push 4
push eax
call ebx
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x403808
push edi
push str._s.cld
lea eax, [ebp - 0x24]
push 0x20
push eax
call dword [sym.imp.libav.dll_Ordinal_44276]
add esp, 0x10
cmp eax, 0x20
jae 0x403800
cmp eax, 0xffffffff
je 0x403800
lea eax, [ebp - 0x24]
push 4
push eax
call ebx
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x403808
push edi
push str._chdir_tmp:_Cant_access_local__s_database_n
jmp 0x40384f
push edi
push str._chdir_tmp:_dbname_parameter_value_too_long_to_create_cld_file_name:__s_n
jmp 0x40384f
push esi
call dword [sym.imp.MSVCR110.dll__mkdir]
pop ecx
push esi
cmp eax, 0xffffffff
jne 0x40381d
push str._chdir_tmp:_Cant_create_directory__s_n
jmp 0x40384f
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.libav.dll_Ordinal_44213]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x40385b
push esi
lea eax, [ebp - 0x24]
push eax
push str._chdir_tmp:_Cant_unpack__s_into__s_n
call fcn.004077c4
push esi
call dword [sym.imp.libav.dll_Ordinal_44210]
add esp, 0x10
jmp 0x403856
push edi
push str._chdir_tmp:_dbname_parameter_value_too_long_to_create_cvd_file_name:__s_n
call fcn.004077c4
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x403872
push esi
call dword [sym.imp.MSVCR110.dll__chdir]
pop ecx
cmp eax, 0xffffffff
jne 0x403870
push esi
push str._chdir_tmp:_Cant_change_directory_to__s_n
jmp 0x40384f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407bf7
leave
ret
Function at 0x4040a4
Capabilities:
Move file

Disassembly:
sub esp, 0x408
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push esi
push edi
mov ebp, 0x410780
xor edi, edi
push ebp
mov ebx, edi
call dword [sym.imp.libav.dll_Ordinal_44272]
mov esi, eax
pop ecx
test esi, esi
jne 0x4040e7
push ebp
push str._checkdbdir:_Cant_open_directory__s_n
call fcn.004077c4
pop ecx
or eax, 0xffffffff
jmp 0x404214
mov ebp, dword [sym.imp.libav.dll_Ordinal_44273]
jmp 0x4041ff
cmp word [eax], di
je 0x4041ff
lea edi, [eax + 3]
push str..cld
push edi
call dword [sym.imp.libav.dll_Ordinal_44258]
pop ecx
pop ecx
test eax, eax
jne 0x404126
push str..cvd
push edi
call dword [sym.imp.libav.dll_Ordinal_44258]
pop ecx
pop ecx
test eax, eax
je 0x4041fd
push edi
push 0x410780
push 0x40d6ec
lea eax, [esp + 0x1c]
push 0x200
push eax
call dword [sym.imp.libav.dll_Ordinal_44276]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.libav.dll_Ordinal_5]
add esp, 0x18
test eax, eax
je 0x4041fd
push eax
or ebx, 0xffffffff
call dword [sym.imp.libav.dll_Ordinal_27]
push eax
lea eax, [esp + 0x18]
push eax
push str._Corrupted_database_file__s:__s_n
call fcn.004077c7
lea eax, [esp + 0x20]
push eax
push str._s.broken
lea eax, [esp + 0x228]
push 0x201
push eax
call dword [sym.imp.libav.dll_Ordinal_44276]
lea eax, [esp + 0x230]
push 4
push eax
call dword [sym.imp.libav.dll_Ordinal_44340]
add esp, 0x28
test eax, eax
jne 0x4041b4
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCR110.dll_rename]
pop ecx
pop ecx
test eax, eax
je 0x4041e9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
test eax, eax
je 0x4041fd
lea eax, [esp + 0x10]
push eax
push str._Cant_remove_broken_database_file__s__please_delete_it_manually_and_restart_PCAccelerateProUpdater_n
jmp 0x4041f6
lea eax, [esp + 0x210]
push eax
push str.Corrupted_database_file_renamed_to__s_n
call fcn.004077c7
pop ecx
pop ecx
xor edi, edi
push esi
call ebp
pop ecx
test eax, eax
jne 0x4040f2
push esi
call dword [sym.imp.libav.dll_Ordinal_44274]
mov eax, ebx
pop ecx
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407bf7
add esp, 0x408
ret
Function at 0x405522
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push 0x8000
push str.mirrors.dat
mov ebx, ecx
call dword [sym.imp.MSVCR110.dll__open]
mov ebp, eax
pop ecx
pop ecx
cmp ebp, 0xffffffff
jne 0x405554
or eax, eax
jmp 0x4055d7
push esi
push edi
jmp 0x405586
mov eax, dword [ebx + 4]
inc eax
imul eax, eax, 0x34
push eax
push dword [ebx + 0x20]
call dword [sym.imp.MSVCR110.dll_realloc]
pop ecx
pop ecx
mov dword [ebx + 0x20], eax
test eax, eax
je 0x4055c2
mov edi, dword [ebx + 4]
imul edi, edi, 0x34
push 0xd
add edi, eax
pop ecx
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 4]
push 0x34
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.MSVCR110.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0x34
je 0x405558
push ebp
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
test esi, esi
je 0x4055d3
push str.mirrors.dat
call dword [sym.imp.MSVCR110.dll__unlink]
pop ecx
mov ecx, ebx
call fcn.00405505
or eax, 0xffffffff
jmp 0x4055d5
mov ecx, ebx
call fcn.00405505
push ebp
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
jmp 0x4055bd
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00407bf7
add esp, 0x38
ret
Function at 0x407a2a
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2240
call fcn.004085c0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x223c], eax
mov eax, dword [esp + 0x2244]
push ebx
push ebp
push esi
push edi
push 0x8000
push eax
mov ebx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
xor ebp, ebp
call dword [sym.imp.MSVCR110.dll__open]
mov esi, eax
or edi, 0xffffffff
pop ecx
pop ecx
cmp esi, edi
jne 0x407a77
mov eax, edi
jmp 0x407bcc
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.MSVCR110.dll__fstat64i32]
pop ecx
pop ecx
cmp eax, edi
jne 0x407a93
push esi
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
jmp 0x407a70
mov edi, 0x200
push edi
lea eax, [esp + 0x4c]
push 0
push eax
call sub.MSVCR110.dll_memset
push 0x64
push dword [esp + 0x24]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.MSVCR110.dll_strncpy]
push dword [esp + 0x44]
lea eax, [esp + 0xe0]
push 0x40e690
push 0xc
push eax
mov byte [esp + 0xd3], 0
call dword [sym.imp.libav.dll_Ordinal_44276]
add esp, 0x28
lea ecx, [esp + 0x48]
mov edx, edi
movzx eax, byte [ecx]
add ebp, eax
inc ecx
dec edx
jne 0x407ae0
lea eax, [ebp + 0x100]
push eax
push str._06o
lea eax, [esp + 0xe4]
push 8
push eax
call dword [sym.imp.libav.dll_Ordinal_44276]
add esp, 0x10
lea eax, [esp + 0x48]
push edi
push eax
test ebx, ebx
jne 0x407b40
push dword [esp + 0x18]
call dword [sym.imp.MSVCR110.dll__write]
add esp, 0xc
cmp eax, edi
je 0x407b61
push esi
call dword [sym.imp.MSVCR110.dll__close]
pop ecx
or eax, 0xffffffff
jmp 0x407bcc
push ebp
lea eax, [esp + 0x24c]
push eax
test ebx, ebx
je 0x407b50
push ebx
call dword [sym.imp.libav.dll_Ordinal_44294]
add esp, 0xc
test eax, eax
je 0x407b23
jmp 0x407b61
push dword [esp + 0x18]
call dword [sym.imp.MSVCR110.dll__write]
add esp, 0xc
cmp eax, ebp
jne 0x407b23
push 0x2000
lea eax, [esp + 0x24c]
push eax
push esi
call dword [sym.imp.MSVCR110.dll__read]
mov ebp, eax
add esp, 0xc
test ebp, ebp
jg 0x407b33
push esi
call dword [sym.imp.MSVCR110.dll__close]
mov esi, dword [esp + 0x30]
pop ecx
and esi, 0x800001ff
jns 0x407b9a
dec esi
or esi, 0xfffffe00
inc esi
je 0x407bca
push edi
lea eax, [esp + 0x4c]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
sub edi, esi
lea eax, [esp + 0x48]
push edi
push eax
test ebx, ebx
je 0x407be5
push ebx
call dword [sym.imp.libav.dll_Ordinal_44294]
add esp, 0xc
test eax, eax
je 0x407b2b
xor eax, eax
mov ecx, dword [esp + 0x224c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407bf7
add esp, 0x2240
ret
push dword [esp + 0x18]
call dword [sym.imp.MSVCR110.dll__write]
add esp, 0xc
cmp eax, 0xffffffff
jmp 0x407bc4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80c004]
jne 0x40100a
repz ret
jmp fcn.0040133d

Function at 0x40403b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x80c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040270a
and dword [ebp - 0x14], 0
cmp dword [0x80ead4], 0
mov dword [ebp - 0x18], eax
jne 0x4040ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404196
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404196
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x80ead4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x80ead8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x80eadc], eax
call edi
push eax
call esi
mov dword [0x80eae4], eax
test eax, eax
je 0x4040ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x80eae0], eax
mov eax, dword [0x80eae0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404147
cmp dword [0x80eae4], ecx
je 0x404147
push eax
call esi
push dword [0x80eae4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404147
test ebx, ebx
je 0x404147
call edi
test eax, eax
je 0x40413e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40413e
test byte [ebp - 8], 1
jne 0x404147
or dword [ebp + 0x10], 0x200000
jmp 0x40417a
mov eax, dword [0x80ead8]
cmp eax, dword [ebp - 0x18]
je 0x40417a
push eax
call esi
test eax, eax
je 0x40417a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40417a
mov eax, dword [0x80eadc]
cmp eax, dword [ebp - 0x18]
je 0x40417a
push eax
call esi
test eax, eax
je 0x40417a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x80ead4]
call esi
test eax, eax
je 0x404196
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404198
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x409cd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x80cf60]
sub esp, 0x10
push ebx
mov ebx, dword [0x853ea0]
push edi
mov edi, dword [0x85417c]
push eax
call fcn.00409be0
add esp, 4
cmp dword [0x85417c], 0x2f
jne 0x409d2d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00409c30
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409f90
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x85417c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x409fb2
push 0
push 0
call edi
mov eax, dword [0x85417c]
cmp esi, 0x845013
jne 0x409fc9
mov eax, dword [0x80dd80]
add eax, 0xa231
mov dword [0x85417c], eax
cmp eax, 0x141
jne 0x409fe4
mov dword [0x80f018], 0xec58acac
mov dword [0x80f01c], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x409fa0
call fcn.00409d40
pop edi
xor eax, eax
pop esi
ret 0x10