joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4536d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
xor ebx, ebx
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0xc], ebx
call dword [eax + 0xc]
test eax, eax
je 0x453858
mov ecx, dword [esp + 8]
mov edx, dword [esi]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
cmp eax, ebx
je 0x453834
push ebp
push edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebx
push ecx
mov ecx, esi
call dword [edx + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x453819
xor edx, edx
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edx
call sub.MFC42u.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
je 0x45380c
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
lea eax, [esp + 0x38]
mov dword [esp + 0x30], ebx
push eax
push ecx
mov ecx, esi
call dword [edx + 0x1c]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4537a7
mov eax, dword [eax]
jmp 0x4537a9
xor eax, eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.004534d0
mov ebp, eax
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov dword [esp + 0x30], 0xffffffff
je 0x453808
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x453804
cmp edi, ebx
je 0x453804
mov eax, dword [edi]
cmp eax, ebx
je 0x4537eb
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4537fb
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
push edi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [esp + 0x38], ebx
cmp ebp, ebx
jne 0x453819
mov eax, dword [esp + 0x1c]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x14]
test eax, eax
jne 0x453727
pop edi
pop ebp
mov eax, dword [esp + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x18]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x20]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x454ed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49144b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
push 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov eax, 1
cmp esi, ebx
mov byte [ebp - 4], al
je 0x454f3d
mov edi, dword [ebp + 8]
mov dword [esi + 4], ebx
push edi
mov dword [esi + 8], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi], eax
jne 0x454f3f
cmp edi, ebx
je 0x454f3f
push 0x8007000e
call fcn.00436b27
jmp 0x454f3f
xor esi, esi
cmp esi, ebx
mov byte [ebp - 4], bl
mov dword [ebp - 0x14], esi
jne 0x454f53
push 0x8007000e
call fcn.00436b27
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
lea ecx, [edx + 4]
mov byte [ebp - 4], 2
call fcn.0041b990
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x454f9c
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x454f99
cmp esi, ebx
je 0x454f99
mov ecx, esi
call fcn.0040f940
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x454fa7
mov eax, dword [eax]
jmp 0x454fa9
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x454fd3
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x454fbf
mov eax, dword [eax]
jmp 0x454fc1
xor eax, eax
mov ecx, dword [ebp + 0xc]
push ebx
push eax
call fcn.0044a2d0
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x455012
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x455012
cmp esi, ebx
je 0x455012
mov eax, dword [esi]
cmp eax, ebx
je 0x454ff9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x455009
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x459e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491b73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004360da
lea edi, [esi + 0x10]
mov dword [esp + 0x28], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBitmap.0
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x28], 1
test ebx, ebx
mov dword [esi], vtable.FCMemDC.0
jne 0x459ed5
xor eax, eax
jmp 0x459ed8
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CDC::Attach
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x18]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
sub ecx, edx
mov edx, dword [eax + 8]
sub edx, dword [eax]
push ecx
push edx
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42u.DLL_CGdiObject::Attach
test edi, edi
je 0x459f3f
mov edi, dword [edi + 4]
mov eax, dword [esi + 4]
push edi
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x460c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49271f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004360e0
lea edi, [esi + 0x40]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.004360e0
mov dword [edi], vtable.CRichEditCtrl2.0
lea ecx, [esi + 0x80]
mov byte [esp + 0x28], 1
call sub.MFC42u.DLL_CString::CString_3
mov byte [esi + 0x84], bl
mov dword [esi + 0x88], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov byte [esp + 0x5c], 3
mov dword [esi + 0x8c], 0xffffffff
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi], vtable.FCDrawTextEx.0
call sub.MFC42u.DLL_AfxRegisterWndClass
push eax
push ebx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::CreateEx
mov eax, dword [edi]
push 0x4d2
lea ecx, [esp + 0x14]
push esi
push ecx
push 0x40000004
push 0x20
mov ecx, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [eax + 0xc4]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x46f730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
xor ebx, ebx
push esi
push edi
mov byte [esp + 0xc], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0xc]
mov dword [esp + 0x28], ebx
push edx
call fcn.00473660
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add ecx, eax
cmp esi, ecx
je 0x46f833
mov eax, esi
mov ecx, esi
shr eax, 0xa
mov edx, eax
shl edx, 0xa
sub ecx, edx
mov edx, dword [esp + 0x14]
cmp edx, eax
ja 0x46f7a5
sub eax, edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
add ecx, 0x28
call fcn.00446010
cmp eax, edi
je 0x46f7be
inc esi
jmp 0x46f77b
mov eax, esi
shr eax, 0xa
mov ecx, eax
shl ecx, 0xa
sub esi, ecx
mov ecx, esi
mov esi, dword [esp + 0x14]
cmp esi, eax
ja 0x46f7d6
sub eax, esi
mov edx, dword [esp + 0x10]
mov eax, dword [edx + eax*4]
mov edi, dword [eax + ecx*4]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46f7f7
dec eax
jne 0x46f7ef
mov dword [esp + 0x18], ebx
cmp eax, ebx
jne 0x46f7e8
mov dword [esp + 0x1c], eax
cmp esi, ebx
jbe 0x46f810
mov ecx, dword [esp + 0x10]
dec esi
mov edx, dword [ecx + esi*4]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp esi, ebx
ja 0x46f7fb
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
cmp eax, ebx
je 0x46f846
dec eax
jne 0x46f83e
mov dword [esp + 0x18], ebx
cmp eax, ebx
jne 0x46f837
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x14]
cmp esi, ebx
jbe 0x46f863
mov ecx, dword [esp + 0x10]
dec esi
mov edx, dword [ecx + esi*4]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
cmp esi, ebx
ja 0x46f84e
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x24]
add esp, 4
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x472ba0
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 0x488150
Capabilities:
Create process on windows
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cd98
push 0x436550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x834
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov word [ebp - 0x818], si
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x816]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push edi
push 0x4b2338
push 0x800
lea eax, [ebp - 0x818]
push eax
call fcn.0040b210
add esp, 0x10
push 5
push esi
lea ecx, [ebp - 0x818]
push ecx
push str.Explorer
push 0x4b99c0
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4881e6
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], esi
mov dword [ebp - 0x81c], esi
lea edx, [ebp - 0x81c]
push edx
push 0x4971fc
push 5
push esi
push 0x4971ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4882f7
mov eax, dword [ebp - 0x81c]
cmp eax, esi
je 0x4882d1
mov dword [ebp - 0x830], esi
mov ecx, dword [eax]
lea edx, [ebp - 0x830]
push edx
push eax
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x830]
cmp eax, esi
je 0x488255
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
mov eax, dword [ebp - 0x830]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x4882c5
mov word [ebp - 0x82c], si
mov word [ebp - 0x840], 8
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp - 0x81c]
mov ecx, dword [eax]
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x82c]
push edx
lea edx, [ebp - 0x840]
push edx
push eax
call dword [ecx + 0xd0]
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x81c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x405ece
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405ec6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405ed0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405eb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405fb0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x405fe1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405fe1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x405fe1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7e203633
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x32f368bb
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x518
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x514], eax
push ebp
mov ebp, dword [esp + 0x520]
push esi
push edi
mov ecx, 5
mov esi, str.SOFTWARETencentQDesk
lea edi, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x3e9
lea eax, [esp + 0x13b]
push 0
push eax
movsb byte es:[edi], byte [esi]
call sub.MSVCR80.dll_memset
push 0x104
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
lea edx, [esp + 0xc]
push edx
push 1
push 0
lea eax, [esp + 0x12c]
push eax
push 0x80000002
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010c5
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.InstallDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4010d0
sub eax, edx
add eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.MSVCR80.dll_strncpy]
push 2
push 0x4020c8
push ebp
call dword [sym.imp.MSVCR80.dll_strncat]
mov ecx, dword [esp + 0x538]
add esp, 0x18
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004016c6
add esp, 0x518
ret

Function at 0x401120
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x284
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x27c], eax
push 0x104
lea eax, [esp + 0x5d]
push 0
push eax
mov byte [esp + 0x64], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x5c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x14
lea ecx, [esp + 0x5c]
push str.QDeskSetup.exe
push ecx
call dword [sym.imp.MSVCR80.dll_strncat]
xor eax, eax
push 0x44
push eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call sub.MSVCR80.dll_memset
push 0x113
lea eax, [esp + 0x17d]
push 0
push eax
mov dword [esp + 0x34], 0x44
mov word [esp + 0x64], 5
mov dword [esp + 0x60], 1
mov byte [esp + 0x184], 0
call sub.MSVCR80.dll_memset
push 0x4020dc
push 0x4020e0
lea ecx, [esp + 0x84]
push ecx
push 0x4020e0
push str._s_s_s_s
lea edx, [esp + 0x198]
push 0x113
push edx
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x40
lea eax, [esp]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x180]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.004016c6
add esp, 0x284
ret
Function at 0x401250
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x284
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x27c], eax
push 0x104
lea eax, [esp + 0x5d]
push 0
push eax
mov byte [esp + 0x64], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x5c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x14
lea ecx, [esp + 0x5c]
push str.QDeskSetup.exe
push ecx
call dword [sym.imp.MSVCR80.dll_strncat]
xor eax, eax
push 0x44
push eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call sub.MSVCR80.dll_memset
push 0x113
lea eax, [esp + 0x17d]
push 0
push eax
mov dword [esp + 0x34], 0x44
mov word [esp + 0x64], 5
mov dword [esp + 0x60], 1
mov byte [esp + 0x184], 0
call sub.MSVCR80.dll_memset
push 0x4020dc
push 0x4020e0
lea ecx, [esp + 0x84]
push ecx
push 0x4020e0
push str._s_s_s_s
lea edx, [esp + 0x198]
push 0x113
push edx
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x40
lea eax, [esp]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x180]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401373
mov eax, dword [esp]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.004016c6
add esp, 0x284
ret
Function at 0x4016c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4016d0
repz ret
jmp fcn.004016ee
Function at 0x403981
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
xor edi, edi
test eax, eax
je 0x403999
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi + 0x2d0]
push eax
mov ecx, esi
call fcn.00444e77
test edi, edi
jg 0x403a24
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push ebp
mov ebp, 0x208
push ebp
push eax
push 0x4c0d4c
call ebx
mov edi, eax
test edi, edi
jg 0x403a13
mov eax, dword [esi]
push ebp
push eax
push 0x4c0d40
call ebx
mov edi, eax
test edi, edi
jg 0x403a13
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
test edi, edi
jle 0x403a23
mov eax, dword [esi]
push 0x4c0d34
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
add edi, 5
test edi, edi
jle 0x403a23
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [esi]
inc edi
and word [eax + edi*2], 0
pop ebp
push dword [esi]
mov ebx, 0x4dc0f8
mov ecx, ebx
call fcn.0041c0a9
test edi, edi
jle 0x403a42
push dword [esi]
call fcn.004ad0f1
test eax, eax
pop ecx
jne 0x403a70
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.TEMP_
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push dword [esi]
mov ecx, ebx
call fcn.0041c0a9
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x403e63
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push str.LC_ALL
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x403e99
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403ea8
mov eax, 0x4c0f44
push eax
mov ecx, 0x4dbca0
call fcn.0044e731
push dword [0x4dbca0]
call fcn.00445a72
cmp eax, 1
pop ecx
jle 0x403eca
mov word [0x4dbc18], ax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4dbc54]
test ecx, ecx
jle 0x404056
mov dword [0x4dbc54], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [0x4dbc54], eax
jmp 0x40408e
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x404086
sub eax, dword [0x4dbc54]
cmp eax, dword [ebp + 8]
jae 0x404096
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4da2ec], bl
jg 0x404066
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4dbc54]
pop esi
test ecx, ecx
jle 0x4040ab
mov dword [0x4dbc54], eax
xor eax, eax
cmp byte [0x4da2ec], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x404280
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4da2ec], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x14
pop esi
je 0x404297
push esi
call edi
cmp dword [0x4dbc64], 0
je 0x4042b2
push 0x1e
pop esi
jmp 0x4042b2
cmp dword [0x4dbc58], 0
je 0x4042b5
push 0xa
call edi
dec esi
jns 0x4042a5
mov eax, dword [0x4dbc58]
test eax, eax
pop edi
pop esi
je 0x4042d3
push 0
push eax
mov dword [0x4dbc58], 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov byte [0x4da2ec], 0xff
ret