joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40aa8f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40ab77
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x45eba8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eba8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x45eba8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eba8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eba8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eba8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eba8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45eba8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40aaa0
pop ebp
test edi, edi
je 0x40ab9c
jmp 0x40ab80
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x45eba8]
add ecx, 1
sub edi, 1
jne 0x40ab80
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x40abb0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x45eba8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x45eba8]
mov dword [edx + 8], ecx
ret

Function at 0x40ac00
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x45eba8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x45eba8]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x40b410
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40b442
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b438
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40b455
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00437960
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40b470
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40b4a3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b49d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40b4cf
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40b4b5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00437960
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40b4e6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40b4e0
cmp byte [esi + 8], 0
je 0x40b4e0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x40b5d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40b615
cmp byte [esi + 1], 0
je 0x40b61d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40b632
cmp byte [esi + 1], 0
je 0x40b624
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40b63b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40b5ee
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40b63b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x40b64f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0043615d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40b66d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x40b783
jmp 0x40b690
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x40b6a1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x40b6ba
mov ebp, 0x404
cmp byte [esi], 0
je 0x40b6df
cmp byte [esi + 1], 0
je 0x40b783
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40b6e2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40b70a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b704
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40b730
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40b71b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00437960
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40b783
lea eax, [ebp - 3]
test eax, eax
jl 0x40b76e
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40b75e
cmp byte [eax + ebx + 1], 0x4b
jne 0x40b75e
cmp byte [eax + ebx + 2], 5
jne 0x40b75e
cmp byte [eax + ebx + 3], 6
je 0x40b764
test eax, eax
jge 0x40b740
jmp 0x40b76e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40b783
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40b684
push ebx
call fcn.004367a9
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40c0c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40c0d8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40c0cd
cmp dword [edi + 0x7c], ebx
je 0x40c0e7
call fcn.0040c4b0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040be30
add esp, 0xc
test eax, eax
je 0x40c10d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.0043615d
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40c14f
push 0x4000
call fcn.0043615d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
jne 0x40c15b
push ebp
call fcn.004367a9
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
cmp eax, ebx
mov dword [ebp + 0x18], ebx
jne 0x40c1a4
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0040ae70
test eax, eax
jne 0x40c1a4
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40c1ce
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x40c1d7
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
mov al, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg al
lea edx, [ebp + 0x70]
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp esi, ebx
mov dword [ebp + 0x7c], eax
je 0x40c213
mov cl, byte [esi]
cmp cl, bl
je 0x40c213
call fcn.0040abb0
add esi, 1
jne 0x40c203
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x40c610
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push ebp
mov ebp, dword [esp + 0xc]
push edi
jne 0x40c6ce
cmp dword [esi + 4], 0xffffffff
jne 0x40c6ce
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c640
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x40c673
cmp al, 0x2f
je 0x40c673
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40c660
mov ax, word [0x45f3a0]
mov word [edi], ax
cmp ebp, 1
jne 0x40c693
push ebp
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c693
mov eax, 0x2000000
pop edi
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebp
push edx
push ebx
call fcn.0040b2f0
add esp, 0x10
test eax, eax
jne 0x40c6b4
mov eax, dword [esp + 0x10]
pop edi
pop ebp
ret 8
call fcn.0040b7a0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 8
pop edi
mov eax, 0x1000000
pop ebp
ret 8

Function at 0x40ccf0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x40cd2d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cd2d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x40cded
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x40cd48
cmp al, 0x5c
jne 0x40cd4a
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x40cd40
cmp esi, ebp
je 0x40cd82
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00437960
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.0040ccf0
add esp, 0x14
test edi, edi
mov byte [esp + 0xc], 0
je 0x40cd9f
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40cd93
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40cda3
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40cdb5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x40cded
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.00435417
add esp, 0x20c
ret
Function at 0x40e600
Capabilities:
Get file size
Hash data with md5
Read file via mapping

Disassembly:
sub esp, 0x60
mov eax, dword [0x46a860]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push 0x8000080
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e706
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e6ff
cmp ebx, esi
je 0x40e6ff
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
jne 0x40e68d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00435417
add esp, 0x60
ret
push esi
push edi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ebp
lea eax, [esp + 0x18]
call fcn.0040dd40
add esp, 8
lea esi, [esp + 0x10]
call fcn.0040de00
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov eax, 0x4700f8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00435417
add esp, 0x60
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00435417
add esp, 0x60
ret
Function at 0x413090
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x413097
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp 0x4130a0
push esi
mov esi, edx
test esi, esi
not eax
je 0x4130d2
lea esp, [esp]
test cl, 3
je 0x4130d2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45a430]
add ecx, 1
sub esi, 1
jne 0x4130b0
cmp esi, 0x20
push ebx
push edi
jb 0x4132bc
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a830]
xor edx, dword [ebx*4 + 0x45ac30]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a430]
add ecx, 4
xor edx, dword [eax*4 + 0x45b030]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a830]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ac30]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a430]
add ecx, 4
xor eax, dword [edx*4 + 0x45b030]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a830]
xor edx, dword [ebx*4 + 0x45ac30]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a430]
xor edx, dword [eax*4 + 0x45b030]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a830]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ac30]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a430]
xor eax, dword [edx*4 + 0x45b030]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a830]
xor edx, dword [ebx*4 + 0x45ac30]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a430]
xor edx, dword [eax*4 + 0x45b030]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a830]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ac30]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a430]
and edx, 0xff
xor eax, dword [edx*4 + 0x45b030]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a830]
xor edx, dword [ebx*4 + 0x45ac30]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a430]
add ecx, 4
xor edx, dword [eax*4 + 0x45b030]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a830]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ac30]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a430]
and edx, 0xff
xor eax, dword [edx*4 + 0x45b030]
sub edi, 1
jne 0x4130e2
cmp esi, 4
jb 0x413309
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x45a830]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x45ac30]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x45a430]
and eax, 0xff
xor edi, dword [eax*4 + 0x45b030]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x4132c6
test esi, esi
pop edi
pop ebx
je 0x41332d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45a430]
add ecx, 1
sub esi, 1
jne 0x413310
not eax
pop esi
ret
Function at 0x4138da
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4138ef
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x41391b
mov eax, dword [ecx + 0x128]
cmp eax, 0xffffffff
jne 0x413910
mov eax, dword [esp + 8]
test eax, eax
je 0x413905
and dword [eax], 0
mov eax, dword [ecx + 0x11c]
mov eax, dword [eax + 0xc]
jmp 0x41391b
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
ret 8

Function at 0x4139c8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x46a860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x4139ed
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, esi
jmp 0x413a68
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ebx, ebx
test eax, eax
mov dword [ebp - 0x28], eax
jbe 0x413a64
push 0
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413a64
cmp dword [ebp - 0x2c], 0x20
jb 0x413a64
push 4
push dword [0x468010]
lea eax, [ebp - 0x24]
push eax
call fcn.00437d5b
add esp, 0xc
test eax, eax
je 0x413a77
push 4
push dword [0x468014]
lea eax, [ebp - 0x24]
push eax
call fcn.00437d5b
add esp, 0xc
test eax, eax
je 0x413a77
add ebx, 0x200
cmp ebx, dword [ebp - 0x28]
jb 0x413a00
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00435417
leave
ret 4
mov eax, ebx
jmp 0x413a67

Function at 0x413d18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, 0x7fed7fed
mov ebx, 0xeeeeeeee
mov byte [ebp - 1], 0
jne 0x413d37
lea esi, [ebp - 1]
cmp dword [ebp + 0xc], 3
jne 0x413d63
push 0x5c
push esi
call fcn.004393f0
pop ecx
pop ecx
jmp 0x413d5f
push 0x5c
push esi
call fcn.004393f0
inc eax
mov esi, eax
push 0x5c
push esi
call fcn.004393f0
add esp, 0x10
test eax, eax
jne 0x413d49
mov al, byte [esi]
test al, al
je 0x413d9a
mov ecx, dword [ebp + 0xc]
shl ecx, 8
mov dword [ebp + 0xc], ecx
movsx eax, al
push eax
call fcn.004395c6
add edi, ebx
imul ebx, ebx, 0x21
pop ecx
mov ecx, dword [ebp + 0xc]
add ecx, eax
xor edi, dword [ecx*4 + 0x46c120]
inc esi
add ebx, eax
mov al, byte [esi]
test al, al
lea ebx, [ebx + edi + 3]
jne 0x413d72
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413da1
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
mov ecx, 0xeeeeeeee
jne 0x413db4
xor eax, eax
pop ebp
ret
shr dword [ebp + 0xc], 2
je 0x413dff
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edx]
dec dword [ebp + 0xc]
mov eax, edi
and eax, 0xff
add ecx, dword [eax*4 + 0x46d120]
mov ebx, edi
lea eax, [ecx + edi]
imul ecx, ecx, 0x21
not ebx
shl ebx, 0x15
xor eax, esi
add ebx, 0x11111111
shr edi, 0xb
mov dword [edx], eax
or edi, ebx
add edx, 4
cmp dword [ebp + 0xc], 0
lea ecx, [ecx + esi + 3]
ja 0x413dc0
pop edi
pop esi
pop ebx
xor eax, eax
inc eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
mov ecx, 0xeeeeeeee
jne 0x413e17
xor eax, eax
pop ebp
ret
shr dword [ebp + 0xc], 2
je 0x413e5e
push esi
mov esi, dword [ebp + 0x10]
push edi
dec dword [ebp + 0xc]
mov eax, esi
and eax, 0xff
add ecx, dword [eax*4 + 0x46d120]
mov edi, esi
lea eax, [ecx + esi]
imul ecx, ecx, 0x21
xor eax, dword [edx]
not edi
shl edi, 0x15
add edi, 0x11111111
shr esi, 0xb
mov dword [edx], eax
or esi, edi
add edx, 4
cmp dword [ebp + 0xc], 0
lea ecx, [ecx + eax + 3]
ja 0x413e22
pop edi
pop esi
xor eax, eax
inc eax
pop ebp
ret
Function at 0x414f91
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x414fac
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x415056
cmp byte [edi], 0
je 0x414f9d
push esi
push edi
call fcn.00437cd0
mov esi, eax
inc esi
mov eax, 0x105
cmp esi, eax
pop ecx
ja 0x415053
jne 0x414fd9
mov al, byte [edi + 0x103]
cmp al, 0x5c
je 0x414fd9
cmp al, 0x2f
jne 0x415053
push ebx
lea ecx, [ebp - 4]
call fcn.0041389a
lea ebx, [esi + 1]
push ebx
call fcn.00413f6e
push esi
push dword [ebp + 8]
mov edi, eax
push edi
call fcn.00437960
add esp, 0xc
cmp byte [edi], 0
mov eax, edi
je 0x41500f
cmp byte [eax], 0x2f
jne 0x415009
mov byte [eax], 0x5c
inc eax
cmp byte [eax], 0
jne 0x415001
cmp byte [eax - 1], 0x5c
je 0x41501e
mov byte [eax], 0x5c
mov byte [eax + 1], 0
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
pop ebx
je 0x41504b
cmp eax, 0xffffffff
je 0x41504b
push esi
push edi
push 0x46d528
call fcn.00437960
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.004138a0
xor eax, eax
inc eax
jmp 0x415055
lea ecx, [ebp - 4]
call fcn.004138a0
xor eax, eax
pop esi
pop edi
leave
ret 4
Function at 0x417208
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x417387
cmp dword [ebp + 0xc], 0
je 0x417387
test word [esi + 0x16c], 0x8000
jne 0x417234
push 5
jmp 0x417389
mov ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00415089
add esp, 0xc
test eax, eax
jne 0x417252
push 0x85200066
jmp 0x417389
cmp dword [eax], ebx
jne 0x41738f
or dword [eax + 8], 0xffffffff
or dword [eax + 0xc], 0xffffffff
or dword [eax], 0xffffffff
mov dword [eax + 4], 0xfffffffe
mov eax, dword [esi + 0x138]
push edi
shl eax, 4
push eax
call fcn.00417b53
mov edi, eax
mov eax, dword [esi + 0x138]
shl eax, 4
test edi, edi
je 0x4172f3
push eax
push dword [esi + 0x118]
push edi
call fcn.00437960
push dword [0x46d520]
mov eax, dword [esi + 0x138]
shl eax, 4
push eax
push edi
call fcn.00413da1
mov eax, dword [esi + 0x15c]
add eax, dword [esi + 0x130]
add esp, 0x18
push 0
push 0
push eax
push dword [esi + 0x120]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x138]
shl eax, 4
push eax
push edi
push dword [esi + 0x120]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00413886
jmp 0x417364
push dword [0x46d520]
push eax
push dword [esi + 0x118]
call fcn.00413da1
mov eax, dword [esi + 0x15c]
add eax, dword [esi + 0x130]
add esp, 0xc
xor edi, edi
push edi
push edi
push eax
push dword [esi + 0x120]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 0x138]
shl eax, 4
push eax
push dword [esi + 0x118]
push dword [esi + 0x120]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x46d520]
mov eax, dword [esi + 0x138]
shl eax, 4
push eax
push dword [esi + 0x118]
call fcn.00413e04
add esp, 0xc
push dword [ebp + 0xc]
mov edi, dword [0x46d630]
push esi
mov dword [0x46d630], ebx
call fcn.00416fca
pop ecx
pop ecx
xor eax, eax
mov dword [0x46d630], edi
inc eax
pop edi
jmp 0x417391
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0xc