joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412bc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0
mov dword [ebp - 4], 0
push dword [edi]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ecx, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x412d46
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x412c3a
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x412c47
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00405eb0
push dword [ebp - 0x30]
call fcn.004c42fc
add esp, 4
mov esi, eax
push esi
push dword [ebp - 0x30]
push 0
push dword [edi]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x412cc4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x69b09c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x412cc4
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push esi
call fcn.004c46a4
add esp, 0x18
cmp byte [esi], 0
jne 0x412cac
xor ecx, ecx
jmp 0x412cba
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412cb1
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00404a10
push esi
call fcn.004c440c
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004149b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00405940
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00414d80
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x34]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x412d21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x412d3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x412d48
xor esi, esi
cmp dword [ebp - 0x14], 0x10
jb 0x412d59
push dword [ebp - 0x28]
call fcn.004c41b0
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.004c392d
mov esp, ebp
pop ebp
ret
Function at 0x413050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e372
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x818], esi
mov dword [esi], 0
call fcn.00405030
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4130ba
push 0x80004005
call fcn.00404ef0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x814], 1
call fcn.004cf9d0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x413149
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
jmp 0x413110
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413110
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00417120
push 1
push 0x69b09c
mov ecx, esi
call fcn.00416640
mov ecx, dword [edi]
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.00416640
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c392d
mov esp, ebp
pop ebp
ret

Function at 0x413170
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
xor esi, esi
xorps xmm0, xmm0
push 0xf003f
push esi
push str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionRun
movq qword [ebp - 0x10], xmm0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413206
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.PddWorkbench
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call edi
push 0xf003f
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x10]
push reloc.WS2_32.dll_accept
call fcn.00416f30
test eax, eax
jne 0x413203
mov esi, dword [ebp - 0x10]
push str.PddWorkbench
push esi
call edi
test eax, eax
je 0x413225
lea ecx, [ebp - 0x10]
call fcn.00416fc0
mov esi, dword [ebp - 0x10]
xor edi, edi
test esi, esi
je 0x413213
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004c392d
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x413232
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edi, 1
jmp 0x413208
Function at 0x413390
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4133e8
mov esi, dword [ebp - 8]
push 0x69ad70
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x413404
test esi, esi
je 0x4133e8
push esi
call edi
xor esi, esi
xor bl, bl
test esi, esi
je 0x4133f1
push esi
call edi
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c392d
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x413413
push esi
call edi
xor esi, esi
mov bl, 1
jmp 0x4133ea
Function at 0x416580
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0xc]
or eax, 0x2001f
push esi
push edi
sub esp, 8
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push eax
sub esp, 0xc
mov dword [ebp - 8], 0
push dword [ecx]
lea ecx, [ebp - 0x10]
call fcn.004164e0
mov edi, dword [ebp - 0x10]
mov esi, eax
test esi, esi
jne 0x416617
test ebx, ebx
jne 0x4165e5
lea esi, [ebx + 0xd]
jmp 0x416617
mov ecx, ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4165f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x416622
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c392d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x416b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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
jne 0x416b79
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x416bb4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x416bb0
lea ebx, [ebx]
cmp esi, edx
jae 0x416bb4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x416ba0
cmp esi, edx
jb 0x416bbb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x416e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416eab
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x416e6d
cmp eax, 2
jne 0x416e89
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x416ea5
test ecx, ecx
je 0x416ea0
test cl, 1
jne 0x416e89
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x416ea5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c392d
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c392d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417db0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x417df5
xorps xmm0, xmm0
movq qword [esp + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.005acf90
mov dword [esp + 0x10], eax
test esi, esi
jne 0x417e08
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004c392d
mov esp, ebp
pop ebp
ret
mov edx, 0x69b4a0
lea ecx, [esp + 0xc]
call fcn.00417c50
int3
Function at 0x432d70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 0x19c], eax
push esi
mov esi, ecx
mov eax, 1
push edi
mov ecx, 0x6f62a8
lock xadd dword [ecx], eax
inc eax
mov edi, 0x6f62ac
cmp eax, 1
jne 0x432db6
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [edi], eax
cmp byte [ebp + 8], 0
je 0x432dc6
xor eax, eax
lock xadd dword [edi], eax
test eax, eax
jne 0x432dde
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004c392d
mov esp, ebp
pop ebp
ret 4
xorps xmm0, xmm0
movq qword [esp + 8], xmm0
mov dword [esp + 8], eax
call fcn.005acf90
mov edx, str.winsock
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
call fcn.00417c50
int3

Function at 0x434f50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6252a0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.004c4828
mov dword [ebp - 4], 0
lea ecx, [esi + 0x14]
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404890
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x434fda
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x436440
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6252c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.004c4828
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404890
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43f3f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x626628
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov edi, dword [ebp + 8]
cmp ebx, 2
jae 0x43f431
xor eax, eax
jmp 0x43f548
push 0x69cef8
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004378e0
mov dword [ebp - 4], 0
mov al, byte [esi]
cmp al, 0x89
jne 0x43f45f
cmp byte [esi + 1], 0x50
jne 0x43f45f
push 0x69cf00
jmp 0x43f490
cmp al, 0xff
jne 0x43f470
cmp byte [esi + 1], 0xd8
jne 0x43f470
push 0x69cef8
jmp 0x43f490
cmp al, 0x42
jne 0x43f481
cmp byte [esi + 1], 0x4d
jne 0x43f481
push 0x69cf08
jmp 0x43f490
cmp al, 0x47
jne 0x43f498
cmp byte [esi + 1], 0x49
jne 0x43f498
push 0x69cf10
lea ecx, [ebp - 0x14]
call fcn.00437850
mov eax, dword [ebp - 0x14]
mov ecx, edi
push dword [eax - 0xc]
push eax
call fcn.00416640
push dword [edi]
lea ecx, [ebp - 0x18]
call fcn.00416d80
push dword [eax]
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x43f4d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43f520
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
cmp dword [ebp - 0x18], eax
sete bl
jmp 0x43f522
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43f546
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c392d
mov esp, ebp
pop ebp
ret
Function at 0x43f570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, edx
cmp edi, 2
jb 0x43f619
push dword [esi]
lea ecx, [ebp - 8]
call fcn.00416d80
push dword [eax]
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov edx, dword [ebp - 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43f5c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43f619
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 8], edi
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c392d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c392d
mov esp, ebp
pop ebp
ret
Function at 0x4400c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
lea esi, [ecx + 4]
push edi
push str..jpg
mov edx, esi
lea ecx, [ebp - 4]
call fcn.00414be0
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 4]
or ebx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 8], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44010b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 8]
test eax, eax
je 0x440129
push 4
push str..jpg
mov ecx, esi
call fcn.00416640
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push str..png
mov edx, esi
lea ecx, [ebp - 8]
call fcn.00414be0
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 8]
mov edx, ebx
add edi, 0xfffffff0
mov dword [ebp - 4], eax
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440165
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 4]
test eax, eax
je 0x440183
push 4
push str..png
mov ecx, esi
call fcn.00416640
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push str..bmp
mov edx, esi
lea ecx, [ebp - 8]
call fcn.00414be0
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 8]
mov edx, ebx
add edi, 0xfffffff0
mov dword [ebp - 4], eax
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4401bf
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4401db
push str..bmp
mov ecx, esi
call fcn.00414a60
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push str..gif
mov edx, esi
lea ecx, [ebp - 8]
call fcn.00414be0
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 8]
mov edi, eax
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x440211
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x44022d
push str..gif
mov ecx, esi
call fcn.00414a60
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441530
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x6d45e0]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x4415cd
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 0x30]
mov ecx, edi
push 0
call fcn.00441600
mov esi, dword [edi + 0xc]
dec esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x4415ab
test esi, esi
js 0x4415e1
cmp esi, dword [edi + 0xc]
jge 0x4415e1
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x44159f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
dec esi
jns 0x441571
push dword [edi + 0x40]
call ebx
lea esi, [edi + 0x14]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call ebx
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c392d
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x441600
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x6d45e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
jne 0x441633
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c392d
mov esp, ebp
pop ebp
ret 8
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp + 8]
cmp eax, ecx
je 0x44171e
jge 0x44174e
sub ecx, eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], ecx
test ecx, ecx
jle 0x44171e
push dword [edi + 0x3c]
lea ebx, [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 1
xchg dword [ebx], eax
push 0xffffffffffffffff
push 0
push 0
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push dword [ebp + 0xc]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4416b3
xor eax, eax
xchg dword [ebx], eax
test eax, eax
je 0x4416bb
mov ecx, 0x102
call fcn.00442d60
mov edi, eax
jmp 0x441720
test eax, eax
jne 0x441745
mov ecx, dword [edi + 0xc]
xor esi, esi
test ecx, ecx
jle 0x44170e
mov eax, dword [edi + 4]
mov edx, dword [edi + 0x10]
lea ebx, [ebx]
cmp dword [eax], edx
je 0x4416de
inc esi
add eax, 4
cmp esi, ecx
jl 0x4416d0
jmp 0x44170e
cmp esi, 0xffffffff
je 0x44170e
push esi
lea ecx, [edi + 4]
call fcn.00441940
push 0xea60
mov ebx, dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44173e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea ecx, [edi + 4]
call fcn.00441880
mov ebx, dword [ebp - 8]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0xc]
jl 0x441668
xor edi, edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c392d
mov esp, ebp
pop ebp
ret 8
mov edi, 0x80004005
jmp 0x441720
call fcn.00416ac0
mov edi, eax
jmp 0x441720
sub eax, ecx
xor ebx, ebx
mov dword [ebp + 8], eax
test eax, eax
jle 0x44171e
lea esp, [esp]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x441970
push dword [edi + 0x2c]
push 0
call fcn.004cb926
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4417cf
push dword [ebp + 0xc]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4417c1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 4]
call fcn.004417f0
test eax, eax
jne 0x4417b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x441760
jmp 0x44171e
cmp eax, 0x102
jne 0x4417cf
mov edi, 0x80070102
jmp 0x4417d6
call fcn.00416ac0
mov edi, eax
test esi, esi
je 0x441720
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x441720