joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4072a7
Capabilities:
Enumerate pe sections
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [0x43e660]
push 0x1a
push 1
push esi
call fcn.00417bad
add esp, 0x10
cmp eax, 0x1a
jne 0x40748c
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
mov ebx, dword [ebp + 8]
shl cx, 8
or cx, ax
mov word [ebx], cx
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl cx, 8
or cx, ax
mov word [ebx + 2], cx
movzx ecx, byte [esi + 5]
movzx eax, byte [esi + 4]
shl cx, 8
or cx, ax
mov word [ebx + 4], cx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl cx, 8
or cx, ax
mov word [ebx + 6], cx
movzx ecx, byte [esi + 9]
movzx eax, byte [esi + 8]
shl cx, 8
or cx, ax
mov word [ebx + 8], cx
movzx ecx, byte [esi + 0xd]
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0xc], ecx
movzx ecx, byte [esi + 0x11]
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or eax, ecx
cdq
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x12]
shl ecx, 8
or eax, ecx
cdq
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], eax
movzx edx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl dx, 8
or dx, ax
mov word [ebx + 0x20], dx
movzx ecx, byte [esi + 0x19]
movzx eax, byte [esi + 0x18]
and dword [ebx + 0x50], 0
shl cx, 8
or cx, ax
mov eax, 0x208
mov word [ebx + 0x22], cx
cmp dx, ax
jae 0x40748c
push dword [0x43e660]
movzx eax, dx
push eax
push 1
push dword [ebx + 0x48]
movzx edi, dx
call fcn.00417bad
add esp, 0x10
cmp edi, eax
jne 0x40748c
mov eax, dword [ebx + 0x48]
mov byte [edi + eax], 0
movzx ecx, word [ebx + 0x22]
test cx, cx
je 0x407493
push dword [0x43e660]
mov edi, ecx
push edi
push 1
push esi
call fcn.00417bad
mov ecx, eax
add esp, 0x10
movzx eax, word [ebx + 0x22]
cmp eax, ecx
jne 0x40748c
push 1
push edi
push esi
push ebx
call fcn.004053e3
movzx eax, word [ebx + 2]
add esp, 0x10
test ax, ax
je 0x407493
test al, 0x40
je 0x407493
and eax, 0xff00
mov ecx, 0x3300
cmp ax, cx
jne 0x407493
push 0x80
lea eax, [ebp - 0x100]
push eax
push 0xd
push dword [0x43cad8]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
push str.ZIP_SFX
lea eax, [ebp - 0x100]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [0x43cec8], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [0x43e660]
call fcn.00418f79
push dword [ebp + 0xc]
mov edi, eax
mov esi, edx
push ebx
call fcn.00405e05
push 0
push esi
mov dword [ebx + 0x28], eax
push edi
push dword [0x43e660]
call fcn.004180aa
xor eax, eax
add esp, 0x1c
inc eax
jmp 0x40748e
Function at 0x4074c5
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
xorps xmm0, xmm0
movlpd qword [0x43e640], xmm0
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4074ef
and dword [0x43e66c], edi
xor eax, eax
inc eax
jmp 0x40769a
cmp byte [edi], 0
jne 0x4074fb
xor eax, eax
jmp 0x40769a
push ebx
push esi
push dword [0x43e660]
xor ebx, ebx
inc ebx
mov dword [0x43e66c], ebx
call fcn.00418f79
mov esi, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 4], eax
mov dword [ebp + 8], edx
cmp dword [esi + 0x50], 0
je 0x40758a
mov ecx, dword [esi + 0x10]
or ecx, dword [esi + 0x14]
jne 0x407533
and dword [esi + 0x50], ecx
mov eax, ebx
jmp 0x407698
xor ebx, ebx
push ebx
push dword [esi + 0x50]
push dword [esi + 0x14]
push dword [esi + 0x10]
push edi
push dword [0x43e660]
call fcn.00407b4a
mov ecx, eax
add esp, 0x18
and ecx, edx
cmp ecx, 0xffffffff
jne 0x407571
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43e660]
call fcn.004180aa
add esp, 0x10
jmp 0x407663
mov dword [0x43e640], eax
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [0x43e644], edx
inc eax
mov dword [esi + 0x14], edx
jmp 0x407698
mov dword [0x43e654], 0x12345678
mov dword [0x43e658], 0x23456789
mov dword [0x43e65c], 0x34567890
jmp 0x4075b5
movsx eax, al
push eax
call fcn.0040769d
pop ecx
inc edi
mov al, byte [edi]
test al, al
jne 0x4075aa
push 0x400
lea eax, [ebp - 0x414]
push 0x43e670
push eax
call fcn.00413650
push dword [0x43e660]
lea eax, [ebp - 0x14]
xor ebx, ebx
push 0xc
push 1
push eax
mov edi, ebx
call fcn.00417bad
add esp, 0x1c
cmp eax, 0xc
jne 0x40766a
call fcn.0040625d
xor byte [ebp + edi - 0x14], al
movzx eax, byte [ebp + edi - 0x14]
push eax
call fcn.0040769d
inc edi
pop ecx
cmp edi, 0xc
jne 0x4075f0
test byte [0x43ea7c], 8
movzx eax, byte [0x43ea81]
movzx ecx, byte [0x43ea87]
cmovne ecx, eax
movzx eax, byte [ebp - 9]
cmp eax, ecx
je 0x407667
cmp dword [esi + 0xc], ebx
je 0x407667
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
je 0x407667
push 0x400
lea eax, [ebp - 0x414]
push eax
push 0x43e670
call fcn.00413650
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43e660]
call fcn.004180aa
add esp, 0x1c
xor eax, eax
jmp 0x407698
xor edi, edi
inc edi
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
cmp ecx, ebx
jl 0x407682
jg 0x40767b
cmp eax, 0xc
jbe 0x407682
sub eax, 0xc
sbb ecx, ebx
jmp 0x407690
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov eax, edi
mov dword [esi + 0x14], ecx
pop esi
pop ebx
pop edi
leave
ret

Function at 0x40769d
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x43e654]
mov eax, ecx
xor eax, dword [ebp + 8]
mov edx, dword [0x43e65c]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x43e670]
movzx eax, cl
add eax, dword [0x43e658]
imul eax, eax, 0x8088405
mov dword [0x43e654], ecx
movzx ecx, dl
shr edx, 8
inc eax
mov dword [0x43e658], eax
shr eax, 0x18
xor eax, ecx
xor edx, dword [eax*4 + 0x43e670]
mov eax, dword [ebp + 8]
mov dword [0x43e65c], edx
pop ebp
ret
Function at 0x4076fe
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [0x43e660]
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
push 1
push edi
call fcn.00417bad
add esp, 0x10
mov esi, eax
cmp dword [0x43e66c], 0
je 0x40775e
mov ecx, dword [0x43e640]
or ecx, dword [0x43e644]
je 0x40773e
push esi
push edi
call fcn.00407c05
pop ecx
pop ecx
jmp 0x40775e
push ebx
xor ebx, ebx
test esi, esi
jle 0x40775d
call fcn.0040625d
xor byte [ebx + edi], al
movzx eax, byte [ebx + edi]
push eax
call fcn.0040769d
inc ebx
pop ecx
cmp ebx, esi
jl 0x407745
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4077d9
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x1c]
mov ecx, dword [esi]
mov eax, ecx
ror eax, 8
lea esi, [esi + 4]
rol ecx, 8
and eax, 0xff00ff00
and ecx, 0xff00ff
or eax, ecx
mov dword [ebp + edx*4 - 0x154], eax
inc edx
cmp edx, 0x10
jb 0x4077ed
push 0x40
lea ecx, [ebp - 0x14c]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub edx, 1
jne 0x40781d
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x10]
xor edi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0x14
jmp 0x40785b
mov ecx, dword [ebp - 0xc]
not ecx
mov edx, esi
and ecx, eax
rol esi, 5
mov eax, ebx
and eax, dword [ebp - 0xc]
xor ecx, eax
mov eax, dword [ebp - 8]
add esi, ecx
add eax, 0x5a827999
add esi, dword [ebp + edi*4 - 0x154]
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, dword [ebp - 0xc]
ror ebx, 2
inc edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
cmp edi, 0x14
jb 0x407858
mov dword [ebp - 0x14], 0x28
xor eax, ebx
mov ecx, esi
xor eax, edx
rol esi, 5
add esi, eax
mov eax, dword [ebp - 0x10]
add esi, dword [ebp + eax*4 - 0x154]
mov eax, dword [ebp - 8]
add eax, 0x6ed9eba1
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov edx, ecx
ror ebx, 2
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, 0x28
jb 0x40789f
mov dword [ebp - 0xc], edx
mov edi, edx
mov ecx, ebx
mov edx, esi
xor ecx, edi
rol esi, 5
add esi, dword [ebp - 8]
and ecx, eax
mov eax, ebx
and eax, edi
xor ecx, eax
mov eax, dword [ebp - 0x14]
add ecx, 0x8f1bbcdc
push 0x3c
add ecx, dword [ebp + eax*4 - 0x154]
mov eax, dword [ebp - 4]
add esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, edi
mov dword [ebp - 4], eax
ror ebx, 2
mov edi, edx
inc ecx
pop edx
mov dword [ebp - 0x14], ecx
cmp ecx, edx
jb 0x4078e1
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
xor eax, ebx
mov dword [ebp + 8], esi
xor eax, ecx
rol esi, 5
add esi, dword [ebp - 8]
add eax, 0xca62c1d6
add eax, dword [ebp + edx*4 - 0x154]
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
ror ebx, 2
inc edx
cmp edx, 0x50
jb 0x407930
add dword [edi + 8], esi
mov eax, ecx
add dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
add dword [edi + 0x14], eax
add dword [edi + 0x10], ebx
mov eax, dword [ebp - 8]
add dword [edi + 0x18], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407980
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret

Function at 0x407b4a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
push esi
mov byte [0x43ec94], al
mov esi, 0x43ecbc
movzx eax, al
push edi
push dword [ebp + 8]
and eax, 3
mov dword [0x43ec98], 0x8000
lea edi, [eax*4 + 4]
push edi
push 1
push esi
call fcn.00417bad
add esp, 0x10
push 0x43eac0
push 0x43ecac
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
movzx eax, byte [0x43ec94]
push eax
call fcn.0040983d
add esp, 0x18
test eax, eax
jne 0x407bfc
push ebx
push dword [ebp + 8]
mov ebx, 0x43ec9c
push 2
push 1
push ebx
call fcn.00417bad
mov esi, dword [ebp + 0x10]
sub esi, edi
mov edi, dword [ebp + 0x14]
push 2
sbb edi, 0
sub esi, 2
push 0x43ecac
push ebx
sbb edi, 0
call fcn.00413bc4
add esp, 0x1c
pop ebx
test eax, eax
jne 0x407bfc
cmp dword [ebp + 0x1c], eax
jne 0x407bf6
call fcn.00407b46
cdq
sub esi, eax
sbb edi, edx
mov eax, esi
mov edx, edi
jmp 0x407c01
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebp
ret

Function at 0x407c1d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x43ec98]
cmp esi, 0x8000
jne 0x407c87
push ebx
push edi
push 0x43eac0
mov ebx, 0x43ecac
push ebx
call fcn.0040995c
mov eax, dword [ebp + 0xc]
xor esi, esi
push esi
add eax, 0xfffffff6
push eax
push dword [ebp + 8]
call fcn.004180e4
push dword [ebp + 8]
mov edi, 0x43ec9c
push 0xa
push 1
push edi
call fcn.00417bad
push 0xa
push ebx
push edi
call fcn.00413bc4
add esp, 0x30
pop edi
pop ebx
test eax, eax
je 0x407c81
push 7
pop eax
mov dword [0x43ec98], eax
jmp 0x407c89
mov dword [0x43ec98], esi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x409a54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov ecx, dword [esi + 0x9c]
cmp ecx, 0xffffffff
je 0x409acf
cmp ecx, 0x40
jbe 0x409a81
lea eax, [esi + 0x40]
push eax
push esi
call fcn.00407a1e
pop ecx
pop ecx
push 0x14
pop ecx
mov dword [esi + 0x9c], ecx
push 0x40
pop eax
sub eax, ecx
xor edi, edi
push eax
lea eax, [ecx + esi]
push edi
push eax
call fcn.00413120
add esp, 0xc
movups xmm0, xmmword [esi + edi*4]
movaps xmm1, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj]
pxor xmm1, xmm0
movups xmmword [esi + edi*4], xmm1
add edi, 4
cmp edi, 0x10
jb 0x409a96
lea edi, [esi + 0x40]
push edi
call fcn.00407980
push edi
push 0x40
push esi
call fcn.004079b2
add esp, 0x10
or dword [esi + 0x9c], 0xffffffff
jmp 0x409ad2
lea edi, [esi + 0x40]
cmp dword [ebp + 0xc], 0
je 0x409ae7
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004079b2
add esp, 0xc
pop edi
pop esi
pop ebp
ret

Function at 0x409aeb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp dword [edi + 0x9c], 0xffffffff
je 0x409b0d
push edi
push esi
push esi
call fcn.00409a54
add esp, 0xc
lea ebx, [edi + 0x40]
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00407a1e
pop ecx
pop ecx
movups xmm0, xmmword [edi + esi*4]
pxor xmm0, xmmword [0x4309a0]
movups xmmword [edi + esi*4], xmm0
add esi, 4
cmp esi, 0x10
jb 0x409b1c
push ebx
call fcn.00407980
push ebx
push 0x40
push edi
call fcn.004079b2
push ebx
lea eax, [ebp - 0x14]
push 0x14
push eax
call fcn.004079b2
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00407a1e
add esp, 0x24
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
jbe 0x409b77
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.00413650
add esp, 0xc
leave
ret

Function at 0x409d14
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x104
push edi
lea ebx, [edi + 0x104]
push ebx
call fcn.00413650
add esp, 0xc
mov ebx, esi
mov ecx, 0x104
sub ecx, ebx
lea eax, [ebx + edi]
push ecx
push eax
call dword [edi + 0x20c]
pop ecx
pop ecx
add ebx, eax
mov ecx, 0x104
cmp ebx, ecx
jb 0x409d3b
lea ebx, [edi + 0x104]
mov al, byte [ebx + esi]
not al
xor byte [esi + edi], al
inc esi
cmp esi, ecx
jb 0x409d5b
push edi
call fcn.00409c83
push ebx
call fcn.00409c83
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x409d7b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
lea eax, [ebp - 0xdc]
push esi
push eax
call fcn.004099d2
lea eax, [ebp - 0xdc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004099e9
push 0xa0
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00413650
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00409a54
mov eax, dword [ebp + 0x20]
add esp, 0x28
dec eax
xor edx, edx
push 0x14
pop esi
div esi
add eax, 1
mov dword [ebp - 0x14], eax
je 0x409ee9
push ebx
push edi
xor edi, edi
lea ecx, [ebp - 0x3c]
xor ebx, ebx
mov dword [ebp - 4], edi
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
push esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x10], ebx
push 0
push eax
call fcn.00413120
push 0xa0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00413650
mov eax, ebx
mov byte [ebp - 0x25], bl
shr eax, 0x18
add esp, 0x18
mov byte [ebp - 0x28], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x27], al
mov eax, ebx
shr eax, 8
cmp dword [ebp + 0x18], 0
push 4
mov byte [ebp - 0x26], al
pop esi
jbe 0x409ea4
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00409a54
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x28]
push 0x14
push eax
call fcn.00409aeb
add esp, 0x18
xor esi, esi
mov al, byte [ebp + esi - 0x28]
xor byte [ebp + esi - 0x3c], al
inc esi
cmp esi, 0x14
jb 0x409e73
push 0xa0
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00413650
add esp, 0xc
sub edi, 1
jne 0x409e4b
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov ecx, edi
mov edi, dword [ebp + 0x20]
xor edx, edx
mov ebx, dword [ebp + 0x1c]
cmp ecx, edi
jae 0x409ec2
mov al, byte [esi + ecx]
inc edx
mov byte [ecx + ebx], al
inc ecx
cmp edx, 0x14
jb 0x409eb1
mov ebx, dword [ebp - 8]
sub esi, 0x14
mov edi, dword [ebp - 4]
inc ebx
mov eax, dword [ebp - 0x10]
add edi, 0x14
push 0x14
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
pop esi
cmp eax, dword [ebp - 0x14]
jb 0x409dfa
pop edi
pop ebx
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040a214

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4309b0]
sub edx, 1
jne 0x40a54c
pop ebp
ret
Function at 0x40d979
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x40000000
push edi
mov edi, dword [ebp + 0x14]
mov dword [edi], ecx
mov eax, dword [ebp + 0x10]
sub eax, ecx
cmp eax, edx
cmova eax, edx
push eax
lea eax, [ecx + ebx]
push eax
push dword [esi + 0x14]
call fcn.0041e37c
add esp, 0xc
test eax, eax
jle 0x40d9c1
mov ecx, dword [edi]
mov edx, 0x40000000
add ecx, eax
mov dword [edi], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x40d991
test eax, eax
jns 0x40d9e0
call fcn.0041c847
push dword [eax]
call fcn.0041c927
push eax
push 0xffffffffffffffff
push esi
call fcn.0040d0a1
add esp, 0x10
or eax, 0xffffffff
jmp 0x40d9ed
test eax, eax
jne 0x40d9eb
mov dword [esi + 0x40], 1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x418d7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004122f0
mov eax, dword [0x43c058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00421792
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418dbf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418f1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00412240
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43f520]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c72e
mov ecx, dword [esi*4 + 0x43f520]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418f14
cmp eax, dword [edi + ecx + 0x24]
jne 0x418f14
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418f14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c72e
add esp, 0x14
test edx, edx
jl 0x418f14
jg 0x418e8a
test eax, eax
jb 0x418f14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418f14
jl 0x418ea4
cmp dword [ebp - 0x1008], eax
ja 0x418f14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418ec2
test ebx, ebx
je 0x418efb
cmp ecx, edi
jae 0x418efb
mov al, byte [ecx]
cmp al, 0xd
jne 0x418edc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418ee8
cmp byte [ecx + 1], 0xa
jne 0x418ee8
inc ecx
jmp 0x418ee8
movzx eax, al
movsx eax, byte [eax + 0x43c088]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418ec2
cmp edx, ebx
jne 0x418ec2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418f19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412fe2
leave
ret
Function at 0x419ace
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43c058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4342e0
push esi
call fcn.00422dfb
pop ecx
pop ecx
test eax, eax
jne 0x419afc
xor al, al
jmp 0x419b79
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00419805
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x419b36
push dword [ebp - 0x210]
call fcn.00416f2b
xor al, al
jmp 0x419b77
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x419b3c
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x419b5c
push edx
call fcn.00419a04
pop ecx
test al, al
je 0x419b27
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x419b6a
mov bl, 1
push dword [ebp - 0x210]
call fcn.00416f2b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00412fe2
leave
ret
Function at 0x41deb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43f520]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41def6
cmp byte [ebx], 0xa
jne 0x41def6
or byte [eax + edi + 0x28], 4
jmp 0x41defb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41dff9
mov al, byte [edx]
cmp al, 0x1a
je 0x41dfdb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41df2a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41df4f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41df59
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41df0c
jmp 0x41dff9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41dfd6
cmp dword [ebp - 0xc], 0
je 0x41dfd6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43f520]
test byte [eax + edi + 0x28], 0x48
je 0x41dfb0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41df9b
mov byte [esi], dl
jmp 0x41dfac
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43f520]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41dff9
cmp byte [ebp - 1], 0xa
jne 0x41dfbf
cmp esi, ebx
jne 0x41dfbf
mov byte [esi], 0xa
jmp 0x41dff8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c74c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41dff9
mov byte [esi], 0xd
jmp 0x41dff8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43f520]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41dff5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41dff9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret