joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410250
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x446178
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
mov ecx, 0x44ab18
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
call fcn.00402670
mov dword [esp + 0x34], ebx
mov edx, dword [0x4564f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4564f4
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x24], esi
jne 0x410319
mov esi, dword [esp + 0x3c]
push esi
call fcn.00410510
lea eax, [edi - 0x10]
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410312
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x410449
mov ebp, 1
mov bl, 0x41
jmp 0x410326
mov esi, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x2c]
push ecx
call fcn.00410460
mov byte [esp + 0x34], 2
mov eax, dword [eax]
push eax
push 0x44b320
lea edi, [esp + 0x24]
call fcn.00410700
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41036f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, ebp
mov dword [esp + 0x18], 0
je 0x4103af
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4103af
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4103af
mov dword [esp + 0x18], 0xffffffff
mov edx, dword [esp + 0x18]
push edx
push str._.8X
lea edi, [esp + 0x24]
call fcn.00410700
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
add esp, 8
push eax
push esi
lea eax, [esp + 0x28]
push eax
call fcn.004093b0
add ebp, ebp
add bl, 1
cmp ebp, 0x4000000
jb 0x410322
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00402050
mov edi, dword [esp + 0x3c]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41041f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410447
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x411580
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x58
push esi
mov esi, dword [eax]
xor eax, eax
cmp esi, 0xffffffff
push edi
je 0x411622
push 0x44
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.0042b000
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
or dword [esp + 0x50], 0x101
add esp, 0xc
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push str.ipconfig__all
push 0
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x78], esi
mov word [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
jne 0x41160c
pop edi
pop esi
add esp, 0x58
ret 4
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x58
ret 4
Function at 0x412ce4
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x412d16
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x18]
call esi
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + ecx*4 - 0x18], eax
jl 0x412d13
push 0x10
xor eax, eax
pop ecx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x14]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x18]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
dec ecx
jne 0x412d37
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x4168d2
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x454280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, ecx
push edi
je 0x416933
cmp dword [ebp + 0xc], ecx
jle 0x416933
cmp ebx, ecx
je 0x416933
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
call fcn.00416b9e
pop ecx
lea edi, [ebp - 0x60]
call fcn.00416c45
mov al, 1
jmp 0x416935
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00429296
leave
ret
Function at 0x4169e9
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445fdb
mov eax, dword fs:[0]
push eax
mov eax, 0x2180
call fcn.0043e550
mov eax, dword [0x454280]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x2188], ecx
xor ebx, ebx
mov dword [ebp - 0x2184], esi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x416a54
call fcn.004168ac
jmp 0x416a5e
mov esi, eax
mov dword [ebp - 0x2184], esi
xor eax, eax
cmp eax, ebx
jge 0x416a74
cmp esi, ebx
je 0x416a6d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x416b84
mov byte [ebp - 0x24], bl
xor eax, eax
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x2168], ebx
mov dword [ebp - 0x216c], ebx
mov dword [ebp - 0x217c], 0x67452301
mov dword [ebp - 0x2178], 0xefcdab89
mov dword [ebp - 0x2174], 0x98badcfe
mov dword [ebp - 0x2170], 0x10325476
push ebx
lea eax, [ebp - 0x2180]
push eax
push 0x2000
lea eax, [ebp - 0x2124]
push eax
push esi
mov dword [ebp - 0x2180], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416ae0
call fcn.004168ac
mov eax, dword [ebp - 0x2180]
cmp eax, ebx
je 0x416aff
lea ecx, [ebp - 0x2124]
push ecx
lea ecx, [ebp - 0x217c]
call fcn.00416b9e
pop ecx
jmp 0x416ab6
cmp esi, ebx
je 0x416b12
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x2184], esi
lea edi, [ebp - 0x217c]
lea ebx, [ebp - 0x24]
call fcn.00416c45
xor edi, edi
push 0xfe
lea eax, [ebp - 0x122]
push edi
push eax
mov word [ebp - 0x124], di
call fcn.0042b000
add esp, 0xc
lea ebx, [ebp - 0x124]
movzx eax, byte [ebp + edi - 0x24]
push eax
push str._.2x
push 0xffffffffffffffff
push 3
push ebx
call fcn.004294f0
add esp, 0x14
add ebx, 4
inc edi
cmp edi, 0x10
jb 0x416b44
mov edi, dword [ebp - 0x2188]
lea edx, [ebp - 0x124]
call fcn.00402980
test esi, esi
je 0x416b81
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00429296
leave
ret
Function at 0x41f022
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x4479a8
call fcn.0042dfdb
mov esi, ecx
push str.CDownload::Init__
push 3
call fcn.00421b50
xor edi, edi
cmp dword [esi + 0xc], edi
pop ecx
pop ecx
je 0x41f04d
xor eax, eax
inc eax
jmp 0x41f0d7
cmp dword [esi + 0x64], edi
mov dword [esi + 0xb8], 0x5dc
jne 0x41f095
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x68], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x6c], eax
call ebx
mov dword [esi + 0x70], eax
lea eax, [esi + 0x74]
push eax
push edi
push esi
push 0x4207c8
push edi
push edi
call fcn.00429986
add esp, 0x18
mov dword [esi + 0x64], eax
lea eax, [esi + 0x8c]
mov dword [ebp - 0x14], eax
add eax, 4
push eax
mov dword [ebp - 0x18], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
xor edi, edi
push eax
inc edi
lea eax, [esi + 0x78]
mov dword [ebp - 0x20], edi
call fcn.00420b92
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [ebp - 0x18]
call fcn.00421064
mov eax, edi
call fcn.0042e07a
ret

Function at 0x41f158
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push 0x10
mov eax, 0x445f28
call fcn.0042dfdb
push str.CDownload::Uninit__
push 3
call fcn.00421b50
pop ecx
lea eax, [edi + 0x8c]
mov dword [ebp - 0x10], eax
pop ecx
add eax, 4
push eax
mov dword [ebp - 0x14], vtable.QQDectector::fund::lock::scoped_lock_class_QQDectector::fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [edi + 0x78]
mov dword [ebp - 0x1c], 2
call fcn.00420b92
push dword [edi + 0x70]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
call ebx
lea esi, [ebp - 0x14]
call fcn.00421064
push dword [edi + 0x68]
call ebx
push dword [edi + 0x70]
call ebx
cmp dword [edi + 0x64], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41f200
push 0x1388
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41f1f7
push 0x3ff
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Uninit::TerminateThread
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x64]
call esi
and dword [edi + 0x64], 0
push dword [edi + 0x70]
call esi
push dword [edi + 0x68]
call esi
push dword [edi + 0x6c]
call esi
call fcn.0042e07a
ret

Function at 0x421c96
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x421cb4
cmp word [eax], 0
je 0x421cb4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421cb4
and al, 0x10
cmp al, 0x10
setne al
ret
xor al, al
ret
Function at 0x421cb7
Capabilities:
Get file version info

Disassembly:
push 0x280
mov eax, 0x445ebc
call fcn.0042e044
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22c], eax
mov esi, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
push 0x20a
lea eax, [ebp - 0x224]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.0042b000
add esp, 0xc
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.0042b4df
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x421d9c
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x228]
lea esi, [ebp - 0x23c]
mov dword [ebp - 0x228], edi
call fcn.00424eb7
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.00424eb7
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.00424eb7
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
call fcn.00424eb7
mov eax, dword [ebp - 0x22c]
mov ebx, esi
call fcn.00424e07
call fcn.00424e7e
jmp 0x421ec2
push esi
call fcn.0042807d
pop ecx
push esi
mov ebx, eax
push edi
push ebx
mov dword [ebp - 0x240], ebx
call fcn.0042b000
add esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, edi
jne 0x421de4
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 2
jmp 0x421d3b
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x244]
push eax
push 0x44cb44
push ebx
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x258], edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
jne 0x421e28
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 3
jmp 0x421d3b
push 0x34
push dword [ebp - 0x244]
lea eax, [ebp - 0x28c]
push eax
call fcn.0042ac10
mov eax, dword [ebp - 0x284]
shr eax, 0x10
add esp, 0xc
lea ebx, [ebp - 0x228]
lea esi, [ebp - 0x254]
mov dword [ebp - 0x228], eax
call fcn.00424eb7
movzx eax, word [ebp - 0x284]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.00424eb7
mov eax, dword [ebp - 0x280]
shr eax, 0x10
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.00424eb7
movzx eax, word [ebp - 0x280]
lea ebx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
call fcn.00424eb7
push dword [ebp - 0x240]
call fcn.004292b6
mov eax, dword [ebp - 0x22c]
pop ecx
mov ebx, esi
call fcn.00424e07
lea esi, [ebp - 0x254]
call fcn.00424e7e
mov eax, dword [ebp - 0x22c]
call fcn.0042e08e
ret
Function at 0x4235b9
Capabilities:
Print debug messages

Disassembly:
push 0x50
mov eax, 0x447208
call fcn.0042dfdb
xor esi, esi
cmp dword [ebx + 0x70], esi
je 0x4235d3
xor eax, eax
jmp 0x423707
mov eax, ebx
call fcn.0042243c
cmp byte [ebp + 8], 0
jne 0x4235f9
lea eax, [ebx + 0x84]
mov ecx, dword [eax]
cmp ecx, 1
ja 0x4235f9
inc ecx
mov dword [eax], ecx
mov ecx, ebx
call fcn.0042224c
jmp 0x423606
mov edi, ebx
call fcn.00423ea1
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x88]
mov eax, ebx
call fcn.00423280
push dword [ebx + 0x8c]
mov eax, ebx
call fcn.0042333d
cmp dword [ebx + 0x98], esi
je 0x423636
lea eax, [ebx + 0x9c]
push eax
mov eax, ebx
call fcn.004234c7
cmp dword [ebx + 0x90], esi
je 0x42364b
push dword [ebx + 0x94]
mov eax, ebx
call fcn.004233fb
push 0x44cd7c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x24]
lea ecx, [ebx + 0x11e8]
push eax
call fcn.004245e6
lea edi, [ebx + 0x11f4]
mov dword [ebp - 4], esi
call fcn.00421831
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x20]
je 0x423692
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x18], eax
je 0x423697
call fcn.004296bc
cmp dword [ebp - 0x14], esi
je 0x4236ed
lea esi, [ebp - 0x18]
call fcn.0042107e
push dword [eax]
push 0
call fcn.0042107e
add eax, 4
push eax
push ebx
call fcn.004224f8
test eax, eax
jne 0x4236e3
push 0x38
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0042b000
or dword [ebp - 0x5c], 0xffffffff
add esp, 0xc
call fcn.0042107e
lea ecx, [ebp - 0x5c]
push ecx
push dword [eax]
mov ecx, dword [ebx + 0x7c]
push 0x59
call fcn.0042002f
lea esi, [ebp - 0x18]
call fcn.004257e0
jmp 0x423681
push str.ReloadDownloadtask_end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
call fcn.004252fd
xor eax, eax
inc eax
call fcn.0042e07a
ret 4
Function at 0x4268ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2f0
mov eax, dword [0x454280]
xor eax, ebp
mov dword [ebp + 0x64], eax
push esi
push edi
lea esi, [ebp + 0x70]
lea edi, [ebp - 0x27c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x64
xor edi, edi
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.0042b000
movzx eax, byte [ebp - 0x270]
movzx ecx, byte [ebp - 0x26f]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26e]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x26d]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x271]
push eax
movzx eax, byte [ebp - 0x272]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x273]
push eax
movzx eax, byte [ebp - 0x274]
shl eax, 8
or eax, ecx
push eax
movzx eax, word [ebp - 0x276]
push eax
movzx eax, word [ebp - 0x278]
push eax
push dword [ebp - 0x27c]
lea eax, [ebp - 0x64]
push str._X__X__X__X__X_X
push eax
call fcn.0042945a
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x26c]
push str.CLSID_sLocalServer32
push eax
call fcn.0042945a
add esp, 0x38
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4269b1
xor eax, eax
jmp 0x4269f5
lea eax, [ebp - 0x288]
push eax
push ebx
lea eax, [ebp - 0x284]
push eax
push edi
push edi
push dword [ebp - 0x280]
xor esi, esi
inc esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x288], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4269e7
xor esi, esi
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x64]
pop edi
xor ecx, ebp
pop esi
call fcn.00429296
add ebp, 0x68
leave
ret

Function at 0x426e76
Capabilities:
Read file via mapping

Disassembly:
push edi
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
xor edi, edi
push edi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [esi], eax
jne 0x426e91
xor eax, eax
pop edi
ret
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x426eb0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x426e8d
mov dword [esi + 8], eax
xor eax, eax
inc eax
pop edi
ret

Function at 0x426f3f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x44aba4
push SysStringLen
mov dword [ebp - 4], ebx
mov byte [0x45742c], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426fab
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.EnableLogToView
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x426fa2
cmp dword [ebp - 8], 1
jne 0x426fa2
mov byte [0x45742c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x427254
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x454280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [edi], ebx
mov word [ebp - 0x20c], bx
call fcn.0042b000
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x20c]
push eax
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4272de
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x4272de
lea eax, [ebp - 0x20c]
push eax
lea ebx, [edi + 4]
push esi
push ebx
call fcn.00428f21
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
push ebx
call fcn.0042d286
add esp, 0x1c
jmp 0x4272f1
push esi
push str.C:ErrLogFile.log
lea eax, [edi + 4]
push esi
push eax
call fcn.00429391
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, edi
pop ebx
call fcn.00429296
leave
ret

Function at 0x427301
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x42732a
push edi
push 0x20
push 4
push edi
push 3
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [esi], eax
je 0x42736e
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x42736e
cmp eax, 0x2800
ja 0x42736e
push 2
lea eax, [ebp - 4]
push eax
push edi
push dword [esi]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edi
call fcn.0042ab80
pop ecx
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
leave
ret 4
Function at 0x4275ad
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [ebp - 0x2c], 0
push edi
push 7
xor eax, eax
test edx, edx
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
jne 0x4275cb
jmp 0x42773c
push ebx
push esi
lea eax, [edx + 0x20]
mov esi, eax
push 8
pop ebx
mov ecx, ebx
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [edx + 0x40]
mov ecx, 0x4d34d34d
add esi, ecx
add dword [eax], esi
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
mov eax, 0x2cb2cb2d
sbb esi, esi
neg esi
sub esi, eax
add dword [edx + 0x24], esi
mov esi, dword [edx + 0x24]
cmp esi, dword [ebp - 0x48]
mov esi, 0x34d34d34
sbb edi, edi
neg edi
add edi, esi
add dword [edx + 0x28], edi
mov edi, dword [edx + 0x28]
cmp edi, dword [ebp - 0x44]
mov dword [ebp - 0xc], ebx
sbb edi, edi
neg edi
add edi, ecx
add dword [edx + 0x2c], edi
mov edi, dword [edx + 0x2c]
cmp edi, dword [ebp - 0x40]
sbb edi, edi
neg edi
sub edi, eax
add dword [edx + 0x30], edi
mov edi, dword [edx + 0x30]
cmp edi, dword [ebp - 0x3c]
sbb edi, edi
neg edi
add edi, esi
add dword [edx + 0x34], edi
mov esi, dword [edx + 0x34]
cmp esi, dword [ebp - 0x38]
sbb esi, esi
neg esi
add esi, ecx
add dword [edx + 0x38], esi
mov ecx, dword [edx + 0x38]
cmp ecx, dword [ebp - 0x34]
mov esi, edx
sbb ecx, ecx
neg ecx
sub ecx, eax
add dword [edx + 0x3c], ecx
mov eax, dword [edx + 0x3c]
cmp eax, dword [ebp - 0x30]
mov dword [ebp - 8], esi
sbb eax, eax
neg eax
mov dword [edx + 0x40], eax
lea eax, [ebp - 0x2c]
sub eax, edx
mov ecx, dword [esi + 0x20]
add ecx, dword [esi]
movzx edi, cx
mov esi, ecx
shr esi, 0x10
mov dword [ebp - 4], esi
imul esi, edi
mov ebx, edi
imul ebx, edi
shr ebx, 0x11
add ebx, esi
mov esi, dword [ebp - 4]
imul esi, esi
shr ebx, 0xf
add ebx, esi
mov esi, ecx
imul esi, ecx
xor ebx, esi
mov esi, dword [ebp - 8]
mov dword [eax + esi], ebx
add esi, 4
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
jne 0x427674
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
mov esi, eax
rol esi, 0x10
add esi, ecx
rol edi, 0x10
add edi, esi
mov esi, ecx
rol esi, 8
add esi, dword [ebp - 0x28]
mov dword [edx], edi
add esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov dword [edx + 4], esi
mov esi, dword [ebp - 0x24]
rol edi, 0x10
add edi, esi
rol ecx, 0x10
add ecx, edi
mov edi, dword [ebp - 0x20]
mov dword [edx + 8], ecx
mov ecx, esi
rol ecx, 8
add ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x28]
rol edi, 0x10
rol esi, 0x10
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
add edi, ecx
add esi, edi
mov dword [edx + 0x10], esi
mov esi, ecx
rol esi, 8
add esi, dword [ebp - 0x18]
add esi, dword [ebp - 0x20]
mov dword [edx + 0x14], esi
mov esi, dword [ebp - 0x18]
rol esi, 0x10
add esi, eax
rol ecx, 0x10
add ecx, esi
rol eax, 8
add eax, dword [ebp - 0x18]
pop esi
add eax, dword [ebp - 0x10]
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], eax
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret