joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000886c
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1000a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x110], ebx
push edi
mov edi, 0x104
mov dword [ebp - 0x114], edi
test esi, esi
je 0x1000893f
lea eax, [ebp - 0x110]
mov byte [esi], bl
push eax
push 0x20019
push ebx
push 0x100014d4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000892b
mov eax, dword [ebp - 0x114]
cmp eax, 0x105
jae 0x1000896c
mov byte [ebp + eax - 0x10c], bl
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push 0x10001120
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000892b
cmp dword [ebp - 0x118], 2
lea eax, [ebp - 0x10c]
jne 0x1000894e
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x110], ebx
je 0x1000893f
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10009160
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000892b
lea eax, [ebp - 0x10c]
mov edx, edi
push eax
mov ecx, esi
call fcn.10001780
jmp 0x1000892b
call fcn.100092a8
int3

Function at 0x10009370
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x100093ae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x100093a6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x100093b0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10009396
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10009480
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x100094b1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100094b1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x100094b1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1005ee2d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1005ee3c
pop dword [ebp - 0x48]
mov eax, 0x1005ee3c
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x44a77
push 0
mov eax, 0x8d1fa059
sub eax, 0x7d181f3d
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4dd8
xor ebx, ebx
add ebx, eax
mov edx, 0x4089c223
add edx, 0xcf8eafdd
add edx, dword [ebp - 0x48]
mov edi, 0xe65d70a7
add edi, 0x9ea04fa
sub dword [ebp - 0x18], esi
mov esi, dword [edx]
mov dword [ebp - 0x18], 0x97bf9fd4
sub esi, edi
mov dword [ebp - 0x18], 0x62629a62
mov dword [ebx], esi
xor dword [ebp - 0x18], 0x14eda41f
add ebx, 4
add edx, 0x7d99d08f
add edx, 0x82662f75
loop 0x1005ee92
add eax, 0x18f901f1
sub eax, 0x18f7d7be
xor ebx, ebx
add ebx, eax
add eax, 0xb3eadd7c
add eax, 0x4c152289
mov ecx, 0x65cbc507
add ecx, 0xaa343af9
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x10071ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x10071f6b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x10071f22
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x10071f22
cmp esi, ebx
jge 0x10071f22
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10071f65
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10071f65
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783dc]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783dc]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x10071f7d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x100721a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
mov eax, dword [ebp + 8]
je 0x100721c8
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x100721e2
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1005ee2d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.100762d0
leave
ret 4

Function at 0x100723b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x100723e6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10072445
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1005ee2d
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1005ee2d
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1005ee2d
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100762d0
leave
ret 0x10
Function at 0x10072460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1007248c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x100724bd
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x100724bb
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1005ee2d
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x100724bd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100762d0
leave
ret 8
Function at 0x412210
Capabilities:
Parse pe header

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

Function at 0x10006df8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.100043ac
mov eax, dword [ebx]
call fcn.1000451c
mov edx, eax
test edx, edx
jle 0x10006e2f
mov eax, 1
mov ecx, dword [ebx]
mov cx, word [ecx + eax*2 - 2]
xor cx, 0x13
mov esi, dword [ebx]
mov word [esi + eax*2 - 2], cx
inc eax
dec edx
jne 0x10006e19
pop esi
pop ebx
ret

Function at 0x10006f4c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
dec ebx
test ebx, ebx
jl 0x10006fbc
inc ebx
mov dword [ebp - 4], ebx
mov esi, edx
inc byte [eax + 0x100]
xor edx, edx
mov dl, byte [eax + 0x100]
mov dl, byte [eax + edx]
add byte [eax + 0x101], dl
xor ebx, ebx
mov bl, byte [eax + 0x101]
mov bl, byte [eax + ebx]
push ebx
xor ebx, ebx
mov bl, byte [eax + 0x100]
lea edi, [eax + ebx]
pop ebx
mov byte [edi], bl
xor ebx, ebx
mov bl, byte [eax + 0x101]
mov byte [eax + ebx], dl
xor ebx, ebx
mov bl, byte [eax + 0x100]
add dl, byte [eax + ebx]
and edx, 0xff
mov dl, byte [eax + edx]
xor dl, byte [esi]
mov byte [ecx], dl
inc ecx
inc esi
dec dword [ebp - 4]
jne 0x10006f61
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x40167e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x30efcd4]
sub esp, 0x400
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x30ef6cc]
test esi, esi
je 0x4016c9
cmp eax, 0x959
jne 0x4016b5
push 0
lea eax, [ebp - 0x400]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, edi
call fcn.00401481
add edi, 8
dec esi
je 0x4016c9
mov eax, dword [0x30efcd4]
jmp 0x40169d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d7a6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404d65
mov dword [ebp - 0x14], eax
cmp dword [0x816de8], esi
jne 0x40d899
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d826
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d979
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d979
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d979
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x816de8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x816dec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x816df0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x816df8], eax
test eax, eax
je 0x40d896
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x816df4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d8be
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d8b1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d8d3
push 4
pop eax
jmp 0x40d97b
cmp dword [ebp - 0x14], esi
je 0x40d8d3
push dword [0x816de8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d8b8
mov eax, dword [0x816df4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d931
cmp dword [0x816df8], edi
je 0x40d931
push eax
call ebx
push dword [0x816df8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d931
test eax, eax
je 0x40d931
call ecx
test eax, eax
je 0x40d926
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d926
test byte [ebp - 8], 1
jne 0x40d931
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d961
mov eax, dword [0x816dec]
cmp eax, edi
je 0x40d95e
push eax
call ebx
test eax, eax
je 0x40d95e
call eax
mov esi, eax
test esi, esi
je 0x40d95e
mov eax, dword [0x816df0]
cmp eax, edi
je 0x40d95e
push eax
call ebx
test eax, eax
je 0x40d95e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x816de8]
call ebx
test eax, eax
je 0x40d979
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d97b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fd7
mov esp, ebp
pop ebp
ret
Function at 0x412190
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
jmp 0x4121aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4121b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4121a0
mov eax, 1
add ebx, ebx
jne 0x4121c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4121b8
jne 0x4121d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4121b8
xor ecx, ecx
sub eax, 3
jb 0x4121e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41225a
mov ebp, eax
add ebx, ebx
jne 0x4121f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412200
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412224
inc ecx
add ebx, ebx
jne 0x412210
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412205
jne 0x412221
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412205
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412244
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412235
jmp 0x4121a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412244
add edi, ecx
jmp 0x4121a6
pop esi
mov edi, esi
mov ecx, 0x11a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412262
cmp byte [edi], 2
jne 0x412262
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x412267
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x4122d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1203c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412294
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12044]
or eax, eax
je 0x4122d0
mov dword [ebx], eax
add ebx, 4
jmp 0x4122b1
call dword [esi + 0x12040]
mov ebp, dword [esi + 0x12048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x12331]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412322
sub esp, 0xffffff80
jmp 0x4012e0
Function at 0x10001caa
Capabilities:
Link many functions at runtime

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

Function at 0x10001d60
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x10001de0
push str.winmm.dll
call fcn.10008ffc
test al, al
jne 0x10001d79
pop esi
ret
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.mmioInstallIOProcA
push dword [esi + 4]
call edi
push str.mmioOpenA
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push str.mmioClose
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push str.mmioAscend
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.mmioRead
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push str.mmioDescend
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push str.mciSendCommandA
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 1
pop edi
mov al, 1
pop esi
ret
Function at 0x100051a3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10014d34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0xe8], eax
jne 0x100051d1
cmp dword [esi + 0xec], edi
je 0x100052bb
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
mov dword [esi + 0xe8], eax
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x30]
mov dword [esi + 0xec], edi
mov dword [ebp - 8], edi
call fcn.10008ffc
mov ebx, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
sete byte [ebp - 0x25]
and dword [ebp - 0x2c], 0
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x10005226
push 0
push dword [esi + 4]
call ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 0xa4]
mov ecx, dword [esi + 0x98]
push 0x10
sub edx, eax
push edx
mov edx, dword [esi + 0xa0]
sub edx, ecx
push edx
push eax
push ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 0x491
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x10005270
mov ecx, esi
call fcn.10008ffc
cmp dword [ebp - 0x2c], 0
je 0x1000527d
push 1
push dword [esi + 4]
call ebx
cmp byte [ebp - 0x25], 0
pop ebx
je 0x1000528d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x100052bb
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xa0]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10009710
leave
ret 8

Function at 0x100089c1
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 0x10008de5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push edi
mov edi, ecx
cmp eax, 0x1a
jl 0x10008e3e
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x10008e3e
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x18]
call ebx
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0x10
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.10008ffc
push 1
push dword [edi + 0x18]
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x10008ffc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000900b
pop dword [ebp - 0xc]
mov eax, 0x65ce08d6
add eax, 0xaa328735
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x38afe636
add dword [ebp - 0x1c], 0x15a25f15
mov dword [ebp - 0x18], 0xf1f534ee
sub dword [ebp - 0x18], 0xbfc1e8a9
mov dword [ebp - 0x14], 0xdbf64c0
add dword [ebp - 0x14], 0x3e8cdf6e
mov dword [ebp - 0x10], 0x2d2a2ce7
add dword [ebp - 0x10], 0xd2d5d319
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xa7fb8e86
add eax, 0x680521f6
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xcc7df216
add dword [ebp - 0x1c], 0xa7f47740
mov dword [ebp - 0x18], 0xcd19ba55
add dword [ebp - 0x18], 0x7452a720
mov dword [ebp - 0x14], 0x1f33e1f3
add dword [ebp - 0x14], 0x443b8a79
mov dword [ebp - 0x10], 0x74b9445
sub dword [ebp - 0x10], 0x74b9445
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xe666c6e5
sub eax, 0xd666164d
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x38421
push 0
call eax
mov ecx, 0x49c3
mov edx, eax
mov ebx, 0xae1d4198
sub ebx, 0x9e1bab98
add ebx, dword [ebp - 0xc]
mov esi, 0x47a00fde
sub dword [ebp - 4], edi
mov edi, dword [ebx]
mov dword [ebp - 4], 0xa659d132
xor edi, esi
xor dword [ebp - 4], 0xc7d5e952
mov dword [edx], edi
add dword [ebp - 8], 0xedd8b305
add edx, 0x458c8197
add edx, 0xba737e6d
add ebx, 0xe3c4defb
sub ebx, 0xe3c4def7
loop 0x10009121
add eax, 0x4f227bda
add eax, 0xb0de9e05
mov ebx, eax
add eax, 0x12c8297d
add eax, 0xed37d688
mov ecx, 0xd4ac2c0a
sub ecx, 0xc4ac2c0a
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x10009710
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10014d34]
jne 0x1000971a
repz ret
jmp fcn.10009ea3