joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ecb20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0053c780
push ebx
push esi
mov ebx, edx
mov esi, ecx
call fcn.004ec8f6
mov ecx, 0x1000
cmp eax, ecx
jbe 0x4ecb5f
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2ncrypto_s2n_rsa.c_line_227
mov dword [eax + 8], 0x18000007
or eax, 0xffffffff
jmp 0x4ecbe6
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 4], ecx
jbe 0x4ecb80
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2ncrypto_s2n_rsa.c_line_231
mov dword [eax + 8], 0x18000007
jmp 0x4ecbde
push 1
push dword [esi]
lea eax, [ebp - 0x1004]
push eax
push dword [ebx]
push dword [ebx + 4]
call fcn.00623540
mov esi, dword [edi + 4]
add esp, 0x14
mov edx, dword [edi]
cmp eax, esi
setne ch
dec ch
test esi, esi
je 0x4ecbc4
lea ebx, [ebp - 0x1004]
sub ebx, edx
mov cl, byte [ebx + edx]
xor cl, byte [edx]
and cl, ch
xor cl, byte [edx]
mov byte [edx], cl
inc edx
sub esi, 1
jne 0x4ecbb0
mov esi, dword [edi + 4]
cmp eax, esi
je 0x4ecbe3
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2ncrypto_s2n_rsa.c_line_237
mov dword [eax + 8], 0x1800001d
or eax, 0xffffffff
jmp 0x4ecbe5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ef342
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, edx
lea edx, [ebp - 1]
push esi
mov esi, ecx
mov ecx, ebx
push edi
call fcn.004f0530
test eax, eax
js 0x4ef4f9
push dword [ebp + 8]
mov edi, dword [esi + 0x370]
push ebx
push esi
mov dword [ebp - 0x14], edi
call dword [edi + 4]
add esp, 0xc
test eax, eax
js 0x4ef4f9
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push dword [eax]
push esi
call dword [edi + 8]
add esp, 0xc
test eax, eax
js 0x4ef4f9
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
push dword [eax]
push esi
call dword [edi + 8]
add esp, 0xc
test eax, eax
js 0x4ef4f9
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4ef3c6
push dword [ebx + 4]
push dword [ebx]
push esi
call dword [edi + 8]
add esp, 0xc
test eax, eax
js 0x4ef4f9
movzx eax, byte [ebp - 1]
lea ecx, [esi + 0x374]
push eax
push ecx
push esi
mov dword [ebp - 8], eax
call dword [edi + 0xc]
add esp, 0xc
test eax, eax
js 0x4ef4f9
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x4ef4ec
push esi
call dword [edi + 0x10]
pop ecx
test eax, eax
js 0x4ef4f9
push dword [ebp - 8]
lea eax, [esi + 0x374]
push eax
push esi
call dword [edi + 8]
add esp, 0xc
test eax, eax
js 0x4ef4f9
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push dword [eax]
push esi
call dword [edi + 8]
add esp, 0xc
test eax, eax
js 0x4ef4f9
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
push dword [eax]
push esi
call dword [edi + 8]
add esp, 0xc
test eax, eax
js 0x4ef4f9
test ebx, ebx
je 0x4ef466
push dword [ebx + 4]
push dword [ebx]
push esi
call dword [edi + 8]
add esp, 0xc
test eax, eax
js 0x4ef4f9
push dword [ebp - 8]
lea eax, [esi + 0x3b4]
push eax
push esi
call dword [edi + 0xc]
add esp, 0xc
test eax, eax
js 0x4ef4f9
mov eax, dword [ebp - 8]
mov ecx, eax
cmp dword [ebp - 0xc], eax
cmovb ecx, dword [ebp - 0xc]
xor edx, edx
test ecx, ecx
je 0x4ef4af
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov al, byte [esi + edx + 0x3b4]
xor byte [edi], al
inc edi
dec ebx
inc edx
cmp edx, ecx
jb 0x4ef493
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x14]
push esi
call dword [edi + 0x10]
pop ecx
test eax, eax
js 0x4ef4f9
push dword [ebp - 8]
lea eax, [esi + 0x374]
push eax
push esi
call dword [edi + 8]
add esp, 0xc
test eax, eax
js 0x4ef4f9
push dword [ebp - 8]
lea eax, [esi + 0x374]
push eax
push esi
call dword [edi + 0xc]
add esp, 0xc
test eax, eax
js 0x4ef4f9
cmp dword [ebp - 0xc], 0
jne 0x4ef3fa
push esi
call dword [edi + 0x14]
pop ecx
test eax, eax
js 0x4ef4f9
xor eax, eax
jmp 0x4ef4fc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ef636
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edx
lea eax, [ebx + 0x10]
mov dword [ebp - 0x34], 0x36363636
push 4
mov ecx, esi
mov dword [ebp - 0x30], 0x36363636
mov dword [ebp - 0x2c], 0x36363636
mov dword [ebp - 0x28], 0x36363636
mov dword [ebp - 0x24], 0x36363636
mov dword [ebp - 0x20], 0x36363636
mov dword [ebp - 0x1c], 0x36363636
mov dword [ebp - 0x18], 0x36363636
mov dword [ebp - 0x14], 0x36363636
mov dword [ebp - 0x10], 0x36363636
mov dword [ebp - 0xc], 0x36363636
mov dword [ebp - 8], 0x36363636
mov dword [ebp - 0x64], 0x5c5c5c5c
mov dword [ebp - 0x60], 0x5c5c5c5c
mov dword [ebp - 0x5c], 0x5c5c5c5c
mov dword [ebp - 0x58], 0x5c5c5c5c
mov dword [ebp - 0x54], 0x5c5c5c5c
mov dword [ebp - 0x50], 0x5c5c5c5c
mov dword [ebp - 0x4c], 0x5c5c5c5c
mov dword [ebp - 0x48], 0x5c5c5c5c
mov dword [ebp - 0x44], 0x5c5c5c5c
mov dword [ebp - 0x40], 0x5c5c5c5c
mov dword [ebp - 0x3c], 0x5c5c5c5c
mov dword [ebp - 0x38], 0x5c5c5c5c
mov dword [ebp + 0x10], eax
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
add edi, 0x8e0
mov ecx, esi
push 0x30
mov edx, edi
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
push 0x30
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
push 0x10
mov edx, ebx
mov ecx, esi
call fcn.004f0278
pop ecx
test eax, eax
js 0x4ef863
mov ecx, esi
call fcn.004f041c
test eax, eax
js 0x4ef863
push 0x30
mov edx, edi
mov ecx, esi
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
push 0x30
lea edx, [ebp - 0x64]
mov ecx, esi
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
push 0x10
mov edx, ebx
mov ecx, esi
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
push 0x10
mov edx, ebx
mov ecx, esi
call fcn.004f0278
pop ecx
test eax, eax
js 0x4ef863
mov ecx, esi
call fcn.004f041c
test eax, eax
js 0x4ef863
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov edx, dword [ebp - 4]
push 4
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
push 0x30
mov edx, edi
mov ecx, esi
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
push 0x28
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
mov ebx, dword [ebp + 0x10]
mov ecx, esi
push 0x14
mov edx, ebx
call fcn.004f0278
pop ecx
test eax, eax
js 0x4ef863
mov ecx, esi
call fcn.004f041c
test eax, eax
js 0x4ef863
push 0x30
mov edx, edi
mov ecx, esi
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
push 0x28
lea edx, [ebp - 0x64]
mov ecx, esi
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
push 0x14
mov edx, ebx
mov ecx, esi
call fcn.004f017c
pop ecx
test eax, eax
js 0x4ef863
push 0x14
mov edx, ebx
mov ecx, esi
call fcn.004f0278
pop ecx
test eax, eax
js 0x4ef863
mov ecx, esi
call fcn.004f041c
test eax, eax
js 0x4ef863
xor eax, eax
jmp 0x4ef866
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f36b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
lea eax, [ebp - 0x30]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], eax
push 0x20
pop eax
mov esi, ecx
mov dword [ebp - 0xc], eax
cmp dword [edi + 4], eax
je 0x4f36f5
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2ncrypto_s2n_drbg.c_line_69
mov dword [eax + 8], 0x18000009
jmp 0x4f377e
lea edx, [ebp - 0x10]
call fcn.004f357e
test eax, eax
js 0x4f377e
mov ebx, dword [edi + 4]
xor edx, edx
test ebx, ebx
je 0x4f3720
mov edi, dword [edi]
lea eax, [ebp - 0x30]
sub edi, eax
lea ecx, [ebp - 0x30]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, ebx
jb 0x4f3711
push 0
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.006321f0
push eax
push dword [esi + 8]
call fcn.0062a710
add esp, 0x14
cmp eax, 1
je 0x4f3756
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2ncrypto_s2n_drbg.c_line_80
mov dword [eax + 8], 0x1800001e
jmp 0x4f377e
lea edi, [esi + 0xc]
test edi, edi
je 0x4f3768
lea esi, [ebp - 0x20]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x4f3781
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 8], 0x18000008
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2ncrypto_s2n_drbg.c_line_83
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4f3786
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
lea eax, [ebp - 0x30]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], eax
push 0x20
pop eax
mov esi, ecx
mov dword [ebp - 0xc], eax
cmp dword [edi + 4], eax
jbe 0x4f37ca
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.Error_encountered_in_d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_s2ncrypto_s2n_drbg.c_line_92
mov dword [eax + 8], 0x18000009
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x10]
test eax, eax
je 0x4f3811
push ecx
call eax
pop ecx
test eax, eax
js 0x4f37c2
mov ebx, dword [edi + 4]
xor edx, edx
test ebx, ebx
je 0x4f37f5
mov edi, dword [edi]
mov ecx, dword [ebp - 0x10]
mov al, byte [edi + edx]
xor byte [edx + ecx], al
inc edx
cmp edx, ebx
jb 0x4f37e7
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004f36b4
test eax, eax
js 0x4f37c2
and dword [esi], 0
and dword [esi + 4], 0
inc dword [esi + 0x20]
xor eax, eax
jmp 0x4f37c5
call fcn.004ec204
jmp 0x4f37d8
Function at 0x4f4fca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x4f4fe7
sub ecx, edx
mov al, byte [ecx + edx]
xor al, byte [edx]
or bl, al
inc edx
sub esi, 1
jne 0x4f4fda
xor eax, eax
test bl, bl
pop esi
sete al
pop ebx
pop ebp
ret

Function at 0x500880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x7ec06c]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0
mov dword [esp + 0x10], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x114]
mov edi, edx
movq qword [esp + 0x114], xmm0
push ecx
cdq
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x5008dc
mov edx, str.Failed_to_seek_to_NT_header_section
jmp 0x5009e7
push 0xf8
lea eax, [esp + 0x14]
mov dword [esp + 0x110], 0
push 0
push eax
call fcn.005530b0
add esp, 0xc
lea eax, [esp + 0x10c]
push 0
push eax
push 0xf8
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5009e2
cmp dword [esp + 0x10c], 0xf8
jne 0x5009e2
cmp dword [esp + 0x10], 0x4550
je 0x50097a
mov edx, str.Header_signature_doesnt_match_expected_value__expected:_0x4550__got:
mov ecx, esi
call fcn.0040e4fc
mov edx, eax
test edx, edx
jne 0x50094f
xor ecx, ecx
jmp 0x500956
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push dword [esp + 0x10]
call fcn.00500e20
mov edx, 0x784c10
mov ecx, eax
jmp 0x5009e9
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x5009db
cmp dword [esp + 0xac], 0
je 0x5009db
push 0
lea ecx, [esp + 0x114]
push ecx
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x5009ae
mov edx, str.Failed_to_seek_to_certificate_data_directory_in_file
jmp 0x5009e7
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xa8]
mov dword [ebx], eax
mov eax, dword [esp + 0xac]
mov dword [ecx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0053bd3e
mov esp, ebp
pop ebp
ret
mov edx, str.File_does_not_contain_any_certificates
jmp 0x5009e7
mov edx, str.Failed_to_read_NT_header_from_file
mov ecx, esi
call fcn.0040e4fc
push eax
call fcn.0043b140
mov ecx, dword [esp + 0x120]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053bd3e
mov esp, ebp
pop ebp
ret
Function at 0x500a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x7ec06c]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [ebp + 8]
mov eax, edx
push edi
mov edi, dword [ebp + 0x10]
push 0
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x44]
push ecx
push 8
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], eax
push ecx
push eax
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x500bcc
mov eax, dword [esp + 0x40]
cmp eax, 8
jne 0x500bcc
mov ecx, dword [esp + 0x44]
mov edx, dword [edi]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x500ad3
push ecx
mov ecx, dword [esp + 0x18]
sub edx, eax
push eax
push edx
mov edx, str.Certificate_data_is_present__but_invalid._Executable_contents_may_have_been_modified_after_certificates_were_embedded.
call fcn.0040e4fc
push ecx
mov edx, 0x7925b8
mov ecx, eax
call fcn.0040e4fc
add esp, 4
mov ecx, eax
call fcn.00500e20
push ecx
mov edx, str.__expected_header_size
mov ecx, eax
call fcn.0040e4fc
add esp, 4
mov ecx, eax
call fcn.00500e20
push ecx
mov edx, str.__parsed_header_size
mov ecx, eax
call fcn.0040e4fc
add esp, 4
mov ecx, eax
call fcn.00500e20
jmp 0x500bda
add eax, edx
add ecx, 0xfffffff8
add eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov ax, word [esp + 0x4a]
push ecx
mov dword [esp + 0x38], ecx
mov word [esp + 0x3c], ax
call fcn.0053b995
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edx, eax
add ecx, 0xfffffff8
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], edx
push 0
push eax
push ecx
push edx
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x500b7e
mov eax, dword [esp + 0x18]
add eax, 0xfffffff8
cmp eax, dword [esp + 0x40]
jne 0x500b7e
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x500b58
movups xmm0, xmmword [esp + 0x30]
movups xmmword [eax], xmm0
mov eax, dword [esp + 0x44]
add dword [esi + 4], 0x10
add dword [edi], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0053bd3e
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x30]
push ecx
push eax
mov ecx, esi
call fcn.00501020
mov eax, dword [esp + 0x44]
add dword [edi], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0053bd3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
mov edx, str.Failed_to_read_certificate_data_from_file_at_offset
call fcn.0040e4fc
mov edx, eax
test edx, edx
jne 0x500b96
xor ecx, ecx
jmp 0x500b9d
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
push dword [esp + 0x20]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
call fcn.00500e20
push eax
call fcn.0043b140
add esp, 4
push dword [esp + 0x3c]
call fcn.0053b990
jmp 0x500be0
mov ecx, dword [esp + 0x14]
mov edx, str.Failed_to_read_certificate_header_from_file
call fcn.0040e4fc
push eax
call fcn.0043b140
mov ecx, dword [esp + 0x50]
add esp, 4
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0053bd3e
mov esp, ebp
pop ebp
ret
Function at 0x500c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c1428
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x7ec06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebx
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x18], edi
setne byte [ebp - 0x1c]
mov dword [ebp - 4], 0
jne 0x500d1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0xc]
mov edx, str.Failed_to_open_file_for_read._file
push eax
call fcn.0040e4fc
mov edx, ebx
mov ecx, eax
call fcn.0040e4fc
mov edx, str.__error
mov ecx, eax
call fcn.0040e4fc
mov ecx, eax
call fcn.00500e20
jmp 0x500dc9
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.005530b0
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x40
lea eax, [ebp - 0x5c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x500dbc
cmp dword [ebp - 0x14], 0x40
jne 0x500dbc
mov eax, 0x5a4d
cmp word [ebp - 0x5c], ax
jne 0x500dbc
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push eax
push dword [ebp - 0x20]
mov edx, edi
mov dword [ebp - 0x14], 0
call fcn.00500880
add esp, 0xc
test al, al
je 0x500dd2
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x64], eax
nop dword [eax]
cmp eax, ebx
jae 0x500db2
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x60]
mov edx, edi
push esi
call fcn.00500a10
add esp, 0xc
test al, al
je 0x500db2
mov eax, dword [ebp - 0x64]
jmp 0x500d90
mov eax, dword [esi]
cmp eax, dword [esi + 4]
setne bl
jmp 0x500dd4
mov ecx, dword [esi + 0xc]
mov edx, str.Failed_to_read_DOS_header_in_file
call fcn.0040e4fc
push eax
call fcn.0043b140
add esp, 4
xor bl, bl
cmp byte [ebp - 0x1c], 0
je 0x500de1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053bd3e
mov esp, ebp
pop ebp
ret 4
Function at 0x50d54d
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6b9569
call fcn.006b6d3c
sub esp, 0x30
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 0xf
pop ebx
push 0xd
mov edi, ecx
mov dword [ebp - 0x10], ebx
push str.relative_path
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], 0
mov esi, edx
call fcn.00406551
and dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push esi
mov ecx, edi
call fcn.0043f89e
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x24]
call fcn.004063c5
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
push 0x10
push str.relative_path_64
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x24], 0
call fcn.00406551
lea eax, [esi + 0x18]
mov dword [ebp - 4], 1
push eax
lea edx, [ebp - 0x24]
mov ecx, edi
call fcn.0043f89e
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x24]
call fcn.004063c5
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x3c]
push 0x10
push str.launch_arguments
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x3c], 0
call fcn.00406551
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 2
push ecx
lea edx, [ebp - 0x3c]
mov ecx, edi
call fcn.0050e59a
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.004063c5
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x50fc22
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
mov eax, 0x6c2829
call fcn.006b6d3c
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.0050f894
push dword [ebp + 8]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
lea edi, [esi + 0x10]
mov word [esi + 0xc], bx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.00405c65
mov eax, dword [ebp + 8]
add edi, 0x18
mov byte [ebp - 4], 1
add eax, 0x18
mov dword [ebp - 0x1c], edi
mov ecx, edi
push eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.00405c65
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x18]
add eax, 0x30
mov byte [ebp - 4], 2
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00405c65
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x30]
add eax, 0x48
mov byte [ebp - 4], 3
push eax
call fcn.004258b8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x513972
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6bcd35
call fcn.006b6d3c
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], ebx
mov dword [ebp - 4], ebx
lea esi, [edi + 0x10]
mov dword [edi], vtable.Agent::InstallProgressInfo.0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [ebp - 0x14], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00413f20
mov dword [esi], eax
xorps xmm0, xmm0
mov dword [edi + 0x28], ebx
mov eax, edi
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], 0xf
mov byte [edi + 0x40], bl
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x60], ebx
mov word [edi + 0x64], bx
mov byte [edi + 0x66], bl
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
mov dword [edi + 0x88], ebx
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x90], ebx
mov dword [edi + 0x94], ebx
mov dword [edi + 0x98], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa0], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x51496a
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x6c2dd3
call fcn.006b6d3c
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
xorps xmm0, xmm0
mov eax, dword [esi + 0xa4]
mov dword [esi + 0xe0], ebx
mov dword [esi + 0x20], 5
mov dword [eax + 8], 0x3e8
mov eax, dword [esi + 0xa4]
mov dword [eax + 0x30], ebx
mov eax, dword [esi + 0xa4]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov eax, dword [esi + 0xa4]
movsd qword [eax + 0x18], xmm0
mov eax, dword [esi + 0xa4]
movsd qword [eax + 0x20], xmm0
mov eax, dword [esi + 0xa4]
mov dword [eax + 0x28], ebx
mov eax, dword [esi + 0xa4]
mov dword [eax + 0x2c], ebx
mov eax, dword [esi + 0xa4]
mov byte [eax + 0x65], bl
mov eax, dword [esi + 0xa4]
mov byte [eax + 0x66], bl
lea eax, [ebp - 0x20]
mov ecx, dword [esi + 0x98]
push eax
call fcn.00511a0b
mov dword [ebp - 4], ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
lea ecx, [ebp - 0x20]
cmp byte [eax], bl
sete al
or dword [ebp - 4], 0xffffffff
mov byte [esi + 0xe4], al
call fcn.00423d6e
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0xd8], bl
call dword [eax + 0x5c]
mov ecx, dword [esi + 0x68]
push eax
lea eax, [esi + 0x70]
push eax
call fcn.0051304e
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret