joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b5d0
Capabilities:
Check for peb beingdebugged flag
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e2d28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
mov eax, edi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48b621
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x18]
call fcn.00402530
push edi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48b661
cmp dword [esp + 0x28], 8
jb 0x48b6e2
mov eax, dword [esp + 0x14]
push eax
jmp 0x48b6da
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call esi
test eax, eax
jne 0x48b6ce
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0xb7
je 0x48b6ce
lea ecx, [esp + 0x10]
push ecx
call fcn.0048b4b0
add esp, 4
cmp dword [esp + 0x24], 0
jne 0x48b6a0
lea esi, [esp + 0x10]
call fcn.0040c0b0
xor eax, eax
jmp 0x48b6e7
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x48b6af
lea eax, [esp + 0x14]
push eax
call fcn.0048b5d0
add esp, 4
test eax, eax
je 0x48b693
push 0
push edi
call esi
test eax, eax
jne 0x48b6ce
call ebp
cmp eax, 0xb7
jne 0x48b693
cmp dword [esp + 0x28], 8
jb 0x48b6e2
mov edx, dword [esp + 0x14]
push edx
call fcn.004b83e9
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004b83ee
add esp, 0x2c
ret

Function at 0x48b710
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
xor ebx, ebx
push 0x228
lea eax, [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x14], ebx
call fcn.004be240
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x48b7b5
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x48b7ae
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov edi, edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x48b797
cmp eax, ebx
je 0x48b797
cmp eax, 4
je 0x48b797
lea edx, [esp + 0x30]
push str.QQPCRtp.exe
push edx
call fcn.004b9d0f
add esp, 8
test eax, eax
je 0x48b7a8
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48b770
jmp 0x48b7ad
mov ebx, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004b83ee
add esp, 0x230
ret
Function at 0x48b7d0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4e1307
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, dword [esp + 0x248]
xor edi, edi
cmp esi, edi
je 0x48ba33
push 0x208
lea eax, [esp + 0x2a]
push edi
push eax
mov word [esp + 0x30], di
call fcn.004be240
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.004be134
add esp, 0xc
test eax, eax
je 0x48ba33
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ba33
lea ecx, [esp + 0x24]
call fcn.0048c5a0
test al, al
je 0x48ba33
add dword [0x5155dc], 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.00409c00
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.File:
mov dword [esp + 0x244], edi
call fcn.00409c00
mov byte [esp + 0x240], 1
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
push 0x4f4e44
mov ecx, 0x5158b0
call fcn.00489aa0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.004016d0
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], 0xffffffff
call fcn.004016d0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
cmp ebp, edi
jne 0x48ba2f
cmp dword [esp + 0x24c], edi
je 0x48ba2f
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
call fcn.00409c00
lea eax, [esp + 0x20]
push eax
lea eax, [edi + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x244], 2
call fcn.00401030
push eax
mov ecx, str..tmp
call fcn.00413b40
add esp, 4
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.004016d0
test bl, bl
je 0x48ba16
lea esi, [esp + 0x18]
call fcn.004016f0
lea esi, [esp + 0x20]
mov byte [esp + 0x240], 3
call fcn.004139e0
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.00409ac0
mov ecx, 0x104
lea esi, [esp + 0x18]
mov byte [esp + 0x240], 4
call fcn.00401130
mov ecx, dword [esp + 0x1c]
push eax
push edi
push 0x4ef7d8
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
or eax, 0xffffffff
call fcn.00409a20
test edi, edi
jne 0x48b9bc
lea edx, [esp + 0x24]
push edx
push str._s.tmp
mov edi, esi
call fcn.00406130
mov esi, dword [esp + 0x20]
jmp 0x48b9c8
mov esi, dword [esp + 0x18]
push 1
push esi
call fcn.0048b7d0
add esp, 8
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004ba2e0
add esp, 8
test eax, eax
push 4
push 0
jne 0x48b9ea
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x48b9f7
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebp, eax
lea ecx, [esp + 0x1c]
call fcn.004016d0
lea ecx, [esp + 0x18]
call fcn.004016d0
lea ecx, [esp + 0x20]
call fcn.004016d0
mov eax, ebp
jmp 0x48ba35
push 4
push edi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.004016d0
mov eax, ebp
jmp 0x48ba35
xor eax, eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004b83ee
add esp, 0x230
ret
Function at 0x48c3f0
Capabilities:
Check for peb beingdebugged flag
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4e478b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x23
lea eax, [esp + 0x38]
push eax
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebp, 7
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea edx, [eax + 2]
jmp 0x48c460
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x48c460
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x34]
push ecx
lea esi, [esp + 0x1c]
call fcn.00402530
mov dword [esp + 0x244], ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x48c4b9
push ebx
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], ebx
push 0x4ef7d8
mov esi, edi
mov word [edi + 4], bx
call fcn.00402530
cmp dword [esp + 0x2c], 8
jb 0x48c56b
mov edx, dword [esp + 0x18]
push edx
jmp 0x48c563
lea esi, [eax - 1]
cmp eax, esi
ja 0x48c4c5
call fcn.004b7425
mov eax, dword [esp + 0x18]
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jae 0x48c4d8
lea eax, [esp + 0x18]
movzx eax, word [eax + esi*2]
cmp ax, 0x5c
je 0x48c4f8
cmp ax, 0x2f
je 0x48c4f8
push 1
push 0x4f09a4
lea ecx, [esp + 0x1c]
call fcn.00403580
push 0x10
push str.TencentQQPCMgr_
lea ecx, [esp + 0x1c]
call fcn.00403580
cmp dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x18]
jae 0x48c516
lea eax, [esp + 0x18]
push eax
call fcn.0048b5d0
add esp, 4
test eax, eax
jne 0x48c53c
mov edx, 0x4ef7d8
mov eax, edi
call fcn.00403710
cmp dword [esp + 0x2c], ebp
jb 0x48c56b
mov eax, dword [esp + 0x18]
push eax
jmp 0x48c563
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
lea eax, [esp + 0x1c]
mov ecx, edi
mov word [edi + 4], bx
call fcn.004020f0
cmp dword [esp + 0x2c], ebp
jb 0x48c56b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004b83e9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004b83ee
add esp, 0x238
ret
Function at 0x48c8b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
xor edi, edi
push 0x208
lea eax, [esp + 0x12]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x14], edi
mov word [esp + 0x18], di
call fcn.004be240
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
lea edx, [eax + 2]
jmp 0x48c910
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x48c910
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00402530
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004b83ee
add esp, 0x214
ret

Function at 0x48c950
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x40c], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48ca08
push 0x400
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004be240
mov ecx, dword [esp + 0xc]
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push str.Version
push ecx
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48c9fe
lea edx, [esp + 8]
push edx
push 0x104
push esi
call fcn.004b90bb
mov eax, dword [esp + 0xc]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004b83ee
add esp, 0x410
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
xor eax, eax
call fcn.004b83ee
add esp, 0x410
ret
Function at 0x48ca20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e1238
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004be240
mov edx, dword [0x5143cc]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5143cc
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push str._loadexit__superfetch:1
push esi
push str.__s___s
lea edi, [esp + 0x1c]
mov dword [esp + 0x84], 0
call fcn.00406130
mov edi, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
mov word [esp + 0x7c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x48cb42
push str._loadexit__superfetch:1
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QMTFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_s
mov ecx, 0x5158b0
call fcn.00489aa0
lea eax, [edi - 0x10]
add esp, 0x18
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48cb2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
test ebx, ebx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
je 0x48cb5a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x48cb67
push esi
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x48cb72
push eax
call ebx
lea eax, [edi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48cb96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
Function at 0x48cbb0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push esi
xor ebx, ebx
push ebx
push 2
mov dword [edi], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x48cbff
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x48cc20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004b83ee
add esp, 0x230
ret
cmp dword [esp + 0x14], ebx
jbe 0x48cc38
lea ecx, [esp + 0x30]
push ebp
push ecx
call fcn.004b9d0f
add esp, 8
test eax, eax
je 0x48cc49
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48cc20
jmp 0x48cc54
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004b83ee
add esp, 0x230
ret

Function at 0x48cc80
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push edi
mov esi, 1
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
push eax
lea edi, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.0048cbb0
mov ebx, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x48cd0d
push ebx
xor edi, edi
push edi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x48cd0b
push edi
push esi
call ebp
push 0x1f4
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x48cd0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x48cd0b
push ebx
push str.QMTProcess::CloseProcessByID___d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
mov esi, edi
add dword [esp + 0x10], 1
test ebx, ebx
je 0x48cd21
cmp dword [esp + 0x10], 0xa
jl 0x48cc9a
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x48d580
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4e46b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x38], eax
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
cmp dword [ebp + 4], 0
je 0x48d6ba
lea ecx, [esp + 0x2c]
call fcn.0048c8b0
lea edi, [esp + 0x2c]
mov dword [esp + 0x54], 0
call fcn.0048afb0
lea esi, [ebp + 8]
push esi
lea ecx, [esp + 0x14]
call fcn.0048a330
mov ecx, edi
push ecx
mov ecx, eax
mov byte [esp + 0x58], 1
call fcn.0048b0b0
mov edi, 8
mov byte [esp + 0x54], 0
cmp dword [esp + 0x28], edi
jb 0x48d612
mov edx, dword [esp + 0x14]
push edx
call fcn.004b83e9
add esp, 4
cmp dword [esp + 0x44], edi
mov ecx, dword [esp + 0x30]
jae 0x48d620
lea ecx, [esp + 0x30]
cmp dword [esi + 0x18], edi
jb 0x48d62a
mov eax, dword [esi + 4]
jmp 0x48d62d
lea eax, [esi + 4]
push ecx
push eax
push str.Copy_File___s______s_
mov ecx, 0x5158b0
call fcn.00489aa0
add esp, 0xc
cmp dword [0x5158b0], 0
jne 0x48d67b
cmp dword [0x5158bc], 0
mov dword [0x5158b0], 1
je 0x48d67b
mov eax, dword [0x5158b8]
test eax, eax
je 0x48d66d
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x5158bc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
jae 0x48d689
lea eax, [esp + 0x30]
cmp dword [esi + 0x18], edi
jb 0x48d693
mov esi, dword [esi + 4]
jmp 0x48d696
add esi, 4
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0x44], edi
mov dword [ebp + 4], 0
jb 0x48d6ba
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004b83e9
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004b83ee
add esp, 0x48
ret 4

Function at 0x48e738
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x48e78e
cmp dword [esp + 4], 0xffffffff
jne 0x48e74d
mov dword [esp + 4], 0xa4cb80
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48e789
cmp dword [esi + 0x18], 0xea89
jne 0x48e77f
mov eax, dword [esi + 0x14]
push 0
push 0
push 0
or eax, 0xdead0000
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
inc eax
jmp 0x48e790
xor eax, eax
ret 4
Function at 0x48e793
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x4f67c0
mov esi, ecx
push 0x8c
xor ebx, ebx
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x48e7db
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b83ee
leave
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x48e7ca
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x48e7ca
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x48e7ca
push ebx
push 0x80
push 2
push ebx
push 1
push 0x10000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48e82f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x48e7ca
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48e85a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x48e7cc
xor ebx, ebx
inc ebx
jmp 0x48e84c

Function at 0x48ed01
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x48ed28
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x48ed64
push edi
push edi
mov dword [ebp - 4], edi
call fcn.004b92a4
add esp, 0x18
mov dword [esi + 4], eax
xor eax, eax
cmp dword [esi + 4], edi
pop edi
setne al
leave
ret
Function at 0x48ee28
Capabilities:
Create thread
Resume thread

Disassembly:
push 4
mov eax, 0x4e62e2
call fcn.004be95c
xor edi, edi
cmp dword [esi], edi
jne 0x48eee7
cmp dword [esi + 8], edi
jne 0x48ee68
push 0x1c
call fcn.004b9140
cmp eax, edi
pop ecx
je 0x48ee63
mov dword [eax + 4], edi
mov dword [eax], vtable.QMDDetector::CMainDlg.0
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [eax + 8], edi
jmp 0x48ee65
xor eax, eax
mov dword [esi + 8], eax
cmp dword [esi + 0xc], edi
jne 0x48ee90
push 0x6c
call fcn.004b9140
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x48ee87
push eax
call fcn.0048f019
jmp 0x48ee89
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0xc], eax
cmp dword [esi + 0x10], edi
jne 0x48eeb8
push 0x78
call fcn.004b9140
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 1
je 0x48eeb3
push eax
call fcn.00493ef4
jmp 0x48eeb5
xor eax, eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x48eeef
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.004bea34
ret 0xc

Function at 0x48ef9f
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push esi
call fcn.0048eff1
mov esi, eax
cmp dword [esi], 0xffffffff
jne 0x48efb4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
pop esi
je 0x48efc5
mov eax, dword [eax + 0xc]
ret
xor eax, eax
ret

Function at 0x48f078
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x4def30
call fcn.004be9c5
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x2c]
call fcn.00416a60
mov eax, esi
xor edi, edi
mov byte [ebp - 4], 1
push eax
inc edi
lea ebx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x5c
call fcn.0047c800
cmp eax, 0xffffffff
je 0x48f0f2
push eax
mov eax, esi
push eax
xor ecx, ecx
lea esi, [ebp - 0x4c]
call fcn.00416c10
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004020f0
mov byte [ebp - 4], 1
call fcn.0040c0b0
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00416a60
call fcn.0048f078
add esp, 0x1c
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x48f0fe
lea eax, [ebp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x48f111
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x2c]
call fcn.0040c0b0
lea esi, [ebp + 8]
call fcn.0040c0b0
call fcn.004bea48
ret