joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e540
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4b6b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.0047de20
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.0047de20
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.0047de90
cmp dword [esp + 0x40], ebx
jne 0x47e5c8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.0047de40
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0047de40
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.0047e480
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.00432090
cmp eax, esi
jb 0x47e64b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x87e8b8
lea ecx, [esp + 0x1c]
call fcn.0047e240
cmp eax, 1
jne 0x47e63d
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0047dfe0
push ebx
lea ecx, [esp + 0x20]
call fcn.00433c70
push eax
call fcn.00487178
add esp, 8
test eax, eax
jge 0x47e63d
push ebx
lea ecx, [esp + 0x20]
call fcn.00433c60
push eax
call edi
test eax, eax
je 0x47e680
lea ecx, [esp + 0xc]
inc esi
call fcn.00432090
cmp esi, eax
jbe 0x47e5ed
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.0047de40
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0047de40
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.0047de40
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0047de40
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x480ae0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x480aeb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x480bee
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x85f4a4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x85f4a4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x85f4a4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x85f4a4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x85f4a4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x85f4a4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x85f4a4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x85f4a4]
xor eax, edx
inc ecx
dec edi
jne 0x480b06
pop edi
test esi, esi
je 0x480c10
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x85f4a4]
xor eax, edx
inc ecx
dec esi
jne 0x480bf2
pop esi
pop ebx
not eax
ret

Function at 0x481470
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4814b1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4814a6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x4814c4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x482400
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4824b5
cmp dword [ebp + 4], 0xffffffff
jne 0x4824b5
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x87eb40
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x48247d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x48247d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00481200
add esp, 0x10
test eax, eax
jne 0x4824a0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00481740
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x482910
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x4829d8
mov al, byte [ecx]
test al, al
je 0x4829d8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x48293b
cmp al, 0x5c
jne 0x48293d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x482933
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x482974
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004873b0
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.00482910
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x487178
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x487198
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004861ea
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4871bb
test byte [esp + 8], 2
je 0x4871bb
call fcn.0048625d
mov dword [eax], 0xd
call fcn.00486266
mov dword [eax], 5
jmp 0x487194
xor eax, eax
ret
Function at 0x49dd60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b7b10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00492a1f
mov eax, dword [0x862790]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00492951
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.0049e850
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x49de07
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49ddfe
cmp al, 0xff
je 0x49ddfe
dec al
mov byte [ecx], al
jmp 0x49de07
push ecx
call fcn.004a7527
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x49de38
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49de2f
cmp al, 0xff
je 0x49de2f
dec al
mov byte [ecx], al
jmp 0x49de38
push ecx
call fcn.004a7527
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4a9b61
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a9b99
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a7c18
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a7bf0
jmp 0x4a9ba5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ab252
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ab294
call fcn.004b0dbf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ab294
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ab28b
xor eax, eax
jmp 0x4ab29c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ab2a2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b12ef
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b131d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b133b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b1255
jmp 0x4b133b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b133b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b1255
test edi, edi
mov eax, edi
jne 0x4b1325
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401848
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40187c
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401878
cmp esi, eax
jae 0x40187c
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401868
cmp esi, eax
jb 0x401882
pop esi
xor eax, eax
pop edi
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403280
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esi + 0x14]
push ecx
push eax
mov dword [esi], vtable.BDMLogicMisc::CBDCmdParser.0
mov dword [esi + 4], 0x444598
mov dword [esi + 8], 0xe
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [esi + 0x18]
push 0x2d
push edx
mov dword [esi + 0x10], eax
call dword [sym.imp.MSVCR80.dll_wcschr]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040fbef
add esp, 0xc
test eax, eax
mov dword [esi + 0xc], eax
je 0x4032f1
mov ecx, dword [esi + 8]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
mov ebx, esi
call fcn.004070b0
mov dword [esi + 0x20], eax
mov eax, esi
pop ebx
ret
Function at 0x403530
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x403544
mov eax, dword [edi]
jmp 0x403546
mov eax, edi
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x40356a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
cmp dword [esi + 0x1c], 0
je 0x4035d4
cmp dword [esi + 0x30], 0
je 0x403598
call fcn.00406de0
cmp eax, 7
jl 0x403598
call fcn.00406fd0
test eax, eax
jne 0x403598
test ebx, ebx
je 0x403598
mov eax, ebx
call fcn.00403340
test eax, eax
je 0x4035d4
cmp dword [esi + 0x18], 8
jb 0x4035a0
mov edi, dword [edi]
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0x2c], eax
je 0x4035bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4035dc
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4035d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
lea edi, [esi + 0x20]
push ebx
push ecx
mov ecx, edi
call edx
test eax, eax
jne 0x403607
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x4035ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov esi, dword [esi + 0x2c]
test esi, esi
mov edi, eax
je 0x403629
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x405b40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x208]
push ecx
push str._ALLUSERSPROFILE_Application_DataBaiduBaiduAn_
call esi
lea edi, [ebp - 0x208]
call fcn.0041c2b0
test eax, eax
jne 0x405baa
push 0x103
mov edx, edi
push edx
push str._ALLUSERSPROFILE_BaiduBaiduAn_
call esi
call fcn.0041c2b0
test eax, eax
je 0x405bd1
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push eax
push 0x104
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ea0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427a29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push esi
push edi
push 0x206
lea eax, [ebp - 0x22e]
push 0
push eax
mov esi, ecx
mov word [ebp - 0x230], 0
call sub.MSVCR80.dll_memset
lea ecx, [ebp - 0x230]
add esp, 0xc
push ecx
call fcn.00405b40
add esp, 4
lea edx, [ebp - 0x230]
push edx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.InstallerUpdate_
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call dword [0x42e20c]
push esi
lea edi, [ebp - 0x28]
call fcn.00405be0
add esp, 4
test eax, eax
je 0x405f49
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x206
lea eax, [ebp - 0x436]
push 0
push eax
mov word [ebp - 0x438], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x438]
push ecx
push str._ALLUSERSPROFILE_Application_DataBaidu_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x438]
push edx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.BaiduAn2_
lea ecx, [ebp - 0x28]
call dword [0x42e20c]
push esi
lea edi, [ebp - 0x28]
call fcn.00405be0
add esp, 4
mov ecx, edi
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406de0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x444da8]
sub esp, 0x114
cmp eax, 0xffffffff
jne 0x406fbe
push esi
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
mov dword [0x444da8], 0xfffffc18
mov dword [ebp - 0x114], 0x114
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406fb8
cmp dword [ebp - 0x104], 2
jne 0x406fb8
mov eax, dword [ebp - 0x110]
cmp eax, 5
jne 0x406f02
mov eax, dword [ebp - 0x10c]
test eax, eax
jne 0x406e6c
mov eax, 1
mov dword [0x444da8], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x406eea
mov esi, dword [sym.imp.MSVCR80.dll__wcsnicmp]
push 0x7f
lea edx, [ebp - 0x100]
push edx
push str.Service_Pack_1
call esi
add esp, 0xc
test eax, eax
jne 0x406e9d
mov eax, 3
mov dword [0x444da8], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [ebp - 0x100]
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
test eax, eax
jne 0x406ec3
mov eax, 4
mov dword [0x444da8], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x7f
lea ecx, [ebp - 0x100]
push ecx
push str.Service_Pack_3
call esi
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov dword [0x444da8], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x406fb8
mov eax, 6
mov dword [0x444da8], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x406fa7
mov eax, dword [ebp - 0x10c]
test eax, eax
jne 0x406f68
mov esi, dword [sym.imp.MSVCR80.dll__wcsnicmp]
push 0x7f
lea edx, [ebp - 0x100]
push edx
push str.Service_Pack_1
call esi
add esp, 0xc
test eax, eax
jne 0x406f41
mov eax, 8
mov dword [0x444da8], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [ebp - 0x100]
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
mov dword [0x444da8], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x406f7c
mov eax, 0xa
mov dword [0x444da8], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x406f90
mov eax, 0xb
mov dword [0x444da8], eax
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp eax, 3
setne cl
pop esi
add ecx, 0xc
mov eax, ecx
mov dword [0x444da8], eax
mov esp, ebp
pop ebp
ret
jbe 0x406fb8
mov eax, 0xd
mov dword [0x444da8], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x444da8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406fd0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x407033
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x407026
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407170
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
mov dword [ebp - 0x5c], 0x44
mov word [ebp - 0x2c], 4
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4071ce
push eax
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4071e0
push eax
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4071f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42752e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
test byte [0x447b90], 1
mov dword [ebp - 0x10], 0
jne 0x407250
or dword [0x447b90], 1
push 0x4386dc
mov ecx, 0x447b74
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0x42dc10
call fcn.00410cc1
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [0x447b44], 0
jne 0x407288
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x407281
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, 0x447b74
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov byte [0x447b44], 1
push 0x447b74
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4072b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42750e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
test byte [0x447b70], 1
mov dword [ebp - 0x10], 0
jne 0x407310
or dword [0x447b70], 1
push 0x4386dc
mov ecx, 0x447b54
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0x42dc20
call fcn.00410cc1
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [0x447b45], 0
jne 0x407348
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x407341
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, 0x447b54
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov byte [0x447b45], 1
push 0x447b54
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret