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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446248
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x45c4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x4c]
movq xmm0, qword [esi]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x50], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x4c], ax
lea eax, [esi + 0x10]
push eax
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
call fcn.00404002
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x14], eax
push edi
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040c4b0
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.0040c4b0
cmp dword [ebp - 0x38], 8
jb 0x40bd87
push dword [ebp - 0x4c]
call fcn.0042c242
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b782
mov esp, ebp
pop ebp
ret

Function at 0x40bdb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446278
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x45c4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x10]
movq xmm0, qword [esi]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x2c], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea eax, [esi + 0x34]
push eax
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00404002
push edi
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040c5c0
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.0040c5c0
cmp dword [ebp - 0x14], 8
jb 0x40be77
push dword [ebp - 0x28]
call fcn.0042c242
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b782
mov esp, ebp
pop ebp
ret
Function at 0x40c190
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446378
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x45c4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x58]
movq xmm0, qword [esi]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x5c], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x58], ax
lea eax, [esi + 0x18]
push eax
movq qword [ebp - 0x70], xmm0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
call fcn.00404002
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
lea eax, [esi + 0x30]
mov dword [ebp - 0x2c], 7
push eax
mov dword [ebp - 0x30], 0
call fcn.00404002
xor eax, eax
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [esi + 0x48]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0x18], 0
call fcn.00404002
push edi
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0040c950
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0040c950
cmp dword [ebp - 0x14], 8
jb 0x40c27e
push dword [ebp - 0x28]
call fcn.0042c242
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x40c2a3
push dword [ebp - 0x40]
call fcn.0042c242
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x40c2c8
push dword [ebp - 0x58]
call fcn.0042c242
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b782
mov esp, ebp
pop ebp
ret
Function at 0x411020
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x45c4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45f85c]
mov dword [ebp - 0x15c], 0
push esi
mov esi, ecx
test al, 1
jne 0x41107a
or eax, 1
mov dword [0x45f850], 7
mov dword [0x45f85c], eax
xor eax, eax
push 0x448330
mov dword [0x45f84c], 0
mov word [0x45f83c], ax
call fcn.0042c159
add esp, 4
cmp dword [0x45f84c], 0
ja 0x411293
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x148]
sub eax, 0
je 0x4111c9
dec eax
je 0x41118a
dec eax
je 0x4110c3
push 7
push str.Unknown
jmp 0x4111d0
cmp dword [ebp - 0x154], 4
ja 0x4110d8
push 0xa
push str.Windows_NT
jmp 0x4111d0
cmp dword [ebp - 0x154], 5
jne 0x411124
cmp dword [ebp - 0x150], 2
jne 0x4110f6
push 0xc
push str.Windows_2003
jmp 0x4111d0
cmp dword [ebp - 0x150], 1
jne 0x41110b
push 0xa
push str.Windows_XP
jmp 0x4111d0
cmp dword [ebp - 0x150], 0
jne 0x4111da
push 0xc
push str.Windows_2000
jmp 0x4111d0
cmp dword [ebp - 0x154], 6
jne 0x411178
cmp dword [ebp - 0x150], 0
jne 0x411142
push 0xd
push str.Windows_Vista
jmp 0x4111d0
cmp dword [ebp - 0x150], 1
jne 0x411154
push 9
push str.Windows_7
jmp 0x4111d0
cmp dword [ebp - 0x150], 2
jne 0x411166
push 9
push str.Windows_8
jmp 0x4111d0
cmp dword [ebp - 0x150], 3
jne 0x4111da
push 0xb
push str.Windows_8.1
jmp 0x4111d0
cmp dword [ebp - 0x154], 0xa
jne 0x4111da
push 0xa
push str.Windows_10
jmp 0x4111d0
cmp dword [ebp - 0x154], 4
jne 0x4111da
cmp dword [ebp - 0x150], 0
jne 0x4111a5
push 0xa
push str.Windows_95
jmp 0x4111d0
cmp dword [ebp - 0x150], 0xa
jne 0x4111b7
push 0xa
push str.Windows_98
jmp 0x4111d0
cmp dword [ebp - 0x150], 0x5a
jne 0x4111da
push 0xa
push str.Windows_ME
jmp 0x4111d0
push 0xe
push str.Windows_Win32s
mov ecx, 0x45f83c
call fcn.00403cd5
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.0042e7e0
push dword [ebp - 0x14c]
lea eax, [ebp - 0x44]
push dword [ebp - 0x150]
push dword [ebp - 0x154]
push str.__build_d._d._d_
push 0x20
push eax
call fcn.0042bfcb
add esp, 0x24
cmp word [ebp - 0x144], 0
je 0x411264
push 1
push 0x454984
mov ecx, 0x45f83c
call fcn.004024bd
cmp word [ebp - 0x144], 0
jne 0x41123a
xor ecx, ecx
jmp 0x411252
lea ecx, [ebp - 0x144]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411243
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x144]
mov ecx, 0x45f83c
push eax
call fcn.004024bd
cmp word [ebp - 0x44], 0
jne 0x41126f
xor ecx, ecx
jmp 0x411284
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411275
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x44]
mov ecx, 0x45f83c
push eax
call fcn.004024bd
push 0xffffffffffffffff
push 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x45f83c
mov word [esi], ax
call fcn.00404002
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042b782
mov esp, ebp
pop ebp
ret
Function at 0x41d7e0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x45c4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xfc], eax
xor esi, esi
movzx edx, byte [esi + str.80_]
mov eax, edx
sar edx, 3
and eax, 7
movzx ecx, word [eax*2 + 0x450fc0]
movsx eax, byte [edx + edi]
movzx edx, byte [esi + 0x450d81]
test eax, ecx
setne al
mov byte [ebp + esi - 0x3c], al
mov eax, edx
and eax, 7
sar edx, 3
movzx ecx, word [eax*2 + 0x450fc0]
movsx eax, byte [edx + edi]
movzx edx, byte [esi + 0x450d82]
test eax, ecx
setne al
mov byte [ebp + esi - 0x3b], al
mov eax, edx
and eax, 7
sar edx, 3
movzx ecx, word [eax*2 + 0x450fc0]
movsx eax, byte [edx + edi]
movzx edx, byte [esi + 0x450d83]
test eax, ecx
setne al
mov byte [ebp + esi - 0x3a], al
mov eax, edx
and eax, 7
sar edx, 3
movzx ecx, word [eax*2 + 0x450fc0]
movsx eax, byte [edx + edi]
test eax, ecx
setne al
mov byte [ebp + esi - 0x39], al
add esi, 4
cmp esi, 0x38
jl 0x41d803
xor ebx, ebx
lea eax, [ebx + ebx]
xor edx, edx
lea edi, [ebp - 0xf4]
mov dword [ebp + eax*4 - 0xf0], 0
lea esi, [ebp + eax*4 - 0xf0]
mov dword [edi + eax*4], 0
lea edi, [edi + eax*4]
movzx eax, byte [ebx + 0x4513d0]
mov dword [ebp - 0xf8], eax
mov ecx, eax
cmp ecx, 0x1c
jge 0x41d8e2
mov al, byte [ebp + ecx - 0x3c]
jmp 0x41d8e6
mov al, byte [ebp + ecx - 0x58]
mov byte [ebp + edx - 0x74], al
inc ecx
inc edx
cmp edx, 0x1c
jl 0x41d8d7
mov ecx, dword [ebp - 0xf8]
mov edx, 0x1c
add ecx, edx
mov edi, edi
cmp ecx, 0x38
jge 0x41d90b
mov al, byte [ebp + ecx - 0x3c]
jmp 0x41d90f
mov al, byte [ebp + ecx - 0x58]
mov byte [ebp + edx - 0x74], al
inc ecx
inc edx
cmp edx, 0x38
jl 0x41d900
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + 0x4515e0]
cmp byte [ebp + ecx - 0x74], 0
je 0x41d937
mov ecx, dword [eax*4 + 0x450d20]
or dword [edi], ecx
movzx ecx, byte [eax + 0x4515f8]
cmp byte [ebp + ecx - 0x74], 0
je 0x41d94e
mov ecx, dword [eax*4 + 0x450d20]
or dword [esi], ecx
inc eax
cmp eax, 0x18
jl 0x41d920
inc ebx
cmp ebx, 0x10
jl 0x41d8a1
mov edx, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf4]
call fcn.0041d6e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b782
mov esp, ebp
pop ebp
ret
Function at 0x41f7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45c4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x11c]
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov edi, ecx
mov dword [ebp - 0x118], 0x104
mov ebx, 3
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
call esi
test eax, eax
jne 0x41f98c
push edi
push str._sConnection
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.004229a0
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41f984
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], 4
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 4
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x110]
call edi
test eax, eax
jne 0x41f97c
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], 1
push eax
mov dword [ebp - 0x118], 0x103
call fcn.0042e7e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x110]
call edi
test eax, eax
jne 0x41f97c
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x41f96d
push ebx
lea eax, [ebp - 0x108]
push 0x454b10
push eax
call fcn.0042db80
add esp, 0xc
test eax, eax
jne 0x41f93b
xor ebx, ebx
jmp 0x41f97c
mov eax, dword [ebp - 0x10c]
cmp eax, 1
jne 0x41f96d
push 3
lea eax, [ebp - 0x108]
push 0x454b10
push eax
call fcn.0042db80
add esp, 0xc
test eax, eax
je 0x41f967
mov ebx, 2
jmp 0x41f97c
mov eax, dword [ebp - 0x10c]
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx*2 + 1]
push dword [ebp - 0x110]
call esi
push dword [ebp - 0x11c]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b782
mov esp, ebp
pop ebp
ret
Function at 0x41fc50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.00442e80
mov eax, dword [0x45c4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0042e7e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fca3
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x41fce9
mov eax, 0x5c
cmp ax, word [ebp + ecx*2 - 0x20e]
je 0x41fce9
mov word [ebp + ecx*2 - 0x20c], ax
lea eax, [ecx*2 + 2]
cmp eax, 0x208
jae 0x41feb1
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fcf2
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
push str.iphlpapi.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042e033
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa4], eax
test eax, eax
jne 0x41fd4a
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b782
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41fe51
lea ecx, [ebp - 0x2aa8]
mov dword [ebp - 0x2aa8], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x41fe51
mov eax, ebx
mov dword [ebp - 0x2a9c], 3
lea ecx, [ebp - 0x2a94]
push esi
sub eax, ecx
push edi
lea edi, [ebp - 0x2a8c]
mov dword [ebp - 0x2aa0], eax
lea ecx, [edi + 8]
call fcn.0041f7c0
mov dword [ebp - 0x2a98], eax
xor eax, eax
mov dword [ebp - 0x2a94], eax
xor ecx, ecx
mov word [ebp - 0x2a90], ax
mov eax, dword [ebp - 0x2aa0]
jmp 0x41fdd0
lea esi, [ebp - 0x2a94]
add esi, ecx
mov dl, byte [eax + esi]
cmp dl, byte [esi]
jne 0x41fded
inc ecx
cmp ecx, 6
jb 0x41fdd0
mov ecx, dword [ebp - 0x2a98]
jmp 0x41fe04
cmp dword [edi + 0x1a0], 6
jne 0x41fe45
mov ecx, dword [ebp - 0x2a98]
cmp dword [ebp - 0x2a9c], ecx
jle 0x41fe45
movzx eax, byte [edi + 0x194]
mov byte [ebx], al
movzx eax, byte [edi + 0x195]
mov byte [ebx + 1], al
movzx eax, byte [edi + 0x196]
mov byte [ebx + 2], al
movzx eax, byte [edi + 0x197]
mov byte [ebx + 3], al
movzx eax, byte [edi + 0x198]
mov byte [ebx + 4], al
movzx eax, byte [edi + 0x199]
mov byte [ebx + 5], al
mov dword [ebp - 0x2a9c], ecx
mov edi, dword [edi]
test edi, edi
jne 0x41fda2
pop edi
pop esi
push dword [ebp - 0x2aa4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x2a94], eax
mov word [ebp - 0x2a90], ax
lea eax, [ebp - 0x2a94]
sub ebx, eax
jmp 0x41fe80
lea ecx, [ebp - 0x2a94]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x41fe99
inc edx
cmp edx, 6
jb 0x41fe80
mov cl, 1
jmp 0x41fe9b
xor cl, cl
xor eax, eax
test cl, cl
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop ebx
call fcn.0042b782
mov esp, ebp
pop ebp
ret
call fcn.0042ce16
int3
Function at 0x421970
Capabilities:
Get common file path
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
mov eax, dword [0x45c4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x2d4], ax
lea eax, [ebp - 0x2d2]
push eax
mov dword [ebp - 0x4e0], 0
call fcn.0042e7e0
add esp, 0xc
lea eax, [ebp - 0x2d4]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x421a99
push str.TencentDeskUpdateGlobalMgr.db
lea eax, [ebp - 0x2d4]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x104
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x421a99
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.0042e7e0
add esp, 0xc
lea eax, [ebp - 0x4dc]
push eax
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x44f998
push str.config1
push str.Profile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x20
jb 0x421a99
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0xcc], ax
jne 0x421a70
xor ecx, ecx
lea eax, [ebp - 0xcc]
push ecx
push eax
jmp 0x421ab3
lea ecx, [ebp - 0xcc]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421a80
sub ecx, edx
lea eax, [ebp - 0xcc]
sar ecx, 1
push ecx
push eax
jmp 0x421ab3
push 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x44f998
mov word [esi], ax
mov ecx, esi
call fcn.00403cd5
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042b782
mov esp, ebp
pop ebp
ret 4
Function at 0x4257f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00442e80
mov eax, dword [0x45c4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1008]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x100c], 1
push edx
lea edx, [ebp - 0x100c]
mov dword [ebp - 0x1008], 0x800
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x42597e
mov ecx, dword [ebp - 0x100c]
cmp ecx, 1
jne 0x4258c2
cmp word [ebp - 0x804], ax
jne 0x425886
xor ecx, ecx
lea eax, [ebp - 0x804]
push ecx
push eax
mov ecx, edi
call fcn.00403cd5
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b782
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425890
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403cd5
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b782
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x425979
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x425962
cmp eax, 0x400
ja 0x425962
cmp word [ebp - 0x1004], 0
jne 0x425924
xor ecx, ecx
lea eax, [ebp - 0x1004]
push ecx
push eax
mov ecx, edi
call fcn.00403cd5
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b782
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425930
sub ecx, edx
lea eax, [ebp - 0x1004]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403cd5
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b782
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b782
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042b782
mov esp, ebp
pop ebp
ret 8

Function at 0x425a20
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push esi
xor eax, eax
mov esi, ecx
push edi
cmp ax, word [0x45f300]
jne 0x425a4f
push 1
push 5
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT__d._d__QQBrowser_6.0
push 0xffffffffffffffff
push 0x80
push 0x45f300
call fcn.0042bfac
add esp, 0x18
push 0
push 0
push 0
push 0
push 0x45f300
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x425a71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
mov eax, dword [esi]
test eax, eax
je 0x425a84
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi], 0
xor eax, eax
mov dword [esi], edi
test edi, edi
pop edi
setne al
pop esi
pop ebp
ret 0xc
Function at 0x42790e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x24
mov eax, 0x448068
call fcn.0042f004
mov edi, ecx
mov dword [ebp - 0x20], edi
xor ebx, ebx
lea eax, [ebp + 8]
push ebx
push 0x80
push 3
push ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x1c], 8
push 1
cmovae eax, dword [ebp + 8]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x427abf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x427abf
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 2
test ebx, ebx
je 0x427a7c
xor eax, eax
push eax
push eax
push eax
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [edi], edx
test edx, edx
je 0x427a7c
mov ecx, dword [edx + 0x3c]
movzx eax, word [ecx + edx + 6]
test ax, ax
jne 0x4279b6
or dword [ebp - 0x24], 0xffffffff
jmp 0x4279d1
imul eax, eax, 0x28
add eax, ecx
mov ecx, dword [eax + edx + 0xe4]
add ecx, dword [eax + edx + 0xe0]
mov dword [ebp - 0x24], ecx
cmp ecx, 0xffffffff
jne 0x4279db
cmp dword [ebp - 0x28], 0xffffffff
jle 0x427a6c
mov eax, dword [str.zzd.]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
lea edx, [ecx + 1]
mov al, byte [0x454efc]
mov byte [ebp - 0x14], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4279f1
sub ecx, edx
mov dword [ebp - 0x1c], ecx
lea eax, [ecx + 1]
push eax
call fcn.0042af74
push dword [ebp - 0x1c]
mov edi, eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
push eax
push edi
call fcn.0042e870
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004314c8
add esp, 0x1c
test eax, eax
je 0x427aab
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 8]
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x28]
jg 0x427a62
push dword [ebp - 0x1c]
add eax, ecx
push eax
push edi
call fcn.0042e870
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004314c8
add esp, 0x18
test eax, eax
je 0x427aab
push edi
call fcn.0042c242
mov edi, dword [ebp - 0x20]
pop ecx
cmp dword [edi], 0
je 0x427a7c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and dword [edi], 0
xor edi, edi
cmp ebx, 0xffffffff
je 0x427a8a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp esi, 0xffffffff
je 0x427a98
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004040c8
mov eax, edi
call fcn.0042efc2
ret
push edi
call fcn.0042c242
mov eax, dword [ebp - 0x20]
pop ecx
mov edi, dword [eax]
add edi, dword [ebp - 0x1c]
add edi, dword [ebp - 0x24]
jmp 0x427a7e
mov edi, ebx
jmp 0x427a8c