joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dd650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c5244]
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.00494100
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x4dd6e3
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4dd6a3
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 0x4dd6c1
call fcn.0042f8b0
mov esi, eax
test esi, esi
js 0x4dd6dc
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4dd6da
call fcn.0042f8b0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x4dd6e5
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x4dd6e5
xor esi, esi
test edi, edi
je 0x4dd6f0
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.004da3bd
mov esp, ebp
pop ebp
ret
Function at 0x4df150
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5670f6
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5c5244]
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 0x4df23d
test edi, edi
je 0x4df269
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x4df295
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x4df2c1
cmp byte [ecx + 0x10], 0
je 0x4df2ed
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 0x4df319
jmp 0x4df215
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.004da3bd
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.004dea60
push 0x5be220
lea eax, [ebp - 0xc0]
push eax
call fcn.004f29f4
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0xcc]
push eax
call fcn.004f29f4
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.004dea60
push 0x5be220
lea eax, [ebp - 0xd8]
push eax
call fcn.004f29f4
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0xe4]
push eax
call fcn.004f29f4
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0xf0]
push eax
call fcn.004f29f4
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004e0590
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004de700
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.004de470
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004dfd60
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004de470
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004de470
add esp, 8
mov ecx, eax
push 0x4e05b0
call fcn.004deea0
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.004debe0
push 0x584dc0
push eax
call fcn.004de470
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004e0760
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00420780
push eax
lea ecx, [ebp - 0xfc]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0xfc]
push eax
call fcn.004f29f4
push 0
push 0
call fcn.004f29f4
int3
Function at 0x4df770
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567176
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x5c5244]
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 0x4df859
test esi, esi
je 0x4df885
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x4df8b1
cmp byte [ecx + 0x10], 0
je 0x4df8dd
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 0x4df909
jmp 0x4df831
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.004da3bd
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.004dea60
push 0x5be220
lea eax, [ebp - 0xc0]
push eax
call fcn.004f29f4
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0xcc]
push eax
call fcn.004f29f4
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0xd8]
push eax
call fcn.004f29f4
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0xe4]
push eax
call fcn.004f29f4
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004e0590
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004de700
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.004de470
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004dfd60
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004de470
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004de470
add esp, 8
mov ecx, eax
push 0x4e05b0
call fcn.004deea0
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.004debe0
push 0x584dc0
push eax
call fcn.004de470
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004e0760
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00420780
push eax
lea ecx, [ebp - 0xf0]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0xf0]
push eax
call fcn.004f29f4
push 0
push 0
call fcn.004f29f4
int3
Function at 0x4e0170
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567218
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5c5244]
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 0x4e01ca
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 0x4e02f9
test ecx, ecx
je 0x4e0314
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x4e01f9
cmp esi, 0x18
je 0x4e01f9
cmp esi, 0x20
jne 0x4e032f
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x4e0240
cmp esi, 0x18
je 0x4e0232
cmp esi, 0x20
jne 0x4e034a
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x4e024c
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x4e024c
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.004e0820
add esp, 0x10
test eax, eax
jne 0x4e0365
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 0x4e0386
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 0x4e03a7
jmp 0x4e02c3
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 0x4e02d0
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.004da3bd
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0x58]
push eax
call fcn.004f29f4
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0x64]
push eax
call fcn.004f29f4
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0x70]
push eax
call fcn.004f29f4
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0x7c]
push eax
call fcn.004f29f4
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0x88]
push eax
call fcn.004f29f4
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0x94]
push eax
call fcn.004f29f4
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.004dea60
push 0x5be220
lea eax, [ebp - 0xa0]
push eax
call fcn.004f29f4
push 0
push 0
call fcn.004f29f4
int3
Function at 0x4e05d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567268
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5c5244]
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.004d9f7d
mov edi, eax
add esp, 4
test edi, edi
je 0x4e0674
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004b3616
add esp, 4
mov dword [edi + 4], eax
jmp 0x4e0676
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.0045c860
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4e06d7
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4e06d7
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x4e06fa
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 0x4e071d
cmp byte [ebp + 0xc], 0
je 0x4e0709
push esi
call fcn.004b4173
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4e0729
mov esi, 0x56cb4c
jmp 0x4e0739
test cl, 2
mov esi, 0x56cb64
mov eax, 0x56cb7c
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0041f480
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.0041f0c0
push 0x5c0098
lea eax, [ebp - 0x30]
push eax
call fcn.004f29f4
int3
Function at 0x4e27a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x218], esi
test ebx, ebx
je 0x4e2970
cmp dword [ebx], 2
jne 0x4e2970
cmp dword [esi + 0x14], 8
jb 0x4e27e6
mov esi, dword [esi]
mov dword [ebp - 0x218], esi
cmp dword [ebx + 0x10], 0
je 0x4e2800
xor esi, esi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4e27ec
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e281b
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x4e27ec
mov ecx, dword [ebx + 0x20]
mov eax, 0x532ae21d
push edi
mov edi, dword [ebx + 0x1c]
mov esi, 1
sub ecx, edi
mov dword [ebp - 0x210], 0
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4e295d
mov dword [ebp - 0x214], 0
nop dword [eax]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004f39e0
mov eax, dword [ebp - 0x214]
add esp, 0xc
add eax, 4
add eax, edi
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e28a0
sub eax, edx
xor ecx, ecx
sar eax, 1
je 0x4e28de
lea ebx, [ecx + 0x5c]
nop word [eax + eax]
cmp word [ebp + ecx*2 - 0x20c], 0x2f
jne 0x4e28d3
mov word [ebp + ecx*2 - 0x20c], bx
inc ecx
cmp ecx, eax
jb 0x4e28c0
mov ebx, dword [ebp - 0x21c]
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp - 0x214]
mov eax, dword [eax + edi]
test byte [eax + 0x26], 0x10
je 0x4e2901
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
jmp 0x4e2926
test esi, esi
je 0x4e2924
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push dword [ebp - 0x210]
call fcn.004e2b80
test eax, eax
je 0x4e2924
mov esi, 1
jmp 0x4e2926
xor esi, esi
mov ecx, dword [ebx + 0x20]
add edi, 0x314
inc dword [ebp - 0x210]
mov eax, 0x532ae21d
mov dword [ebp - 0x214], edi
mov edi, dword [ebx + 0x1c]
sub ecx, edi
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [ebp - 0x210], ecx
jb 0x4e2860
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
Function at 0x4e2e00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
jne 0x4e2fe5
test edi, edi
je 0x4e2fe5
mov ecx, dword [esi + 0x20]
mov eax, 0x532ae21d
sub ecx, dword [esi + 0x1c]
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x4e2fe5
imul eax, ebx, 0x314
mov ebx, dword [esi + 0x1c]
mov ebx, dword [eax + ebx]
test byte [ebx + 0x26], 0x10
jne 0x4e2fe5
mov eax, dword [ebp + 0x10]
cmp dword [ebx + 0x18], eax
ja 0x4e2fe5
mov esi, dword [esi + 0xc]
mov edx, dword [ebx + 0x2a]
movzx eax, word [edx + esi + 0x1c]
movzx ecx, word [edx + esi + 0x1a]
add eax, edx
add ecx, eax
lea eax, [esi + 0x1e]
add eax, ecx
movzx ecx, word [ebx + 0xa]
mov dword [ebp - 8], eax
test cx, cx
jne 0x4e2ffa
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x4e2eed
test eax, eax
je 0x4e2eb9
cmp ecx, esi
jb 0x4e2eb9
push esi
push eax
push edi
call fcn.004f2ee0
add esp, 0xc
jmp 0x4e2eed
push ecx
push 0
push edi
call fcn.004f39e0
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x4e2ed8
call fcn.004fe5be
mov dword [eax], 0x16
jmp 0x4e2ee8
cmp dword [ebp - 0xc], esi
jae 0x4e2eed
call fcn.004fe5be
mov dword [eax], 0x22
call fcn.004fe498
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x4e2fde
or eax, 0xffffffff
cmp edx, 8
jb 0x4e2fb6
mov esi, edx
shr esi, 3
nop dword [eax]
movzx ecx, byte [edi]
sub edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5852c8]
movzx ecx, byte [edi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5852c8]
movzx ecx, byte [edi + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5852c8]
movzx ecx, byte [edi + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5852c8]
movzx ecx, byte [edi + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5852c8]
movzx ecx, byte [edi + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5852c8]
movzx ecx, byte [edi + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5852c8]
movzx ecx, byte [edi + 7]
add edi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5852c8]
sub esi, 1
jne 0x4e2f10
test edx, edx
je 0x4e2fda
nop word [eax + eax]
movzx ecx, byte [edi]
lea edi, [edi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5852c8]
sub edx, 1
jne 0x4e2fc0
not eax
jmp 0x4e2fe0
xor eax, eax
cmp eax, dword [ebx + 0x10]
je 0x4e3026
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 8
jne 0x4e2fe5
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp + 0x10]
push edi
push dword [ebx + 0x14]
push eax
call fcn.004e90e0
add esp, 0x14
test eax, eax
je 0x4e2fe5
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x10]
jne 0x4e2fe5
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da3bd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e32d0
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5673df
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5c5244]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x58
call fcn.004d9f7d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4e3327
push 0x58
push 0
push esi
call fcn.004f39e0
add esp, 0xc
mov ecx, esi
call fcn.004e0f50
mov esi, eax
jmp 0x4e3329
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x14], 8
jb 0x4e333b
mov edi, dword [edi]
test edi, edi
je 0x4e33d8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e33d8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4e33d8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x16
jb 0x4e33d8
push 0
push 0
push 0
push 2
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [esi + 4], 0
mov dword [esi + 8], eax
je 0x4e33d8
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4e33d8
push dword [esi + 0x14]
mov ecx, esi
push eax
call fcn.004e21b0
test eax, eax
je 0x4e33d8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4e33ee
mov ecx, esi
call fcn.004e1070
push 0x58
push esi
call fcn.004d9fad
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e4d10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
test edx, edx
je 0x4e4e0f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4e4e0f
or eax, 0xffffffff
cmp esi, 8
jb 0x4e4de7
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x586b40]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x586b40]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x586b40]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x586b40]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x586b40]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x586b40]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x586b40]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x586b40]
sub edi, 1
jne 0x4e4d40
pop edi
test esi, esi
je 0x4e4e0a
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x586b40]
sub esi, 1
jne 0x4e4df0
not eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4f24c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x4f262c
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
test esi, esi
jle 0x4f252f
lea eax, [ebp - 0x20c]
push eax
call edi
sub esi, 1
jne 0x4f2521
mov eax, dword [0x5cf6a8]
mov esi, dword [eax]
cmp esi, eax
je 0x4f262c
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0x14]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x10]
test eax, eax
jne 0x4f2653
cmp ecx, 8
jne 0x4f25e4
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004f39e0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0x1a
push eax
push 0
call edi
push str.MasterPDFData
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4f263f
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4f260a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4f2606
cmp esi, dword [eax + 8]
jne 0x4f2606
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4f25f6
mov esi, eax
jmp 0x4f2620
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4f2620
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4f2614
cmp esi, dword [0x5cf6a8]
jne 0x4f2550
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da3bd
mov esp, ebp
pop ebp
ret

Function at 0x535285
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00534e8a

Function at 0x535290
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053500b

Function at 0x53c9aa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053c184

Function at 0x53c9b5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053c3bf

Function at 0x53ce48
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053cbcf