joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42438b
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 0x424428
push ebx
push esi
call fcn.00424354
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.00423048
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4243d5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424427
push edi
push eax
call fcn.0041e380
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4243f5
call fcn.0041cfa0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424426
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00423048
add esp, 0x20
test eax, eax
jne 0x424414
push edi
call fcn.0041cfa0
jmp 0x42441c
push ebx
call fcn.0041cfa0
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 0x426a1d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041ce28
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x426a8c
cmp esi, dword [ebp - 4]
je 0x426a87
cmp dword [ebp + 0xc], 0
je 0x426a87
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x426a64
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00426572
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x426a8e
xor eax, eax
inc eax
jmp 0x426a8e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x426af9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x437040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041ce28
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041ce28
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x426b70
cmp word [ecx], dx
je 0x426b70
mov eax, dword [0x43007c]
push edi
dec eax
push eax
push 0x42ff68
call fcn.00426a92
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x426be3
cmp word [eax], dx
je 0x426be3
mov eax, dword [edi]
test eax, eax
je 0x426b94
cmp word [eax], dx
je 0x426b94
lea eax, [ebp - 0x10]
push eax
call fcn.00426478
jmp 0x426b9d
lea eax, [ebp - 0x10]
push eax
call fcn.00426513
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x426c0d
mov eax, dword [0x42ff64]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42fc58
call fcn.00426a92
add esp, 0xc
test al, al
je 0x426c0d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x426bd8
cmp word [eax], di
je 0x426bd8
lea eax, [ebp - 0x10]
push eax
call fcn.00426478
pop ecx
jmp 0x426c0f
lea eax, [ebp - 0x10]
push eax
call fcn.00426513
jmp 0x426bd5
mov eax, dword [edi]
test eax, eax
je 0x426bfa
cmp word [eax], dx
je 0x426bfa
lea eax, [ebp - 0x10]
push eax
call fcn.0042642d
pop ecx
jmp 0x426c0d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x426cd8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00426917
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x426cd8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x426cd8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x426cd8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x426c65
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041e1de
test ebx, ebx
je 0x426cd3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041e1de
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x426cd8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x426cd8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004288e9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x426cda
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004120f3
leave
ret
Function at 0x42a630
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a65d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a65d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402c91
Capabilities:
Access peb ldr_data

Disassembly:
pop esi
repne movsb byte es:[edi], byte [esi]
call 0x402c91
mov ebx, 0xa2a1de0
push 0x9dbd95a6
call ebp
cmp al, 6
jl 0x402c8c
cmp bl, 0xe0
jne 0x402c8c
mov ebx, 0x6f721347
push 0
push ebx
call ebp
xor eax, eax
push eax
push eax
push eax
push ebx
push eax
push eax
push 0x160d6838
call ebp
pop eax
pop eax
popal
jmp 0x402da4
fldpi
wait
fnstenv [esp - 0xc]
xor edx, edx
mov dl, 0x77
xor ecx, ecx
mov esi, dword fs:[ecx + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x20]
mov esi, dword [esi]
cmp byte [edi + 0x18], cl
jne 0x402dbb
pop ecx
add ecx, edx
jmp ecx

Function at 0x402ca8
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
call fcn.00402c6a
and sp, 0xfffc
xor esi, esi
mov esi, dword fs:[esi + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov si, 0x1aaa
pop edi
mov ebp, dword [edi + 8]
push dword [edi]
mov ebx, dword [ebp + 0x3c]
mov ebx, dword [ebp + ebx + 0x78]
add ebx, ebp
mov ecx, dword [ebx + 0x18]
jcxz 0x402cc3
mov edi, dword [ebx + 0x20]
add edi, ebp
mov edi, dword [edi + ecx*4 - 4]
add edi, ebp
xor eax, eax
cdq
xor dl, byte [edi]
ror dx, 1
scasb al, byte es:[edi]
jne 0x402ce6
dec ecx
cmp dx, si
je 0x402cfd
jcxz 0x402cc3
jmp 0x402cd8
mov esi, dword [ebx + 0x24]
add esi, ebp
movzx esi, word [esi + ecx*2]
mov eax, dword [ebx + 0x1c]
add eax, ebp
mov edi, dword [eax + esi*4]
add edi, ebp
xor esi, esi
cmp dx, 0xf0da
je 0x402d34
cmp dx, 0x2769
je 0x402d40
push 0x32
push 0x33656c6f
push esp
call edi
xchg ebp, eax
mov si, 0xf0da
jmp 0x402cc9
push esi
call edi
mov si, 0x2769
jmp 0x402cc9
push 0xd422046e
push 0x99efeca1
push 0x499272b9
push 0x6c44df74
mov eax, esp
push 0x9673794f
push 0xc001e39e
dec dword [esp + 2]
push 0x11d23391
push 0x96749377
mov ebx, esp
push esi
push esp
push eax
push 0x17
push esi
push ebx
call edi
pop ebx
push 0x5520676f
push 0x7420706f
push 0x686e6421
xchg esi, eax
mov esi, esp
push eax
lodsb al, byte [esi]
push ax
cmp al, 0x55
jne 0x402d8d
mov ecx, esp
xor eax, eax
push eax
push eax
push ecx
push ebx
mov edx, dword [ebx]
mov ecx, dword [edx + 0x50]
call ecx
int3
Function at 0x401bd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x4ba180], ecx
inc eax
cmp eax, 0x100
jb 0x401be5
cmp eax, 0x800
jae 0x401cb3
nop dword [eax]
mov edx, dword [eax*4 + 0x4b9d80]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4ba180]
mov dword [eax*4 + 0x4ba180], edx
inc eax
cmp eax, 0x800
jb 0x401c90
lea ecx, [ebp - 0x24]
mov dword [0x4a83e8], 0x401d70
call fcn.00405950
test eax, eax
je 0x401d5d
mov edi, dword [ebp - 0x14]
xor ecx, ecx
mov esi, edi
mov eax, 0x471a7c
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
nop dword [eax]
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
jne 0x401d07
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x18]
jne 0x401d07
cmp dword [eax], ebx
je 0x401d16
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x401cf0
or ecx, 0xffffffff
sub ecx, 0
je 0x401d44
sub ecx, 1
je 0x401d33
sub ecx, 1
jne 0x401d5d
cmp esi, 6
jb 0x401d5d
jne 0x401d53
cmp edi, 0xf
jb 0x401d5d
jmp 0x401d53
cmp esi, 5
jb 0x401d5d
jne 0x401d53
cmp edi, 6
jb 0x401d5d
cmp edi, 0xa
jmp 0x401d51
cmp esi, 6
jb 0x401d5d
jne 0x401d53
cmp edi, 0x100c
je 0x401d5d
mov dword [0x4a83e8], 0x401e10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
Function at 0x405780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x4057a2
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [edx - 4]
mov dword [ebp - 4], 0xffffffff
add ebx, ecx
mov dword [ebp - 0x10], ebx
lea edx, [edi + ecx]
cmp edx, ebx
jae 0x4057cd
nop dword [eax]
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4057cd
inc edx
cmp edx, ebx
jb 0x4057c0
mov edi, edx
sub edi, ecx
mov ecx, edi
sub ecx, dword [ebp - 4]
cmp edx, ebx
jae 0x4058ce
cmp ecx, 3
jbe 0x405807
xor esi, esi
mov al, byte [edx + 4]
mov dword [ebp - 4], edi
test al, al
je 0x405842
cmp al, 0xff
je 0x405842
mov ecx, dword [ebp - 8]
and esi, 3
add esi, esi
mov eax, 1
or esi, 1
add edi, eax
jmp 0x4057b2
dec ecx
shl esi, cl
and esi, 7
je 0x4057e5
cmp byte [esi + 0x462fe0], 0
je 0x40582e
movzx eax, byte [esi + 0x462fe8]
mov ecx, edx
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x40582e
cmp al, 0xff
jne 0x4057e5
mov ecx, dword [ebp - 8]
and esi, 3
add esi, esi
mov dword [ebp - 4], edi
or esi, 1
inc edi
jmp 0x4057b2
movzx ecx, byte [edx + 3]
movzx eax, al
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
sub eax, edi
lea ebx, [eax - 5]
test esi, esi
je 0x40589d
movzx eax, byte [esi + 0x462fe8]
mov ecx, 0x18
shl eax, 3
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x405889
cmp al, 0xff
jne 0x40589d
mov ecx, 0x20
mov eax, 1
sub ecx, dword [ebp - 0xc]
shl eax, cl
dec eax
xor eax, ebx
jmp 0x405860
mov ecx, dword [ebp - 8]
mov eax, ebx
shr eax, 0x18
and al, 1
mov byte [edx + 1], bl
neg al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 8
mov byte [edx + 2], al
mov eax, 5
add edi, eax
jmp 0x4057b2
pop ebx
cmp ecx, 3
jbe 0x4058e3
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
dec ecx
shl esi, cl
and esi, 7
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4077d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4077d9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4077c8
cmp esi, edx
jae 0x4077d9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4077b6
cmp esi, edx
jae 0x4077d9
cmp word [esi], 0
je 0x4077d9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x408ae0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459310
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x471080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call fcn.00407b80
mov ecx, eax
test ecx, ecx
je 0x408c09
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push 0x463974
push eax
call fcn.00409830
sub esp, 8
mov dword [ebp - 0x10], 0
push str.SoftwareTencentReport
push ecx
lea ecx, [ebp - 0x24]
call fcn.004078b0
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
test eax, eax
jne 0x408bcc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x10]
inc eax
push 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x408bbe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
mov ebx, 1
jmp 0x408bce
xor ebx, ebx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408bea
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x408bf5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407690
int3
Function at 0x40ae90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ec
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0
push 2
mov dword [ebp - 0x4ec], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x42
mov edi, eax
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
xor ebx, ebx
cmp edi, 0xffffffff
je 0x40b05f
test edi, edi
je 0x40b05f
push 0x228
lea eax, [ebp - 0x4e4]
push ebx
push eax
call fcn.0043fa60
add esp, 0xc
mov dword [ebp - 0x4e8], 0x22c
lea eax, [ebp - 0x4e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40b058
push esi
lea eax, [ebp - 0x4c4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x40b03a
push 0x208
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.0043fa60
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x260]
push 0x103
push eax
call fcn.0044646d
add esp, 0x1c
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
lea eax, [ebp - 0x260]
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40af70
sub eax, edx
xorps xmm0, xmm0
sar eax, 1
movups xmmword [ebp - 0x14], xmm0
lea esi, [eax + eax]
test esi, esi
jle 0x40b03a
lea eax, [ebp - 0x2bc]
push eax
call fcn.0041f9d0
push esi
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2bc]
push eax
call fcn.00420110
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00420460
movzx eax, byte [ebp - 5]
push eax
movzx eax, byte [ebp - 6]
push eax
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push 0x463e40
push eax
call fcn.00409960
add esp, 0x60
test eax, eax
jle 0x40b03a
push dword [ebp - 0x4ec]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40b052
lea eax, [ebp - 0x4e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40af13
jmp 0x40b057
mov ebx, 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 4
Function at 0x40d420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp dword [0x4a7814], 2
bswap esi
bswap edi
jl 0x40d460
movups xmm0, xmmword [edx]
pshufb xmm0, xmmword [0x46a400]
movups xmmword [ebp - 0x14], xmm0
jmp 0x40d46f
mov ecx, dword [edx + eax*4]
bswap ecx
mov dword [ebp + eax*4 - 0x14], ecx
inc eax
cmp eax, 4
jl 0x40d460
mov edx, 0xfd1228e0
mov ebx, 0x20
nop dword [eax]
mov ecx, esi
mov eax, esi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + esi]
xor ecx, eax
sub edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
lea edx, [edx - 0x57e89147]
sub esi, ecx
sub ebx, 1
jne 0x40d480
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
bswap edi
bswap esi
mov dword [eax + 4], edi
xor ecx, ebp
pop edi
mov dword [eax], esi
pop esi
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret

Function at 0x40df20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4596b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x471080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0x34]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40df7c
xor esi, esi
mov dword [edi + 4], 2
push esi
push str._fT
push 0x463fd0
push 3
push str.CInstallObjectAgent::CheckDownloadFile
push 0x131
jmp 0x40e01e
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x463f78
call fcn.00409310
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x34]
lea esi, [eax - 0x10]
mov dword [ebp - 0x10], eax
push ecx
mov ecx, dword [esi]
mov dword [ebp - 0x14], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x40dfbb
cmp ecx, dword [esi]
jne 0x40dfbb
lock inc dword [eax]
jmp 0x40dfe3
mov eax, dword [ecx]
lea ebx, [esi + 4]
push 2
push dword [ebx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x40e03f
mov eax, dword [ebx]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
mov edx, dword [ebx]
inc edx
push edx
push dword [ebp - 0x10]
call fcn.00409570
add esp, 8
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x10]
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00421240
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e007
mov dword [edi + 4], 3
push esi
push 0x464154
push 0x463fd0
push 3
push str.CInstallObjectAgent::CheckDownloadFile
push 0x13b
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloaderinstallobjectinstallobject.h
call fcn.00409850
add esp, 0x1c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004096f0
int3
Function at 0x40e320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x20], eax
mov esi, ecx
lea eax, [ebp - 0x3c]
movlpd qword [ebp - 0x34], xmm0
push eax
mov dword [ebp - 0x24], 0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40e392
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e386
mov dword [esi + 0x44], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x1c]
cmp eax, 0x20
ja case.0x40e3a1.1
movzx eax, byte [eax + 0x40e438]
jmp dword [eax*4 + 0x40e418]
mov dword [esi + 4], 1
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 6
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 7
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 4], 5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e950
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040e4f0
test eax, eax
je 0x40ea73
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
mov dword [ebp - 0x810], 0x800
lea eax, [ebp - 0x808]
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0x808], 0
push eax
push 0x20019
push 0
push str.SOFTWARETencentQQGameSYS
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ea60
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push str.HallDirectory
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ea60
cmp dword [ebp - 0x80c], 1
jne 0x40ea60
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ea10
sub ecx, edx
mov eax, str.QQGame.exe
sar ecx, 1
mov edx, 0x4647b8
cmp word [ebp + ecx*2 - 0x806], 0x5c
cmovne eax, edx
push eax
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00446478
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ea60
test al, 0x10
je 0x40ea73
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret