joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a950
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x446948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov byte [esp + 0x44], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x42a9be
lea ecx, [esp + 0x14]
call fcn.0041191a
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x42a9f1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.0042ab30
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.0040ffb5
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.0041191a
xor al, al
jmp 0x42ab04
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x42aa1f
cmp eax, ebx
je 0x42aa19
cmp edi, ebx
je 0x42aa19
push eax
call edi
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x42aa56
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x42aa4e
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x42aa4e
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x42aa4e
cmp edi, ebx
je 0x42aa4e
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jmp 0x42aaa1
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x42aa83
cmp eax, ebx
je 0x42aa7d
cmp ebp, ebx
je 0x42aa7d
push eax
call ebp
mov eax, esi
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x42aaae
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42aa9a
cmp edi, ebx
je 0x42aa9a
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42aaaa
cmp edi, ebx
je 0x42aaaa
push eax
call edi
xor al, al
jmp 0x42ab04
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push esi
call fcn.0042a6e0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42aadf
cmp ebp, ebx
je 0x42aadf
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42aaf2
cmp edi, ebx
je 0x42aaf2
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42ab02
cmp edi, ebx
je 0x42ab02
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x433180
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x7c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x80]
lea ecx, [esp + 0x18]
push 2
push ecx
mov edx, dword [edi]
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov eax, 0xa
push 0x50
add ecx, eax
sub ebp, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
push eax
push ebx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 0x28]
test al, al
je 0x433328
push 0x458884
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ebx
call ebp
push 0xffffffffffffffec
push ebx
mov esi, eax
call ebp
push 0
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [esp + 0x28]
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
sub edx, eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x34]
shr esi, 0x10
sub edx, ecx
and esi, 0xff7faffc
push edx
push eax
or esi, 0x50000000
push ecx
lea eax, [esp + 0x48]
push esi
push eax
push str.STATIC
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x433328
mov ecx, dword [edi]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push ecx
call ebp
push 1
push eax
push 0x30
push esi
mov dword [esp + 0x8c], eax
call ebp
push 0x4330c0
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push edi
push str.PROP_STAT_PSKIN
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_SetPropA]
push ebp
push str.PROP_STAT_OLDPROC
push esi
call dword [sym.imp.USER32.dll_SetPropA]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
je 0x4332fd
mov edx, dword [esp + 0x7c]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x2c]
push eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push ebp
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 2
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x14c]
push edi
push esi
call fcn.00433330
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x43f400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
push 2
movsx ecx, ax
and eax, 0xffff
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov edx, dword [ebx + 0x10]
push eax
push edi
mov dword [esi + 0x30], edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x43f444
pop edi
pop esi
pop ebx
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x43f456
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call fcn.0043f480
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x441fd4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
lea eax, [ebp - 0x10]
push 4
push eax
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x7863513
push dword [ebp + 0xc]
call fcn.00442168
add esp, 0x10
mov dword [ebp - 4], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x44212f
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.004421a6
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x442125
push edi
push edi
push edi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x44211c
mov ebx, dword [ebp + 8]
xor ecx, ecx
or ebx, esi
xor esi, esi
cmp ecx, edi
mov dword [ebp - 0x1c], edi
jl 0x4420f2
jg 0x442096
cmp ebx, edi
jbe 0x4420f2
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], edi
cdq
push edx
push eax
push dword [ebp - 0x1c]
push esi
je 0x4420bf
call fcn.004224a0
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.0044213e
jmp 0x4420d7
call fcn.004224a0
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.00442153
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov byte [esi + ecx], al
add esi, 1
adc dword [ebp - 0x1c], edi
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
jl 0x442096
jg 0x4420f2
cmp esi, ebx
jb 0x442096
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x442110
mov eax, dword [esi + 4]
cmp eax, edi
je 0x442110
push dword [esi + 8]
push ecx
push ebx
push dword [ebp + 0xc]
call eax
add esp, 0x10
mov dword [esi + 0xc], eax
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push dword [ebp - 4]
call fcn.0041fd63
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x442168
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
call fcn.00420d90
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
mov ebx, eax
jle 0x4421a0
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
mov eax, esi
lea ecx, [esi + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [edi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
jl 0x442185
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x406b80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fecc8
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push 0
mov dword [ebp - 0x120], esi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_tmpnam_s]
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.Qt5CoreKso.dll_public:_static_class_kso_qt::QString___cdecl_kso_qt::QString::fromLocal8Bit_char_const___int_]
add esp, 0x20
cmp dword [ebp + 0xc], 1
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 1
jne 0x406c1e
push str..ini
jmp 0x406c23
push 0x515fc0
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QString____thiscall_kso_qt::QString::append_char_const__]
lea eax, [ebp - 0x11c]
push esi
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_static_class_kso_qt::QString___cdecl_kso_qt::QDir::toNativeSeparators_class_kso_qt::QString_const__]
add esp, 8
mov ecx, esi
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QString____thiscall_kso_qt::QString::operator_class_kso_qt::QString__]
lea ecx, [ebp - 0x11c]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
push esi
call dword [sym.imp.Qt5CoreKso.dll_public:_static_bool___cdecl_kso_qt::QFile::exists_class_kso_qt::QString_const__]
add esp, 4
test al, al
je 0x406c78
push 0
mov ecx, esi
call dword [sym.imp.Qt5CoreKso.dll_public:_unsigned_short_int_const____thiscall_kso_qt::QString::utf16_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.Qt5CoreKso.dll_public:_static_bool___cdecl_kso_qt::QFile::remove_class_kso_qt::QString_const__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 8

Function at 0x4076f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.Qt5CoreKso.dll_public:_unsigned_short_int_const____thiscall_kso_qt::QString::utf16_void_const]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40772b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40772b
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret
xor bl, bl
test esi, esi
je 0x407738
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x407740
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.Qt5CoreKso.dll_public:_unsigned_short_int_const____thiscall_kso_qt::QString::utf16_void_const]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40777d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40777d
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
xor bl, bl
test esi, esi
je 0x40778a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x40b400
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fface
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x567e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0040a990
test al, al
jne 0x40b48e
mov eax, dword [ebx + 8]
test eax, eax
je 0x40b442
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x10
call fcn.004c6f3f
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40b474
push ecx
lea eax, [ebx + 0xc]
mov ecx, esp
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::constructor_class_kso_qt::QString_const__]
mov ecx, esi
call fcn.00405470
mov esi, eax
jmp 0x40b476
xor esi, esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Qt5CoreKso.dll_public:_static_class_kso_qt::QThreadPool____cdecl_kso_qt::QThreadPool::globalInstance_void_]
push 0
push esi
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QThreadPool::start_class_kso_qt::QRunnable___int_]
mov eax, dword [ebx + 8]
test eax, eax
je 0x40b4a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
mov dword [ebp - 0x14], esi
push 0xa
push str.updateinfo
mov dword [ebp - 4], 1
call dword [sym.imp.Qt5CoreKso.dll_private:_static_struct_kso_qt::QTypedArrayData_unsigned_short_int_____cdecl_kso_qt::QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QSettings::beginGroup_class_kso_qt::QString_const__]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
push 0xc
push str.UpdateResult
call dword [sym.imp.Qt5CoreKso.dll_private:_static_struct_kso_qt::QTypedArrayData_unsigned_short_int_____cdecl_kso_qt::QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QSettings::remove_class_kso_qt::QString_const__]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
mov ecx, ebx
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QObject::deleteLater_void_]
test esi, esi
je 0x40b52b
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4117d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5002b7
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24c], 0
mov eax, dword [esi]
test eax, eax
jne 0x4119a0
mov dword [ebp - 0x230], eax
push 0x208
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x24c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x41187d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411870
jmp 0x4118cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4118e2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4118e2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4118c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403a70
push str._version.dll
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040e0e0
mov edx, dword [ebp - 0x21c]
add esp, 0xc
cmp edx, 8
jb 0x41193f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411935
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x411935
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x234]
mov dword [esi], eax
cmp edx, 8
jb 0x41199e
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411994
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x411994
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x412c40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x56c518]
inc eax
mov dword [0x56c518], eax
cmp eax, 0x64
jl 0x412ca1
push esi
lea esi, [ecx + 0x18]
mov dword [0x56c518], 0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x412c78
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x412ca0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jbe 0x412ca0
cmp dword [esi + 0x14], 8
jb 0x412c99
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 4
Function at 0x4137c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50048d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x567e00]
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, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x413818
push str.Invalid_args.
push str.kupdate::KCommandLine::ParseCommandLine
push 0x7b
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKCommandLine.cpp
push edi
call fcn.00412230
add esp, 0x14
mov eax, 0x80070057
jmp 0x413950
push edi
push str.Command_line:__s.
push str.kupdate::KCommandLine::ParseCommandLine
push 0x7f
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKCommandLine.cpp
push 7
call fcn.00412230
mov esi, dword [ebx]
add esp, 0x18
mov ecx, ebx
push dword [esi + 4]
push ebx
call fcn.004132c0
mov ecx, edi
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [ebx + 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413855
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebx + 8]
call fcn.00403a70
mov ecx, edi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413890
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00403a70
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push 0x20
push eax
call fcn.00452380
add esp, 8
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [ebp - 0x2c]
mov esi, eax
push str.argc_d.
push str.kupdate::KCommandLine::_DoParseCmdLine
push 0x71
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKCommandLine.cpp
push 7
call fcn.00412230
add esp, 0x18
mov ecx, ebx
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x2c]
call fcn.00413970
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41394e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413944
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413944
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, edi
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.004c6f8b
mov esp, ebp
pop ebp
ret 8
Function at 0x416280
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4162b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0xc], 0
jne 0x4162a6
cmp eax, 2
je 0x4162b4
cmp eax, 3
je 0x4162b4
test eax, eax
jle 0x4162b6
movzx eax, ax
or eax, 0x80070000
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4162c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4162d9
test al, 0x10
je 0x4162d9
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x416b00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416b19
test al, 0x10
jne 0x416b19
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret