joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 2
push 0
mov dword [ebp - 8], edx
mov ebx, 0xc0000022
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, 0x13
mov dword [ebp - 0x10], eax
mov esi, 0x414f50
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x417ce0], 2
movsw word es:[edi], word [esi]
jl 0x401f52
movaps xmm4, xmmword [0x4152f0]
movaps xmm3, xmmword [0x415350]
movaps xmm5, xmmword [0x415310]
movaps xmm6, xmmword [0x415330]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x60]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x60], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x58]
xorps xmm1, xmm0
movq qword [ebp + ecx*2 - 0x58], xmm1
add ecx, 8
cmp ecx, 0x20
jl 0x401e64
cmp ecx, 0x27
jge 0x401f7a
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x3a
sub edx, eax
add edx, 0x34
xor word [ebp + ecx*2 - 0x60], dx
inc ecx
cmp ecx, 0x27
jl 0x401f52
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.00401010
mov esi, dword [ebp - 4]
add esp, 8
test eax, eax
jne 0x401fb4
test esi, esi
je 0x401fc0
mov eax, dword [esi]
push 0
push 0
push 0
push dword [ebp - 8]
mov eax, dword [eax + 0x24]
push dword [ebp - 0xc]
push esi
call eax
mov ebx, eax
sar ebx, 0x1f
and ebx, 0xc0000022
test esi, esi
je 0x401fc0
mov ecx, dword [esi]
push esi
mov ecx, dword [ecx + 8]
call ecx
cmp dword [ebp - 0x10], 0
jne 0x401fcc
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4031de
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40321d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40321d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40321d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40321d
cmp dword [ecx + 0x74], 0xe
jbe 0x40321d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x409248
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4092e5
push ebx
push esi
call fcn.00409211
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004091a5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409292
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4092e4
push edi
push eax
call fcn.00407c24
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4092b2
call fcn.00407c72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4092e3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004091a5
add esp, 0x20
test eax, eax
jne 0x4092d1
push edi
call fcn.00407c72
jmp 0x4092d9
push ebx
call fcn.00407c72
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40a2a3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412208
push 0x412200
push str.FlsAlloc
push 0x1f
call fcn.0040a1bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a2d7
push dword [ebp + 8]
mov ecx, esi
call dword [0x41013c]
call esi
jmp 0x40a2dd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a321
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412218
push 0x412210
push str.FlsGetValue
push 0x21
call fcn.0040a1bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a358
push dword [ebp + 8]
mov ecx, esi
call dword [0x41013c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a360
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412220
push 0x412218
push str.FlsSetValue
push 0x22
call fcn.0040a1bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a39a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41013c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x401440
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x1108
call fcn.00410ad0
mov eax, dword [0x41d0f0]
xor eax, esp
mov dword [esp + 0x1104], eax
push str.DownloadHost.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 4], eax
je 0x401486
push str.GetDownLoadHost
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40147e
call eax
jmp 0x401480
xor eax, eax
mov dword [esi + 0x11c], eax
push ebp
push edi
lea edi, [esi + 0x18]
push esi
push str.APPWINDOW__p
mov edx, edi
call fcn.00403b20
mov eax, dword [esi + 0x10]
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push eax
call ebp
test eax, eax
jne 0x4014c8
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push SysReAllocString
push edi
push str.static
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x10]
push ecx
call ebp
test eax, eax
je 0x4015c1
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x401630
push 0xfffffffffffffffc
push edx
call edi
push esi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
push 0xffffffffffffffeb
push eax
call edi
mov ecx, dword [esi + 0x10]
push 0
push ecx
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x11c]
test ecx, ecx
je 0x4015c1
mov edx, dword [ecx]
mov eax, dword [esi + 0x10]
mov edx, dword [edx + 4]
push str.http:__qt.qq.com
push 0x41a0e8
push 0x41a0f0
push 0x401
push eax
call edx
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00408b40
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0xfff
lea eax, [esp + 0x111]
push 0
push eax
mov byte [esp + 0x118], 0
call fcn.00408b40
lea ecx, [esp + 0x14]
push ecx
push str.C:Program_FilesTencentQTalk
lea edx, [esp + 0x120]
push str.__S_path__s__path2__s__id_2_
push edx
mov eax, 0x1000
call fcn.00403b40
mov ecx, dword [esi + 0x11c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
add esp, 0x1c
push str.notify__u_
lea edx, [esp + 0x110]
push edx
call eax
mov ecx, dword [esp + 0x110c]
pop edi
pop ebp
xor ecx, esp
call fcn.0040798b
add esp, 0x1108
ret

Function at 0x402600
Capabilities:
Create process on windows

Disassembly:
push ecx
push edi
mov edi, eax
mov eax, dword [edi + 0x130]
add edi, 0x130
cmp dword [eax - 0xc], 0
jne 0x40261b
xor eax, eax
pop edi
pop ecx
ret
lea ecx, [esp + 4]
push esi
push ecx
call fcn.00404a70
mov esi, dword [esp + 0xc]
mov edx, dword [edi]
add esp, 4
push 5
push esi
push 0
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x40265c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop edi
pop ecx
ret
Function at 0x402670
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x416906
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x41d0f0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push edi
mov eax, dword [0x41d0f0]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x26]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0x104
mov word [esp + 0x2c], bx
call fcn.00408b40
mov edx, dword [0x41f584]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x402727
mov ecx, dword [0x41f588]
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x402727
push 0x41a1fc
lea eax, [esi + 0x130]
call fcn.00402d00
xor eax, eax
jmp 0x402811
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 0x41a1bc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40276b
push 0x41a1fc
lea eax, [esi + 0x130]
xor ebx, ebx
call fcn.00402d00
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x402811
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00402840
mov dword [esp + 0x234], ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebp, eax
cmp ebp, ebx
je 0x4027e4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.00402840
lea edi, [esi + 0x130]
mov byte [esp + 0x234], 1
call fcn.00402ba0
mov byte [esp + 0x234], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x234], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40280f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040798b
add esp, 0x228
ret
Function at 0x403ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403cb7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403ce8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403ce4
cmp esi, eax
jae 0x403ce8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403cd4
cmp esi, eax
jb 0x403cee
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x406840
Capabilities:
Link many functions at runtime

Disassembly:
push eax
mov dword [esi], vtable.CDataReport.0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 4], eax
je 0x40692f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitializeDataReport
push eax
call edi
mov ecx, dword [esi + 4]
push str.UninitalizeDataReport
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.SetClientVersion
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.SetClientUin
push eax
call edi
mov ecx, dword [esi + 4]
push str.ReportString
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.ReportBinary
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.ReportFile
push eax
call edi
mov ecx, dword [esi + 4]
push str.ReportSystemInfo
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 4]
push str.ArraySetValueDW
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 4]
push str.ArraySetValueDB
push eax
call edi
mov ecx, dword [esi + 4]
push str.ArrayIncValueDW
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 4]
push str.ArrayIncValueDB
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 4]
push str.ArrayDecValueDW
push eax
call edi
mov ecx, dword [esi + 4]
push str.ArrayDecValueDB
push ecx
mov dword [esi + 0x38], eax
call edi
mov edx, dword [esi + 4]
push str.Flush
push edx
mov dword [esi + 0x3c], eax
call edi
mov dword [esi + 0x40], eax
pop edi
mov eax, esi
ret

Function at 0x406e3e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41d0f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00406d7d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00408b40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x406e8d
cmp dword [ebp - 0x1c], 5
jb 0x406ea5
jmp 0x406ea1
cmp dword [ebp - 0x10], 1
jne 0x406ea5
cmp dword [ebp - 0x1c], 4
ja 0x406ea1
jne 0x406ea5
cmp dword [ebp - 0x18], 0
jbe 0x406ea5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4182ec
call fcn.00406c13
test eax, eax
jge 0x406ec6
mov byte [0x41f7a4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040798b
add ebp, 0x78
leave
ret

Function at 0x40798b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d0f0]
jne 0x407995
repz ret
jmp fcn.0040dc4f
Function at 0x40da6c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41d2c8]
je 0x40da87
inc edi
cmp edi, 0x17
jb 0x40da78
cmp edi, 0x17
jae 0x40dc07
push ebp
push 3
call fcn.00412a5a
cmp eax, 1
pop ecx
je 0x40dbd3
push 3
call fcn.00412a5a
test eax, eax
pop ecx
jne 0x40dabb
cmp dword [0x41d0e8], 1
je 0x40dbd3
cmp ebx, 0xfc
je 0x40dc06
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41ea18
push ebp
call fcn.0040d3a8
add esp, 0xc
test eax, eax
je 0x40daf1
push esi
push esi
push esi
push esi
push esi
call fcn.004079a4
add esp, 0x14
push 0x104
mov esi, 0x41ea31
push esi
push 0
mov byte [0x41eb35], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40db35
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040d3a8
add esp, 0xc
test eax, eax
je 0x40db35
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004079a4
add esp, 0x14
push esi
call fcn.00408fe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40db7a
push esi
call fcn.00408fe0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41ed2c
push 0x41938c
sub ecx, eax
push ecx
push eax
call fcn.00411756
add esp, 0x14
test eax, eax
je 0x40db7a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004079a4
add esp, 0x14
jmp 0x40db7c
xor esi, esi
push 0x419388
push ebx
push ebp
call fcn.004116e5
add esp, 0xc
test eax, eax
je 0x40db9c
push esi
push esi
push esi
push esi
push esi
call fcn.004079a4
add esp, 0x14
push dword [edi*8 + 0x41d2cc]
push ebx
push ebp
call fcn.004116e5
add esp, 0xc
test eax, eax
je 0x40dbbe
push esi
push esi
push esi
push esi
push esi
call fcn.004079a4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041289d
add esp, 0xc
jmp 0x40dc06
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40dc06
cmp ebp, 0xffffffff
je 0x40dc06
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41d2cc]
push dword [esi]
call fcn.00408fe0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41289d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040d4e7
xor ebx, ebx
cmp dword [0x41f478], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x412973
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x412a53
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x412a53
push eax
call fcn.0040d479
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f478], eax
call esi
push eax
call fcn.0040d479
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f47c], eax
call esi
push eax
call fcn.0040d479
mov dword [0x41f480], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407f27
test eax, eax
pop ecx
pop ecx
je 0x412941
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004079a4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x412973
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040d479
cmp eax, ebx
pop ecx
mov dword [0x41f488], eax
je 0x412973
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d479
pop ecx
mov dword [0x41f484], eax
mov eax, dword [0x41f484]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4129f8
cmp dword [0x41f488], ecx
je 0x4129f8
push eax
call fcn.0040d4f0
push dword [0x41f488]
mov esi, eax
call fcn.0040d4f0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4129f8
cmp edi, ebx
je 0x4129f8
call esi
cmp eax, ebx
je 0x4129c5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4129c5
test byte [ebp - 0x18], 1
jne 0x4129f8
lea eax, [ebp - 0x10]
push eax
call fcn.00407f5e
test eax, eax
pop ecx
je 0x4129e0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004079a4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4129ef
or dword [ebp + 0x10], 0x200000
jmp 0x412a33
or dword [ebp + 0x10], 0x40000
jmp 0x412a33
mov eax, dword [0x41f47c]
cmp eax, dword [ebp - 8]
je 0x412a33
push eax
call fcn.0040d4f0
cmp eax, ebx
pop ecx
je 0x412a33
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412a33
mov eax, dword [0x41f480]
cmp eax, dword [ebp - 8]
je 0x412a33
push eax
call fcn.0040d4f0
cmp eax, ebx
pop ecx
je 0x412a33
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41f478]
call fcn.0040d4f0
cmp eax, ebx
pop ecx
je 0x412a53
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412a55
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x68a17b
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
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x68a198
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x68a189
add dl, dl
jne 0x68a1a3
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x68a1ef
xor eax, eax
add dl, dl
jne 0x68a1b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x68a28c
add dl, dl
jne 0x68a1bf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x68a1ca
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x68a1d5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x68a1e0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x68a1ea
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x68a18f
mov eax, 1
add dl, dl
jne 0x68a1fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x68a208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x68a1f4
sub eax, 2
jne 0x68a237
mov ecx, 1
add dl, dl
jne 0x68a21d
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x68a228
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x68a214
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x68a18f
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x68a24e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x68a259
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x68a245
cmp eax, 0x7d00
jae 0x68a27c
cmp eax, 0x500
jb 0x68a277
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x68a18f
cmp eax, 0x7f
ja 0x68a27f
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x68a18f
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x68a2a8
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x68a18f
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret
Function at 0x403810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x484020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403888
xor eax, eax
push ebp
push 0x403881
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 0x4038c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403888
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x484020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x484020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x486048], 0
je 0x40464d
cmp word [0x48621c], 0xd7b2
jne 0x404615
cmp dword [0x486224], 0
jbe 0x404615
mov eax, 0x486218
call dword [0x486234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x484070
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404674
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x484030], 0
jne 0x404669
push 0
push 0x484068
push 0x484070
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret