joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebx, 1
push esi
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
call fcn.0040ad28
sub esi, dword [esp + 0x80]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
fmul qword [0x41ffb0]
fild dword [esp + 0x10]
fmulp st(1)
fiadd dword [esp + 0x80]
call fcn.00417860
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x4031c0
jmp 0x403150
call fcn.0040ad28
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
fmul qword [0x41ffb0]
fmul qword [0x41ffc0]
fadd qword [0x41ffb8]
call fcn.00417860
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x14]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x4031a8
jmp 0x403190
add ecx, ebx
cmp ecx, 0x1a
jne 0x403199
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x14]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403190
add esi, dword [esp + ecx*4 + 0x14]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x403150
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret

Function at 0x4031d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41dd94
mov edi, eax
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x403243
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.0040baf9
push esi
mov edi, eax
push 0
push edi
call fcn.0040f550
push esi
push ebp
push edi
call fcn.00410700
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x403820
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0040f550
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4038f9
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x4038c5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40389e
cmp word [esp + 0x118], 4
jb 0x4038f9
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac62
add esp, 0x120
ret
cmp eax, 2
jae 0x4038a8
cmp eax, 1
jne 0x4038f9
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac62
add esp, 0x120
ret
cmp eax, 6
jne 0x4038f9
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4038ef
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040ac62
add esp, 0x120
ret
cmp eax, 1
jne 0x4038f9
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040ac62
add esp, 0x120
ret

Function at 0x403920
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
push eax
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403954
or eax, eax
or edx, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x40396d
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x403ab0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.0040f550
add esp, 0xc
cmp dword [0x4230b0], 3
jne 0x403b11
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc40
lea edx, [esp + 4]
push 0x104
push edx
call fcn.0040aca1
add esp, 0xc
jmp 0x403b20
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea ecx, [esp + 4]
push ecx
push 0x41dc44
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040ac62
add esp, 0x20c
ret
Function at 0x403be0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x41ddfc
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0040c309
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.0040befb
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.0040c2c0
add esp, 0x14
test eax, eax
je 0x403c6b
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403d6e
mov eax, 0x423660
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403ca0
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403cc0
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403cd4
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040baf9
push edi
mov esi, eax
push 0
push esi
call fcn.0040f550
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x423660
push edi
push esi
call fcn.0040c2ed
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403d25
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x41de08
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x403d6c
push esi
call fcn.0040b8fe
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0040ac62
add esp, 0x314
ret

Function at 0x403d90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
je 0x403de1
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x403fb0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x4040ce
push 0xc00
call fcn.0040baf9
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4040c1
mov eax, dword [esi + 0x3c]
test eax, eax
mov ecx, dword [esi + 0x38]
jl 0x404029
jg 0x40401d
test ecx, ecx
jbe 0x404029
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x40402d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x404057
jg 0x404043
cmp ecx, edx
jbe 0x404057
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x404081
jg 0x40406d
cmp ecx, edx
jbe 0x404081
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x4040ab
jg 0x404097
cmp ecx, edx
jbe 0x4040ab
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00417730
mov dword [esp + 0x10], eax
test esi, esi
je 0x4040ce
push esi
call fcn.0040b8fe
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404110
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, 0xffffffff
push edi
mov dword [esp + 0x14], ebp
je 0x404332
push 0x400
call fcn.0040baf9
add esp, 4
push 0x400
mov ebx, eax
push ebp
push ebx
mov dword [esp + 0x24], ebx
call fcn.0040f550
add esp, 0xc
push esi
call fcn.00403fb0
add esp, 4
push ebx
push eax
call fcn.00403d90
add esp, 8
test eax, eax
je 0x404325
lea edi, [ebx + 4]
mov eax, 4
mov ecx, 0x41de4c
mov edx, edi
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x40418c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404174
test eax, eax
je 0x4041f5
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x4041db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4041f1
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x4041db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4041f1
movzx ebp, byte [ecx]
movzx ebx, byte [edx]
sub ebx, ebp
jne 0x4041db
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4041f1
movzx eax, byte [ecx]
movzx ebx, byte [edx]
sub ebx, eax
je 0x4041f1
mov ebp, dword [esp + 0x14]
test ebx, ebx
mov ebx, dword [esp + 0x18]
mov eax, 1
jg 0x4041fb
or eax, 0xffffffff
jmp 0x4041fb
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
xor eax, eax
test eax, eax
jne 0x404225
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
jmp 0x404210
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404210
sub eax, edx
sar eax, 1
jne 0x404311
lea ecx, [esp + 0x1c]
push ecx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push 0x400
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x3c00
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404325
mov eax, 4
mov ecx, 0x41de4c
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x40428e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404276
test eax, eax
je 0x4042eb
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4042dd
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4042eb
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4042dd
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4042eb
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4042dd
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4042eb
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x4042eb
test esi, esi
mov eax, 1
jg 0x4042ed
or eax, 0xffffffff
jmp 0x4042ed
xor eax, eax
test eax, eax
jne 0x404325
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404300
sub eax, edx
sar eax, 1
je 0x404325
mov edi, dword [esp + 0x34]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebp, 1
test ebx, ebx
je 0x404332
push ebx
call fcn.0040b8fe
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x404340
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.0040f550
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx edx, word [esp + 8]
sub edx, 0x41
push edx
lea ebx, [esp + 8]
call fcn.00403ea0
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00403df0
cmp eax, 0xffffffff
jne 0x4043c3
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040ac62
add esp, 0x218
ret
push esi
call fcn.00404110
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040ac62
add esp, 0x218
ret

Function at 0x405540
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.00416ae0
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x41dcbc
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.0040aeee
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x4055ab
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0040ac62
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.0040afc5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b1e2
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.0040afc5
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.0040b5bf
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x405656
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.004053a0
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.0040b5bf
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x405621
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00405450
mov edx, dword [esp + 0x10]
push edx
call fcn.0040b64d
add esp, 8
cmp ebp, dword [esp + 0x10]
pop esi
jb 0x405584
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040ac62
add esp, 0x1068
ret
Function at 0x407f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x407f1f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x408007
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 + 0x41f938]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f938]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x41f938]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f938]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f938]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f938]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f938]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41f938]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x407f30
pop ebp
test edi, edi
je 0x40802c
jmp 0x408010
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x41f938]
add ecx, 1
sub edi, 1
jne 0x408010
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x408040
Capabilities:
Hash data with crc32

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

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

Function at 0x4087b0
Capabilities:
Read file on windows

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

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x408843
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 0x40883d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40886f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x408855
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.00410700
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x408886
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 0x408880
cmp byte [esi + 8], 0
je 0x408880
or eax, 0xffffffff
add esp, 8
ret
Function at 0x408920
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x408965
cmp byte [esi + 1], 0
je 0x40896d
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 0x408982
cmp byte [esi + 1], 0
je 0x408974
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 0x40898b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40893e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40898b
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 0x40899f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0040b29f
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4089bd
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 0x408ad3
jmp 0x4089e0
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 0x4089f1
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 0x408a0a
mov ebp, 0x404
cmp byte [esi], 0
je 0x408a2f
cmp byte [esi + 1], 0
je 0x408ad3
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 0x408a32
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x408a5a
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 0x408a54
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x408a80
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x408a6b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00410700
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x408ad3
lea eax, [ebp - 3]
test eax, eax
jl 0x408abe
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x408aae
cmp byte [eax + ebx + 1], 0x4b
jne 0x408aae
cmp byte [eax + ebx + 2], 5
jne 0x408aae
cmp byte [eax + ebx + 3], 6
je 0x408ab4
test eax, eax
jge 0x408a90
jmp 0x408abe
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x408ad3
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4089d4
push ebx
call fcn.0040b870
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret