joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065016
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10093800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1008ab98
push esi
call fcn.1006ecb4
pop ecx
pop ecx
test eax, eax
jne 0x10065044
xor al, al
jmp 0x100650c1
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.10064d4b
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1006507e
push dword [ebp - 0x210]
call fcn.100650e4
xor al, al
jmp 0x100650bf
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10065084
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x100650a4
push edx
call fcn.10064f4d
pop ecx
test al, al
je 0x1006506f
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x100650b2
mov bl, 1
push dword [ebp - 0x210]
call fcn.100650e4
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10059807
leave
ret
Function at 0x10068be8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10059ad0
mov eax, dword [0x10093800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1006ac3a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10068c2a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10068d86
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10059820
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10094b20]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006591e
mov ecx, dword [esi*4 + 0x10094b20]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10068d7f
cmp eax, dword [ecx + edi + 0x24]
jne 0x10068d7f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10068d7f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006591e
add esp, 0x14
test edx, edx
jl 0x10068d7f
jg 0x10068cf5
test eax, eax
jb 0x10068d7f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10068d7f
jl 0x10068d0f
cmp dword [ebp - 0x1008], eax
ja 0x10068d7f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10068d2d
test ebx, ebx
je 0x10068d66
cmp ecx, edi
jae 0x10068d66
mov al, byte [ecx]
cmp al, 0xd
jne 0x10068d47
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10068d53
cmp byte [ecx + 1], 0xa
jne 0x10068d53
inc ecx
jmp 0x10068d53
movzx eax, al
movsx eax, byte [eax + 0x10093950]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10068d2d
cmp edx, ebx
jne 0x10068d2d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10068d84
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10059807
leave
ret

Function at 0x1006995d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1006999c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006999c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006999c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1006999c
cmp dword [ecx + 0x74], 0xe
jbe 0x1006999c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1006ac61
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10094b20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006aca1
cmp byte [ebx], 0xa
jne 0x1006aca1
or byte [edi + eax + 0x28], 4
jmp 0x1006aca6
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1006ada5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006ad88
inc eax
cmp dl, 0xd
je 0x1006acd2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1006acf8
cmp eax, ecx
jae 0x1006ad06
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1006acba
jmp 0x1006ada5
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006ad83
cmp dword [ebp - 0x10], 0
je 0x1006ad83
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10094b20]
test byte [eax + edi + 0x28], 0x48
je 0x1006ad5d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006ad48
mov byte [esi], dl
jmp 0x1006ad59
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10094b20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006ada5
cmp byte [ebp - 1], 0xa
jne 0x1006ad6c
cmp esi, ebx
jne 0x1006ad6c
mov byte [esi], 0xa
jmp 0x1006ada4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1006593c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006ada5
mov byte [esi], 0xd
jmp 0x1006ada4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10094b20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006ada2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006ada5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006adae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10094b20]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006adf4
cmp word [ebx], dx
jne 0x1006adf4
or byte [eax + edi + 0x28], 4
jmp 0x1006adf9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1006af5c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1006af3c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1006ae3a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1006ae70
cmp eax, edx
jae 0x1006ae7e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1006ae15
jmp 0x1006af5c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006af37
cmp dword [ebp - 0x18], 0
je 0x1006af37
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10094b20]
test byte [eax + edi + 0x28], 0x48
je 0x1006af0d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1006aed1
mov word [esi], cx
jmp 0x1006af08
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10094b20]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10094b20]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10094b20]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1006af5c
pop eax
cmp word [ebp - 4], ax
jne 0x1006af1d
cmp esi, ebx
jne 0x1006af1d
mov word [esi], ax
jmp 0x1006af59
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1006593c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1006af5c
push 0xd
pop eax
jmp 0x1006af18
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10094b20]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1006af56
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1006af5c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006dbf0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008c604
push 0x1008c5fc
push str.FlsAlloc
push 0x1f
call fcn.1006da6f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006dc24
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007a300]
call esi
jmp 0x1006dc2a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1006dc6e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008c614
push 0x1008c60c
push str.FlsGetValue
push 0x21
call fcn.1006da6f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006dca5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007a300]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1006dcad
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.am_pm
push 0x1008c614
push str.FlsSetValue
push 0x22
call fcn.1006da6f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006dce7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007a300]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1006e7d2
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1006e74e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006e941
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006e941
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006e8f6
jg 0x1006e82e
test eax, eax
je 0x1006e8ec
push 1
push 0x1000
call fcn.1006d1f4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006e851
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006e8e3
push 0x8000
push ebx
call fcn.1006e24b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006e87a
jg 0x1006e875
cmp ecx, 0x1000
jb 0x1006e87a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1006becb
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006e8bf
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1006e875
jl 0x1006e8a6
test ecx, ecx
jne 0x1006e867
push dword [ebp - 0xc]
push ebx
call fcn.1006e24b
push esi
call fcn.1006c1bf
add esp, 0xc
xor ebx, ebx
jmp 0x1006e94f
cmp byte [edi + 0x24], 0
je 0x1006e8d6
cmp dword [edi + 0x20], 5
jne 0x1006e8d6
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006e8e1
mov ebx, dword [edi + 0x18]
jmp 0x1006e8e3
xor ebx, ebx
push esi
call fcn.1006c1bf
pop ecx
jmp 0x1006e94f
test ecx, ecx
jg 0x1006e8b8
jl 0x1006e8f6
test eax, eax
jae 0x1006e8b8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006593c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006e916
cmp byte [edi + 0x1c], 0
je 0x1006e8b8
jmp 0x1006e947
push ebx
call fcn.1006e6e4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006e8b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006e94f
cmp byte [edi + 0x1c], 0
je 0x1006e94c
mov ebx, dword [edi + 0x18]
jmp 0x1006e94f
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1006593c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10072998
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 0x10072a35
push ebx
push esi
call fcn.10072961
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.1006f5eb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100729e2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10072a34
push edi
push eax
call fcn.1006e050
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10072a02
call fcn.1006c1bf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10072a33
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1006f5eb
add esp, 0x20
test eax, eax
jne 0x10072a21
push edi
call fcn.1006c1bf
jmp 0x10072a29
push ebx
call fcn.1006c1bf
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 0x10072a38
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10072a49
pop esi
ret
push ebx
push edi
push esi
call fcn.10072961
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1006e050
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10072a71
push ebx
push esi
push edi
call fcn.1005a940
add esp, 0xc
push 0
call fcn.1006c1bf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10072e41
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10072a86

Function at 0x10074763
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10093800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x100747a6
call fcn.100631b5
mov dword [eax], 0xf
call fcn.100631c8
mov dword [eax], 0xd
call fcn.1006c41e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10059807
leave
ret
test eax, eax
jne 0x100747ad
inc eax
jmp 0x1007479a
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x10074798
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1007479a

Function at 0x10078e50
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021cb
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x401cf5
lea eax, [ebp - 0x104]
push eax
jmp loc.0040a000

Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40654c
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0x800000ff
jns 0x4064ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
and edx, 0x800000ff
jns 0x4064ce
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], dl
jmp 0x406481
mov esp, ebp
pop ebp
ret
Function at 0x402816
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
push 0
push dword [ebp + 8]
call sub.user32.dll_GetWindowLongA
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0xc]
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x402863
push 0
push str.AniGIF
push str.Error_loading_file.
push dword [ebp + 8]
call sub.user32.dll_MessageBoxA
pop edi
pop esi
leave
ret 8
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
push eax
push 8
push dword [0x407718]
call sub.kernel32.dll_HeapAlloc
mov edi, eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push edi
push esi
call sub.kernel32.dll_ReadFile
push dword [ebp - 8]
push edi
push dword [ebp + 8]
call fcn.00402260
push esi
call sub.kernel32.dll_CloseHandle
push edi
push 0
push dword [0x407718]
call sub.kernel32.dll_HeapFree
pop edi
pop esi
leave
ret 8

Function at 0x402f1c
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [0x40e724]
not eax
mov dword [0x40e724], eax
push eax
push dword [0x407734]
test eax, eax
jne 0x402f45
push dword [0x40e71c]
call sub.winmm.dll_waveOutRestart
call sub.kernel32.dll_ResumeThread
jmp 0x402f55
call sub.kernel32.dll_SuspendThread
push dword [0x40e71c]
call sub.winmm.dll_waveOutPause
pop eax
neg eax
ret
Function at 0x403576
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x40e710]
push ebx
cdq
idiv dword [0x40e70c]
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
cmp esi, ebx
mov edi, eax
jne 0x403598
xor al, al
jmp 0x40370e
movzx eax, byte [esi + 0x128]
or dword [esi + 0x150], 0xffffffff
or dword [esi + 0x14c], 0xffffffff
mov dword [esi + 0x12c], eax
movsx eax, word [esi + 0x24]
mov dword [esi + 0x138], eax
mov eax, dword [esi + 0x158]
cmp eax, ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x134], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x154], ebx
je 0x4035ec
push esi
call eax
pop ecx
movsx eax, word [esi + 0x26]
push eax
push esi
call fcn.004033f1
add esp, 8
movsx eax, word [esi + 0x14]
imul eax, eax, 0x2b
push edi
mov ecx, eax
mov edi, 0x4077a8
mov eax, ebx
rep stosd dword es:[edi], eax
pop edi
xor edx, edx
cmp word [esi + 0x14], bx
jle 0x403636
push ebp
mov ecx, 0x4077ac
mov eax, 0x408ec8
mov dword [ecx], eax
inc edx
movsx ebp, word [esi + 0x14]
add eax, 0x58
add ecx, 0xac
cmp edx, ebp
jl 0x403621
pop ebp
lea eax, [edi + edi*2]
mov dword [0x407740], esi
mov esi, sub.kernel32.dll_GlobalAlloc
shl eax, 1
push eax
push 0x40
call esi
mov dword [0x408e7c], eax
mov eax, dword [0x40e710]
mov edi, eax
shl edi, 2
push edi
push 0x40
call esi
or dword [0x40e6fc], 0xffffffff
mov dword [0x40e6ec], edi
mov edi, 0x40e6e8
push 0x20
push edi
push dword [0x40e71c]
mov dword [0x40e708], eax
mov dword [0x40e6f8], 0xc
mov dword [0x40e6e8], eax
mov dword [0x40e6f0], ebx
mov dword [0x40e6f4], ebx
call sub.winmm.dll_waveOutPrepareHeader
mov eax, dword [0x40e710]
lea eax, [eax*8 + 0x100]
push eax
push 0x40
call esi
mov dword [0x40e718], eax
add eax, 0xf
and al, 0xf0
mov dword [0x40e6c8], eax
mov dword [0x407738], ebx
call fcn.004031c7
cmp dword [0x407738], ebx
jne 0x4036c5
push 0x20
push edi
push dword [0x40e71c]
call sub.winmm.dll_waveOutWrite
mov byte [0x407730], bl
lea eax, [esp + 0x10]
push eax
push 2
push ebx
push 0x403341
push ebx
push ebx
call sub.kernel32.dll_CreateThread
mov dword [0x407734], eax
push 0xf
push dword [0x407734]
call sub.kernel32.dll_SetThreadPriority
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x402450
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x402475
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, 0x4030a8
sub ecx, 0x4030a4
sar ecx, 2
push ecx
push 0x4030a4
call fcn.00402560
add esp, 8
mov edx, 0x4030a0
sub edx, 0x40309c
sar edx, 2
push edx
push 0x40309c
call fcn.00402560
add esp, 8
mov eax, dword [ebp - 0x1c]
and eax, 1
je 0x4024cf
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x54], ecx
jmp 0x4024d6
mov dword [ebp - 0x54], 0xa
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x40368c]
push ecx
mov edx, dword [0x403688]
push edx
call fcn.004025a0
add esp, 8
mov eax, dword [0x403688]
push eax
call fcn.00402420
add esp, 4
mov ecx, 0x4030b0
sub ecx, 0x4030ac
sar ecx, 2
push ecx
push 0x4030ac
call fcn.00402560
add esp, 8
mov edx, 0x4030b8
sub edx, 0x4030b4
sar edx, 2
push edx
push 0x4030b4
call fcn.00402560
add esp, 8
call fcn.004025d0
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]