joyce8/EMBER2024-capa huggingface dataset:
Function at 0x739d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x739d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x739d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x739d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x739d94
push eax
push esi
call fcn.0073c20b
add esp, 8
pop esi
ret 0x10

Function at 0x739da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x739e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x739e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x752320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0073bdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x739dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x739e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x739ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x739eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x752320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0073bdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x739eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x739e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x73a000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x73a131
push esi
call fcn.0073d145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0072c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x73a131
push 0
push ebp
call fcn.0072c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0072c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x73a08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0072c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x73a121
push 0x752918
push edi
call fcn.0073b3f0
push eax
push ebx
push esi
call fcn.00739f60
push 0x7528f8
push edi
call fcn.0073b3f0
push eax
push ebx
push esi
call fcn.00739f60
push 0x7528d8
push edi
call fcn.0073b3f0
push eax
push ebx
push esi
call fcn.00739f60
push 0x7528c0
push edi
call fcn.0073b3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00739f60
push 0x7528a0
push edi
call fcn.0073b3f0
push eax
push ebx
push esi
call fcn.00739f60
push 0x752888
push edi
call fcn.0073b3f0
push eax
push ebx
push esi
call fcn.00739f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x73b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0073b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0073b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0073b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0073b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x73bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x73bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x74d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x73bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x73bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x47c15bec
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x45dc1894
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401c80
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x401d2d
push esi
push 0x34
push str.QZDMTermService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401cbf
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
add esp, 0x1c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0xc]
push eax
push esi
call ebx
test eax, eax
je 0x401d1f
cmp dword [esp + 0x10], 4
jne 0x401d1f
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401d1f
lea edx, [esp + 0xc]
push edx
push esi
call ebx
cmp eax, 1
jne 0x401d1f
jmp 0x401d00
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x10], 1
je 0x401d1f
lea ecx, [esp + 0xc]
push ecx
push esi
call ebx
cmp eax, 1
je 0x401d00
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
pop esi
pop edi
add esp, 0x1c
ret

Function at 0x401f40
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x401ffa
push esi
push 0x34
push str.QZDMTermService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401f7f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
add esp, 0x1c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0xc]
push eax
push esi
call ebx
test eax, eax
jne 0x401fa5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
pop esi
pop edi
add esp, 0x1c
ret
cmp dword [esp + 0x10], 1
push ebp
jne 0x401feb
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x401feb
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
cmp eax, 1
jne 0x401feb
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov edx, dword [esp + 0x28]
push edx
call ebp
cmp dword [esp + 0x14], 4
je 0x401feb
lea eax, [esp + 0x10]
push eax
push esi
call ebx
cmp eax, 1
je 0x401fd0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x1c
ret
Function at 0x402000
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43408b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x443430]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push edi
mov eax, dword [0x443430]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
push 0x447308
lea ecx, [esp + 0x10]
call fcn.00404170
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x124], 0
call fcn.00403a90
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402066
mov eax, 0x447308
lea esi, [esp + 0x10]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402080
sub eax, edx
cmp byte [esp + eax + 0x10], 0x5c
je 0x4020b4
lea edi, [esp + 0x10]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4020a0
mov cx, word [0x43a468]
mov word [edi], cx
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ebx, [ebx]
cmp byte [esi], 0
je 0x402106
push 0x43a468
push esi
call fcn.0041ff80
mov esi, eax
add esp, 8
test esi, esi
je 0x402106
lea edx, [esp + 0x10]
push 0
push edx
mov byte [esi], 0
call fcn.0041f5fa
add esp, 8
cmp eax, 0xffffffff
jne 0x4020fd
push 0
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
je 0x402106
add esi, 1
mov byte [esi - 1], 0x5c
jne 0x4020c0
mov dword [esp + 0x120], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402131
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041f2bf
add esp, 0x118
ret
Function at 0x402160
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43404b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x443430]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [0x443430]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
push 0x43ae3c
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.00404170
lea eax, [esp + 8]
push eax
push 0x19
push 0
mov dword [esp + 0x128], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
lea ecx, [esp + 0xc]
je 0x4021f1
push 0x19
push 0x43a894
push ecx
call fcn.0041f4bd
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.004040e0
add esp, 0x10
jmp 0x40227a
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
lea eax, [esp + 0xc]
jne 0x402248
push 0x19
push str.SHGetPathFromIDList
push eax
call fcn.0041f4bd
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.004040e0
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x12c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40229e
lea edx, [eax + 1]
jmp 0x402250
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402250
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call fcn.00403fd0
mov eax, dword [esp + 4]
add eax, 0xfffffff0
push eax
call fcn.004040e0
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x11c], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4022aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0041f2bf
add esp, 0x11c
ret

Function at 0x4022d0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push 0x40
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x24], 0x44
call fcn.00420b80
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
push eax
push 0
mov dword [esp + 0x6c], 0x101
mov word [esp + 0x70], 5
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402355
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, 1
pop esi
add esp, 0x5c
ret
xor eax, eax
pop esi
add esp, 0x5c
ret
Function at 0x402360
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Print debug messages

Disassembly:
sub esp, 0x58
push 0x40
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0x44
call fcn.00420b80
add esp, 0xc
xor eax, eax
lea ecx, [esp]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x64], 0x101
mov word [esp + 0x68], 5
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4023e0
mov ecx, dword [esp]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
add esp, 0x58
ret
push str.CreateProcess_run_faild_in_FileSystemWatcher::ExecCommandNoWait_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x58
ret
Function at 0x403390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x433f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x443430]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
push edi
mov eax, dword [0x443430]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x21]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x28], 0
call fcn.00420b80
add esp, 0xc
xor eax, eax
jmp 0x4033f0
mov cl, byte [eax + 0x447308]
mov byte [esp + eax + 0x1c], cl
add eax, 1
test cl, cl
jne 0x4033f0
lea eax, [esp + 0x1c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x403408
mov ecx, dword [0x43ab34]
mov edx, dword [0x43ab38]
mov dword [eax], ecx
mov ecx, dword [0x43ab3c]
mov dword [eax + 4], edx
mov dx, word [0x43ab40]
mov dword [eax + 8], ecx
mov cl, byte [0x43ab42]
mov word [eax + 0xc], dx
mov byte [eax + 0xe], cl
call fcn.004088f7
movzx edx, word [esp + 0x13c]
mov eax, dword [eax + 8]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4034c8
call fcn.004088f7
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call fcn.004088f7
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4034c8
lea ecx, [esp + 0xc]
call fcn.00404afb
push 0
push 0x3002
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0
call fcn.004050d1
test eax, eax
lea ecx, [esp + 0xc]
jne 0x4034cc
mov dword [esp + 0x134], 0xffffffff
call fcn.00404cca
xor eax, eax
jmp 0x4034f5
push edi
push esi
call fcn.004046e3
lea ecx, [esp + 0xc]
call fcn.00404994
lea ecx, [esp + 0xc]
mov dword [esp + 0x134], 0xffffffff
call fcn.00404cca
mov eax, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0041f2bf
add esp, 0x12c
ret 4

Function at 0x403520
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x443430]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x4035af
mov eax, dword [esp + 8]
test eax, eax
jne 0x403571
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041f2bf
add esp, 0x98
ret
cmp eax, 1
jne 0x403590
mov eax, 2
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041f2bf
add esp, 0x98
ret
cmp eax, 2
jne 0x403614
mov eax, 3
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041f2bf
add esp, 0x98
ret
cmp eax, 6
jne 0x403614
mov eax, dword [esp + 8]
test eax, eax
jne 0x4035d6
mov eax, 4
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041f2bf
add esp, 0x98
ret
cmp eax, 1
jne 0x4035f5
mov eax, 5
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041f2bf
add esp, 0x98
ret
cmp eax, 2
jne 0x403614
mov eax, 6
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041f2bf
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.0041f2bf
add esp, 0x98
ret
Function at 0x403960
Capabilities:
Get common file path
Print debug messages

Disassembly:
sub esp, 0x20c
mov eax, dword [0x443430]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00420b80
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4039a3
mov edx, dword [str.qzdm]
mov cx, word [0x43ab4c]
mov dword [eax], edx
push 0x103
lea edx, [esp + 0x109]
push 0
push edx
mov word [eax + 4], cx
mov byte [esp + 0x110], 0
call fcn.00420b80
add esp, 0xc
xor eax, eax
mov cl, byte [esp + eax]
mov byte [esp + eax + 0x104], cl
add eax, 1
test cl, cl
jne 0x4039e1
lea eax, [esp + 0x104]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x403a00
mov ecx, dword [str.qzdmtray.exe]
mov edx, dword [0x43ad60]
mov dword [eax], ecx
mov ecx, dword [0x43ad64]
mov dword [eax + 4], edx
mov dx, word [0x43ad68]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x104]
push 0
push eax
call fcn.0041f5fa
add esp, 8
cmp eax, 0xffffffff
jne 0x403a68
push str.qzdmtray_no_setup_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041f2bf
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, 1
call fcn.0041f2bf
add esp, 0x20c
ret

Function at 0x4043e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4043f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404434
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404430
lea ebx, [ebx]
cmp esi, eax
jae 0x404434
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404420
cmp esi, eax
jb 0x40443a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406a96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x406adc
call fcn.004088f7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x406adc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x406b1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x406b08
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x406b08
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x406b1c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40f092
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40f0d5
call fcn.004088f7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f0d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f0f0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040ec49
test ebx, ebx
mov esi, eax
je 0x40f0ee
test edi, edi
je 0x40f0ee
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41162f
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 0x41165d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41167b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411599
jmp 0x41167b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41167b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00411599
test edi, edi
mov eax, edi
jne 0x411665
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4464b0]
test ecx, ecx
je 0x41173e
jmp 0x41162e
ret 8

Function at 0x41f2bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443430]
jne 0x41f2c9
repz ret
jmp fcn.00424156
Function at 0x41f573
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x41f5a0
call fcn.004211ea
mov dword [eax], esi
call fcn.004211d7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041f714
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x41f57c
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41f5cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004211fd
pop ecx
call fcn.004211d7
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41f5f6
test al, 1
je 0x41f5f6
test byte [esp + 0xc], 2
je 0x41f5f6
call fcn.004211ea
mov dword [eax], 5
call fcn.004211d7
mov dword [eax], 0xd
jmp 0x41f5c6
xor eax, eax
pop esi
ret