joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419a40
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop word [eax + eax]
xor eax, eax
test cl, 1
je 0x419a5b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x419a66
bts eax, 6
shr ecx, 1
test cl, 1
je 0x419a71
bts eax, 5
shr ecx, 1
test cl, 1
je 0x419a7c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x419a87
bts eax, 3
shr ecx, 1
test cl, 1
je 0x419a92
bts eax, 2
shr ecx, 1
test cl, 1
je 0x419a9d
bts eax, 1
test cl, 2
je 0x419aa6
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
xor edx, edx
lea ecx, [edx + 1]
nop dword [eax]
test bl, 1
je 0x419b3f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x419b30
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x6ee660], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x419a50
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a330
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
push 0
setne bl
push 0x80
lea ebx, [ebx*2 + 2]
push ebx
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a3be
push 0x5c
push edi
call fcn.004de810
mov esi, eax
add esp, 8
test esi, esi
je 0x41a396
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a393
push 1
push edi
call fcn.00418d80
add esp, 8
mov byte [esi], 0x5c
push 0
push 0x80
push ebx
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a3be
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 1
jne 0x41a3d1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a400
Capabilities:
Check if file exists
Get file attributes
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
cmp ecx, 0xffffffff
je 0x41a441
push ecx
push eax
push str._s_d
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.004061a0
add esp, 0x14
jmp 0x41a458
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.004e72b5
add esp, 0x10
cmp dword [ebp + 0x18], 1
mov ecx, 0x6efb28
push 0xffffffffffffffff
mov eax, 0x6efa24
cmove eax, ecx
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004e72b5
push 0x581760
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ede81
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ede81
push 0x581764
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ede81
push 0x581778
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ede81
add esp, 0x40
lea eax, [ebp - 0x108]
push eax
push str._s_tmp
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004061a0
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 0x14]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a58d
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004de810
mov esi, eax
add esp, 8
test esi, esi
je 0x41a563
lea eax, [ebp - 0x20c]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a560
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.00418d80
add esp, 8
mov byte [esi], 0x5c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a58d
xor eax, eax
jmp 0x41a5b6
push 0
lea eax, [ebp - 0x314]
mov dword [ebp - 0x314], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x314]
cmp eax, edi
je 0x41a5cd
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
push 9
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
and eax, edi
pop edi
pop esi
pop ebx
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
Function at 0x41a620
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
movsd xmm0, qword [ebp + 0x10]
lea eax, [ebp - 0x110]
push esi
mov esi, dword [ebp + 8]
sub esp, 8
movsd qword [esp], xmm0
push str._.3f
push 0x104
push eax
call fcn.004061a0
lea ecx, [ebp - 0x110]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a666
sub ecx, edx
cmp byte [ebp + ecx - 0x111], 0x30
jne 0x41a6b3
nop dword [eax]
dec ecx
cmp ecx, 0x104
jae 0x41a752
mov byte [ebp + ecx - 0x110], 0
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a6a0
sub ecx, edx
cmp byte [ebp + ecx - 0x111], 0x30
je 0x41a680
push 5
lea eax, [ebp - 0xc]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a6d0
sub ecx, edx
dec ecx
mov al, byte [ebp + ecx - 0x110]
cmp al, 0x2e
je 0x41a6ee
cmp al, 0x2c
je 0x41a6ee
cmp al, byte [ebp - 0xc]
jne 0x41a6fe
cmp ecx, 0x104
jae 0x41a752
mov byte [ebp + ecx - 0x110], 0
lea eax, [ebp - 0x110]
push 0x2e
push eax
call fcn.004de6e0
add esp, 8
test eax, eax
je 0x41a718
mov cl, byte [ebp - 0xc]
mov byte [eax], cl
lea eax, [ebp - 0x110]
push 0x2c
push eax
call fcn.004de6e0
add esp, 8
test eax, eax
je 0x41a732
mov cl, byte [ebp - 0xc]
mov byte [eax], cl
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
call fcn.004dd0ee
int3

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41b0f4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b0f4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x41b1a7
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x41b10b
cmp al, 0x5c
jne 0x41b10d
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x41b103
cmp esi, ebx
je 0x41b150
sub esi, ebx
lea eax, [ebp - 0x20c]
push esi
push ebx
push eax
call fcn.004de9c0
add esp, 0xc
cmp esi, 0x104
jae 0x41b1b7
lea eax, [ebp - 0x20c]
mov byte [ebp + esi - 0x20c], 0
push eax
push edi
call fcn.0041b0c0
add esp, 8
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x41b171
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004e2189
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004ede81
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b1a7
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004dcc5c
mov esp, ebp
pop ebp
ret
call fcn.004dd0ee
int3
Function at 0x41ba50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x41bbeb
cmp dword [ebx + 4], 0xffffffff
jne 0x41bbeb
push esi
lea esi, [ebx + 0x140]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ba87
sub ecx, edx
mov al, byte [ecx + ebx + 0x13f]
cmp al, 0x5c
je 0x41bab2
cmp al, 0x2f
je 0x41bab2
push 0x581760
push 0x104
push esi
call fcn.004ede81
add esp, 0xc
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x41badd
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41baf8
pop edi
pop esi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x41baf5
cmp edi, 3
je 0x41baf5
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x41bb3e
cmp edi, 2
jne 0x41bb5a
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41bb38
pop edi
pop esi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x41bb44
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.004dd59d
add esp, 4
mov esi, eax
cmp edi, 1
je 0x41bb95
cmp edi, 2
je 0x41bb95
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x41bbc6
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x41bbc6
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.0041ef40
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop edi
cmove ecx, edx
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41e910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x41e94e
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e942
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp + 8]
call fcn.004de9c0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41e98e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x41ea4d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x582af8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x582af8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x582af8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x582af8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x582af8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x582af8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x582af8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x582af8]
sub edi, 1
jne 0x41e9a6
pop edi
test esi, esi
je 0x41ea6b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x582af8]
sub esi, 1
jne 0x41ea51
not eax
pop esi
pop ebp
ret
Function at 0x41ed70
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41ef29
cmp dword [edi + 0x18], 0
je 0x41ef29
cmp dword [edi + 0x7c], 0
je 0x41ed9b
push edi
call fcn.0041ea70
add esp, 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push edi
call fcn.0041f400
add esp, 0x10
test eax, eax
je 0x41edbe
mov eax, 0xffffff99
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.004e21fe
mov esi, eax
add esp, 4
test esi, esi
je 0x41ee01
push 0x4000
call fcn.004e21fe
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 4]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x41ee0c
push esi
call fcn.004e21e3
add esp, 4
pop esi
mov eax, 0xffffff98
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x41ee68
lea eax, [esi + 4]
mov dword [esi + 0x24], 0
push eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0041cec0
add esp, 4
test eax, eax
jne 0x41ee68
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x41ee8c
mov al, byte [edi + 0x39]
jmp 0x41ee8f
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x7c], eax
test edx, edx
je 0x41ef0b
mov al, byte [edx]
test al, al
je 0x41ef0b
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x582af8]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x582af8]
mov dword [esi + 0x78], ecx
add edx, 1
jne 0x41eec0
mov eax, dword [ebp - 8]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff9a
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41fac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
cmp byte [esi], 0
je 0x41faf7
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xb]
push eax
push dword [esi + 4]
lea ebx, [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41faf2
mov byte [ebx], 1
mov edi, dword [ebp - 4]
jmp 0x41fb24
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x41fb08
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp + 0xb]
push eax
call fcn.004de9c0
lea eax, [ebx + edi]
add esp, 0xc
mov dword [esi + 0x1c], eax
lea ebx, [esi + 8]
cmp edi, 1
jne 0x41fb3b
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0xb]
mov dword [eax], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x41fb32
cmp byte [ebx], 0
je 0x41fb32
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421790
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x42179e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x42185d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x583400]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x583400]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x583400]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x583400]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x583400]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x583400]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x583400]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x583400]
sub edi, 1
jne 0x4217b6
pop edi
test esi, esi
je 0x42187b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x583400]
sub esi, 1
jne 0x421861
not eax
pop esi
pop ebp
ret
Function at 0x421d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 4], ecx
push edi
mov eax, dword [esi + 0x6af90]
lea edi, [esi + 0x6af84]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x421f72
cmp eax, 3
lea eax, [esi + 0x6af7c]
mov dword [ebp + 8], eax
jb 0x421df5
mov edx, dword [edi]
mov eax, dword [eax]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x421e2f
mov eax, dword [edi]
sub eax, ecx
cmp eax, 0x7efa
ja 0x421e2f
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x421e18
mov dword [esi + 0x6afa0], eax
push ecx
push esi
call fcn.00422e90
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
add esp, 8
cmp ebx, ecx
cmova ebx, ecx
mov ecx, dword [edi]
cmp ebx, 3
jb 0x421ef8
sub ecx, dword [esi + 0x6af88]
lea eax, [ebx - 3]
push eax
push ecx
push esi
call fcn.00421b80
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
mov edx, dword [esi + 0x6af98]
sub ecx, ebx
mov dword [ebp - 8], eax
mov dword [esi + 0x6af90], ecx
cmp ebx, edx
ja 0x421ec0
cmp ecx, 3
jb 0x421ec0
dec ebx
nop
inc dword [edi]
mov edx, dword [edi]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x4af70], eax
sub ebx, 1
jne 0x421e70
jmp 0x421f15
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x6af7c]
cmp ebx, edx
cmova ecx, eax
add dword [edi], ebx
mov edx, dword [edi]
xor ebx, ebx
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [eax], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x421f19
movzx eax, byte [ecx + esi + 0x1af70]
push eax
push 0
push esi
call fcn.00421b80
add esp, 0xc
mov dword [ebp - 8], eax
dec dword [esi + 0x6af90]
inc dword [edi]
mov edx, dword [edi]
cmp dword [ebp - 8], 0
je 0x421f4c
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x421f33
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x421f35
xor ecx, ecx
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00422100
mov eax, dword [edi]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x421f61
push esi
call fcn.00421fa0
add esp, 4
mov eax, dword [esi + 0x6af90]
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x421da1
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x421f86
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x421f88
xor edx, edx
mov eax, dword [edi]
push 1
sub eax, ecx
push eax
push edx
push esi
call fcn.00422100
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x423c32
mov edx, dword [edi + 0x8c]
mov ebx, dword [edi + 0x88]
cmp edx, ebx
jae 0x423c79
mov esi, dword [ebp + 8]
lea eax, [edx + ecx]
sub ebx, edx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.004de9c0
add dword [edi + 0x8c], ebx
add dword [edi + 0x74], ebx
push ebx
push esi
push dword [edi + 0x78]
call fcn.00421790
add esp, 0x18
mov dword [edi + 0x78], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x423c72
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423c79
mov esi, dword [ebp - 4]
add dword [edi + 0x74], esi
push esi
push ebx
push dword [edi + 0x78]
call fcn.00421790
add esp, 0xc
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8