joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa80570
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xaef578]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa805b0
cmp byte [ebx], 0xa
jne 0xa805b0
or byte [eax + edi + 0x28], 4
jmp 0xa805b5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0xa806b3
mov al, byte [edx]
cmp al, 0x1a
je 0xa80695
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0xa805e4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0xa80609
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0xa80613
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0xa805c6
jmp 0xa806b3
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa80690
cmp dword [ebp - 0xc], 0
je 0xa80690
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0xaef578]
test byte [eax + edi + 0x28], 0x48
je 0xa8066a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0xa80655
mov byte [esi], dl
jmp 0xa80666
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xaef578]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0xa806b3
cmp byte [ebp - 1], 0xa
jne 0xa80679
cmp esi, ebx
jne 0xa80679
mov byte [esi], 0xa
jmp 0xa806b2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00a76b27
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xa806b3
mov byte [esi], 0xd
jmp 0xa806b2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0xaef578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa806af
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa806b3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa806bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0xaef578]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa806ff
cmp word [esi], dx
jne 0xa806ff
or byte [edi + eax + 0x28], 4
jmp 0xa80704
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0xa8083d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0xa8081d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0xa80746
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xa8077c
cmp eax, edx
jae 0xa80788
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0xa8071e
jmp 0xa8083d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa80819
cmp dword [ebp - 0x14], 0
je 0xa80819
mov eax, dword [ebx*4 + 0xaef578]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0xa807f1
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0xa80837
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0xaef578]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0xaef578]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0xaef578]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0xa8083a
pop ebx
cmp word [ebp - 4], bx
jne 0xa80802
cmp esi, dword [ebp + 0xc]
jne 0xa80802
mov word [esi], bx
jmp 0xa8083a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00a76b27
add esp, 0x10
cmp word [ebp - 4], bx
je 0xa8083d
push 0xd
jmp 0xa80836
mov ecx, dword [ebx*4 + 0xaef578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa80834
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa8083d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa8105e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a80ecf
Function at 0xa820dd
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]
push dword [ebp + 0xc]
push ebx
call fcn.00a82059
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0xa82255
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0xa82255
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0xa82204
jg 0xa82136
test eax, eax
je 0xa821fa
push 1
push 0x1000
call fcn.00a6bdff
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xa8215c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0xa821f1
push 0x8000
push ebx
call fcn.00a6a4be
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0xa82188
jg 0xa82183
cmp ecx, 0x1000
jb 0xa82188
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00a81956
add esp, 0x10
cmp eax, 0xffffffff
je 0xa821cd
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 0xa82183
jl 0xa821b4
test ecx, ecx
jne 0xa82175
push dword [ebp - 0xc]
push ebx
call fcn.00a6a4be
push esi
call fcn.00a6cb26
add esp, 0xc
xor edi, edi
jmp 0xa82266
cmp byte [edi + 0x24], 0
je 0xa821e4
cmp dword [edi + 0x20], 5
jne 0xa821e4
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0xa821ef
mov edi, dword [edi + 0x18]
jmp 0xa821f1
xor edi, edi
push esi
call fcn.00a6cb26
pop ecx
jmp 0xa82266
test ecx, ecx
jg 0xa821c6
jl 0xa82204
test eax, eax
jae 0xa821c6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a76b27
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0xa82227
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa821c6
jmp 0xa8225e
push ebx
call fcn.00a7b403
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0xa821c6
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0xa82266
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa82263
mov edi, dword [edi + 0x18]
jmp 0xa82266
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00a76b27
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0xa8803d
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 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40845c], 1
mov dword [0x408458], 1
mov dword [0x408454], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40800c], eax
mov eax, dword [0x408468]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40847c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x408464]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x405030], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x4017d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401830
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x408470]
test esi, esi
jle 0x401950
mov eax, dword [0x408474]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401864
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4018e7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401850
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401977
mov eax, dword [0x408474]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x408474]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401957
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4018e0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4018f0
add dword [0x408470], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x408474]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4018e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40186e
mov eax, dword [0x408474]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x401ea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40848c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x408484]
sub esp, 4
test ebx, ebx
je 0x401ef5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401eee
test eax, eax
jne 0x401eee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ed0
mov dword [esp], 0x40848c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402230
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402255
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402260
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402255
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4022a8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40229e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4022aa
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402290
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40556d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405584
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4055b9
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4055b5
cmp edi, eax
jae 0x4055b9
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4055a7
cmp edi, eax
jb 0x4055bd
xor eax, eax
jmp 0x4055c7
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405af2
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x10
mov eax, 0x42d2cf
call fcn.0042a27c
mov eax, dword [ebp + 0x40c]
cmp dword [eax + 0x18], 0x10
mov edi, ecx
jb 0x405b29
mov eax, dword [eax + 4]
jmp 0x405b2c
add eax, 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00406efc
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x405b52
push dword [eax + 4]
push esi
call fcn.00407136
mov esi, dword [esi]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040565b
cmp dword [ebp - 0x14], 0xffffffff
jne 0x405ba3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00418c9a
add ebp, 0x404
leave
ret
cmp dword [edi + 0x18], 0x10
jb 0x405bae
mov eax, dword [edi + 4]
jmp 0x405bb1
lea eax, [edi + 4]
push 0x432ec4
push eax
call fcn.004151a0
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x405bd2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x405b80
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], ebx
mov edi, 0x400
jmp 0x405bf4
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call fcn.00414c40
add esp, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], ebx
ja 0x405be2
push dword [ebp - 0x18]
call fcn.00414e30
pop ecx
mov bl, 1
jmp 0x405bc5
Function at 0x40923f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
xor ebx, ebx
cmp dword [0x43e0f4], ebx
mov dword [ebp - 0xc4], eax
jne 0x40926f
xor al, al
jmp 0x40932c
push esi
push 0x118
lea eax, [ebp - 0xb8]
push ebx
push eax
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], 0x11c
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
call esi
test eax, eax
jne 0x4092d0
push 0x11c
lea eax, [ebp - 0xbc]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xbc], 0x114
call esi
cmp dword [ebp - 0xb8], 5
pop esi
jb 0x40930b
jne 0x4092e4
cmp dword [ebp - 0xb4], ebx
je 0x40930b
mov eax, dword [0x43e0e8]
cmp eax, ebx
je 0x409268
push dword [ebp - 0xc4]
lea ecx, [ebp + 0x60]
push ecx
mov word [ebp + 0x60], 2
call eax
mov dword [ebp - 0xc0], eax
jmp 0x409321
mov eax, dword [0x43e0ec]
cmp eax, ebx
je 0x409268
push dword [ebp - 0xc4]
push ebx
call eax
xor eax, eax
cmp dword [ebp - 0xc0], ebx
sete al
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop ebx
call fcn.00418c9a
add ebp, 0x74
leave
ret
Function at 0x40c030
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x42d4c7
call fcn.0042a27c
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
cmp eax, ebx
je 0x40c06c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
call fcn.0042a354
ret
lea eax, [ebp - 0x14]
push eax
mov edi, 0xf003f
push edi
push ebx
mov esi, str.SoftwareAdobeCommonFilesUsage
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x40c0c2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x40c0c2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
jmp 0x40c066
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
jae 0x40c0e2
lea ecx, [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.00406efc
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x40c0f7
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.Agent
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040565b
mov bl, 1
jmp 0x40c0b1
Function at 0x40c2f4
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x3c
mov eax, 0x42bf36
call fcn.0042a27c
push 6
pop esi
lea eax, [ebp + 0x1c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40c3ca
push str.AdobeLogTransport2Logs
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [ebp - 0x2c]
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0040ed47
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0x412720
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x48]
call fcn.004136f0
push eax
mov byte [ebp - 4], 3
call fcn.00413950
pop ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [ebp - 0xd], bl
jne 0x40c3af
push ebx
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x40c3bd
lea eax, [ebp]
push eax
mov ecx, edi
call dword [0x42e180]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.00418c9a
add ebp, 0x22c
leave
ret
Function at 0x40f05d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x20]
call fcn.0040ee31
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x40f081
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x20]
inc bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00418c9a
leave
ret

Function at 0x40f150
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea ecx, [ebp - 0x20]
xor bl, bl
call fcn.0040ee31
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x40f177
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f184
mov bl, 1
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00418c9a
leave
ret
Function at 0x40f19c
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x130
lea ebp, [esp - 4]
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp + 0x130], eax
push 0x18
mov eax, 0x42c499
call fcn.0042a27c
xor ebx, ebx
lea ecx, [ebp + 0x114]
mov byte [ebp - 0xd], bl
call fcn.0040ee31
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x12c], 0x10
mov eax, dword [ebp + 0x118]
jae 0x40f1e8
lea eax, [ebp + 0x118]
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x40f29d
push 0x433488
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
lea eax, [ebp]
push eax
mov dword [ebp], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 4], 5
jae 0x40f257
push str.GetFileSize
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x40f26e
push str.GetFileSizeEx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x14]
call eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
lea eax, [ebp - 0x24]
push eax
push esi
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
push dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov byte [ebp - 0xd], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x114]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x130]
xor ecx, ebp
call fcn.00418c9a
add ebp, 0x134
leave
ret