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

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x40a99f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x40aa87
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 + 0x45ece0]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ece0]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x45ece0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ece0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ece0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ece0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ece0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45ece0]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x40a9b0
pop ebp
test edi, edi
je 0x40aaac
jmp 0x40aa90
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x45ece0]
add ecx, 1
sub edi, 1
jne 0x40aa90
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x40aac0
Capabilities:
Hash data with crc32

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

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

Function at 0x40b320
Capabilities:
Read file on windows

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

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40b3b3
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 0x40b3ad
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40b3df
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40b3c5
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.00437870
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40b3f6
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 0x40b3f0
cmp byte [esi + 8], 0
je 0x40b3f0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x40b4e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40b525
cmp byte [esi + 1], 0
je 0x40b52d
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 0x40b542
cmp byte [esi + 1], 0
je 0x40b534
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 0x40b54b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40b4fe
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40b54b
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 0x40b55f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0043606d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40b57d
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 0x40b693
jmp 0x40b5a0
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 0x40b5b1
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 0x40b5ca
mov ebp, 0x404
cmp byte [esi], 0
je 0x40b5ef
cmp byte [esi + 1], 0
je 0x40b693
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 0x40b5f2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40b61a
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 0x40b614
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40b640
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40b62b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00437870
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40b693
lea eax, [ebp - 3]
test eax, eax
jl 0x40b67e
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40b66e
cmp byte [eax + ebx + 1], 0x4b
jne 0x40b66e
cmp byte [eax + ebx + 2], 5
jne 0x40b66e
cmp byte [eax + ebx + 3], 6
je 0x40b674
test eax, eax
jge 0x40b650
jmp 0x40b67e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40b693
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40b594
push ebx
call fcn.004366b9
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40bfd0
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 0x40bfe8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40bfdd
cmp dword [edi + 0x7c], ebx
je 0x40bff7
call fcn.0040c3c0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040bd40
add esp, 0xc
test eax, eax
je 0x40c01d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.0043606d
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40c05f
push 0x4000
call fcn.0043606d
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 0x40c06b
push ebp
call fcn.004366b9
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 0x40c0b4
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0040ad80
test eax, eax
jne 0x40c0b4
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 0x40c0de
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x40c0e7
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 0x40c123
mov cl, byte [esi]
cmp cl, bl
je 0x40c123
call fcn.0040aac0
add esi, 1
jne 0x40c113
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 0x40c520
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push ebp
mov ebp, dword [esp + 0xc]
push edi
jne 0x40c5de
cmp dword [esi + 4], 0xffffffff
jne 0x40c5de
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 0x40c550
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x40c583
cmp al, 0x2f
je 0x40c583
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40c570
mov ax, word [0x45f3ac]
mov word [edi], ax
cmp ebp, 1
jne 0x40c5a3
push ebp
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c5a3
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.0040b200
add esp, 0x10
test eax, eax
jne 0x40c5c4
mov eax, dword [esp + 0x10]
pop edi
pop ebp
ret 8
call fcn.0040b6b0
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 0x40cc00
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 0x40cc3d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cc3d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x40ccfd
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x40cc58
cmp al, 0x5c
jne 0x40cc5a
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x40cc50
cmp esi, ebp
je 0x40cc92
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00437870
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.0040cc00
add esp, 0x14
test edi, edi
mov byte [esp + 0xc], 0
je 0x40ccaf
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 0x40cca3
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ccb3
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40ccc5
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 0x40ccfd
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.00435327
add esp, 0x20c
ret
Function at 0x40e510
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 SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e616
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 0x40e60f
cmp ebx, esi
je 0x40e60f
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
jne 0x40e59d
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.00435327
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.0040dc50
add esp, 8
lea esi, [esp + 0x10]
call fcn.0040dd10
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.00435327
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.00435327
add esp, 0x60
ret
Function at 0x412d20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x412d27
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp 0x412d30
push esi
mov esi, edx
test esi, esi
not eax
je 0x412d62
lea esp, [esp]
test cl, 3
je 0x412d62
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45a568]
add ecx, 1
sub esi, 1
jne 0x412d40
cmp esi, 0x20
push ebx
push edi
jb 0x412f4c
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 + 0x45a968]
xor edx, dword [ebx*4 + 0x45ad68]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a568]
add ecx, 4
xor edx, dword [eax*4 + 0x45b168]
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 + 0x45a968]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ad68]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a568]
add ecx, 4
xor eax, dword [edx*4 + 0x45b168]
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 + 0x45a968]
xor edx, dword [ebx*4 + 0x45ad68]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a568]
xor edx, dword [eax*4 + 0x45b168]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a968]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ad68]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a568]
xor eax, dword [edx*4 + 0x45b168]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a968]
xor edx, dword [ebx*4 + 0x45ad68]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a568]
xor edx, dword [eax*4 + 0x45b168]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a968]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ad68]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a568]
and edx, 0xff
xor eax, dword [edx*4 + 0x45b168]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x45a968]
xor edx, dword [ebx*4 + 0x45ad68]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45a568]
add ecx, 4
xor edx, dword [eax*4 + 0x45b168]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x45a968]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x45ad68]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x45a568]
and edx, 0xff
xor eax, dword [edx*4 + 0x45b168]
sub edi, 1
jne 0x412d72
cmp esi, 4
jb 0x412f99
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 + 0x45a968]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x45ad68]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x45a568]
and eax, 0xff
xor edi, dword [eax*4 + 0x45b168]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x412f56
test esi, esi
pop edi
pop ebx
je 0x412fbd
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x45a568]
add ecx, 1
sub esi, 1
jne 0x412fa0
not eax
pop esi
ret
Function at 0x4137d6
Capabilities:
Get file size

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

Function at 0x4138c4
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 0x4138e9
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, esi
jmp 0x413964
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 0x413960
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 0x413960
cmp dword [ebp - 0x2c], 0x20
jb 0x413960
push 4
push dword [0x468010]
lea eax, [ebp - 0x24]
push eax
call fcn.00437c6b
add esp, 0xc
test eax, eax
je 0x413973
push 4
push dword [0x468014]
lea eax, [ebp - 0x24]
push eax
call fcn.00437c6b
add esp, 0xc
test eax, eax
je 0x413973
add ebx, 0x200
cmp ebx, dword [ebp - 0x28]
jb 0x4138fc
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00435327
leave
ret 4
mov eax, ebx
jmp 0x413963

Function at 0x413c14
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 0x413c33
lea esi, [ebp - 1]
cmp dword [ebp + 0xc], 3
jne 0x413c5f
push 0x5c
push esi
call fcn.00439300
pop ecx
pop ecx
jmp 0x413c5b
push 0x5c
push esi
call fcn.00439300
inc eax
mov esi, eax
push 0x5c
push esi
call fcn.00439300
add esp, 0x10
test eax, eax
jne 0x413c45
mov al, byte [esi]
test al, al
je 0x413c96
mov ecx, dword [ebp + 0xc]
shl ecx, 8
mov dword [ebp + 0xc], ecx
movsx eax, al
push eax
call fcn.004394d6
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 0x413c6e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413c9d
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 0x413cb0
xor eax, eax
pop ebp
ret
shr dword [ebp + 0xc], 2
je 0x413cfb
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 0x413cbc
pop edi
pop esi
pop ebx
xor eax, eax
inc eax
pop ebp
ret

Function at 0x413d00
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 0x413d13
xor eax, eax
pop ebp
ret
shr dword [ebp + 0xc], 2
je 0x413d5a
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 0x413d1e
pop edi
pop esi
xor eax, eax
inc eax
pop ebp
ret
Function at 0x414e8d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x414ea8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x414f52
cmp byte [edi], 0
je 0x414e99
push esi
push edi
call fcn.00437be0
mov esi, eax
inc esi
mov eax, 0x105
cmp esi, eax
pop ecx
ja 0x414f4f
jne 0x414ed5
mov al, byte [edi + 0x103]
cmp al, 0x5c
je 0x414ed5
cmp al, 0x2f
jne 0x414f4f
push ebx
lea ecx, [ebp - 4]
call fcn.00413796
lea ebx, [esi + 1]
push ebx
call fcn.00413e6a
push esi
push dword [ebp + 8]
mov edi, eax
push edi
call fcn.00437870
add esp, 0xc
cmp byte [edi], 0
mov eax, edi
je 0x414f0b
cmp byte [eax], 0x2f
jne 0x414f05
mov byte [eax], 0x5c
inc eax
cmp byte [eax], 0
jne 0x414efd
cmp byte [eax - 1], 0x5c
je 0x414f1a
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 0x414f47
cmp eax, 0xffffffff
je 0x414f47
push esi
push edi
push 0x46d528
call fcn.00437870
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0041379c
xor eax, eax
inc eax
jmp 0x414f51
lea ecx, [ebp - 4]
call fcn.0041379c
xor eax, eax
pop esi
pop edi
leave
ret 4
Function at 0x417104
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x417283
cmp dword [ebp + 0xc], 0
je 0x417283
test word [esi + 0x16c], 0x8000
jne 0x417130
push 5
jmp 0x417285
mov ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00414f85
add esp, 0xc
test eax, eax
jne 0x41714e
push 0x85200066
jmp 0x417285
cmp dword [eax], ebx
jne 0x41728b
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.00417a63
mov edi, eax
mov eax, dword [esi + 0x138]
shl eax, 4
test edi, edi
je 0x4171ef
push eax
push dword [esi + 0x118]
push edi
call fcn.00437870
push dword [0x46d520]
mov eax, dword [esi + 0x138]
shl eax, 4
push eax
push edi
call fcn.00413c9d
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.004179da
jmp 0x417260
push dword [0x46d520]
push eax
push dword [esi + 0x118]
call fcn.00413c9d
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.00413d00
add esp, 0xc
push dword [ebp + 0xc]
mov edi, dword [0x46d630]
push esi
mov dword [0x46d630], ebx
call fcn.00416ec6
pop ecx
pop ecx
xor eax, eax
mov dword [0x46d630], edi
inc eax
pop edi
jmp 0x41728d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0xc