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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.10035680
push dword [ebp + 0x18]
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 8], esi
call fcn.1002b719
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], edx
cdq
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], edx
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x18]
cdq
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x38], edx
cdq
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x30], edx
cdq
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x24], edx
cdq
add esp, 0x14
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x44
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x48], esi
mov esi, dword [ebp + 0x20]
push eax
push 6
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], edx
call fcn.1001fc6b
mov ecx, eax
call fcn.10022df0
test al, al
jne 0x1002b128
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtReadFile]
jmp 0x1002b139
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x18]
call fcn.1002b73a
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x1002b13d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.10035680
push dword [ebp + 0x18]
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 8], esi
call fcn.1002b719
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], edx
cdq
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], edx
cdq
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x18]
cdq
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x38], edx
cdq
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x30], edx
cdq
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x24], edx
cdq
add esp, 0x14
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x44
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x48], esi
mov esi, dword [ebp + 0x20]
push eax
push 7
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], edx
call fcn.1001fc6b
mov ecx, eax
call fcn.10022df0
test al, al
jne 0x1002b20d
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtWriteFile]
jmp 0x1002b21e
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x18]
call fcn.1002b73a
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x1002b222
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 8], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
push eax
lea eax, [ebp - 0x14]
push eax
add esi, 8
call fcn.1002b6a5
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 4
call fcn.1001fc6b
mov ecx, eax
call fcn.10022df0
test al, al
je 0x1002b27c
mov eax, dword [ebp - 4]
cmp eax, 0xc0000368
jne 0x1002b291
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and eax, 0x3fffffff
add eax, 0xc0000001
pop edi
pop esi
leave
ret
Function at 0x1002b295
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
xor eax, eax
and dword [ebp - 0x18], eax
and dword [ebp - 8], eax
push 8
pop ecx
push dword [ebp + 0xc]
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.1002b719
mov eax, dword [ebp + 8]
cdq
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x18]
cdq
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [ebp - 0x2c], edx
cdq
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x20
lea eax, [ebp - 0x38]
push eax
push 8
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
call fcn.1001fc6b
mov ecx, eax
call fcn.10022df0
test al, al
jne 0x1002b327
push edi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
jmp 0x1002b338
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.1002b73a
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x1002b33c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
xor eax, eax
and dword [ebp - 0x18], eax
and dword [ebp - 8], eax
push 8
pop ecx
push dword [ebp + 0xc]
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.1002b719
mov eax, dword [ebp + 8]
cdq
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x18]
cdq
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [ebp - 0x2c], edx
cdq
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x20
lea eax, [ebp - 0x38]
push eax
push 9
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
call fcn.1001fc6b
mov ecx, eax
call fcn.10022df0
test al, al
jne 0x1002b3ce
push edi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
jmp 0x1002b3df
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.1002b73a
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x1002b3e3
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x42
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.10035680
push dword [ebp + 0x18]
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 8], ebx
call fcn.1002b719
add esp, 0x14
cmp dword [ebp + 0x2c], ebx
je 0x1002b43e
push dword [ebp + 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.1002b6a5
pop ecx
pop ecx
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x64], edx
cdq
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], edx
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x24]
cdq
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x44], edx
cdq
mov dword [ebp - 0x40], eax
mov al, byte [ebp + 0x28]
mov byte [ebp - 0x30], al
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp + 0x24]
xor eax, eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
cmp dword [ebp + 0x2c], eax
jne 0x1002b497
mov dword [ebp - 0x2b], eax
jmp 0x1002b49e
lea eax, [ebp - 0x14]
cdq
mov dword [ebp - 0x2b], edx
mov dword [ebp - 0x2f], eax
mov al, byte [ebp + 0x30]
mov byte [ebp - 0x27], al
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x42
lea eax, [ebp - 0x68]
push eax
push 0xa
call fcn.1001fc6b
mov ecx, eax
call fcn.10022df0
test al, al
jne 0x1002b4ec
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push ebx
push edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
jmp 0x1002b4fd
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x18]
call fcn.1002b73a
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002b632
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 8], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
push eax
lea eax, [ebp - 0x14]
push eax
add esi, 8
call fcn.1002b6a5
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 5
call fcn.1001fc6b
mov ecx, eax
call fcn.10022df0
test al, al
je 0x1002b68c
mov eax, dword [ebp - 4]
cmp eax, 0xc0000368
jne 0x1002b6a1
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
and eax, 0x3fffffff
add eax, 0xc0000001
pop edi
pop esi
leave
ret
Function at 0x1002bc1b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, 0x100
push edi
mov ebx, eax
or esi, eax
shl dword [ebp + 0x10], 1
mov eax, esi
shr eax, 7
and eax, 1
push eax
mov eax, ebx
and eax, dword [ebp + 0x10]
mov ecx, esi
add eax, ebx
shr ecx, 8
add ecx, eax
mov eax, dword [ebp + 0xc]
lea edi, [eax + ecx*2]
mov eax, dword [ebp + 8]
call fcn.1002bb92
add esi, esi
mov eax, esi
xor eax, dword [ebp + 0x10]
not eax
and ebx, eax
cmp esi, 0x10000
jb 0x1002bc2c
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1002bcaf
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
or ecx, 0x100
push esi
mov esi, dword [esp + 8]
mov edx, ecx
shr edx, 8
movzx edx, word [esi + edx*2]
mov esi, ecx
shr esi, 7
and esi, 1
neg esi
sar esi, 4
and esi, 0x7f
shr edx, 4
xor edx, esi
mov esi, dword [esp + 0xc]
add eax, dword [esi + edx*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x1002bcb8
pop esi
ret 8

Function at 0x1002bcef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x100
push esi
xor eax, eax
or edx, ecx
push edi
shl dword [ebp + 0xc], 1
mov esi, ecx
and esi, dword [ebp + 0xc]
mov edi, edx
add esi, ecx
shr edi, 8
add edi, esi
mov esi, dword [ebp + 8]
movzx esi, word [esi + edi*2]
mov edi, edx
shr edi, 7
and edi, 1
neg edi
shr esi, 4
sar edi, 4
and edi, 0x7f
xor esi, edi
mov edi, dword [ebp + 0x10]
add eax, dword [edi + esi*4]
add edx, edx
mov esi, edx
xor esi, dword [ebp + 0xc]
not esi
and ecx, esi
cmp edx, 0x10000
jb 0x1002bcfd
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1002bdfb
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push esi
mov esi, eax
xor eax, eax
inc edx
test esi, esi
je 0x1002be3b
push ebx
push edi
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
movzx edi, word [edi + edx*2]
shr dword [esp + 0x14], 1
and ecx, 1
mov ebx, ecx
neg ebx
sar ebx, 4
and ebx, 0x7f
shr edi, 4
xor edi, ebx
mov ebx, dword [esp + 0x18]
add eax, dword [ebx + edi*4]
add edx, edx
or edx, ecx
dec esi
jne 0x1002be09
pop edi
pop ebx
pop esi
ret 0xc

Function at 0x10030c02
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
xor edx, edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x4c], edx
mov dword [eax + 0x20], edx
call fcn.10030be8
push esi
lea ecx, [eax + 0x70]
push edi
push 8
mov eax, edx
pop esi
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec esi
jne 0x10030c1e
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jb 0x10030c19
pop edi
pop esi
ret

Function at 0x100319ee
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push dword [ebp + 8]
mov esi, ecx
push edx
push eax
push eax
call fcn.100353a5
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.100319b7
pop esi
pop ebp
ret 4

Function at 0x10032a69
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005ce10]
jne 0x10032a73
repz ret
jmp fcn.10038e8e
Function at 0x100436e9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1003988d
and dword [ebp - 4], 0
cmp dword [0x1006017c], 0
mov ebx, eax
jne 0x1004379a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1004384b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1004384b
push eax
call fcn.1003981b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1006017c], eax
call esi
push eax
call fcn.1003981b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10060180], eax
call esi
push eax
call fcn.1003981b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10060184], eax
call esi
push eax
call fcn.1003981b
pop ecx
mov dword [0x1006018c], eax
test eax, eax
je 0x1004379a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003981b
pop ecx
mov dword [0x10060188], eax
mov eax, dword [0x10060188]
cmp eax, ebx
je 0x100437f2
cmp dword [0x1006018c], ebx
je 0x100437f2
push eax
call fcn.10039896
push dword [0x1006018c]
mov esi, eax
call fcn.10039896
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100437f2
test edi, edi
je 0x100437f2
call esi
test eax, eax
je 0x100437e9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100437e9
test byte [ebp - 0xc], 1
jne 0x100437f2
or dword [ebp + 0x10], 0x200000
jmp 0x1004382b
mov eax, dword [0x10060180]
cmp eax, ebx
je 0x1004382b
push eax
call fcn.10039896
pop ecx
test eax, eax
je 0x1004382b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1004382b
mov eax, dword [0x10060184]
cmp eax, ebx
je 0x1004382b
push eax
call fcn.10039896
pop ecx
test eax, eax
je 0x1004382b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1006017c]
call fcn.10039896
pop ecx
test eax, eax
je 0x1004384b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1004384d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10045a7e
Capabilities:
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x3c0]
sub esp, 0x440
mov eax, dword [0x1005ce10]
xor eax, ebp
mov dword [ebp + 0x3bc], eax
mov eax, dword [ebp + 0x3cc]
or dword [ebp - 0x80], 0xffffffff
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x3d0]
push esi
mov esi, dword [ebp + 0x3c8]
mov dword [ebp - 0x7c], eax
xor eax, eax
cmp esi, eax
jne 0x10045ac4
or eax, 0xffffffff
jmp 0x10045c41
push ebx
push edi
mov dword [ebp - 0x58], eax
cmp dword [esi + 0x4044], eax
jbe 0x10045c3d
mov dword [ebp - 0x64], eax
mov ebx, 0x208
jmp 0x10045ae1
xor eax, eax
mov edi, dword [esi + 0x4038]
mov edx, dword [ebp - 0x58]
add edi, dword [ebp - 0x64]
push eax
lea ecx, [esi + 0x4028]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x78], eax
call fcn.10047a65
cmp eax, ebx
jae 0x10045c6d
push ebx
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.10035680
mov edx, dword [ebp - 0x58]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea ecx, [esi + 0x4028]
call fcn.10047a65
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0x1b4]
push eax
call fcn.100415a2
add esp, 0xc
cmp dword [ebp - 0x70], 0
je 0x10045b6f
push dword [ebp - 0x7c]
lea eax, [ebp + 0x1b4]
push eax
movzx eax, byte [edi + 0x19]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [ebp - 0x70]
cmp eax, 0xffffffff
je 0x10045c59
test eax, eax
je 0x10045c27
lea ecx, [esi + 0x4080]
push ecx
lea eax, [esi + 0x4078]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x58]
lea edx, [esi + 0xc]
lea ecx, [esi + 0x4028]
call fcn.100483ab
test eax, eax
jne 0x10045c6d
cmp byte [edi + 0x19], al
je 0x10045bbd
lea eax, [ebp + 0x1b4]
push eax
call fcn.10045958
jmp 0x10045c27
lea edx, [ebp + 0x1b4]
lea ecx, [ebp - 0x6c]
call fcn.10045975
test eax, eax
jne 0x10045c5e
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x74]
lea edx, [ecx + eax]
lea ecx, [ebp - 0x6c]
call fcn.10046730
test eax, eax
jne 0x10045c5e
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x60]
jne 0x10045c5e
lea ecx, [ebp - 0x6c]
call fcn.100466ad
cmp byte [edi + 0x1d], 0
je 0x10045c18
push dword [edi + 0x14]
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x5c]
lea ecx, [esi + 0x4078]
call dword [esi + 0x407c]
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
add dword [ebp - 0x64], 0x20
cmp eax, dword [esi + 0x4044]
jb 0x10045adf
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x3bc]
xor ecx, ebp
pop esi
call fcn.10032a69
add ebp, 0x3c0
leave
ret 0xc
or eax, 0xffffffff
jmp 0x10045c3f
mov edx, dword [ebp - 0x5c]
lea ecx, [esi + 0x4078]
call dword [esi + 0x407c]
push 0xb
pop eax
jmp 0x10045c3f
Function at 0x100466d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
mov dword [ebp - 4], edx
mov ebx, ecx
test edi, edi
je 0x1004671f
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x100466f3
mov eax, edi
and dword [ebp + 8], 0
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x10046728
test ecx, ecx
je 0x1004671f
test edi, edi
ja 0x100466e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10046721

Function at 0x10046730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
mov dword [ebp - 4], edx
mov ebx, ecx
test edi, edi
je 0x1004677f
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x10046753
mov eax, edi
and dword [ebp + 8], 0
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x10046788
test ecx, ecx
je 0x1004677f
test edi, edi
ja 0x10046748
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10046781

Function at 0x1004680a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ecx]
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004682f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004684a
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.1003f480
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x100468c8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x100468d0
mov dword [ecx*4 + 0x100607a0], eax
inc ecx
cmp ecx, 0x100
jb 0x100468cb
mov edx, 0x800
jmp 0x1004691d
mov eax, dword [ecx*4 + 0x100603a0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x100607a0]
inc ecx
mov dword [ecx*4 + 0x1006079c], eax
cmp ecx, edx
jb 0x100468fc
mov dword [0x10060264], 0x10048729
call fcn.100488b9
pop esi
test eax, eax
jne 0x1004693f
mov dword [0x10060264], 0x100487c5
ret
Function at 0x100494e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
xor eax, eax
and esi, 7
mov dword [ebp - 0x10], ebx
cmp edx, 5
jb 0x10049638
add dword [ebp + 8], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx + edx - 4]
mov dword [ebp - 8], ecx
push edi
lea edi, [eax + ebx]
jmp 0x1004951e
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x10049523
inc edi
cmp edi, dword [ebp - 8]
jb 0x10049515
mov eax, edi
sub eax, ebx
cmp edi, dword [ebp - 8]
jae 0x1004961a
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x10049577
xor esi, esi
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x1004954b
cmp cl, 0xff
jne 0x100495a2
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
cmp dword [ebp + 0x10], 0
je 0x100495b0
lea ebx, [edx + eax]
add ebx, dword [ebp + 8]
jmp 0x100495b7
dec ecx
shl esi, cl
and esi, 7
je 0x1004953c
movzx ecx, byte [esi + 0x10053234]
mov edx, edi
sub edx, ecx
cmp byte [esi + 0x1005322c], 0
mov cl, byte [edx + 4]
je 0x1004959f
test cl, cl
je 0x1004959f
cmp cl, 0xff
jne 0x1004953c
mov dword [ebp - 4], eax
and esi, 3
add esi, esi
or esi, 1
inc eax
jmp 0x10049510
sub edx, eax
sub edx, dword [ebp + 8]
mov ebx, edx
test esi, esi
je 0x100495ed
movzx edx, byte [esi + 0x10053234]
shl edx, 3
push 0x18
pop ecx
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x100495da
cmp dl, 0xff
jne 0x100495ed
push 0x20
xor edx, edx
pop ecx
sub ecx, dword [ebp - 0xc]
inc edx
shl edx, cl
dec edx
xor edx, ebx
jmp 0x10049569
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 1], bl
mov ebx, dword [ebp - 0x10]
mov byte [edi + 2], cl
add eax, 5
jmp 0x10049510
mov edx, eax
sub edx, dword [ebp - 4]
push 3
lea ecx, [edx - 1]
shl esi, cl
pop edi
and esi, 7
cmp edi, edx
mov edx, dword [ebp + 0xc]
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..3ean
mov ebx, 0x40915c
nop
mov ecx, 0x7afb0582
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..7LWLf
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x46e54208
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219