joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003f50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10008160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0x2800
push 0x40
mov dword [ebp - 0x258], edi
mov dword [edi + 0x18], 1
mov dword [ebp - 0x254], 0x2800
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov ebx, eax
lea eax, [ebp - 0x108]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x250], eax
cmp eax, 0xffffffff
jne 0x10003ff0
push 1
lea eax, [ebp - 0x249]
push eax
mov ecx, edi
mov byte [ebp - 0x249], 0x66
call fcn.10001df0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100045c6
mov esp, ebp
pop ebp
ret 4
mov byte [ebx], 0x66
mov edi, 1
jmp 0x10004000
mov ecx, dword [ebp - 0x254]
lea eax, [ecx - 0x208]
cmp edi, eax
jbe 0x10004028
add ecx, 0x208
push 0x42
push ecx
push ebx
mov dword [ebp - 0x254], ecx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov ecx, 0x100064d8
lea eax, [ebp - 0x21c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10004053
test dl, dl
je 0x1000404f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10004053
add eax, 2
add ecx, 2
test dl, dl
jne 0x10004033
xor eax, eax
jmp 0x10004058
sbb eax, eax
or eax, 1
test eax, eax
je 0x100040f9
mov eax, 0x100064dc
lea ecx, [ebp - 0x21c]
jmp 0x10004070
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10004090
test dl, dl
je 0x1000408c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10004090
add ecx, 2
add eax, 2
test dl, dl
jne 0x10004070
xor eax, eax
jmp 0x10004095
sbb eax, eax
or eax, 1
test eax, eax
je 0x100040f9
mov al, byte [ebp - 0x248]
and al, 0x10
mov byte [edi + ebx], al
lea eax, [ebp - 0x21c]
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [edi + ebx]
push ecx
call sub.MSVCR110.dll_memcpy
add edi, esi
add esp, 0xc
mov byte [edi + ebx], 0
mov eax, dword [ebp - 0x22c]
mov dword [edi + ebx + 1], eax
mov eax, dword [ebp - 0x228]
mov dword [edi + ebx + 5], eax
mov eax, dword [ebp - 0x234]
mov dword [edi + ebx + 9], eax
mov eax, dword [ebp - 0x230]
mov dword [edi + ebx + 0xd], eax
add edi, 0x11
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004000
mov ecx, dword [ebp - 0x258]
push edi
push ebx
call fcn.10001df0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100045c6
mov esp, ebp
pop ebp
ret 4
Function at 0x100043b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10008160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov eax, dword [edi]
mov ebx, dword [edi + 4]
push 0x80
push 3
push 0
push 2
mov dword [ebp - 0x14], eax
push 0x40000000
lea eax, [ecx + 0x1c]
push eax
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
push eax
lea eax, [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xf], eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov dword [ebp - 0xb], eax
push 9
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], 0x6e
call fcn.10001df0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100045c6
mov esp, ebp
pop ebp
ret 8

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 0x10051966
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100519a5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100519a5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100519a5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100519a5
cmp dword [ecx + 0x74], 0xe
jbe 0x100519a5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10052ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10052d0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10052d0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10053030
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005d620
push 0x1005d618
push str.FlsAlloc
push 0x1f
call fcn.10053313
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10053064
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1005306a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100530ae
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005d630
push 0x1005d628
push str.FlsGetValue
push 0x21
call fcn.10053313
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100530e5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100530ed
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005d638
push 0x1005d630
push str.FlsSetValue
push 0x22
call fcn.10053313
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10053127
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10055fee
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005608b
push ebx
push esi
call fcn.1005608e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10055ef2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10056038
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005608a
push edi
push eax
call fcn.100562ec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10056058
call fcn.100545e0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10056089
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10055ef2
add esp, 0x20
test eax, eax
jne 0x10056077
push edi
call fcn.100545e0
jmp 0x1005607f
push ebx
call fcn.100545e0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100016d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 0x20]
push dword [ebx]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000172a
push 0x19
push 0x4015601
push 6
call fcn.1000863a
add esp, 0xc
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push 0xffffffff
mov ebx, dword [ebp + 0x18]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
cmp dword [ebp - 8], esp
je 0x10001762
push 0x110
push 0x4015601
push 6
call fcn.1000863a
add esp, 0xc
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
mov ebx, dword [ebp + 0x18]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x10001794
push 0x158
push 0x4015601
push 6
call fcn.1000863a
add esp, 0xc
cmp dword [ebp + 0x1c], 0
jne 0x100017b1
mov ebx, dword [ebp + 0x18]
cmp dword [ebx], 0
je 0x100017b1
mov eax, 1
jmp 0x100017b6
mov eax, 0
test eax, eax
je 0x100017ec
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 0x18]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x100017ec
push 0x1ef
push 0x4015601
push 6
call fcn.1000863a
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100017f4
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10002c64
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0x40
push 0x1000
push 0x40
push 0
push dword [0x10053b0a]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10002cbe
push 0x19
push 0x40155fd
push 6
call fcn.1000863a
add esp, 0xc
mov dword [ebp - 4], eax
push 0x80000501
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x198
call fcn.10008dc0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [0x10053b1a]
call fcn.100017fa
mov eax, 2
cmp eax, ecx
jl 0x10002d0b
push 0xbc
push 0x40155fd
push 1
call fcn.1000863a
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push 1
mov ebx, 0x198
call fcn.10008dc0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x10021444
push dword [ebp - 0x14]
push 0x100212f4
push dword [ebp - 0xc]
push 0x100212fd
mov ecx, 5
call fcn.100012eb
add esp, 0x14
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10002d69
push ebx
call fcn.10008634
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10002d79
push ebx
call fcn.10008634
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10002d8d
push ebx
call fcn.10008634
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [0x10053b02]
push 0x10053b12
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x50]
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
push dword [0x10053b0a]
call fcn.100016d4
mov dword [ebp - 0xc], esp
push 0x8000
push 0
push dword [ebp - 4]
push dword [0x10053b0a]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10002e1d
push 0x152
push 0x40155fd
push 6
call fcn.1000863a
add esp, 0xc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10002e2d
push ebx
call fcn.10008634
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x10008f80
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10009012
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x10009004
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x10008ffc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10008fc5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x1000aaf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x1000ab11
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x1000ab6b
inc edi
cmp edi, esi
jl 0x1000ab05
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x1000aba0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x1000ab5a
cmp byte [eax], bl
je 0x1000ab75
cmp byte [eax + 1], bl
je 0x1000ab7e
cmp byte [eax + 2], bl
je 0x1000ab88
cmp byte [eax + 3], bl
je 0x1000ab94
add eax, 4
cmp eax, edi
jb 0x1000ab31
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x402e82
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x402e91
pop dword [ebp - 0x2c]
mov eax, 0x5f721a29
add eax, 0xa0ce1468
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x7d43a377
add dword [ebp - 0x3c], 0xd10ea1d4
mov dword [ebp - 0x38], 0x72459f83
sub dword [ebp - 0x38], 0x4012533e
mov dword [ebp - 0x34], 0x900f1524
sub dword [ebp - 0x34], 0x43c2d0f6
mov dword [ebp - 0x30], 0xe2c1d15f
sub dword [ebp - 0x30], 0xe2c1d15f
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x4a643cb7
sub eax, 0x4a23bbb3
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x1254b794
add dword [ebp - 0x3c], 0x621db1c2
mov dword [ebp - 0x38], 0x55704e80
add dword [ebp - 0x38], 0xebfc12f5
mov dword [ebp - 0x34], 0x65e31ffc
sub dword [ebp - 0x34], 0x273b390
mov dword [ebp - 0x30], 0x97eefc5c
sub dword [ebp - 0x30], 0x97eefc5c
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xe58475b8
add eax, 0x1abc0b48
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x362b2
push 0
call eax
mov ecx, 0x46439cf2
add ecx, 0xb9bca7c0
mov edi, eax
mov esi, 0x450400
add esi, dword [ebp - 0x2c]
mov ebx, 0x90dfdb93
sub ebx, 0x2117b070
add dword [ebp - 0x24], 0xb67657a9
mov edx, dword [esi]
xor dword [ebp - 0x24], ecx
xor edx, ebx
xor dword [ebp - 0x24], 0x3ba053db
mov dword [edi], edx
add dword [ebp - 0x24], 0xb2832097
add edi, 0x28d2d1a2
sub edi, 0x28d2d19e
add esi, 0x562d5c64
add esi, 0xa9d2a3a0
loop 0x402fad
add eax, 0xcf82a104
add eax, 0x307e6497
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10001b40
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001bd8
push str.avifil32.dll
call fcn.10004f5c
test al, al
jne 0x10001b5d
pop esi
ret
push str.AVIFileInit
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileExit
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileRelease
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIFileOpen
push dword [esi + 4]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamInfo
push dword [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamOpenFromFile
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.AVIStreamRelease
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
mov al, 1
pop esi
ret

Function at 0x10001c20
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001cb8
push str.winmm.dll
call fcn.10004f5c
test al, al
jne 0x10001c3d
pop esi
ret
push str.mmioInstallIOProcA
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioOpenA
push dword [esi + 4]
mov dword [esi + 8], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioClose
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioAscend
push dword [esi + 4]
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioRead
push dword [esi + 4]
mov dword [esi + 0x14], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioDescend
push dword [esi + 4]
mov dword [esi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mciSendCommandA
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
mov al, 1
pop esi
ret
Function at 0x10004f5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10004f6b
pop dword [ebp - 0xc]
mov eax, 0x10004f6b
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xfccfd31c
sub dword [ebp - 0x1c], 0xae7d8dd1
mov dword [ebp - 0x18], 0x5055632f
sub dword [ebp - 0x18], 0x1e2216ea
mov dword [ebp - 0x14], 0x31e3466f
add dword [ebp - 0x14], 0x1a68fdbf
mov dword [ebp - 0x10], 0x461788a3
sub dword [ebp - 0x10], 0x461788a3
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x58717676
add eax, 0xb78f5a0a
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x5f015285
sub dword [ebp - 0x1c], 0xea8ee92f
mov dword [ebp - 0x18], 0x7452b964
sub dword [ebp - 0x18], 0x32e657ef
mov dword [ebp - 0x14], 0x79d843d6
add dword [ebp - 0x14], 0xe9972896
mov dword [ebp - 0x10], 0x28ccdadf
add dword [ebp - 0x10], 0xd7332521
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x36bb9
push 0
call eax
mov ecx, 0x41f3
mov ebx, eax
mov edi, 0x157f83e9
add edi, 0xfa823017
add edi, dword [ebp - 0xc]
mov edx, 0xd150d4f2
mov dword [ebp - 8], 0xd8c24eab
mov esi, dword [edi]
xor dword [ebp - 8], ebx
sub esi, edx
mov dword [ebx], esi
xor dword [ebp - 8], edx
add ebx, 0xd75c922e
add ebx, 0x28a36dd6
add edi, 0xb2410c9f
sub edi, 0xb2410c9b
loop 0x10005077
add eax, 0xfa9f
mov ebx, eax
add eax, 0x58539f26
sub eax, 0x58539f21
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x10009670
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x100096c8
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x100096c8
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.10004f5c
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4

Function at 0x10009c50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1000c455
pop dword [ebp - 0x24]
mov eax, 0x1000c455
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x32835
push 0
mov eax, 0x3560a6ce
sub eax, 0x255f666a
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x8b055acd
add ecx, 0x74fad359
xor edx, edx
add edx, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x24]
mov esi, 0x71edd8c1
add esi, 0x5a48d102
add dword [ebp - 0xc], edi
mov edi, dword [ebx]
add dword [ebp - 0x20], eax
add edi, esi
add dword [ebp - 0x1c], 0x95890819
mov dword [edx], edi
xor dword [ebp - 0x10], 0x12efa4f2
add edx, 0x517adfdd
add edx, 0xae852027
add ebx, 4
loop 0x1000c4ab
add eax, 0x842d847e
sub eax, 0x842cd913
xor ebx, ebx
add ebx, eax
add eax, 0x5fb8c382
add eax, 0xa0473c83
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret