joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d88
Capabilities:
Copy file

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
push esi
mov esi, ecx
mov dword [esp + 4], esi
je 0x407f07
cmp dword [esi + 0x30], 0
je 0x407efc
push ebx
push ebp
mov ebp, dword [esi + 0x14]
push edi
lea ecx, [ebp + 1]
mov al, byte [ebp]
add ebp, 1
test al, al
jne 0x407da8
sub ebp, ecx
add ebp, 0x200
push ebp
call fcn.004196b5
push ebp
mov ebx, eax
call fcn.004196b5
push 0x24
mov dword [esp + 0x20], eax
call fcn.0041968a
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [esp + 0x28], eax
mov dword [eax + 0x20], ecx
mov eax, dword [esi + 0x30]
add esp, 0xc
push eax
lea edi, [esp + 0x20]
call fcn.00404f10
test eax, eax
je 0x407eec
jmp 0x407e10
push ebp
push 0
push ebx
call fcn.004376d0
mov eax, dword [esp + 0x20]
push ebp
push 0
push eax
call fcn.004376d0
mov ecx, dword [esi + 0xc]
push ecx
push ebp
push ebx
call fcn.004366a7
mov esi, dword [esp + 0x40]
mov edx, dword [esi + 0x10]
push edx
push ebp
push ebx
call fcn.00436be9
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x14]
mov edi, dword [esp + 0x44]
push ecx
push ebp
push edi
call fcn.004366a7
mov edx, dword [esi + 0x14]
push edx
push ebp
push edi
call fcn.00436be9
add esp, 0x48
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov eax, dword [esi + 0x10]
xor edi, edi
cmp eax, edi
je 0x407e80
push eax
call fcn.004196ba
add esp, 4
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x407e93
push eax
call fcn.004196ba
add esp, 4
mov dword [esi + 0x14], edi
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x407ea6
push eax
call fcn.004196ba
add esp, 4
mov dword [esi + 0x18], edi
xor eax, eax
mov dword [esi + 4], 3
mov dword [esi], 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x30]
push eax
lea edi, [esp + 0x20]
call fcn.00404f10
test eax, eax
mov esi, dword [esp + 0x10]
jne 0x407e10
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004196ba
add esp, 4
pop edi
pop ebp
pop ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push 0
mov ecx, esi
call eax
mov eax, 1
pop esi
add esp, 8
ret 4
Function at 0x40a8f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40a8ff
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40a9e7
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 + 0x45ec80]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ec80]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x45ec80]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ec80]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ec80]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ec80]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ec80]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ec80]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40a910
pop ebp
test edi, edi
je 0x40aa0c
jmp 0x40a9f0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x45ec80]
add ecx, 1
sub edi, 1
jne 0x40a9f0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x40aa20
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x45ec80]
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 + 0x45ec80]
mov dword [edx + 8], ecx
ret

Function at 0x40aa70
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 + 0x45ec80]
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 + 0x45ec80]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x40b280
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40b2b2
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 0x40b2a8
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 0x40b2c5
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004377d0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40b2e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40b313
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 0x40b30d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40b33f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40b325
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.004377d0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40b356
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 0x40b350
cmp byte [esi + 8], 0
je 0x40b350
or eax, 0xffffffff
add esp, 8
ret
Function at 0x40b440
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40b485
cmp byte [esi + 1], 0
je 0x40b48d
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 0x40b4a2
cmp byte [esi + 1], 0
je 0x40b494
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 0x40b4ab
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40b45e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40b4ab
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 0x40b4bf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0043605b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40b4dd
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 0x40b5f3
jmp 0x40b500
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 0x40b511
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 0x40b52a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40b54f
cmp byte [esi + 1], 0
je 0x40b5f3
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 0x40b552
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40b57a
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 0x40b574
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40b5a0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40b58b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004377d0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40b5f3
lea eax, [ebp - 3]
test eax, eax
jl 0x40b5de
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40b5ce
cmp byte [eax + ebx + 1], 0x4b
jne 0x40b5ce
cmp byte [eax + ebx + 2], 5
jne 0x40b5ce
cmp byte [eax + ebx + 3], 6
je 0x40b5d4
test eax, eax
jge 0x40b5b0
jmp 0x40b5de
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40b5f3
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40b4f4
push ebx
call fcn.00435f7e
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40bf30
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 0x40bf48
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40bf3d
cmp dword [edi + 0x7c], ebx
je 0x40bf57
call fcn.0040c320
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040bca0
add esp, 0xc
test eax, eax
je 0x40bf7d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.0043605b
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40bfbf
push 0x4000
call fcn.0043605b
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 0x40bfcb
push ebp
call fcn.00435f7e
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 0x40c014
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0040ace0
test eax, eax
jne 0x40c014
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 0x40c03e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x40c047
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 0x40c083
mov cl, byte [esi]
cmp cl, bl
je 0x40c083
call fcn.0040aa20
add esi, 1
jne 0x40c073
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 0x40c480
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push ebp
mov ebp, dword [esp + 0xc]
push edi
jne 0x40c53e
cmp dword [esi + 4], 0xffffffff
jne 0x40c53e
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 0x40c4b0
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x40c4e3
cmp al, 0x2f
je 0x40c4e3
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40c4d0
mov ax, word [0x45f42c]
mov word [edi], ax
cmp ebp, 1
jne 0x40c503
push ebp
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c503
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.0040b160
add esp, 0x10
test eax, eax
jne 0x40c524
mov eax, dword [esp + 0x10]
pop edi
pop ebp
ret 8
call fcn.0040b610
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 0x40cb60
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 0x40cb9d
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cb9d
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x40cc5d
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x40cbb8
cmp al, 0x5c
jne 0x40cbba
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x40cbb0
cmp esi, ebp
je 0x40cbf2
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.004377d0
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.0040cb60
add esp, 0x14
test edi, edi
mov byte [esp + 0xc], 0
je 0x40cc0f
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 0x40cc03
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40cc13
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40cc25
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 0x40cc5d
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.00435287
add esp, 0x20c
ret
Function at 0x40e470
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 SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e576
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 0x40e56f
cmp ebx, esi
je 0x40e56f
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
jne 0x40e4fd
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.00435287
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.0040dbb0
add esp, 8
lea esi, [esp + 0x10]
call fcn.0040dc70
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, 0x470100
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00435287
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.00435287
add esp, 0x60
ret
Function at 0x412f00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x412f07
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp 0x412f10
push esi
mov esi, edx
test esi, esi
not eax
je 0x412f42
lea esp, [esp]
test cl, 3
je 0x412f42
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45a508]
add ecx, 1
sub esi, 1
jne 0x412f20
cmp esi, 0x20
push ebx
push edi
jb 0x41312c
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 + 0x45a908]
xor edx, dword [ebx*4 + 0x45ad08]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a508]
add ecx, 4
xor edx, dword [eax*4 + 0x45b108]
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 + 0x45a908]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ad08]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a508]
add ecx, 4
xor eax, dword [edx*4 + 0x45b108]
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 + 0x45a908]
xor edx, dword [ebx*4 + 0x45ad08]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a508]
xor edx, dword [eax*4 + 0x45b108]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a908]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ad08]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a508]
xor eax, dword [edx*4 + 0x45b108]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a908]
xor edx, dword [ebx*4 + 0x45ad08]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a508]
xor edx, dword [eax*4 + 0x45b108]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a908]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ad08]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a508]
and edx, 0xff
xor eax, dword [edx*4 + 0x45b108]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a908]
xor edx, dword [ebx*4 + 0x45ad08]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a508]
add ecx, 4
xor edx, dword [eax*4 + 0x45b108]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a908]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ad08]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a508]
and edx, 0xff
xor eax, dword [edx*4 + 0x45b108]
sub edi, 1
jne 0x412f52
cmp esi, 4
jb 0x413179
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 + 0x45a908]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x45ad08]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x45a508]
and eax, 0xff
xor edi, dword [eax*4 + 0x45b108]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x413136
test esi, esi
pop edi
pop ebx
je 0x41319d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45a508]
add ecx, 1
sub esi, 1
jne 0x413180
not eax
pop esi
ret
Function at 0x41374a
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x41375f
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
jmp 0x41378b
mov eax, dword [ecx + 0x128]
cmp eax, 0xffffffff
jne 0x413780
mov eax, dword [esp + 8]
test eax, eax
je 0x413775
and dword [eax], 0
mov eax, dword [ecx + 0x11c]
mov eax, dword [eax + 0xc]
jmp 0x41378b
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
ret 8

Function at 0x413838
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 0x41385d
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, esi
jmp 0x4138d8
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 0x4138d4
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 0x4138d4
cmp dword [ebp - 0x2c], 0x20
jb 0x4138d4
push 4
push dword [0x468010]
lea eax, [ebp - 0x24]
push eax
call fcn.00437bcb
add esp, 0xc
test eax, eax
je 0x4138e7
push 4
push dword [0x468014]
lea eax, [ebp - 0x24]
push eax
call fcn.00437bcb
add esp, 0xc
test eax, eax
je 0x4138e7
add ebx, 0x200
cmp ebx, dword [ebp - 0x28]
jb 0x413870
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00435287
leave
ret 4
mov eax, ebx
jmp 0x4138d7

Function at 0x413b88
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 0x413ba7
lea esi, [ebp - 1]
cmp dword [ebp + 0xc], 3
jne 0x413bd3
push 0x5c
push esi
call fcn.00439260
pop ecx
pop ecx
jmp 0x413bcf
push 0x5c
push esi
call fcn.00439260
inc eax
mov esi, eax
push 0x5c
push esi
call fcn.00439260
add esp, 0x10
test eax, eax
jne 0x413bb9
mov al, byte [esi]
test al, al
je 0x413c0a
mov ecx, dword [ebp + 0xc]
shl ecx, 8
mov dword [ebp + 0xc], ecx
movsx eax, al
push eax
call fcn.00439436
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 0x413be2
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413c11
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 0x413c24
xor eax, eax
pop ebp
ret
shr dword [ebp + 0xc], 2
je 0x413c6f
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 0x413c30
pop edi
pop esi
pop ebx
xor eax, eax
inc eax
pop ebp
ret

Function at 0x413c74
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 0x413c87
xor eax, eax
pop ebp
ret
shr dword [ebp + 0xc], 2
je 0x413cce
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 0x413c92
pop edi
pop esi
xor eax, eax
inc eax
pop ebp
ret