joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43de00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43de33
push esi
call fcn.00440f00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43de2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43deb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43dea2
mov eax, dword [esi + 8]
test eax, eax
je 0x43de57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43de9e
cmp eax, 2
je 0x43dea2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43de4a
cmp eax, 3
je 0x43de7d
cmp eax, 1
jne 0x43de4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43de4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43de4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043dee0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43dec8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043dee0
add esp, 4
pop esi
ret

Function at 0x449a50
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x449af3
test eax, eax
jbe 0x449af3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x449af3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x449a9e
xor esi, esi
jmp 0x449aa4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x449acf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00403170
add esi, eax
push esi
mov ebx, esi
call fcn.00403170
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x449ab0
pop ebp
test edi, edi
pop edi
jne 0x449af3
test ebx, ebx
je 0x449af3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00450d10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x449c35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x449d4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x449d4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00462134
mov esi, eax
test esi, esi
je 0x449d4d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x449d4d
mov ecx, esi
call fcn.00449ba0
cmp edi, eax
jge 0x449d4d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x449cd3
mov dword [esp + 0x34], 1
jmp 0x449d2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x449d4d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00449140
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x44bdd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44be36
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44be36
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44be17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x44c1c0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44c1f8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x44ce80
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44cec9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44d340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46edd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044cef0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044cf70
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044cf70
lea ecx, [esi + 0xc]
call fcn.004606be
lea ecx, [esi + 0x10]
call fcn.004606be
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044e500
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044e500
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044e500
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00460733
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00460733
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x462ad7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462b0f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00460b8e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460b66
jmp 0x462b1b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4641c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46420b
call fcn.00469f42
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46420b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464202
xor eax, eax
jmp 0x464213
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464219
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a472
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a4a0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a4be
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a3d8
jmp 0x46a4be
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a4be
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a3d8
test edi, edi
mov eax, edi
jne 0x46a4a8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov eax, 0x4013a4
call fcn.004011f0
sub esp, 0x54
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp + 8]
xor ebx, ebx
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x401046
mov al, byte [esi]
cmp al, bl
je 0x401046
cmp al, 0x20
je 0x401046
push 0x403010
lea ecx, [ebp + 8]
call fcn.0040119c
push esi
lea ecx, [ebp + 8]
call fcn.0040119c
push 0x44
lea eax, [ebp - 0x60]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
je 0x401099
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [ebp + 0x10], bl
je 0x401097
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x4010b7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea ecx, [ebp - 4]
call fcn.004011d2
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 8]
mov esi, 0xff
push esi
push esi
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x40111d
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareTkx.ApplicationsCurrent_Lppa
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
push dword [ebp - 4]
push 1
push edi
push str.Product_Path
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 8]
call fcn.004011d2
push str.lppa.exe
lea ecx, [ebp - 8]
call sub.MFC42.DLL_CString::operator
push 1
push dword [ebp + 0x10]
push dword [ebp - 8]
call section..text
lea ecx, [ebp - 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 4]
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x408e20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408dd4
test al, al
jne 0x408e41
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408e8d
xor eax, eax
push ebp
push 0x408e7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033cc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e84
lea eax, [ebp - 0xc]
call fcn.00408e10
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409194
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x409283
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406bf0
mov edx, dword [ebp - 8]
mov ecx, 0x40929c
xor eax, eax
call fcn.00409088
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x409251
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x4091b4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00408c5c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404b80
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407180
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.00408c2c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x40454c
call fcn.0040577c
call fcn.00402e88
jmp 0x4091b4
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40928a
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403170
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403170
ret

Function at 0x409350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4093aa
inc esi
xor edi, edi
cmp edi, 1
jne 0x409376
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x409384
cmp edi, 1
jle 0x409384
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408e20
test eax, eax
jne 0x4093aa
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x4093aa
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x4093aa
inc edi
dec esi
jne 0x409366
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x43712b
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004372db
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x437229
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4371cc
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x43720f
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4371e3
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4371fe
test al, 0x40
je 0x4371f5
mov ecx, dword [edi + 0x20]
jmp 0x4371fc
test al, 0x80
je 0x43720f
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x43720f
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x43719b
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4be914
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
test eax, 0x80000000
je 0x4be931
mov edx, eax
and edx, 0x7fffffff
mov dword [ebp - 0xc], edx
jmp 0x4be936
xor edx, edx
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
and dword [ebp - 4], 0
mov eax, dword [ebx + 0x3c]
push edi
mov esi, dword [eax + ebx + 0x78]
lea eax, [eax + ebx + 0x18]
add esi, ebx
mov eax, dword [eax + 0x64]
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24]
add edi, ebx
add ecx, ebx
add eax, ebx
test edx, edx
mov dword [ebp - 0x10], eax
je 0x4be976
mov eax, dword [esi + 0x10]
imul eax, eax, 0x3fffffff
add eax, edx
jmp 0x4be9b4
and dword [ebp + 8], 0
cmp dword [esi + 0x18], 0
jbe 0x4be9bc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, ebx
push eax
call fcn.004be9e2
pop ecx
test eax, eax
pop ecx
jne 0x4be9aa
inc dword [ebp + 8]
add dword [ebp - 8], 4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x18]
jb 0x4be983
jmp 0x4be9bc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx eax, word [eax + ecx*2]
mov edi, dword [edi + eax*4]
add edi, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], 0
je 0x4be9da
cmp dword [ebp - 4], esi
jbe 0x4be9da
mov eax, dword [ebp - 0x14]
add eax, esi
cmp dword [ebp - 4], eax
jae 0x4be9da
push dword [ebp - 0xc]
push ebx
call dword [ebp + 0x10]
jmp 0x4be9dd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bea0c
Capabilities:
Encode data using xor

Disassembly:
push ecx
push eax
push esi
push edi
mov ecx, edi
sub ecx, eax
mov esi, eax
mov edi, esi
lodsb al, byte [esi]
xor al, 0x4c
stosb byte es:[edi], al
loop 0x4bea18
pop edi
pop esi
pop eax
pop ecx
ret

Function at 0x4bea23
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x4b0b70
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 1
push esi
push esi
push edi
push esi
pop ebx
mov dword [ebp - 8], esi
call fcn.004adbeb
push edx
pop ecx
mov dword [ebp - 0x18], eax
and eax, ecx
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
je 0x4b0bf8
push 2
push esi
push esi
push edi
call fcn.004adbeb
mov ecx, eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b0bf8
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x4b0c8f
jg 0x4b0bd2
or esi, esi
je 0x4b0c8f
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
or eax, eax
jne 0x4b0c04
call fcn.004a86b4
mov dword [eax], 0xc
call fcn.004a86b4
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.004b0d4e
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jl 0x4b0c2c
jg 0x4b0c25
cmp esi, 0x1000
jb 0x4b0c2c
mov eax, 0x1000
jmp 0x4b0c2e
mov eax, esi
push eax
push dword [ebp - 0xc]
push edi
call fcn.004acff8
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b0c55
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x4b0c70
jg 0x4b0c17
or esi, esi
je 0x4b0c70
jmp 0x4b0c17
call fcn.004a8680
cmp dword [eax], 5
jne 0x4b0c6a
call fcn.004a86b4
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.004b0d4e
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4b0cf5
or eax, eax
jg 0x4b0d01
jl 0x4b0c99
or esi, esi
jae 0x4b0d01
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004adbeb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b0bf8
push edi
call fcn.004b077a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
push eax
pop ebx
push edx
pop eax
mov ecx, ebx
and ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
jne 0x4b0d01
call fcn.004a86b4
mov dword [eax], 0xd
call fcn.004a8680
push eax
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x4b0bf8
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.004adbeb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b0bf8
xor eax, eax
jmp 0x4b0bff

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c
Function at 0x4012e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
push esi
mov esi, dword [sym.imp.qt_mt332.dll_public:_void___thiscall_QString::constructor_char_const__]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstalliPACS5000
lea ecx, [ebp - 0xc]
call esi
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push eax
call dword [sym.imp.qt_mt332.dll_public:_char_const____thiscall_QString::ascii_void_const]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4013aa
mov al, byte [0x40e640]
push edi
mov byte [ebp - 0x20], al
xor eax, eax
lea edi, [ebp - 0x1f]
mov dword [ebp - 0x14], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xa
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Language
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 4]
push eax
call esi
mov esi, dword [sym.imp.qt_mt332.dll_bool___cdecl_operator_class_QString_const___char_const__]
lea eax, [ebp - 4]
push 0x40e08c
push eax
call esi
pop ecx
pop ecx
pop edi
test al, al
je 0x401387
mov word [0x40e644], 1
jmp 0x4013a1
lea eax, [ebp - 4]
push 0x40e088
push eax
call esi
pop ecx
test al, al
pop ecx
je 0x4013a1
mov word [0x40e644], 2
lea ecx, [ebp - 4]
call dword [sym.imp.qt_mt332.dll_public:_void___thiscall_QString::destructor_void_]
cmp word [0x40e644], 0
pop esi
jne 0x4013be
mov word [0x40e644], 1
lea ecx, [ebp - 0xc]
call dword [sym.imp.qt_mt332.dll_public:_void___thiscall_QString::destructor_void_]
leave
ret
Function at 0x402ff8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x477020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403090
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403070
xor eax, eax
push ebp
push 0x403069
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4030ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403070
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x477020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x477020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d44
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47904c], 0
je 0x403da5
cmp word [0x479220], 0xd7b2
jne 0x403d6d
cmp dword [0x479228], 0
jbe 0x403d6d
mov eax, 0x47921c
call dword [0x479238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47706c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403dcc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x477030], 0
jne 0x403dc1
push 0
push 0x477064
push 0x47706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403ef8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ec0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc