joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ee90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x48
cmp eax, 1
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 0
jne 0x41f012
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x41eeca
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [ebx]
test eax, eax
je 0x41eedf
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebx], 0
mov esi, dword [sym.imp.WINMM.dll_mmioOpenA]
push 0
push 0
push edi
call esi
test eax, eax
mov dword [ebx + 4], eax
je 0x41f02b
push 0
push eax
call dword [sym.imp.WINMM.dll_mmioClose]
push 0x10000
push 0
push edi
call esi
test eax, eax
mov dword [ebx + 4], eax
jne 0x41efd2
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.WAVE
push edi
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x41ef3d
push 0x456b80
push edi
push eax
call ebp
mov esi, eax
test esi, esi
je 0x41f02b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41f02b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x41f02b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41f02b
push ebp
call sub.MFC71.DLL_operator_new
mov dword [ebx + 0x90], eax
mov edi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov ecx, 0x48
mov edi, edi
mov byte [eax], 0
inc eax
dec ecx
jne 0x41efa0
mov ecx, dword [ebx + 0x90]
push 0x10000
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x20], 0x204d454d
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ecx
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [ebx + 4], eax
mov ecx, ebx
call fcn.0041e670
mov esi, eax
test esi, esi
jge 0x41eff7
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.0041e7f0
test eax, eax
jl 0x41f06b
mov ecx, dword [ebx + 0xc]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x30], ecx
pop ebx
add esp, 0x48
ret 0xc
mov edx, dword [esp + 0x5c]
push 0x11002
push 0
push edx
call dword [sym.imp.WINMM.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x41f03a
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x60]
push eax
mov ecx, ebx
call fcn.0041eb20
mov esi, eax
test esi, esi
jge 0x41f064
mov ecx, dword [ebx + 4]
push 0
push ecx
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.0041e7f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
Function at 0x4219e0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 2
push 0
push esi
mov edi, ecx
call ebx
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push esi
mov ebp, eax
call ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
xor eax, eax
push esi
push 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push 4
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x4c]
push 4
push ecx
call ebx
mov edx, dword [esp + 0x58]
push esi
push 1
push 4
push edx
call ebx
mov eax, dword [esp + 0x5c]
add esp, 0x4c
cmp eax, 0x100
jne 0x421aa4
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
cmp ebp, ecx
jne 0x421aa4
push eax
mov dword [edi + 4], eax
call sub.MFC71.DLL_operator_new
mov edx, dword [esp + 0x1c]
push esi
push edx
push 1
push eax
mov dword [edi], eax
call ebx
mov ecx, dword [esp + 0x2c]
add esp, 0x14
xor eax, eax
test ecx, ecx
jle 0x421a9a
mov ecx, dword [edi]
mov dl, byte [ecx + eax]
add ecx, eax
add dl, 8
mov byte [ecx], dl
mov edx, dword [edi]
mov bl, byte [edx + eax]
lea ecx, [edx + eax]
xor bl, 0x32
mov byte [ecx], bl
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
jl 0x421a78
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
Function at 0x43ecc0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x46f518
call fcn.0043f3a0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43ed00
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43ed00
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43ed18
cmp eax, 0x20b
je 0x43ed05
mov dword [ebp - 0x1c], ebx
jmp 0x43ed2c
cmp dword [ecx + 0x84], 0xe
jbe 0x43ed00
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x43ed26
cmp dword [ecx + 0x74], 0xe
jbe 0x43ed00
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x1f49334], 0xffffffff
or dword [0x1f49338], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x1f48ee8]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x1f48ee4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1f49330], eax
call fcn.0043f498
call fcn.0043f538
cmp dword [0x4a4920], ebx
jne 0x43ed8c
push fcn.0043f538
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0043f526
push 0x475488
push 0x475484
call sub.MSVCR71.dll__initterm
push 0x43f4dc
call fcn.0043ec43
mov eax, dword [0x1f48ee0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x1f48edc]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x43ede0
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x475480
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x43ee5e
cmp al, bl
je 0x43ee0a
cmp dword [ebp - 0x20], ebx
jne 0x43ee5e
mov al, byte [esi]
cmp al, bl
je 0x43ee1a
cmp al, 0x20
ja 0x43ee1a
inc esi
mov dword [ebp - 0x24], esi
jmp 0x43ee0a
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x43ee36
movzx eax, word [ebp - 0x54]
jmp 0x43ee39
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00446308
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x43ee56
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x43eeb3
cmp al, 0x22
jne 0x43ee6d
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x43ee80
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x43edf8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0043f3db
ret
Function at 0x4402d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x441bb0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x441bbf
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4a49ac]
test eax, eax
je 0x441bcd
call fcn.00441b50
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x441ccf
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x1f48eec]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x1f48eec]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x1f48eec]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x1f48eec]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x1f48eec]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x1f48eec]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x1f48eec]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x1f48eec]
xor eax, ecx
inc esi
dec edi
jne 0x441be7
pop edi
test edx, edx
je 0x441cf1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x1f48eec]
xor eax, ecx
inc esi
dec edx
jne 0x441cd3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x40c9f0
Capabilities:
Create thread
Inject thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push esi
push edi
push eax
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40ca5f
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push 4
inc ebx
push 0x1000
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebp, eax
test ebp, ebp
je 0x40ca58
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40ca58
cmp dword [esp + 0x1c], ebx
je 0x40ca69
push 0x4000
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [esp + 0x10]
push edx
push 0
push ebp
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0x4000
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x40d5f6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x417f32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::CString_2
xor edi, edi
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov ecx, dword [esp + 0xc]
mov word [esi + 0x24], di
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40d930
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x417fa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 1
push eax
call sub.MFC42.DLL_CListCtrl::GetItemData
xor edi, edi
cmp eax, edi
jne 0x40d992
lea ecx, [esp + 0x20]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop edi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
push ebx
push ebp
mov ebp, dword [eax + 4]
push esi
mov esi, dword [esp + 0x28]
mov edx, dword [ebp + 8]
cmp edx, esi
jg 0x40dab7
mov eax, dword [ebp + 4]
lea ebx, [esi + 1]
cmp ebx, edi
jne 0x40d9cc
cmp eax, edi
je 0x40d9c1
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x40dab7
cmp eax, edi
jne 0x40da04
lea edi, [ebx*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x40dab7
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x40da22
cmp ebx, edx
jle 0x40da1a
mov ecx, ebx
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp + 8], ebx
jmp 0x40dab7
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x40da4c
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x40da40
mov eax, 4
jmp 0x40da4c
cmp eax, 0x400
jle 0x40da4c
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x24], eax
jl 0x40da5a
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x14], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
push 0x45c
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x2c]
mov edi, eax
push 0x64
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
push eax
push edi
call ebx
add esp, 0xc
lea ecx, [esp + 0x30]
push 0x3e8
push 0
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [edi + 0x64]
push eax
push edx
call ebx
mov eax, dword [ebp + 4]
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
mov dword [eax + esi*4], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x40e990
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.Riptide_Monitor
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e9bd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40ed80
Capabilities:
Check if file exists
Create process on windows
Delete file
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x418308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_2
push 0x43b2d0
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::operator
lea eax, [esp]
push str.Update.exe
lea ecx, [esp + 0xc]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
push 0x43b2d0
lea ecx, [esp + 8]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::operator
push str.Update.exe
lea ecx, [esp + 8]
call fcn.004165de
push str..tmp
lea ecx, [esp + 8]
call fcn.004165de
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ee4b
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [esp]
push 0
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x40ef30
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x20
mov ecx, 8
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x20
push eax
push 0x1004
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, 0x43a68c
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40ef8b
test cl, cl
je 0x40ef87
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40ef8b
add eax, 2
add esi, 2
test cl, cl
jne 0x40ef63
xor eax, eax
jmp 0x40ef90
sbb eax, eax
sbb eax, 0xffffffff
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffc18
pop esi
add eax, 0x3e8
pop ebx
mov dword [0x43b2c0], eax
mov eax, 1
add esp, 0x20
ret

Function at 0x410680
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
push eax
push str.SoftwareRiptideMonitor
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.TopMost
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
test eax, eax
je 0x4106f4
mov edx, dword [sym.imp.MFC42.DLL_CWndconstCWnd::wndTopMost]
push 3
push 0
push 0
push 0
push 0
push edx
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowPos
pop esi
add esp, 0xc
ret
Function at 0x4115f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4186e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x48]
test eax, eax
jne 0x41169a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004165de
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x411681
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x411681
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x48], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x411c00
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x194
mov cl, byte [eax]
push eax
cmp cl, 0x2e
je 0x411c20
push 0x43a88c
lea eax, [esp + 8]
push 0x32
push eax
jmp 0x411c2c
push 0x43a888
lea ecx, [esp + 8]
push 0x32
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 0x34]
lea eax, [esp]
push 0x4411
push 0x160
push edx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 0x38]
add esp, 0x194
ret

Function at 0x4125d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x54
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x5c]
mov dword [esp], 0x50
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp + 0x60]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x60]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41262a
mov ecx, dword [esp + 0x5c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0x54
ret
mov ecx, dword [esp + 0x64]
lea edx, [esp + 4]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0x54
ret

Function at 0x412e80
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x60], eax
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
mov byte [ecx + 0x64], al
mov byte [ecx + 0x65], al
ret
Function at 0x4133b0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
call fcn.0040cc80
test eax, eax
je 0x4133e3
mov ecx, dword [esp + 8]
mov edx, dword [esi + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4133e3
mov eax, 1
pop esi
ret 8
or eax, 0xffffffff
pop esi
ret 8

Function at 0x4133f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], 4
call fcn.0040cc80
test eax, eax
je 0x413430
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
mov eax, dword [esi + 4]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413430
mov eax, 1
pop esi
pop ecx
ret 8
or eax, 0xffffffff
pop esi
pop ecx
ret 8

Function at 0x413820
Capabilities:
Terminate process

Disassembly:
sub esp, 0x6c
mov eax, dword [str.prog]
mov cl, byte [0x43ac88]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
test eax, eax
mov byte [esp + 4], cl
jne 0x413842
lea eax, [esp]
test byte [0x43ac00], 2
je 0x4138f9
test byte [0x43ac08], 1
je 0x4138a5
push 0x43ac80
push eax
lea edx, [esp + 0x10]
push str._s._s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x18]
push 0x43ac74
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x18
mov dword [0x43ac40], eax
test eax, eax
jne 0x4138f9
lea ecx, [esp + 8]
push ecx
push str.cant_create_log_file__file_name:_s_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
push esi
mov esi, dword [esp + 0x74]
push 0x43ac80
mov edx, dword [esi]
push edx
push eax
lea eax, [esp + 0x18]
push str._s_d._s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x20]
push 0x43ac74
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x1c
mov dword [esi + 4], eax
test eax, eax
pop esi
jne 0x4138f9
lea edx, [esp + 8]
push edx
push str.cant_create_log_file__file_name:_s_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 0x6c
ret