joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 8], xmm0
call fcn.0049ccb0
add esp, 4
cmp eax, 0x10
jne 0x4ae467
mov eax, dword [ebp + 0x10]
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push edi
test eax, eax
jne 0x4ae5b2
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edx
nop dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x110], 0
jne 0x4ae5b2
mov edi, dword [esi + 0x74]
mov cl, byte [edi + 8]
test cl, cl
jne 0x4ae49f
cmp byte [edi + 2], cl
jne 0x4ae4ac
movzx eax, word [edi + 0x18]
cdq
add dword [ebp - 4], eax
adc ebx, edx
mov dword [ebp - 0xc], ebx
test cl, cl
je 0x4ae54d
mov cl, byte [esi + 0x44]
test cl, cl
je 0x4ae59b
and byte [esi + 1], 0xf9
xor eax, eax
mov word [esi + 0x32], ax
movsx eax, cl
dec cl
mov ax, word [esi + eax*2 + 0x46]
mov word [esi + 0x46], ax
movsx eax, cl
mov byte [esi + 0x44], cl
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4ae52c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.005d3730
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4ae535
push edx
call fcn.004c7680
add esp, 4
mov edi, dword [esi + 0x74]
mov ax, word [esi + 0x46]
cmp ax, word [edi + 0x18]
jae 0x4ae4b4
inc word [esi + 0x46]
mov ebx, dword [ebp - 0xc]
movzx ecx, word [esi + 0x46]
movzx eax, word [edi + 0x18]
cmp ecx, eax
jne 0x4ae566
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax + 8]
jmp 0x4ae580
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax]
bswap eax
push eax
push esi
call fcn.0049ca20
add esp, 8
test eax, eax
je 0x4ae480
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
call fcn.0049ccb0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b1240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x738844]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add ecx, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
push edi
mov dword [ebp - 0x24], esi
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8]
mov dword [ebp - 0x20], eax
mov eax, 1
mov dword [ebp - 0x2c], eax
nop dword [eax]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.0047d860
mov edi, dword [esi]
lea ebx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x28], edi
nop dword [eax]
xor esi, esi
cmp dword [edi + 0x14], esi
jle 0x4b134c
nop dword [eax + eax]
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x4b12e8
mov edx, ecx
mov ecx, dword [edi + 0x10]
add edx, edx
mov edi, dword [ecx + edx*8]
sub edi, eax
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x4b132a
test edx, edx
jne 0x4b133c
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x10]
add ecx, ecx
push 0
push ebx
mov eax, dword [eax + ecx*8 + 0xc]
add eax, 8
push eax
call fcn.00495050
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
je 0x4b1342
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x38]
push eax
push dword [ebp - 0x20]
push str.DELETE_FROM__Q._s_WHERE__s_Q
push esi
call fcn.004c4720
add esp, 0x18
jmp 0x4b13ca
movzx ecx, byte [ecx + 0x699c30]
movzx edx, byte [edx + 0x699c30]
sub edx, ecx
jne 0x4b133f
inc eax
jmp 0x4b12d3
mov edi, dword [ebp - 0x28]
inc esi
cmp esi, dword [edi + 0x14]
jl 0x4b12b0
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4b1381
test ecx, ecx
jne 0x4b1393
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b1396
neg ecx
sbb ecx, ecx
test ecx, ecx
jne 0x4b13c7
mov ebx, str.sqlite_temp_master
jmp 0x4b12a0
movzx eax, byte [eax + 0x699c30]
movzx ecx, byte [ecx + 0x699c30]
sub ecx, eax
jne 0x4b13c7
inc ebx
jmp 0x4b1353
test ecx, ecx
je 0x4b13c7
mov esi, ecx
mov edx, eax
sub esi, eax
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4b13b2
test ecx, ecx
je 0x4b1377
inc edx
jmp 0x4b13a0
movzx eax, byte [eax + 0x699c30]
movzx ecx, byte [ecx + 0x699c30]
sub ecx, eax
jne 0x4b1373
inc edx
jmp 0x4b13a0
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jle 0x4b1280
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d2f07
mov esp, ebp
pop ebp
ret
Function at 0x4bb9a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
cmp dword [esi + 0x14], ebx
jle 0x4bba16
mov edx, dword [ebp + 0x10]
mov esi, dword [esi + 0x10]
mov eax, edi
xor eax, 1
mov ecx, edi
cmp edi, 2
cmovl ecx, eax
add ecx, ecx
mov eax, dword [esi + ecx*8 + 0xc]
mov dword [ebp - 4], eax
test edx, edx
je 0x4bb9f2
mov esi, dword [esi + ecx*8]
mov eax, edx
sub esi, edx
nop dword [eax]
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x4bba1f
test edx, edx
jne 0x4bba31
mov eax, dword [ebp - 4]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.00495050
add esp, 0xc
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x4bba16
mov esi, dword [ebp + 8]
inc edi
mov edx, dword [ebp + 0x10]
cmp edi, dword [esi + 0x14]
jl 0x4bb9b8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x699c30]
movzx edx, byte [edx + 0x699c30]
sub edx, ecx
jne 0x4bba0a
inc eax
jmp 0x4bb9e0

Function at 0x4bba40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x14], esi
jle 0x4bbade
nop dword [eax]
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov dword [ebp - 4], ecx
test edx, edx
je 0x4bba98
mov eax, edx
mov edx, ecx
mov ecx, dword [edi + 0x10]
add edx, edx
mov edi, dword [ecx + edx*8]
sub edi, dword [ebp + 0x10]
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x4bbabd
test edx, edx
jne 0x4bbacf
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
add ecx, ecx
push 0
push ebx
mov eax, dword [eax + ecx*8 + 0xc]
add eax, 8
push eax
call fcn.00495050
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x4bbb5b
jmp 0x4bbad5
movzx ecx, byte [ecx + 0x699c30]
movzx edx, byte [edx + 0x699c30]
sub edx, ecx
jne 0x4bbad2
inc eax
jmp 0x4bba83
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 0x14]
jl 0x4bba60
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4bbb07
test ecx, ecx
jne 0x4bbb19
mov eax, dword [edi + 0x10]
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
test edx, edx
jne 0x4bbb1c
neg ecx
sbb ecx, ecx
jmp 0x4bbb36
movzx eax, byte [eax + 0x699c30]
movzx ecx, byte [ecx + 0x699c30]
sub ecx, eax
jne 0x4bbb59
inc ebx
jmp 0x4bbae5
test ecx, ecx
je 0x4bbb59
mov esi, ecx
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4bbb44
test ecx, ecx
jne 0x4bbb56
mov edx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4bbb59
mov ebx, str.sqlite_temp_master
jmp 0x4bba52
movzx eax, byte [eax + 0x699c30]
movzx ecx, byte [ecx + 0x699c30]
sub ecx, eax
jne 0x4bbb33
inc edx
jmp 0x4bbb24
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d10b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
cmp dword [0x71e9d0], 0
je 0x4d1102
mov eax, dword [0x73ea20]
test eax, eax
je 0x4d10da
push eax
call dword [0x71ea20]
add esp, 4
lea eax, [ebp + 8]
push eax
push 0x14
call fcn.0049c380
mov eax, dword [0x73ea20]
add esp, 8
test eax, eax
je 0x4d10fd
push eax
call dword [0x71ea28]
mov esi, dword [ebp + 8]
jmp 0x4d110c
mov esi, dword [ebp + 8]
jmp 0x4d110f
push 0x14
call dword [0x71e9f0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d111a
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp byte [0x71e9d4], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x4d1165
mov eax, dword [0x71eac4]
test eax, eax
je 0x4d113e
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x4d1165
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x4d1200
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.00600a3c
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4d1172
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x4d118b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4ff9e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.005d34f0
mov eax, dword [0x738844]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call fcn.0043e040
push ebx
push 0
push edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test esi, esi
jne 0x4ffa72
push 0xffd
lea edx, [ebp - 0x1004]
or ecx, 1
push edx
push eax
push ecx
call fcn.005f6efc
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jle 0x4ffa43
lea eax, [ebp + eax - 0x1004]
jmp 0x4ffa4b
cmp eax, 0xffffffff
jne 0x4ffa83
lea eax, [ebp - 7]
mov word [eax], 0xa0d
mov byte [eax + 2], 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d2f07
mov esp, ebp
pop ebp
ret
push esi
push eax
push ecx
call fcn.005f6da8
push esi
call fcn.00600dc0
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d2f07
mov esp, ebp
pop ebp
ret
Function at 0x504590
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65a397
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x738844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x5045e5
mov dword [ebx], 0x6a3bb0
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 0x10]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.005043b0
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.005d2f18
mov esi, eax
add esp, 4
test esi, esi
je 0x504642
push 1
mov byte [ebp - 4], 2
call fcn.005d4cf4
add esp, 4
mov dword [esi + 4], eax
jmp 0x504644
xor esi, esi
lea eax, [ebx + 0x10]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov esi, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [edi], 0
not ecx
mov dword [edx], 0
and ecx, 2
mov eax, ebx
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov edx, ecx
mov dword [esi + 0x38], 0
or edx, 8
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
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
Function at 0x50d9b0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65b188
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x738844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x50d9ea
mov byte [esi + 0xc], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea edi, [esi + 8]
push edi
push 0x6a3df4
push 1
push 0
push 0x6a3de4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x50daed
cmp dword [edi], 0
je 0x50dac7
push 0x6a3e68
lea ecx, [ebp - 0x10]
call fcn.0050d6f0
mov eax, dword [eax]
mov dword [ebp - 4], 0
test eax, eax
je 0x50da4b
mov ebx, dword [eax]
jmp 0x50da4d
xor ebx, ebx
mov ecx, dword [edi]
lea eax, [esi + 4]
push eax
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push ebx
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x50dac4
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x50dabd
test edi, edi
je 0x50dabd
mov eax, dword [edi]
test eax, eax
je 0x50da9b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x50dab2
push eax
call fcn.005d2f02
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.005d2f48
add esp, 8
mov dword [ebp - 0x10], 0
lea edi, [esi + 8]
test ebx, ebx
js 0x50daed
mov eax, dword [esi + 4]
test eax, eax
je 0x50dae9
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test ebx, ebx
jns 0x50db23
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x50dafa
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x50db06
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [esi + 0xc], 0
je 0x50db12
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 4], 0
mov dword [edi], 0
mov byte [esi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x514d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x738844]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x514e2a
cmp byte [esi + 0x3d], 0
je 0x514e2a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x514e18
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x514de0
sub eax, 1
je 0x514de4
sub eax, 2
jne 0x514e18
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d2f07
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x514e01
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00601fdf
add esp, 0x10
cmp edi, eax
jne 0x514e18
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d2f07
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d2f07
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005d2f07
mov esp, ebp
pop ebp
ret
Function at 0x515230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x738844]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x515260
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d2f07
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x51529c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x51529c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d2f07
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x515381
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x5152c4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5152f7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005f1ff9
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d2f07
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x515381
cmp eax, 1
jle 0x515354
cmp eax, 3
jne 0x515381
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00512ff0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d2f07
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x515371
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00601fdf
add esp, 0x10
cmp edi, eax
jne 0x515381
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x515287
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005d2f07
mov esp, ebp
pop ebp
ret 4
Function at 0x51c060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x738844]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
push 0
push 0x400
push 0x6d2968
mov dword [ebp - 0x408], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x51c127
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.005e8a30
push 0x400
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
call fcn.005fe295
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51c0d6
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00453520
push 1
push 0x693978
mov ecx, esi
call fcn.004533c0
push 0xb
push str.AdobeGCInfo
mov ecx, eax
call fcn.004533c0
push dword [ebp - 0x408]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d2f07
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.005d2f07
mov esp, ebp
pop ebp
ret

Function at 0x51c230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x101
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x51c308
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x51c2ea
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x51c280
cmp eax, dword [ebp - 0x10]
jne 0x51c2fb
mov esi, dword [ebx]
push edi
mov edi, dword [ebp + 0x18]
mov byte [ebp - 1], 0
mov eax, dword [edi + 4]
mov ecx, eax
mov edx, dword [edi]
sub ecx, edx
mov dword [ebp - 0xc], eax
cmp esi, ecx
jae 0x51c29f
lea eax, [edx + esi]
jmp 0x51c2cd
jbe 0x51c2d0
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x51c2b8
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.0051be90
jmp 0x51c2d0
sub esi, ecx
push esi
push 0
push dword [ebp - 0xc]
call fcn.005e8a30
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, esi
mov dword [edi + 4], eax
push ebx
push dword [edi]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
pop edi
test esi, esi
je 0x51c2fb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51cb20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65cd58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x738844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 4]
mov esi, dword [esi]
mov dword [ebp + 0x14], eax
cmp esi, eax
je 0x51cbbe
nop dword [eax]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x51cba9
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x51cb81
mov edi, dword [esi]
mov edx, esi
jb 0x51cb87
mov edx, dword [esi]
push dword [ebp + 0x14]
inc ecx
lea eax, [edi + ecx*2]
push eax
push edx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0051bcf0
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
inc edx
add edx, dword [esi + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], edx
add esi, 0x18
cmp esi, eax
jne 0x51cb70
mov esi, dword [ebp - 0x14]
cmp ebx, esi
je 0x51cbbe
xor eax, eax
mov word [ebx], ax
jmp 0x51cbcf
push 0x6a54dc
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0051bc20
mov esi, dword [ebp - 0x14]
push 0
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 0x1c]
mov ebx, eax
test ebx, ebx
jne 0x51cc29
mov eax, dword [ebp - 0x10]
lea eax, [eax*2 + 2]
push eax
push edi
push 7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
jne 0x51cc29
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x51cc56
sub esi, edi
mov eax, edi
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x51cc4c
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51cc6a
push esi
push edi
call fcn.005d2f48
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005f1c34
int3