joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f960
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
push dword [esp + 0x1c]
xorps xmm0, xmm0
xor esi, esi
movlpd qword [esp + 0x10], xmm0
call fcn.0044fb40
mov edi, eax
test edi, edi
je 0x44fa67
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44fa67
push ebp
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x44fa66
push ebx
push 0x100000
push esi
push dword [0x64a51c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x44fa5e
push dword [esp + 0x28]
mov eax, dword [edi + 4]
call eax
mov esi, eax
test esi, esi
je 0x44fa4f
mov ecx, dword [edi + 8]
push 0
push esi
call ecx
push 0
push 0
push dword [esp + 0x2c]
push edi
push esi
call fcn.0044fdc0
cmp dword [esp + 0x18], 0
jl 0x44fa15
mov eax, dword [esp + 0x14]
jg 0x44fa06
test eax, eax
je 0x44fa15
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push 0x100000
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
mov eax, dword [edi + 0xc]
push ebx
push esi
call eax
cmp dword [esp + 0x10], 0x100000
je 0x44fa15
mov eax, dword [edi + 0x10]
push esi
call eax
push dword [esp + 0x24]
push edi
push esi
call fcn.0044fd70
push ebx
push 0
push dword [0x64a51c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
push dword [esp + 0x24]
push esi
call fcn.0044ff50
test esi, esi
je 0x44fa7b
mov eax, dword [edi + 0x14]
push esi
call eax
pop edi
pop esi
add esp, 0xc
ret 0x10
Function at 0x44fdc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x94
test dword [esp + 0xa0], 0x10000
je 0x44ff46
push ebx
mov ebx, dword [esp + 0x9c]
test ebx, ebx
je 0x44ff45
mov eax, dword [ebx]
mov ecx, dword [esp + 0xa8]
cdq
and edx, 7
push ebp
mov ebp, dword [ebx + 4]
add eax, edx
sar eax, 3
test ecx, ecx
push esi
push edi
mov edi, 0x5fc268
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb8]
cmovne edi, ecx
cmp eax, 0x18
jne 0x44fe31
push edi
call fcn.005b5310
mov edi, eax
mov esi, edi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x44fe26
sub esi, eax
jmp 0x44fe69
cmp eax, 0x19
jne 0x44fe53
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44fe40
sub esi, ecx
sar esi, 1
add esi, esi
jmp 0x44fe69
push edi
call fcn.005b4fd0
mov edi, eax
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x44fe60
sub esi, ecx
push esi
push edi
cmp esi, ebp
jle 0x44feb8
mov esi, dword [esp + 0xb4]
push ebx
mov eax, dword [esi + 0xc]
call eax
mov eax, dword [esi + 0x10]
push ebx
call eax
push dword [esp + 0x10]
lea eax, [ebx + 8]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00430da0
mov eax, ebp
sub eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
add eax, dword [esp + 0x20]
push 0
push eax
call fcn.0042d620
mov eax, dword [esi + 8]
add esp, 0x18
push 1
push ebx
call eax
jmp 0x44fed8
lea eax, [esp + 0x1c]
push eax
call fcn.00430da0
mov eax, ebp
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push 0
push eax
call fcn.0042d620
add esp, 0x18
push ebp
lea eax, [esp + 0x18]
push eax
lea esi, [ebx + 0x48]
push esi
call fcn.00430da0
add esp, 0xc
test ebp, ebp
jle 0x44ff05
lea eax, [esp + 0x14]
mov ecx, ebp
xor byte [eax], 0x36
lea eax, [eax + 1]
xor byte [esi], 0x5c
lea esi, [esi + 1]
sub ecx, 1
jne 0x44fef4
push ebp
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xb4]
push ebx
mov eax, dword [eax + 0xc]
call eax
mov eax, dword [esp + 0xb8]
cmp eax, 0x18
jne 0x44ff37
push edi
call fcn.005b5300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14
cmp eax, 0x19
je 0x44ff42
push edi
call fcn.005b4fc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x14

Function at 0x450288
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x4502e5
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x4502e5
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4502c4
push ebx
push esi
call eax
push esi
push ebx
push dword [0x64a51c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x64e870]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x64e874], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x4515bf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x64d504], ebp
je 0x4517a5
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x4515df
mov edi, ebx
jmp 0x4515f1
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x4517a3
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x451798
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.0042d620
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x451797
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x451797
cmp dword [esp + 0x6c], 0
je 0x451744
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x4516d8
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x4516ee
cmp cl, 0xc0
jbe 0x4516ee
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x5ff29c]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x4516a8
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x451797
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x45178b
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x451748
pop esi
test ebx, ebx
jne 0x4517a3
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc
Function at 0x452940
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x452978
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x452973
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.00430da0
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x4587a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x458925
cmp dword [esi + 0x20], 0
je 0x458925
cmp dword [esi + 0x24], 0
je 0x458925
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x458925
cmp dword [eax], esi
jne 0x458925
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x458805
cmp eax, 0x39
je 0x458805
cmp eax, 0x45
je 0x458805
cmp eax, 0x49
je 0x458805
cmp eax, 0x5b
je 0x458805
cmp eax, 0x67
je 0x458805
cmp eax, 0x71
je 0x458805
cmp eax, 0x29a
jne 0x458925
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x45883e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x458860
call fcn.0045d260
jmp 0x458865
call fcn.0045cea0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.0045b730
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0042d620
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x5ff43a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x5ff438]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x5ff43c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x5ff43e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x460bc0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], esi
cmovb esi, dword [esp + 0x14]
test esi, esi
je 0x460c64
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
sub ebp, ebx
mov dword [esp + 0x10], esi
nop dword [eax]
mov eax, dword [edi + 8]
mov dl, byte [ebx + ebp]
or eax, 2
mov ecx, eax
mov byte [esp + 0x28], dl
xor ecx, 1
imul ecx, eax
lea eax, [esp + 0x28]
push 1
push eax
shr ecx, 8
xor cl, dl
mov byte [ebx], cl
mov eax, dword [edi]
not eax
push eax
call fcn.0045d260
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.0045d260
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x460bf0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x462930
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov eax, dword [ebx + 0x440]
mov ebp, dword [eax]
cmp byte [ebp + 0x1e40], 0
je 0x462952
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebp + 0x44]
test byte [eax + 0x66], 8
jne 0x462989
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
test ecx, ecx
jg 0x462989
jl 0x46296c
cmp eax, 0xc
jae 0x462989
push ecx
push eax
push str.Truncated_Zip_encrypted_body:_only__jd_bytes_available
push 0x2a
push ebx
call fcn.0046c030
add esp, 0x14
mov eax, 0xffffffe2
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0xc
push ebx
call fcn.00469740
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4629b9
push str.Truncated_ZIP_file_data
push 0x2a
push ebx
call fcn.0046c030
add esp, 0xc
mov eax, 0xffffffe2
pop ebp
pop ebx
add esp, 0x1c
ret
push esi
push edi
xor esi, esi
push ebx
mov dword [esp + 0x1c], esi
call fcn.00475370
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x462aa1
lea edi, [ebp + 0x1e34]
nop word [eax + eax]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4629e5
mov dword [edi], 0x12345678
mov dword [edi + 4], 0x23456789
mov dword [edi + 8], 0x34567890
sub esi, ecx
je 0x462a58
mov al, byte [ebx]
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push 1
push eax
mov eax, dword [edi]
not eax
push eax
call fcn.0045d260
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x27], al
lea eax, [esp + 0x27]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.0045d260
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x462a04
push 0xc
lea eax, [esp + 0x24]
push eax
push 0xc
push dword [esp + 0x28]
push edi
call fcn.00464130
mov ecx, dword [ebp + 0x44]
add esp, 0x14
mov al, byte [esp + 0x2b]
cmp al, byte [ecx + 0x6b]
je 0x462ad3
mov esi, dword [esp + 0x18]
cmp esi, 0x2710
jg 0x462acc
push dword [esp + 0x30]
inc esi
mov dword [esp + 0x1c], esi
call fcn.00475370
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4629e0
test esi, esi
mov eax, str.Incorrect_passphrase
mov ecx, str.Passphrase_required_for_this_entry
cmovle eax, ecx
push eax
push 0xffffffffffffffff
push dword [esp + 0x38]
call fcn.0046c030
add esp, 0xc
mov eax, 0xffffffe7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.Too_many_incorrect_passphrases
jmp 0x462ab1
mov ebx, dword [esp + 0x30]
push 0
push 0xc
push ebx
call fcn.00469760
mov eax, dword [ebp + 0x44]
add esp, 0xc
mov byte [ebp + 0x1e40], 1
test byte [eax + 0x66], 8
jne 0x462afc
add dword [ebp + 0x48], 0xfffffff4
adc dword [ebp + 0x4c], 0xffffffff
add dword [ebp + 0x50], 0xc
push ebx
adc dword [ebp + 0x54], 0
mov dword [ebp + 0x1e2c], 0
call fcn.004642d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x464130
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x10], esi
cmovb esi, dword [esp + 0x10]
test esi, esi
je 0x4641be
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
sub ebp, ebx
mov eax, dword [edi + 8]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
lea eax, [esp + 0x24]
push 1
push eax
shr ecx, 8
xor cl, byte [ebx + ebp]
mov byte [ebx], cl
mov eax, dword [edi]
not eax
mov byte [esp + 0x2c], cl
push eax
call fcn.0045d260
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x2c], al
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.0045d260
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x464153
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x46c250
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
call esi
test eax, eax
jne 0x46c296
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x46c28e
push 8
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x46c296
mov eax, 0xffffffe7
pop esi
pop ecx
ret
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor ecx, ecx
mov eax, 0xffffffe7
test esi, esi
pop esi
cmovne eax, ecx
pop ecx
ret
Function at 0x471cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x14]
test ebp, 0xffff7fff
jne 0x471d8b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x471d2a
call ebx
cmp eax, 3
jne 0x471d11
push edi
call fcn.004720b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x471d05
call fcn.0041e80b
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x471d2a
call ebx
push eax
call fcn.00471bf0
push esi
call fcn.005b5cea
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x471d83
push 0
push 0x2000001
push 3
push 0
push 0
push 0
test esi, esi
je 0x471d4a
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x471d51
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call fcn.005b5cea
add esp, 4
cmp edi, 0xffffffff
jne 0x471d73
call ebx
push eax
call fcn.00471bf0
add esp, 4
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push edi
call fcn.0041ee7c
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jne 0x471e1f
push dword [esp + 0x1c]
push ebp
push edi
call fcn.005da39c
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x471ea6
call fcn.0041e80b
cmp dword [eax], 0xd
jne 0x471dfe
test ebp, 0x100
je 0x471dfe
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x471dd4
call ebx
push eax
call fcn.00471bf0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x471deb
call fcn.0041e80b
pop edi
pop esi
pop ebp
mov dword [eax], 0x15
or eax, 0xffffffff
pop ebx
ret
call fcn.0041e80b
pop edi
pop esi
pop ebp
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
ret
call fcn.0041e80b
cmp dword [eax], 2
jne 0x471ea6
push edi
call fcn.004720b0
mov esi, eax
add esp, 4
test esi, esi
je 0x471cf2
push dword [esp + 0x1c]
push ebp
push esi
call fcn.005da442
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x471e96
call fcn.0041e80b
cmp dword [eax], 0xd
jne 0x471e96
test ebp, 0x100
je 0x471e96
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x471e6c
call ebx
push eax
call fcn.00471bf0
add esp, 4
push esi
call fcn.005b5cea
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x471e8b
call fcn.0041e80b
push esi
mov dword [eax], 0x15
call fcn.005b5cea
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.0041e80b
mov dword [eax], 0xd
push esi
call fcn.005b5cea
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x471eb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x471ec7
call fcn.0041e80b
mov dword [eax], 9
or eax, 0xffffffff
ret
cmp dword [esp + 0xc], 0
je 0x471f38
push eax
call fcn.0041ee12
add esp, 4
lea ecx, [esp + 4]
push 0
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x471f33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x471f0d
call fcn.0041e80b
mov dword [eax], 0xb
or eax, 0xffffffff
ret
cmp eax, 0x6d
je 0x471f38
cmp eax, 5
jne 0x471f26
call fcn.0041e80b
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.00471bf0
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret
xor eax, eax
ret

Function at 0x4722c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x4722d7
call fcn.0041e80b
mov dword [eax], 9
or eax, 0xffffffff
ret
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call fcn.0041ee12
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x472321
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x472314
call fcn.0041e80b
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.00471bf0
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

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

Disassembly:
cmp byte [0x64d56c], 0
push esi
push edi
jne 0x49e7ac
mov byte [0x64d56c], 1
xor esi, esi
mov ecx, esi
mov eax, esi
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test dl, 1
cmove eax, ecx
mov dword [esi*4 + 0x64e998], eax
inc esi
cmp esi, 0x100
jb 0x49e708
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
not eax
test edi, edi
je 0x49e7da
mov esi, dword [esp + 0xc]
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x64e998]
sub edi, 1
jne 0x49e7c0
pop edi
not eax
pop esi
ret
Function at 0x49fce0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x64dd70], 0
push ebx
push esi
push edi
jne 0x49fdf7
mov byte [0x64dd70], 1
xor esi, esi
nop dword [eax]
xor eax, eax
mov edx, esi
shrd edx, eax, 1
mov ecx, esi
and ecx, 1
shr eax, 1
or ecx, 0
je 0x49fd1f
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x49fd3a
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov edx, ecx
and ecx, 1
shrd edx, eax, 1
shr eax, 1
or ecx, 0
je 0x49fd55
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x49fd70
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov edx, ecx
and ecx, 1
shrd edx, eax, 1
shr eax, 1
or ecx, 0
je 0x49fd8b
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x49fda6
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov edx, ecx
and ecx, 1
shrd edx, eax, 1
shr eax, 1
or ecx, 0
je 0x49fdc1
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
and edx, 1
shrd ecx, eax, 1
shr eax, 1
or edx, 0
je 0x49fddc
xor ecx, 0xd7870f42
xor eax, 0xc96c5795
mov dword [esi*8 + 0x64d570], ecx
mov dword [esi*8 + 0x64d574], eax
inc esi
cmp esi, 0x100
jb 0x49fd00
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
not ebx
mov edi, dword [esp + 0x14]
not edx
test edi, edi
je 0x49fe35
mov esi, dword [esp + 0x10]
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
shrd ebx, edx, 8
xor ecx, eax
shr edx, 8
xor ebx, dword [ecx*8 + 0x64d570]
xor edx, dword [ecx*8 + 0x64d574]
sub edi, 1
jne 0x49fe10
pop edi
not ebx
not edx
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4b7890
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4b78b0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4b78b0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4b78b0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]