joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57180c
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 + 0x5f4248]
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 0x57184f
cmp word [esi], dx
jne 0x57184f
or byte [edi + eax + 0x28], 4
jmp 0x571854
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 0x5719a7
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 0x571987
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x571896
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5718cc
cmp eax, edx
jae 0x5718d8
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 0x57186e
jmp 0x5719a7
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 0x571983
cmp dword [ebp - 0x14], 0
je 0x571983
mov eax, dword [ebx*4 + 0x5f4248]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x57195b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x571924
mov word [esi], cx
jmp 0x571957
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5f4248]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5f4248]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5f4248]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x5719a7
pop ebx
cmp word [ebp - 4], bx
jne 0x57196c
cmp esi, dword [ebp + 0xc]
jne 0x57196c
mov word [esi], bx
jmp 0x5719a4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00570392
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5719a7
push 0xd
jmp 0x5719a0
mov ecx, dword [ebx*4 + 0x5f4248]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57199e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5719a7
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 0x5795b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00565e50
mov eax, dword [0x5ef0d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00578945
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5795f6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x579752
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00566c40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5f4248]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00570374
mov ecx, dword [esi*4 + 0x5f4248]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x57974b
cmp eax, dword [edi + ecx + 0x24]
jne 0x57974b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57974b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00570374
add esp, 0x14
test edx, edx
jl 0x57974b
jg 0x5796c1
test eax, eax
jb 0x57974b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x57974b
jl 0x5796db
cmp dword [ebp - 0x1008], eax
ja 0x57974b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5796f9
test ebx, ebx
je 0x579732
cmp ecx, edi
jae 0x579732
mov al, byte [ecx]
cmp al, 0xd
jne 0x579713
lea eax, [edi - 1]
cmp ecx, eax
jae 0x57971f
cmp byte [ecx + 1], 0xa
jne 0x57971f
inc ecx
jmp 0x57971f
movzx eax, al
movsx eax, byte [eax + 0x5ef138]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5796f9
cmp edx, ebx
jne 0x5796f9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x579750
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00565e42
leave
ret
Function at 0x579875
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.005797f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5799ed
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5799ed
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x57999c
jg 0x5798ce
test eax, eax
je 0x579992
push 1
push 0x1000
call fcn.0057f69b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5798f4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x579989
push 0x8000
push ebx
call fcn.0057b5de
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 0x579920
jg 0x57991b
cmp ecx, 0x1000
jb 0x579920
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0056ff8b
add esp, 0x10
cmp eax, 0xffffffff
je 0x579965
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 0x57991b
jl 0x57994c
test ecx, ecx
jne 0x57990d
push dword [ebp - 0xc]
push ebx
call fcn.0057b5de
push esi
call fcn.0057f14d
add esp, 0xc
xor edi, edi
jmp 0x5799fe
cmp byte [edi + 0x24], 0
je 0x57997c
cmp dword [edi + 0x20], 5
jne 0x57997c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x579987
mov edi, dword [edi + 0x18]
jmp 0x579989
xor edi, edi
push esi
call fcn.0057f14d
pop ecx
jmp 0x5799fe
test ecx, ecx
jg 0x57995e
jl 0x57999c
test eax, eax
jae 0x57995e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00570392
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5799bf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x57995e
jmp 0x5799f6
push ebx
call fcn.0057086a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x57995e
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 0x5799fe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5799fb
mov edi, dword [edi + 0x18]
jmp 0x5799fe
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00570392
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x580625
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5dba7c
push 0x5dba74
push str.FlsAlloc
push 0x1e
call fcn.00580452
mov esi, eax
add esp, 0x10
test esi, esi
je 0x580659
push dword [ebp + 8]
mov ecx, esi
call dword [0x5983d0]
call esi
jmp 0x58065f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x5806a3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5dba8c
push 0x5dba84
push str.FlsGetValue
push 0x20
call fcn.00580452
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5806da
push dword [ebp + 8]
mov ecx, esi
call dword [0x5983d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x583cde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00583b4f
Function at 0x584f64
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x585001
push ebx
push esi
call fcn.00584f2d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0057ef8a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x584fae
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x585000
push edi
push eax
call fcn.0057f187
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x584fce
call fcn.0057f14d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x584fff
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0057ef8a
add esp, 0x20
test eax, eax
jne 0x584fed
push edi
call fcn.0057f14d
jmp 0x584ff5
push ebx
call fcn.0057f14d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x585004
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x585015
pop esi
ret
push ebx
push edi
push esi
call fcn.00584f2d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0057f187
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x58503d
push ebx
push esi
push edi
call fcn.00568520
add esp, 0xc
push 0
call fcn.0057f14d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x585401
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00585052
Function at 0x58b80e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x58b8ce
mov eax, dword [0x5efb60]
cmp dword [esi + 0x24], eax
jne 0x58b8bd
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x58b844
push str.Pointer_is_NULL_n
push 0x15d
jmp 0x58b8d8
cmp dword [edi + 0x24], eax
jne 0x58b8f8
mov eax, dword [esi + 0x5c]
xor ebx, ebx
mov ecx, dword [edi + 0x5c]
cmp eax, ecx
jne 0x58b8e2
mov edx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x58], ebx
jle 0x58b8ab
mov eax, dword [esi + 0x54]
mov dword [ebp + 8], eax
mov cl, byte [eax + edx]
mov eax, dword [edi + 0x54]
mov edi, dword [ebp + 8]
mov al, byte [eax + edx]
xor al, cl
mov byte [edi + edx], al
mov eax, dword [esi + 0x54]
and byte [edx + eax], cl
mov eax, dword [esi + 0x54]
mov dword [ebp + 8], eax
movzx eax, byte [eax + edx]
push eax
push esi
call fcn.0058ba45
mov edx, dword [ebp - 4]
add ebx, eax
mov edi, dword [ebp + 0xc]
inc edx
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [ebp - 4], edx
cmp edx, dword [esi + 0x58]
jl 0x58b86d
push esi
call fcn.0058b50b
pop ecx
pop edi
mov dword [esi + 0x60], ebx
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
push dword [esi + 0x24]
push eax
push esi
push str.Class_mismatch_pointer__0x_p:_expected_0x_08x_but_was_0x_08x__n
push 0x15c
jmp 0x58b907
push str.Pointer_is_NULL_n
push 0x15c
push 0x5e3bb0
call fcn.00453f4f
push ecx
push eax
push str.Bit_mismatch_on_except___d____d__n
push 0x163
push 0x5e3bb0
call fcn.00453f4f
push dword [edi + 0x24]
push eax
push edi
push str.Class_mismatch_pointer__0x_p:_expected_0x_08x_but_was_0x_08x__n
push 0x15d
push 0x5e3bb0
call fcn.00453f4f
int3
Function at 0x5954ed
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 7
xor eax, eax
lea edi, [ebp - 0x24]
xor ebx, ebx
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
cmp dword [ebp + 0xc], eax
je 0x5956d1
cmp dword [ebp + 0x10], eax
jne 0x595522
push str.Pointer_is_NULL_n
push 0xf9
jmp 0x5956db
cmp dword [ebp + 0x18], eax
jne 0x595536
push str.Pointer_is_NULL_n
push 0xfa
jmp 0x5956db
cmp dword [ebp + 0x14], eax
jne 0x59554a
push str.Pointer_is_NULL_n
push 0xfb
jmp 0x5956db
mov esi, dword [ebp + 8]
test esi, esi
jne 0x59555a
push ebx
call fcn.004599d2
pop ecx
mov esi, eax
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x5956ca
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x5956ca
mov edi, dword [esi + 0x3c]
push 0xf8
add edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x5956ca
cmp dword [edi], 0x4550
jne 0x5956ca
mov eax, 0x8664
cmp word [edi + 4], ax
jne 0x5955d6
mov edi, dword [esi + 0x3c]
push 0x108
add edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x5956ca
cmp dword [edi], 0x4550
jne 0x5956ca
mov eax, dword [edi + 0x90]
jmp 0x5955dc
mov eax, dword [edi + 0x80]
test eax, eax
je 0x5956ca
lea edi, [eax + esi]
jmp 0x595601
mov eax, dword [edi + 0xc]
push dword [ebp + 0xc]
add eax, esi
push eax
call fcn.0046ef36
pop ecx
pop ecx
cmp eax, 1
je 0x595606
add edi, 0x14
cmp dword [edi + 0xc], ebx
jne 0x5955e9
cmp dword [edi + 0xc], ebx
je 0x5956ca
mov eax, dword [edi]
mov edi, dword [edi + 0x10]
add eax, esi
mov dword [ebp - 4], eax
add edi, esi
mov dword [ebp + 0xc], edi
mov eax, dword [eax]
test eax, eax
je 0x5956c6
mov edi, dword [ebp - 4]
js 0x595660
add eax, esi
push 4
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x595660
mov ecx, dword [ebp - 4]
add ecx, 2
mov al, byte [ecx]
test al, al
je 0x595660
mov edx, dword [ebp + 0x10]
cmp byte [edx], al
jne 0x595660
push ecx
push edx
call fcn.0046ef36
pop ecx
pop ecx
cmp eax, 1
je 0x59566f
add dword [ebp + 0xc], 4
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x59562b
jmp 0x5956c6
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call esi
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebx]
mov eax, dword [ecx]
test eax, eax
mov dword [ecx], edi
cmove eax, dword [ebp + 0x14]
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor ebx, ebx
inc ebx
mov eax, ebx
jmp 0x5956cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push str.Pointer_is_NULL_n
push 0xf8
push str.C:_actions_runner_workclientclientcorewindows_apihook_win32.c
call fcn.00453f4f
int3
Function at 0x5970b0
Capabilities:
Parse pe header

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x44e9b6
Capabilities:
Encode data using xor

Disassembly:
adc bh, dl
add al, 0x2f
int3
movsb byte es:[edi], byte [esi]
mov ah, 0x9c
dec ebp
inc ebp
mov word [esi - 0x2b934d3b], ss
dec edi
sub bh, byte cs:[ebx]
jae 0x44e963
salc
mov bl, 0x9a
cmp esp, esp
cli
sahf
fld xword [ecx]
push edi
pop edi
inc ebp
dec eax
mov ebp, 0x497f806c
xor ecx, esp
ficom dword [ebp - 0x8ca8a0c]
jle 0x44e9c8
invalid

Function at 0x4ba915
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3398
cmp edx, dword [eax]
je 0x4ba937
add eax, 8
inc ecx
cmp eax, 0x4c3428
jl 0x4ba928
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3398]
jne 0x4baa65
mov eax, dword [0x4c7d1c]
cmp eax, 1
je 0x4baa3f
test eax, eax
jne 0x4ba968
cmp dword [0x4c32c0], 1
je 0x4baa3f
cmp edx, 0xfc
je 0x4baa65
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba99f
lea eax, [ebp - 0x1a4]
push 0x4bfb78
push eax
call fcn.004bb300
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb790
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba9e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb790
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfb74
push edi
call fcn.004bd660
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfb58
push eax
call fcn.004bb300
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb310
lea eax, [ebp - 0xa0]
push 0x4bfb54
push eax
call fcn.004bb310
push dword [esi + 0x4c339c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb310
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfb2c
push eax
call fcn.004bd5d4
add esp, 0x2c
pop edi
jmp 0x4baa65
lea eax, [ebp + 8]
lea esi, [esi + 0x4c339c]
push 0
push eax
push dword [esi]
call fcn.004bb790
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1004af1a
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
je 0x1004af44
call fcn.1004afa6
test al, al
je 0x1004af3b
push 0x80070006
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x1004aee0
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
test eax, eax
jne 0x1004af69
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
ret 0xc

Function at 0x1004cc48
Capabilities:
Get memory capacity

Disassembly:
push 0x68
mov eax, 0x10078cb6
call fcn.1007568d
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x68], esi
cmp esi, dword [edi + 0xc0]
jb 0x1004cc6f
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
mov ecx, dword [edi + 0xbc]
mov ebx, esi
shl ebx, 7
mov eax, dword [ecx + ebx + 0x68]
or eax, dword [ecx + ebx + 0x6c]
jne 0x1004cd97
push esi
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.1004ce56
cmp esi, dword [edi + 0xc0]
jae 0x1004cc64
mov eax, dword [edi + 0xbc]
mov edx, 0x10004c20
add eax, 0x44
add eax, ebx
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x1004cd13
mov eax, dword [ebp - 0x60]
inc ecx
cmp ecx, 4
jne 0x1004ccb1
and dword [ebp - 0x58], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
mov eax, dword [edi + 0xec]
push ecx
push dword [ebp - 0x68]
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x34]
call dword [0x10089918]
call dword [esi + 0x34]
test eax, eax
js 0x1004cd2d
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x60]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x10]
mov ecx, esi
call dword [0x10089918]
call esi
test eax, eax
js 0x1004cd2d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.1000af40
mov esi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x60]
mov ecx, dword [edi + 0xe8]
call fcn.10045cc0
mov ecx, eax
cmp ecx, 0x10
jbe 0x1004cd3f
push 4
pop eax
jmp 0x1004cd48
lea ecx, [ebp - 0x58]
call fcn.1000af40
xor al, al
call fcn.1007563c
ret 4
xor eax, eax
cmp ecx, 8
seta al
inc eax
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x74]
call fcn.1004d228
mov ecx, eax
call fcn.1004d24d
mov ecx, eax
call fcn.1004d24d
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp esi, dword [edi + 0xc0]
jae 0x1004cc64
push 0
push 3
push eax
push ecx
call fcn.10075810
mov ecx, dword [edi + 0xbc]
mov dword [ecx + ebx + 0x68], eax
mov dword [ecx + ebx + 0x6c], edx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1004cd35
cmp esi, dword [edi + 0xc0]
jae 0x1004cc64
mov ecx, dword [edi + 0xbc]
mov eax, dword [ecx + ebx + 0x6c]
cmp eax, dword [ebp - 0x40]
ja 0x1004cd35
jb 0x1004cdda
mov eax, dword [ecx + ebx + 0x68]
cmp eax, dword [ebp - 0x44]
jae 0x1004cd35
mov al, 1
jmp 0x1004cd37
Function at 0x10071f13
Capabilities:
Get file version info

Disassembly:
push 0x2c
mov eax, 0x1007ae18
call fcn.1007568d
mov ebx, ecx
test ebx, ebx
jne 0x10071f30
push 0x80004003
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
cmp word [0x10088ae0], 0
jne 0x10072034
push 0x10009640
lea ecx, [ebp - 0x14]
call fcn.1002c207
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0x10006514
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x10071f6a
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
and dword [ebp - 0x1c], 0
push 1
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
pop ecx
pop ecx
mov edi, eax
push edi
push esi
push 0
push 0x10006514
mov dword [ebp - 0x1c], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10071f64
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x10006dc4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x10071fb7
push 0x80004005
jmp 0x10071f2a
mov esi, dword [ebp - 0x20]
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000fe1b
mov byte [ebp - 4], 2
movzx eax, word [esi + 0x14]
push eax
movzx eax, word [esi + 0x16]
push eax
movzx eax, word [esi + 0x10]
push eax
movzx eax, word [esi + 0x12]
push eax
lea eax, [ebp - 0x18]
push 0x100096f0
push eax
call fcn.1003efc0
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
add esp, 0x18
push dword [esi - 0xc]
push esi
call fcn.1002c0d5
push dword [ebp - 0x14]
mov ecx, 0x10088ae0
push 0x50
pop edx
call fcn.1005eb81
lea ecx, [esi - 0x10]
call fcn.1002c4f4
test edi, edi
je 0x10072025
push edi
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1000fe6d
mov esi, dword [ebx]
lea edi, [ebp - 0x38]
xor eax, eax
stosd dword es:[edi], eax
push 0x1f
mov ecx, dword [esi + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x38]
push eax
push 0x100096c0
push ebx
mov dword [ebp - 0x30], 0x10088ae0
call dword [0x10089918]
call dword [esi + 0x1c]
test eax, eax
jns 0x1007206d
push eax
jmp 0x10071f2a
call fcn.1007563c
ret

Function at 0x1007323e
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esi], 0x10002e74
cmp dword [ecx], 0xffffffff
je 0x10073256
call fcn.10049bc4
cmp byte [esi + 0xd], 0
jne 0x1007326b
cmp byte [esi + 0xc], 0
je 0x1007326b
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
pop esi
jmp fcn.10049b0a