joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5153b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5c3484]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0042b550
mov edi, eax
add esp, 4
test edi, edi
je 0x515453
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0051baed
add esp, 4
mov dword [edi + 4], eax
jmp 0x515455
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00478ac0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x5154b5
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x5154b5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x5154d9
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x5154fb
cmp byte [ebp + 0xc], 0
je 0x5154e8
push esi
call fcn.0051ed83
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x515507
mov esi, str.ios_base::badbit_set
jmp 0x515517
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00484360
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00479b60
push 0x5aebf0
lea eax, [ebp - 0x30]
push eax
call fcn.004c0ed5
int3
Function at 0x517d50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.00518360
add esp, 8
test al, al
je 0x517d75
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x517d75
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x518360
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x519810
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x51983b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x51983b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x536730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c3484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00535460
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x5367c3
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x536783
mov esi, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5367a1
call fcn.004274e0
mov esi, eax
test esi, esi
js 0x5367bc
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x5367ba
call fcn.004274e0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x5367c5
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x5367c5
xor esi, esi
test edi, edi
je 0x5367d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0045fbca
mov esp, ebp
pop ebp
ret
Function at 0x538530
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574d66
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5c3484]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ecx + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x53861d
test edi, edi
je 0x538649
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x538675
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x5386a1
cmp byte [ecx + 0x10], 0
je 0x5386cd
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push eax
push edi
push 0
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, eax
test ecx, ecx
je 0x5386f9
jmp 0x5385f5
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045fbca
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xc0]
push eax
call fcn.004c0ed5
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xcc]
push eax
call fcn.004c0ed5
push 0x80090005
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Data_size_is_not_a_multple_of_block_size
lea ecx, [ebp - 0xd8]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xd8]
push eax
call fcn.004c0ed5
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xe4]
push eax
call fcn.004c0ed5
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xf0]
push eax
call fcn.004c0ed5
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.00539970
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004a2050
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.004721b0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.00539140
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004721b0
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004721b0
add esp, 8
mov ecx, eax
push 0x539990
call fcn.00538350
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.00538090
push 0x59ab40
push eax
call fcn.004721b0
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004a9860
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00446d9e
push eax
lea ecx, [ebp - 0xfc]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xfc]
push eax
call fcn.004c0ed5
push 0
push 0
call fcn.004c0ed5
int3
Function at 0x538b50
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574de6
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x5c3484]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ecx + 8]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test edx, edx
je 0x538c39
test esi, esi
je 0x538c65
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x538c91
cmp byte [ecx + 0x10], 0
je 0x538cbd
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push esi
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, eax
test ecx, ecx
je 0x538ce9
jmp 0x538c11
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045fbca
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xc0]
push eax
call fcn.004c0ed5
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xcc]
push eax
call fcn.004c0ed5
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xd8]
push eax
call fcn.004c0ed5
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xe4]
push eax
call fcn.004c0ed5
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.00539970
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004a2050
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.004721b0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.00539140
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004721b0
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004721b0
add esp, 8
mov ecx, eax
push 0x539990
call fcn.00538350
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.00538090
push 0x59ab40
push eax
call fcn.004721b0
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004a9860
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00446d9e
push eax
lea ecx, [ebp - 0xf0]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xf0]
push eax
call fcn.004c0ed5
push 0
push 0
call fcn.004c0ed5
int3
Function at 0x539550
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574e88
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5c3484]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x5395aa
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], 0
mov byte [edi + 0x10], 0
cmp dword [edi + 4], 0
mov dword [ebp - 4], 0
je 0x5396d9
test ecx, ecx
je 0x5396f4
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x5395d9
cmp esi, 0x18
je 0x5395d9
cmp esi, 0x20
jne 0x53970f
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004c14d0
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x539620
cmp esi, 0x18
je 0x539612
cmp esi, 0x20
jne 0x53972a
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x53962c
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x53962c
mov dword [ebp - 0x40], 0x660e
mov eax, 0x10
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.005399b0
add esp, 0x10
test eax, eax
jne 0x539745
push ebx
push 0
push 0
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x539766
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x539787
jmp 0x5396a3
mov al, 1
lea ecx, [ebp - 0x44]
mov edx, 4
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x5396b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045fbca
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0x58]
push eax
call fcn.004c0ed5
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0x64]
push eax
call fcn.004c0ed5
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0x70]
push eax
call fcn.004c0ed5
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0x7c]
push eax
call fcn.004c0ed5
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0x88]
push eax
call fcn.004c0ed5
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0x94]
push eax
call fcn.004c0ed5
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.00537f40
push 0x5bbb80
lea eax, [ebp - 0xa0]
push eax
call fcn.004c0ed5
push 0
push 0
call fcn.004c0ed5
int3
Function at 0x540bc4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp fcn.00431219
Function at 0x408932
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ebx
call fcn.0040895a
sub edx, ecx
xor dword [eax], ebx
add ecx, edx
sub ecx, 0xab653fe3
inc eax
or edx, ecx
sub edx, 0x6c75bb5e
cmp eax, esi
jne fcn.00408932
ret
Function at 0x402f70
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, 0xf8
rol esi, 0xb5
imul ebx
inc edi
add esi, 0x83
or esi, 0x32
dec edi
sub eax, 0xa3
not eax
mov edx, 0x41
dec eax
rcr edi, 0xd3
not eax
neg ebx
sbb edx, 0x5e
rol esi, 0xcd
inc edx
imul edx
neg eax
dec edx
sub eax, 0x37
rol ebx, 0x5a
not eax
rcr esi, 0x79
neg edx
sub esi, 0x5b
sub eax, 0x7b
bswap edx
add esi, 0x3f
bswap edi
bswap esi
rcl ebx, 0x17
inc esi
not edx
rcr ebx, 4
neg eax
dec eax
sbb eax, 0x29
not esi
imul ebx
inc esi
dec edi
rol esi, 0x71
imul edi
rol esi, 0xa0
rcl edx, 0x59
mov edi, 0xb2
ror eax, 0xcc
inc ebx
mov eax, 0xc0
xor ecx, ecx
xor edi, edi
imul ebx
neg ebx
dec esi
or ebx, 0x11
dec esi
sbb edi, 0x3a
sub edx, 0x98
bswap edi
or edx, 0x75
bswap ebx
sbb edi, 0xf4
rcl edx, 0xc5
rcl esi, 0x1f
not esi
not edx
rol eax, 0x4c
inc ebx
ror edi, 0x4f
mov eax, 0x7b
and edi, 0xba
not eax
rcr edi, 0x4a
or edi, 0x38
sbb eax, 0xe1
rol edx, 0x88
sub edx, 0x15
dec eax
ror ebx, 0x96
mov edi, 0x29
rol esi, 0xfb
bswap ebx
and ebx, 0xa4
rcr edi, 0xc7
not ebx
and ebx, 0x31
rcr esi, 0x56
rcl edi, 0x74
dec ebx
dec eax
dec esi
bswap esi
neg ebx
sub edi, 0xd1
neg eax
rcr esi, 0xfa
sub edx, 0x65
imul edx
sub edx, 0xee
rcl edi, 0x1b
add eax, 0xd9
mov ecx, dword [ebp + 0xc]
neg edi
mov edi, 0x7a
rol eax, 0x2c
dec edx
rcr esi, 0x53
imul esi
bswap edx
sub esi, 0xfe
sub edx, 0xbd
add ebx, 0xdd
neg esi
inc edi
mov esi, 0x99
sbb eax, 0x3f
or esi, 0xdf
not ebx
not edx
and eax, 0xe1
inc esi
ror eax, 0xd
sub eax, 0x88
inc edi
mov edx, 0xd3
bswap edx
inc edx
imul edx
neg eax
sub esi, 0xa8
neg ebx
mov edi, 0xde
dec eax
mov edx, 0xc1
and edi, 0x17
rcr ebx, 0x82
imul esi
rcl eax, 0x5f
rcl edi, 0xac
not ebx
imul ebx
inc eax
add edx, 0x93
sbb ebx, 0x8c
rcr esi, 0x1f
imul edi
bswap edx
neg edx
ror eax, 2
imul esi
inc ebx
mov eax, 0x9c
mov edi, dword [ebp + 8]
mov eax, esi
xor eax, eax
mov esi, ebx
mov ebx, ebx
xor eax, ebx
mov ebx, esi
xor eax, ebx
mov eax, ebx
mov esi, esi
xor eax, eax
xor ebx, esi
mov ebx, ebx
not byte [edi]
mov ebx, esi
xor esi, eax
mov eax, esi
mov ebx, eax
xor esi, ebx
mov esi, esi
xor esi, esi
xor esi, eax
xor ebx, eax
sub byte [edi], 0x36
xor esi, esi
xor ebx, esi
xor eax, esi
xor ebx, ebx
mov esi, esi
mov esi, eax
mov eax, eax
mov ebx, esi
xor eax, eax
add byte [edi], 0x87
xor eax, eax
xor esi, esi
mov eax, eax
mov eax, esi
mov esi, eax
xor esi, esi
mov esi, ebx
mov ebx, esi
mov esi, eax
imul byte [edi]
inc edi
loop 0x40313a
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4250d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424f41

Function at 0x4254ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042cbb0
mov eax, dword [0x49f8d8]
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.0041f631
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42550c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x425668
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042c9e0
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 + 0x4a1038]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004264c1
mov ecx, dword [esi*4 + 0x4a1038]
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 0x425661
cmp eax, dword [edi + ecx + 0x24]
jne 0x425661
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 0x425661
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004264c1
add esp, 0x14
test edx, edx
jl 0x425661
jg 0x4255d7
test eax, eax
jb 0x425661
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x425661
jl 0x4255f1
cmp dword [ebp - 0x1008], eax
ja 0x425661
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42560f
test ebx, ebx
je 0x425648
cmp ecx, edi
jae 0x425648
mov al, byte [ecx]
cmp al, 0xd
jne 0x425629
lea eax, [edi - 1]
cmp ecx, eax
jae 0x425635
cmp byte [ecx + 1], 0xa
jne 0x425635
inc ecx
jmp 0x425635
movzx eax, al
movsx eax, byte [eax + 0x4a0078]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42560f
cmp edx, ebx
jne 0x42560f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x425666
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040f206
leave
ret
Function at 0x42595f
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 + 0x4a1038]
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 0x42599f
cmp byte [ebx], 0xa
jne 0x42599f
or byte [eax + edi + 0x28], 4
jmp 0x4259a4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x425aa2
mov al, byte [edx]
cmp al, 0x1a
je 0x425a84
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4259d3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4259f8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x425a02
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 0x4259b5
jmp 0x425aa2
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 0x425a7f
cmp dword [ebp - 0xc], 0
je 0x425a7f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4a1038]
test byte [eax + edi + 0x28], 0x48
je 0x425a59
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425a44
mov byte [esi], dl
jmp 0x425a55
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4a1038]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425aa2
cmp byte [ebp - 1], 0xa
jne 0x425a68
cmp esi, ebx
jne 0x425a68
mov byte [esi], 0xa
jmp 0x425aa1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004264df
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425aa2
mov byte [esi], 0xd
jmp 0x425aa1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4a1038]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425a9e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425aa2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret