joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46174e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4618cc
test ebx, ebx
je 0x4618cc
push esi
xor edi, edi
lea eax, [ebp - 4]
inc edi
push edi
push 4
push eax
call fcn.0046a8f7
add esp, 0x10
cmp eax, edi
jae 0x46178f
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x461792
mov eax, dword [ebp - 4]
mov ecx, 0x1234
test eax, eax
je 0x4618cc
cmp eax, ecx
ja 0x4618af
push ecx
push 0
push ebx
call fcn.00466ad0
push esi
push edi
push dword [ebp - 4]
push ebx
call fcn.0046a8f7
add esp, 0x1c
cmp eax, edi
jae 0x4617d4
push edi
push esi
call fcn.004135f7
push eax
push str.:7:LoadTillSheetFromProgressRAW___s___FAILED:_fread___FAILED_to_read_the_till_sheet_struct.
jmp 0x4618c4
mov eax, dword [ebx + 0x11b8]
test eax, eax
je 0x4617fc
push edi
push eax
call fcn.004701d4
push esi
push edi
push dword [ebx + 0x11b8]
mov dword [ebx + 0x11b0], eax
push eax
call fcn.0046a8f7
add esp, 0x18
mov eax, dword [ebx + 0x11c0]
test eax, eax
je 0x461824
push edi
push eax
call fcn.004701d4
push esi
push edi
push dword [ebx + 0x11c0]
mov dword [ebx + 0x11bc], eax
push eax
call fcn.0046a8f7
add esp, 0x18
and dword [ebx + 0x104c], 0
cmp dword [ebx + 0x1040], 0
je 0x4618ab
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea esi, [ebp - 0x14]
push 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov word [ebp - 0x12], ax
pop eax
mov word [ebp - 0xe], ax
sub esp, 0x10
mov edi, esp
mov eax, 0x7d7
mov word [ebp - 0x14], ax
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebx + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045f51b
add esp, 0x20
test eax, eax
je 0x4618a8
xor ecx, ecx
lea eax, [ebx + 0x1040]
cmp dword [ebx + 0xb8], ecx
je 0x461893
cmp word [ebx + 0x2a], cx
je 0x461893
xor edi, edi
inc edi
jmp 0x46189c
xor edi, edi
inc edi
mov dword [ebx + 0x1050], edi
cmp dword [ebx + 0x1050], ecx
jne 0x4618ab
mov dword [eax], ecx
jmp 0x4618ab
xor edi, edi
inc edi
mov eax, edi
jmp 0x4618ce
test eax, eax
je 0x4618cc
push ecx
push eax
push edi
push esi
call fcn.004135f7
pop ecx
pop ecx
push eax
push str.:7:LoadTillSheetFromProgressRAW___s___FAILED:_The_server_may_need_to_be_recompiled:_The_till_sheet_size_is_invalid:__ld__ld
call fcn.0040d511
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x462dc1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4cc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x108]
push 0x104
push esi
push eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x118], esi
call fcn.00466ad0
lea eax, [ebp - 0x108]
push str.Live2.ark
push eax
call fcn.0042f61b
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00403a3d
add esp, 0x20
test eax, eax
je 0x462f3a
call fcn.004609ba
push esi
push esi
mov ebx, eax
call fcn.0043e284
push eax
lea eax, [ebp - 0x108]
push str._sLUA.DAT
push eax
call fcn.0040401c
add esp, 0x14
push 0x334
push str.C:UsersOfficeDocumentsVisual_StudioPAULAUpdatePAULA2.c
lea eax, [ebp - 0x108]
push 0x489570
push eax
call fcn.004137d1
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x462eba
lea eax, [ebp - 0x108]
push eax
call fcn.00410961
pop ecx
test eax, eax
je 0x462f35
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004609ba
sub eax, ebx
cmp eax, 0x157c
ja 0x462f35
inc esi
cmp esi, 0xf
jl 0x462e5c
jmp 0x462f35
push edi
push 1
lea eax, [ebp - 0x118]
push 4
push eax
call fcn.0046a8f7
add esp, 0x10
cmp eax, 1
je 0x462ee6
lea eax, [ebp - 0x108]
push eax
push str.:8:IsNewUpdateAvailable___encountered_a_problem:_fread___s___FAILED_to_read_the_archive_size_
call fcn.0040d9e1
pop ecx
pop ecx
push edi
push 1
lea eax, [ebp - 0x110]
push 4
push eax
call fcn.0046a8f7
add esp, 0x10
cmp eax, 1
je 0x462f12
lea eax, [ebp - 0x108]
push eax
push str.:8:IsNewUpdateAvailable___encountered_a_problem:_fread___s___FAILED_to_read_the_archive_CheckSum_
call fcn.0040d9e1
pop ecx
pop ecx
push edi
call fcn.00413646
pop ecx
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [ebp - 0x110]
jne 0x462f35
mov ecx, dword [ebp - 0x114]
cmp ecx, dword [ebp - 0x118]
je 0x462f3a
xor eax, eax
inc eax
jmp 0x462f3c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret
Function at 0x465ef4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x465f29
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x465f26
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x465f32
add edx, 0x28
cmp edx, esi
jne 0x465f14
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x465f2f

Function at 0x466393
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004654c0
mov eax, dword [0x4cc8c0]
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.00479eb9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46b1b5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46b311
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00465840
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 + 0x5d28b0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0047c15e
mov ecx, dword [esi*4 + 0x5d28b0]
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 0x46b30a
cmp eax, dword [ecx + edi + 0x24]
jne 0x46b30a
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 0x46b30a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047c15e
add esp, 0x14
test edx, edx
jl 0x46b30a
jg 0x46b280
test eax, eax
jb 0x46b30a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46b30a
jl 0x46b29a
cmp dword [ebp - 0x1008], eax
ja 0x46b30a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46b2b8
test ebx, ebx
je 0x46b2f1
cmp ecx, edi
jae 0x46b2f1
mov al, byte [ecx]
cmp al, 0xd
jne 0x46b2d2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46b2de
cmp byte [ecx + 1], 0xa
jne 0x46b2de
inc ecx
jmp 0x46b2de
movzx eax, al
movsx eax, byte [eax + 0x4ccb10]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46b2b8
cmp edx, ebx
jne 0x46b2b8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46b30f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret
Function at 0x47b5f3
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 + 0x5d28b0]
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 0x47b633
cmp byte [ebx], 0xa
jne 0x47b633
or byte [edi + eax + 0x28], 4
jmp 0x47b638
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 0x47b737
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47b71a
inc eax
cmp dl, 0xd
je 0x47b664
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x47b68a
cmp eax, ecx
jae 0x47b698
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 0x47b64c
jmp 0x47b737
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 0x47b715
cmp dword [ebp - 0x10], 0
je 0x47b715
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5d28b0]
test byte [eax + edi + 0x28], 0x48
je 0x47b6ef
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47b6da
mov byte [esi], dl
jmp 0x47b6eb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5d28b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47b737
cmp byte [ebp - 1], 0xa
jne 0x47b6fe
cmp esi, ebx
jne 0x47b6fe
mov byte [esi], 0xa
jmp 0x47b736
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047c17c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47b737
mov byte [esi], 0xd
jmp 0x47b736
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5d28b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47b734
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47b737
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47b740
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 + 0x5d28b0]
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 0x47b786
cmp word [ebx], dx
jne 0x47b786
or byte [eax + edi + 0x28], 4
jmp 0x47b78b
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 0x47b8ee
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 0x47b8ce
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47b7cc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47b802
cmp eax, edx
jae 0x47b810
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 0x47b7a7
jmp 0x47b8ee
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 0x47b8c9
cmp dword [ebp - 0x18], 0
je 0x47b8c9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5d28b0]
test byte [eax + edi + 0x28], 0x48
je 0x47b89f
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 0x47b863
mov word [esi], cx
jmp 0x47b89a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5d28b0]
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 + 0x5d28b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5d28b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x47b8ee
pop eax
cmp word [ebp - 4], ax
jne 0x47b8af
cmp esi, ebx
jne 0x47b8af
mov word [esi], ax
jmp 0x47b8eb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047c17c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47b8ee
push 0xd
pop eax
jmp 0x47b8aa
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5d28b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x47b8e8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x47b8ee
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 0x47e968
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b7468
push 0x4b7460
push str.FlsAlloc
push 0x1f
call fcn.0047e827
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47e99c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4894ac]
call esi
jmp 0x47e9a2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x47e9e6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b7478
push 0x4b7470
push str.FlsGetValue
push 0x21
call fcn.0047e827
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47ea1d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4894ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x47ea25
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b7480
push 0x4b7478
push str.FlsSetValue
push 0x22
call fcn.0047e827
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47ea5f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4894ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x481e9f
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 0x481f3c
push ebx
push esi
call fcn.00481e68
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.0047e365
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x481ee9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x481f3b
push edi
push eax
call fcn.0047c33b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x481f09
call fcn.0047c301
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x481f3a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0047e365
add esp, 0x20
test eax, eax
jne 0x481f28
push edi
call fcn.0047c301
jmp 0x481f30
push ebx
call fcn.0047c301
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 0x487eb7
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.00487e33
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x488026
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x488026
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x487fdb
jg 0x487f13
test eax, eax
je 0x487fd1
push 1
push 0x1000
call fcn.0047d55a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x487f36
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x487fc8
push 0x8000
push ebx
call fcn.004791e2
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x487f5f
jg 0x487f5a
cmp ecx, 0x1000
jb 0x487f5f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0047a7ca
add esp, 0x10
cmp eax, 0xffffffff
je 0x487fa4
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 0x487f5a
jl 0x487f8b
test ecx, ecx
jne 0x487f4c
push dword [ebp - 0xc]
push ebx
call fcn.004791e2
push esi
call fcn.0047c301
add esp, 0xc
xor ebx, ebx
jmp 0x488034
cmp byte [edi + 0x24], 0
je 0x487fbb
cmp dword [edi + 0x20], 5
jne 0x487fbb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x487fc6
mov ebx, dword [edi + 0x18]
jmp 0x487fc8
xor ebx, ebx
push esi
call fcn.0047c301
pop ecx
jmp 0x488034
test ecx, ecx
jg 0x487f9d
jl 0x487fdb
test eax, eax
jae 0x487f9d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047c17c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x487ffb
cmp byte [edi + 0x1c], 0
je 0x487f9d
jmp 0x48802c
push ebx
call fcn.00482693
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x487f9d
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 0x488034
cmp byte [edi + 0x1c], 0
je 0x488031
mov ebx, dword [edi + 0x18]
jmp 0x488034
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0047c17c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x488500
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48852d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48852d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x409eb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40a03b
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x40a02e
mov ebp, dword [eax]
cmp ebp, 0
je 0x40a02e
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x409f09
mov ebx, 0x5fe2f3
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.0042a340
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x409f8c
mov ecx, dword [eax + 0xc]
xor eax, eax
cmp eax, 8
jae 0x409f3a
mov esi, eax
shl esi, 2
add esi, 8
mov ebx, ecx
add ebx, esi
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x18]
cmp ebx, ebp
je 0x409f60
inc eax
cmp eax, 8
jb 0x409f1e
mov eax, dword [esp + 0x10]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
mov ebx, ecx
add ebx, eax
mov ecx, dword [ebx]
xor ebp, ebp
cmp ecx, ebp
jne 0x409f17
mov ebx, 0x6da6c0
mov dword [esp + 0x1c], ebx
add esp, 0xc
ret
mov ebx, ecx
add ebx, eax
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x409f34
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx + 0x32]
mov ebx, ebp
imul ebx, eax
add ebx, 0x28
mov eax, ebx
mov ebx, ecx
add ebx, eax
mov dword [esp + 0x1c], ebx
add esp, 0xc
ret
lea ebx, [esp + 0x18]
xor ebx, 0
mov dword [esp], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov ebx, dword [edx]
call ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
movzx ecx, byte [edi + 5]
mov ebx, 1
cmp cl, 0x20
jae 0x40a02a
shl ebx, cl
dec ebx
mov edx, ebx
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov ecx, dword [edi + 0xc]
add ecx, eax
mov eax, dword [edi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x409f17
shr edx, 1
and edx, esi
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
mov ebp, edx
imul ebp, ebx
mov edx, eax
add edx, ebp
movzx ebp, byte [edx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x40a026
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x40a026
mov eax, 1
cmp al, 0
jne 0x409f17
mov ecx, edx
jmp 0x409f17
xor eax, eax
jmp 0x40a016
xor ebx, ebx
jmp 0x409fc3
mov ebx, 0x6da6c0
mov dword [esp + 0x1c], ebx
add esp, 0xc
ret
call fcn.00450db0
jmp fcn.00409eb0
Function at 0x40a050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40a1ee
sub esp, 0xc
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
je 0x40a1dc
mov ebp, dword [eax]
cmp ebp, 0
je 0x40a1dc
movzx ebp, byte [eax + 4]
mov ebx, ebp
and ebx, 4
cmp bl, 0
je 0x40a0a9
mov ebx, 0x5fe2f3
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.0042a340
mov eax, dword [esp + 0x14]
movzx ebp, byte [eax + 5]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jne 0x40a13a
mov ecx, dword [eax + 0xc]
xor eax, eax
cmp eax, 8
jae 0x40a0de
mov esi, eax
shl esi, 2
add esi, 8
mov ebx, ecx
add ebx, esi
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x18]
cmp ebx, ebp
je 0x40a109
inc eax
cmp eax, 8
jb 0x40a0c2
mov eax, dword [esp + 0x10]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
mov ebx, ecx
add ebx, eax
mov ecx, dword [ebx]
xor ebp, ebp
cmp ecx, ebp
jne 0x40a0bb
mov ebx, 0x6da6c0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 0
add esp, 0xc
ret
mov ebx, ecx
add ebx, eax
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
je 0x40a0d8
mov ebx, dword [esp + 0x10]
movzx ebp, byte [ebx + 0x32]
mov ebx, ebp
imul ebx, eax
add ebx, 0x28
mov eax, ebx
mov ebx, ecx
add ebx, eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 1
add esp, 0xc
ret
lea ebx, [esp + 0x18]
xor ebx, 0
mov dword [esp], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [ebx + 0x20]
mov esi, dword [ebp + 0x10]
mov edx, dword [esi]
mov ebx, dword [edx]
call ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 8]
movzx ecx, byte [edi + 5]
mov ebx, 1
cmp cl, 0x20
jae 0x40a1d8
shl ebx, cl
dec ebx
mov edx, ebx
mov eax, esi
and eax, ebx
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov ecx, dword [edi + 0xc]
add ecx, eax
mov eax, dword [edi + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x40a0bb
shr edx, 1
and edx, esi
mov ebx, dword [esp + 0x10]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
mov ebp, edx
imul ebp, ebx
mov edx, eax
add edx, ebp
movzx ebp, byte [edx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x40a1d4
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x40a1d4
mov eax, 1
cmp al, 0
jne 0x40a0bb
mov ecx, edx
jmp 0x40a0bb
xor eax, eax
jmp 0x40a1c4
xor ebx, ebx
jmp 0x40a171
mov ebx, 0x6da6c0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 0
add esp, 0xc
ret
call fcn.00450db0
jmp fcn.0040a050