joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66f160
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.0066f2a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x66f206
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00672c30
push 0x7e7d2c
push esi
push 0x7e9b78
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.00672170
add esp, 0x2c
call fcn.00724f21
cmp dword [eax], 2
je 0x66f1e6
call fcn.00724f21
cmp dword [eax], 6
je 0x66f1e6
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00672c30
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00672c30
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x8846f8
call fcn.0066f880
mov esi, eax
add esp, 4
test esi, esi
jne 0x66f227
push edi
call fcn.00723c86
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.0066f4b0
push edi
push 1
push 0x6a
push esi
call fcn.0066f4e0
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret

Function at 0x67eec0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x67eee5
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x67eed6
pop edi
movzx eax, dl
pop esi
ret

Function at 0x67f080
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.00723b70
mov eax, dword [0x88bba0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x67f107
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x67f107
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.0072a4ca
add esp, 0x10
lea ecx, [esp + 4]
test eax, eax
push 0
push ecx
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00722035
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0xff
push eax
call fcn.0072a4ca
add esp, 0x10
mov byte [esp + 0x107], 0
call fcn.0067ef40
test eax, eax
jle 0x67f18b
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x67f19f
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00722035
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00722035
add esp, 0x108
ret
Function at 0x68c6b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00723b70
mov eax, dword [0x88bba0]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x68c716
cmp edi, dword [esi]
je 0x68c70d
test ebp, ebp
je 0x68c790
test ebx, ebx
js 0x68c790
mov eax, 1
mov dword [esi], edi
jmp 0x68c71c
mov edi, dword [esi]
test edi, edi
je 0x68c790
test ebp, ebp
je 0x68c8ab
push edi
call fcn.00674720
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x68c750
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.0067f1c0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x68c7ab
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.0067fba0
add esp, 0xc
test eax, eax
je 0x68c790
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.0067fd50
add esp, 0xc
test eax, eax
je 0x68c790
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.0067fb00
add esp, 0xc
test eax, eax
jne 0x68c7c7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00722035
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x68c790
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.007224a0
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x68c7ea
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.00723180
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x68c7f0
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.0067fba0
add esp, 0xc
test eax, eax
je 0x68c790
push edi
call fcn.00674720
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0067fd50
add esp, 0x10
test eax, eax
je 0x68c790
xor ecx, ecx
jmp 0x68c840
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x68c840
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.0067fba0
add esp, 0xc
test eax, eax
je 0x68c790
push edi
call fcn.00674720
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0067fd50
add esp, 0x10
test eax, eax
je 0x68c790
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.0067fe20
add esp, 8
test eax, eax
je 0x68c790
mov eax, 1
jmp 0x68c792
test eax, eax
je 0x68c889
jmp 0x68c7ee
Function at 0x693780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.00723b70
mov eax, dword [0x88bba0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.0067ffc0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0067fe20
add esp, 0xc
test eax, eax
je 0x693882
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0067fb00
add esp, 0xc
test eax, eax
je 0x693882
lea eax, [esp + 0x20]
push eax
call fcn.0067fd60
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x6938a0
push edi
call fcn.00677a30
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.00693d70
mov esi, eax
add esp, 0xc
test esi, esi
je 0x693882
push esi
call fcn.00694800
add esp, 4
test eax, eax
jle 0x693882
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00693b00
add esp, 0x18
test eax, eax
jle 0x693882
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.00694710
add esp, 0x14
test eax, eax
jle 0x693882
mov ecx, dword [esp + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.00693cf0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00722035
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x6938b8
cmp dword [edi], edx
je 0x6938e2
inc eax
add ecx, 4
cmp eax, 4
jl 0x6938a5
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.00672c30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00722035
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x693916
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.00672c30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00722035
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
push dword [esp + 0x20]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00722035
add esp, 0x6c
ret
Function at 0x699e80
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x699f6c
push edi
mov edi, dword [esp + 0x14]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x699efe
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], cl
jmp 0x699f4f
shl edx, 0x10
cmp esi, 2
jne 0x699f0e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x699f3b
lea ecx, [esi + 0x3c]
jmp 0x699f48
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x699ea0
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x69a120
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x69acb0
push ebp
mov ebp, dword [esp + 0x10]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0069aeb0
add esp, 0xc
test eax, eax
js 0x69aea0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x69ad30
lea esi, [ebp + 8]
lea esi, [esi + edi*4]
lea eax, [ebp + 8]
lea esp, [esp]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x69acf0
mov edi, 1
cmp dword [ebp + 0xf0], edi
jle 0x69ae9b
lea esi, [ebp + 2]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x803608]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x804208]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804a08]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804e08]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804608]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x803608]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x804208]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804a08]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804608]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804e08]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x803608]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x804208]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804a08]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804608]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804e08]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x803608]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x804208]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804a08]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804608]
movzx eax, dl
movzx eax, byte [eax*4 + 0x803608]
xor ecx, dword [eax*4 + 0x804e08]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebp + 0xf0]
jl 0x69ad44
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x6ef7a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x6ef7b7
mov ebx, ecx
jmp 0x6ef7bb
mov ebx, ebp
mov ebp, ecx
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x6ef7cb
mov eax, edi
jmp 0x6ef7d5
push eax
push edi
call fcn.0067a530
add esp, 8
test eax, eax
jne 0x6ef7dd
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x6ef7fb
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x6ef7e5
cmp esi, dword [ebx + 4]
jge 0x6ef810
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebx + 4]
jl 0x6ef800
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
pop esi
test ecx, ecx
jle 0x6ef834
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x6ef831
dec ecx
test ecx, ecx
jg 0x6ef823
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x6ef841
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x6f0820
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor edi, edi
call fcn.00692760
push ebp
call fcn.00692680
mov esi, eax
add esp, 8
test esi, esi
je 0x6f0a29
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x6f0855
mov eax, esi
jmp 0x6f085f
push eax
push esi
call fcn.0067a530
add esp, 8
test eax, eax
je 0x6f0a28
mov ebp, dword [ebx + 4]
dec ebp
js 0x6f09d8
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
dec ebp
jns 0x6f0871
mov eax, dword [ebx + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x6f0a01
mov ecx, dword [esi]
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
lea esp, [esp]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x6f09fe
dec eax
test eax, eax
jg 0x6f09f0
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x6f0a09
mov dword [esi + 0xc], edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.006ef8e0
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov ecx, 1
cmovne edi, ecx
pop ebx
push ebp
call fcn.00692610
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x72e033
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 0x74bca9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x88bba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0072c3c6
mov dword [ebp - 0x14], eax
cmp dword [0x8a4c48], esi
jne 0x74bd9c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x74bd29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x74be7c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x74be7c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x74be7c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x8a4c48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x8a4c4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x82c294
push edi
mov dword [0x8a4c50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8a4c58], eax
test eax, eax
je 0x74bd99
push 0x82c2b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8a4c54], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x74bdc1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x74bdb4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x74bdd6
push 4
pop eax
jmp 0x74be7e
cmp dword [ebp - 0x14], esi
je 0x74bdd6
push dword [0x8a4c48]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x74bdbb
mov eax, dword [0x8a4c54]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x74be34
cmp dword [0x8a4c58], edi
je 0x74be34
push eax
call ebx
push dword [0x8a4c58]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x74be34
test eax, eax
je 0x74be34
call ecx
test eax, eax
je 0x74be29
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x74be29
test byte [ebp - 8], 1
jne 0x74be34
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x74be64
mov eax, dword [0x8a4c4c]
cmp eax, edi
je 0x74be61
push eax
call ebx
test eax, eax
je 0x74be61
call eax
mov esi, eax
test esi, esi
je 0x74be61
mov eax, dword [0x8a4c50]
cmp eax, edi
je 0x74be61
push eax
call ebx
test eax, eax
je 0x74be61
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x8a4c48]
call ebx
test eax, eax
je 0x74be7c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x74be7e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00722035
mov esp, ebp
pop ebp
ret
Function at 0x422571
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004224ed
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4226e0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4226e0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x422695
jg 0x4225cd
test eax, eax
je 0x42268b
push 1
push 0x1000
call fcn.00414fa8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4225f0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x422682
push 0x8000
push ebx
call fcn.00413b56
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x422619
jg 0x422614
cmp ecx, 0x1000
jb 0x422619
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a623
add esp, 0x10
cmp eax, 0xffffffff
je 0x42265e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x422614
jl 0x422645
test ecx, ecx
jne 0x422606
push dword [ebp - 0xc]
push ebx
call fcn.00413b56
push esi
call fcn.00415005
add esp, 0xc
xor ebx, ebx
jmp 0x4226ee
cmp byte [edi + 0x24], 0
je 0x422675
cmp dword [edi + 0x20], 5
jne 0x422675
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x422680
mov ebx, dword [edi + 0x18]
jmp 0x422682
xor ebx, ebx
push esi
call fcn.00415005
pop ecx
jmp 0x4226ee
test ecx, ecx
jg 0x422657
jl 0x422695
test eax, eax
jae 0x422657
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419cdb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4226b5
cmp byte [edi + 0x1c], 0
je 0x422657
jmp 0x4226e6
push ebx
call fcn.00412901
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x422657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4226ee
cmp byte [edi + 0x1c], 0
je 0x4226eb
mov ebx, dword [edi + 0x18]
jmp 0x4226ee
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00419cdb
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x423b20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423b4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423b4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret