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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 0x10
mov eax, dword [ebp + 8]
lea edi, [esp + 0x1c]
cdq
and edx, 7
lea esi, [ebp + 0x18]
add eax, edx
mov ebx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
sar ebx, 3
call fcn.0040f280
cmp eax, 0x40
mov ecx, esi
jbe 0x449204
call fcn.00427680
test eax, eax
je 0x449235
mov ecx, esi
call fcn.00427680
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
jmp 0x449235
call fcn.00427680
test eax, eax
je 0x449235
mov ecx, esi
call fcn.0040f280
mov ecx, esi
mov edi, eax
call fcn.00427680
mov esi, eax
mov eax, edi
lea edi, [esp + 0x1c]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, dword [ebp]
mov edx, dword [eax + 0x470cdc]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x449237
xor eax, eax
mov ecx, 0x100
mov edx, dword [ebp + 4]
mov esi, dword [eax + 0x470d24]
mov dword [edx + eax], esi
add eax, 4
dec ecx
jne 0x449252
cmp eax, 0x1000
jl 0x44924d
xor esi, esi
xor edi, edi
mov eax, dword [ebp]
lea ecx, [edi + eax]
lea eax, [esi + 1]
cdq
idiv ebx
mov dword [esp + 0x18], ecx
xor ecx, ecx
lea eax, [esi + 2]
add edi, 4
mov cl, byte [esp + edx + 0x1c]
cdq
idiv ebx
mov ch, byte [esp + esi + 0x1c]
xor eax, eax
shl ecx, 8
mov al, byte [esp + edx + 0x1c]
or ecx, eax
lea eax, [esi + 3]
cdq
idiv ebx
xor eax, eax
shl ecx, 8
mov al, byte [esp + edx + 0x1c]
or ecx, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, ecx
mov dword [eax], edx
lea eax, [esi + 4]
cdq
idiv ebx
cmp edi, 0x48
mov esi, edx
jl 0x44926f
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.004489b0
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
mov edx, dword [ebp]
mov eax, dword [esp + 0x14]
mov dword [esi + edx + 4], eax
add esi, 8
cmp esi, 0x48
jl 0x4492cf
mov esi, 4
mov edi, 0x80
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.004489b0
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax - 4], ecx
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx], eax
add esi, 8
dec edi
jne 0x449307
cmp esi, 0x1004
jl 0x449302
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x44a210
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov eax, dword [esp + 0x18]
test ebx, ebx
jne 0x44a225
mov eax, dword [esp + 0x1c]
xor edi, eax
mov ebp, 4
mov ecx, edi
shr ecx, 0x18
mov byte [esp + 0x10], cl
mov al, cl
mov edx, dword [esp + 0x10]
and al, 0x80
and edx, 0xff
neg al
sbb eax, eax
mov esi, edx
and eax, 0x14d
and esi, 0x7f
and eax, 0xff
and cl, 1
shl esi, 1
xor esi, eax
mov eax, edx
neg cl
sbb ecx, ecx
and ecx, 0xa6
shr eax, 1
xor ecx, eax
xor ecx, esi
mov eax, ecx
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, ecx
xor eax, edi
shl eax, 8
xor eax, edx
dec ebp
mov edi, eax
jne 0x44a22c
inc ebx
cmp ebx, 2
jl 0x44a219
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x44a2a0
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
xor esi, esi
call fcn.0041e0f0
test al, al
jne 0x44a2b7
mov esi, 3
lea eax, [esp + esi + 0x18]
mov ecx, esi
mov dword [esp + 0x1c], eax
mov eax, esi
xor ecx, 1
xor ebp, ebp
xor eax, 2
xor esi, 3
lea edx, [esp + ecx + 0x18]
mov dword [esp + 0x28], ebp
lea ecx, [esp + eax + 0x18]
lea edi, [esp + esi + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov esi, 0x474638
mov dl, byte [ebp + 0x471d40]
mov al, dl
mov cl, dl
and al, 2
mov bl, dl
neg al
sbb al, al
and cl, 1
and eax, 0xb4
mov byte [esp + 0x11], cl
neg cl
sbb cl, cl
and ecx, 0x5a
shr bl, 2
xor bl, cl
mov byte [esp + 0x12], cl
xor bl, al
mov cl, dl
xor bl, dl
shr cl, 1
mov byte [esp + 0x14], bl
mov bl, byte [esp + 0x11]
xor cl, dl
shr cl, 1
neg bl
sbb bl, bl
and ebx, 0xb4
xor cl, bl
mov bl, byte [esp + 0x12]
xor cl, bl
mov bl, byte [ebp + 0x471e40]
xor cl, al
mov al, bl
and al, 2
xor cl, dl
neg al
sbb al, al
and eax, 0xb4
mov byte [esp + 0x11], al
mov al, bl
and al, 1
mov byte [esp + 0x12], al
neg al
sbb al, al
and eax, 0x5a
shr bl, 2
mov byte [esp + 0x13], al
xor bl, al
mov al, byte [esp + 0x11]
xor bl, al
mov al, byte [ebp + 0x471e40]
xor bl, al
mov byte [esp + 0x17], al
mov byte [esp + 0x15], bl
mov bl, byte [esp + 0x17]
shr al, 1
xor al, bl
mov bl, byte [esp + 0x12]
shr al, 1
neg bl
sbb bl, bl
and ebx, 0xb4
xor al, bl
mov bl, byte [esp + 0x13]
xor al, bl
mov bl, byte [esp + 0x11]
xor al, bl
mov bl, byte [ebp + 0x471e40]
mov ebp, dword [esp + 0x1c]
xor al, bl
mov byte [ebp], bl
mov ebp, dword [esp + 0x20]
mov bl, byte [esp + 0x15]
mov byte [ebp], bl
mov ebx, dword [esp + 0x24]
mov byte [ebx], al
mov byte [edi], al
mov ebx, dword [esp + 0x18]
mov dword [esi - 0x400], ebx
mov ebx, dword [esp + 0x1c]
mov byte [ebx], cl
mov ebx, ebp
mov ebp, dword [esp + 0x24]
add esi, 4
mov byte [ebx], cl
mov bl, byte [esp + 0x14]
mov byte [ebp], bl
mov ebp, dword [esp + 0x1c]
mov byte [edi], dl
mov ebx, dword [esp + 0x18]
mov dword [esi - 4], ebx
mov bl, byte [esp + 0x15]
mov byte [ebp], bl
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov byte [ebx], al
mov ebx, dword [esp + 0x28]
mov bl, byte [ebx + 0x471e40]
mov byte [ebp], bl
mov ebx, dword [esp + 0x1c]
mov byte [edi], al
mov eax, dword [esp + 0x18]
mov dword [esi + 0x3fc], eax
mov al, byte [esp + 0x14]
mov byte [ebx], al
mov ebx, dword [esp + 0x20]
mov byte [ebx], dl
mov edx, ebp
mov ebp, dword [esp + 0x28]
mov byte [edx], cl
mov byte [edi], al
mov eax, dword [esp + 0x18]
inc ebp
mov dword [esi + 0x7fc], eax
cmp esi, 0x474a38
mov dword [esp + 0x28], ebp
jl 0x44a2eb
pop edi
pop esi
pop ebp
mov dword [0x471f40], 0
pop ebx
add esp, 0x1c
ret
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

Function at 0x4024b4
Capabilities:
Terminate process

Disassembly:
jmp 0x435492
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4354a3
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403873
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402545
Capabilities:
Query environment variable

Disassembly:
jmp 0x43a9b5
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43a9c9
xor edi, edi
jmp 0x43aa00
push ebx
push esi
call fcn.0043a8bf
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402a3b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43a9f0
push ebx
push esi
push edi
call fcn.00403724
add esp, 0xc
push 0
call fcn.00403d50
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x403797
Capabilities:
Parse pe header

Disassembly:
jmp 0x409c9b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409cda
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409cda
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409cda
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409cda
cmp dword [ecx + 0x74], 0xe
jbe 0x409cda
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x401e30
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x401ea0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x401e80
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401350
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x1000e3d6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
jne 0x1000e3f2
push 0x80004005
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1000e3f9
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1000e426
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
jne 0x1000e444
push 0x80004005
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x1000e455
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1000e44d
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000e9b1
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x10087d94]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x14]
push esi
push edi
push eax
mov edi, ecx
xor ecx, ecx
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1000ea95
cmp dword [esp + 0xc], esi
je 0x1000ea17
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
test esi, esi
jne 0x1000ea95
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push esi
push eax
jmp 0x1000ea64
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.1000e9b1
mov esi, eax
test esi, esi
jne 0x1000ea95
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000ea39
cmp dword [esp + 0xc], 0
je 0x1000ea8b
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push ebx
mov ecx, edi
call fcn.1000eba8
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x1000eaa6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10074c00
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f5c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10075c34
call fcn.100756f9
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x420], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
pop ecx
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1000eb0f
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000f62b
call fcn.1000e03a
mov esi, eax
jmp 0x1000f75e
push esi
push ebx
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x1000f64a
call fcn.1000e03a
jmp 0x1000f755
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x1000f640
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000f6a1
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000f68c
lea ecx, [ebp - 0x418]
call fcn.1000dffc
lea ecx, [ebp - 0x420]
call fcn.1000e48d
mov eax, 0x8007000e
jmp 0x1000f784
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x1000f6e2
cmp eax, 0xffffffff
ja 0x1000f6e2
cmp eax, 0x400
jbe 0x1000f6cd
push eax
lea ecx, [ebp - 0x418]
call fcn.1000e012
mov eax, dword [ebp - 0x418]
jmp 0x1000f6d9
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x1000f70e
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
mov eax, 0x1000f6f3
ret
test eax, eax
jne 0x1000f719
mov esi, 0x8007000e
jmp 0x1000f757
push ebx
push eax
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000f640
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.1000f470
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000f777
lea ecx, [ebp - 0x418]
call fcn.1000dffc
lea ecx, [ebp - 0x420]
call fcn.1000e48d
mov eax, esi
call fcn.1007564b
ret 0x10

Function at 0x1000fa01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000fa5d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000fa4f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1000fa4b
cmp esi, ecx
jae 0x1000fa4f
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1000fa39
cmp esi, ecx
jb 0x1000fa53
xor eax, eax
jmp 0x1000fa5c
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10029279
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
jne 0x10029292
mov eax, 0x80004003
jmp 0x100292f4
push edi
lock inc dword [esi + 4]
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push esi
push 0x1002ab70
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x100292c9
mov ecx, esi
call fcn.1002c563
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
jmp 0x100292f3
push dword [ebp + 8]
mov dword [ebp - 4], 0x800705b4
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100292e9
mov al, byte [esi + 0xc]
mov byte [ebx], al
mov eax, dword [esi + 8]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10039606
Capabilities:
Check mutex on windows

Disassembly:
push 0x18
mov eax, 0x10076e1f
call fcn.100756f9
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
cmp byte [ebx + 0x18], 0
jne 0x1003962a
push 0x80004005
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
push 0x10005bdc
push edi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x1003964a
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1003966f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x2b1d
call fcn.1003a4c6
call fcn.1007564b
ret
cmp byte [ebx + 0x61], 0
jne 0x10039682
push 1
push 0x5e1
call dword [sym.imp.PhotoBase.dll_void___stdcall_Sqm::Increment_unsigned_long_int__unsigned_long_int_]
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
test eax, eax
je 0x1003969a
push 0x6ef
jmp 0x1003969f
push 0x6f0
call dword [sym.imp.PhotoBase.dll_void___stdcall_Sqm::Increment_unsigned_long_int__unsigned_long_int_]
mov eax, dword [ebx + 0x4c]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0x14]
mov ecx, edi
call dword [0x10089918]
call edi
test eax, eax
jns 0x100396c2
push eax
jmp 0x10039624
mov eax, dword [ebx + 0x4c]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0x18]
mov ecx, edi
call dword [0x10089918]
call edi
test eax, eax
js 0x100396bc
mov eax, dword [ebx + 0x48]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0x54]
mov ecx, edi
call dword [0x10089918]
call edi
test eax, eax
js 0x100396bc
mov eax, dword [ebx + 0x58]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0x18]
mov ecx, edi
call dword [0x10089918]
call edi
test eax, eax
js 0x100396bc
mov eax, dword [ebx + 0x50]
push 1
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0xc]
mov ecx, edi
call dword [0x10089918]
call edi
test eax, eax
js 0x100396bc
mov eax, dword [ebx + 0x50]
push 0
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0x10]
mov ecx, edi
call dword [0x10089918]
call edi
test eax, eax
js 0x100396bc
mov ecx, dword [ebx + 0x54]
movzx eax, byte [ebx + 0x60]
push eax
push ecx
mov edx, dword [ecx]
mov edi, dword [edx + 0x10]
mov ecx, edi
call dword [0x10089918]
call edi
test eax, eax
js 0x100396bc
mov ecx, dword [ebx + 0x54]
movzx eax, byte [ebx + 0x61]
push eax
push ecx
mov edx, dword [ecx]
mov edi, dword [edx + 0xc]
mov ecx, edi
call dword [0x10089918]
call edi
test eax, eax
js 0x100396bc
mov eax, dword [ebx + 0x54]
push dword [ebx + 0x64]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0x14]
mov ecx, edi
call dword [0x10089918]
call edi
test eax, eax
js 0x100396bc
mov eax, dword [ebx + 0x4c]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0x20]
mov ecx, edi
call dword [0x10089918]
call edi
test eax, eax
js 0x100396bc
mov eax, dword [ebx + 0x68]
test eax, eax
js 0x100396bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10039669
Function at 0x10044916
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x10087d94]
xor eax, esp
mov dword [esp + 0x48], eax
fld1
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
fstp dword [esp + 0x10]
mov byte [esp + 0xf], bl
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + 0x98c]
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x10044a31
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
push ecx
mov esi, dword [eax + 0x50]
mov ecx, esi
call dword [0x10089918]
call esi
test eax, eax
jns 0x10044973
push eax
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x10044a36
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x10044a36
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x10044a36
lea eax, [esp + 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
jne 0x100449c7
push 0x80004005
jmp 0x1004496d
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x10044a36
push ecx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x3c]
call fcn.100411c9
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fdiv dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
neg ebx
neg eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
fstp dword [esp + 0x10]
mov byte [esp + 0xf], 1
fld dword [esp + 0x10]
lea ebx, [edi + 0x928]
mov eax, dword [esp + 0x14]
lea esi, [edi + 0x930]
fld st(0)
mov dword [ebx], eax
fld dword [esi]
mov eax, dword [esp + 0x18]
fucomp st(1)
mov dword [ebx + 4], eax
fnstsw ax
test ah, 0x44
jnp 0x10044a86
fxch st(1)
fstp dword [esi]
push ecx
fmul qword [0x10009d10]
lea ecx, [edi + 0x78]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
push edi
push 0x100456a0
call fcn.10045540
jmp 0x10044a8a
fstp st(0)
fstp st(0)
cmp dword [edi + 0x980], 0
je 0x10044ad5
cmp byte [esp + 0xf], 0
je 0x10044ad5
cmp byte [edi + 0x924], 0
je 0x10044ad5
mov eax, dword [ebx]
cmp eax, dword [edi + 0x8fc]
jne 0x10044acc
mov eax, dword [edi + 0x92c]
cmp eax, dword [edi + 0x900]
jne 0x10044acc
fld dword [esi]
fld dword [edi + 0x908]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10044ad5
push esi
push ebx
mov ecx, edi
call fcn.1004458c
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10074c00
mov esp, ebp
pop ebp
ret