joyce8/EMBER2024-capa huggingface dataset:
Function at 0x545af0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0xc8
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0xc4], eax
push 0x80
xorps xmm0, xmm0
lea eax, [esp + 0x48]
push 0
push eax
movdqu xmmword [esp + 0x30], xmm0
movdqu xmmword [esp + 0x40], xmm0
call fcn.0054b440
mov eax, dword [esp + 0xdc]
add esp, 0xc
mov dword [esp], 0
cmp eax, 2
jge 0x545c4a
test eax, eax
jne 0x545b6e
mov dword [esp + 0x24], 0x6b6e4048
mov dword [esp + 0x28], 0x6d6a0635
mov dword [esp + 0x2c], 0x7a4b2e21
mov dword [esp + 0x30], 0x6c6c677e
mov dword [esp + 0x34], 0xb4823
push 5
jmp 0x545b91
cmp eax, 1
jne 0x545c4a
mov dword [esp + 0x24], 0x57434548
mov dword [esp + 0x28], 0x3f470912
mov dword [esp + 0x2c], 0x18044a7b
push 3
lea eax, [esp + 0x28]
push eax
call fcn.005428a0
push 0x80
lea eax, [esp + 0x48]
push 0
push eax
call fcn.0054b440
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00542bc0
xorps xmm0, xmm0
lea eax, [esp + 0x44]
push eax
movdqu xmmword [esp + 0x28], xmm0
movdqu xmmword [esp + 0x38], xmm0
movq qword [esp + 8], xmm0
movdqu xmmword [esp + 0x10], xmm0
movq qword [esp + 0x20], xmm0
call fcn.00542ce0
add eax, eax
mov dword [esp + 0xc], 0x18
mov word [esp + 4], ax
mov eax, dword [esp + 4]
add eax, 2
mov word [esp + 6], ax
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 0x14], eax
call fcn.00543860
test eax, eax
je 0x545c30
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0xd0]
lea ecx, [esp + 8]
push ecx
call eax
mov eax, dword [esp]
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0054a992
add esp, 0xc8
ret 8
mov ecx, dword [esp + 0xc4]
xor eax, eax
xor ecx, esp
call fcn.0054a992
add esp, 0xc8
ret 8
Function at 0x564f0f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59b000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00551ab3
mov dword [ebp - 0x14], eax
cmp dword [0x5a3ae4], esi
jne 0x565002
push 0x800
push esi
push 0x456008
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x564f8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5650e2
push esi
push esi
push 0x456008
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5650e2
push 0x456020
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5650e2
push eax
call ebx
push 0x45602c
push edi
mov dword [0x5a3ae4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x45603c
push edi
mov dword [0x5a3ae8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x456050
push edi
mov dword [0x5a3aec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a3af4], eax
test eax, eax
je 0x564fff
push 0x445e34
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a3af0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x565027
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x56501a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x56503c
push 4
pop eax
jmp 0x5650e4
cmp dword [ebp - 0x14], esi
je 0x56503c
push dword [0x5a3ae4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x565021
mov eax, dword [0x5a3af0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x56509a
cmp dword [0x5a3af4], edi
je 0x56509a
push eax
call ebx
push dword [0x5a3af4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x56509a
test eax, eax
je 0x56509a
call ecx
test eax, eax
je 0x56508f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x56508f
test byte [ebp - 8], 1
jne 0x56509a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5650ca
mov eax, dword [0x5a3ae8]
cmp eax, edi
je 0x5650c7
push eax
call ebx
test eax, eax
je 0x5650c7
call eax
mov esi, eax
test esi, esi
je 0x5650c7
mov eax, dword [0x5a3aec]
cmp eax, edi
je 0x5650c7
push eax
call ebx
test eax, eax
je 0x5650c7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5a3ae4]
call ebx
test eax, eax
je 0x5650e2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5650e4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054a992
mov esp, ebp
pop ebp
ret
Function at 0x56aa50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
cmp byte [ecx + 0x20], 0
lea eax, [ecx + 0x1c]
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esp + 8], ecx
jbe 0x56aa7e
mov edi, dword [eax]
mov dword [esp + 0xc], edi
cmp esi, edi
jb 0x56aa75
cmp esi, dword [eax + 8]
jb 0x56aa8c
add eax, 8
cmp byte [eax + 4], 0
ja 0x56aa66
mov eax, dword [ecx + 0x14]
pop edi
mov al, byte [esi + eax]
pop esi
add esp, 8
ret 4
movzx eax, byte [eax + 4]
sub esi, edi
push ebx
push ebp
lea ebx, [eax*4 + 0x5a3afc]
lea ebp, [eax - 1]
mov edi, edi
movzx eax, byte [ebx]
movzx edx, byte [ebx + 1]
add ecx, eax
movzx eax, byte [ecx]
and edx, eax
mov al, byte [ebx + 2]
test al, al
je 0x56aac3
movzx ecx, byte [ecx + 1]
movzx eax, al
and ecx, eax
shl ecx, 8
or edx, ecx
mov cl, byte [ebx + 3]
shr edx, cl
test ebp, ebp
je 0x56ab2b
mov edi, 1
mov ecx, ebp
shl edi, cl
test esi, edi
setne al
mov byte [esp + 0x1c], al
test dl, 1
je 0x56aaea
test al, al
sete byte [esp + 0x1c]
shr edx, 1
mov eax, edx
xor edx, edx
div ebp
mov eax, 1
mov ecx, edx
shl eax, cl
test esi, eax
je 0x56ab03
or esi, edi
jmp 0x56ab07
not edi
and esi, edi
cmp byte [esp + 0x1c], 0
je 0x56ab1a
mov ecx, dword [esp + 0x10]
or esi, eax
dec ebp
sub ebx, 4
jmp 0x56aaa0
mov ecx, dword [esp + 0x10]
not eax
and esi, eax
dec ebp
sub ebx, 4
jmp 0x56aaa0
pop ebp
pop ebx
test dl, 1
je 0x56ab35
xor esi, 1
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, dword [eax + 0x14]
add eax, esi
pop esi
mov al, byte [eax + ecx]
add esp, 8
ret 4

Function at 0x56b180
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x56b21d
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x56b21c
push ebx
mov ebx, dword [esp + 0x18]
xor edx, edx
test ebx, ebx
je 0x56b217
push edi
cmp ebx, 0x20
jb 0x56b1fb
lea eax, [esi - 1]
lea ecx, [ebp - 1]
add eax, ebx
add ecx, ebx
cmp ebp, eax
ja 0x56b1bd
cmp ecx, esi
jae 0x56b1fb
movdqa xmm1, xmmword [0x456e50]
mov eax, ebx
and eax, 0x1f
mov ecx, ebx
sub ecx, eax
mov edi, ebp
mov eax, esi
sub edi, esi
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movdqu xmmword [edi + eax - 0x20], xmm0
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm1
movdqu xmmword [edx + ebp + 0x10], xmm0
add edx, 0x20
cmp edx, ecx
jb 0x56b1d4
cmp edx, ebx
jae 0x56b216
mov edi, ebx
lea ecx, [edx + ebp]
sub esi, ebp
sub edi, edx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0x67
mov byte [ecx - 1], al
dec edi
jne 0x56b208
pop edi
mov byte [ebx + ebp], 0
pop ebx
pop ebp
pop esi
ret
Function at 0x55cc50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcc000]
mov dword [edi + 0xf9b50], 0xcd25eaa2
push edi
or ebp, 0xffffffff
jmp 0x55cc7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55cc81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55cc70
mov eax, 1
add ebx, ebx
jne 0x55cc93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55cca4
jne 0x55ccc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55ccc3
dec eax
add ebx, ebx
jne 0x55ccb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55cc88
add ebx, ebx
jne 0x55ccbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55cd15
xor ecx, ecx
sub eax, 3
jb 0x55ccdb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55cd4a
sar eax, 1
mov ebp, eax
jmp 0x55cce6
add ebx, ebx
jne 0x55cce6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55ccb4
inc ecx
add ebx, ebx
jne 0x55ccf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55ccb4
add ebx, ebx
jne 0x55cd01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55ccf6
jne 0x55cd12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55ccf6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55cd34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55cd26
jmp 0x55cc76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55cd34
add edi, ecx
jmp 0x55cc76
pop esi
mov edi, esi
mov ecx, 0x455e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55cd52
cmp byte [edi], 0x13
jne 0x55cd52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x55cd57
lea edi, [esi + 0x159000]
mov eax, dword [edi]
or eax, eax
je 0x55cdcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x174cac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x174dd8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55cd84
mov ecx, edi
jns 0x55cdb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x174ddc]
or eax, eax
je 0x55cdc9
mov dword [ebx], eax
add ebx, 4
jmp 0x55cda1
call dword [esi + 0x174dec]
mov ebp, dword [esi + 0x174de0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x55ce03
sub esp, 0xffffff80
jmp 0x49fce2
Function at 0x10001190
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0x5a
push 0x400
call esi
test eax, eax
je 0x100011f1
push 0xa
lea ecx, [ebp - 0x2c]
push ecx
push 0x59
push 0x400
call esi
test eax, eax
je 0x100011f1
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c]
push eax
push str._S__S
call sub.glib_2.0.dll_g_strdup_printf
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_retrieve_user_locale_data__error___u.
call fcn.10050cd0
push 0x1005d78c
call sub.glib_2.0.dll_g_strdup
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret

Function at 0x100030e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [0x1008cccc], 0
push esi
je 0x10003105
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
call fcn.10003680
add esp, 8
jmp 0x10003103
mov eax, dword [0x1008ccd0]
test eax, eax
jne 0x10003149
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
push 0
call sym.vmtools.dll_Str_Vasprintf
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10003144
mov ecx, dword [0x1008ccbc]
push esi
push 0x1005de4c
push 4
push ecx
call sub.glib_2.0.dll_g_log
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x14
call fcn.10001b50
cmp eax, 1
jne 0x1000318e
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x400]
push 0x400
push ecx
call sym.vmtools.dll_Str_Vsnprintf
add esp, 0x10
lea edx, [ebp - 0x400]
push edx
push str.Recursive_panic:__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
call fcn.10001b50
push str.Recursive_panic__giving_up._n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR90.dll_exit]
int3

Function at 0x10003419
Capabilities:
Access peb ldr_data

Disassembly:
push edi
push ebx
push ebp
sub esp, 0x3d4
mov eax, dword fs:[0x30]
mov dword [esp + 0x3d0], esi
mov eax, dword [eax + 0xc]
add eax, 0xc
mov eax, dword [eax]
mov esi, dword [eax + 0x30]
movzx edx, word [esi]
test edx, edx
je 0x10003435
xor ecx, ecx
inc ecx
movzx edx, word [esi + ecx*2]
test edx, edx
jne 0x10003443
test ecx, ecx
je 0x10003435
Function at 0x100061c0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call sub.MSVCR90.dll_memset
mov eax, dword [0x1008cd90]
add esp, 0xc
mov dword [ebp - 0x208], 0x100
test eax, eax
jne 0x1000624b
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10006246
push 0
push 0
push 0
lea ecx, [ebp - 0x204]
push 0xffffffffffffffff
push ecx
call sub.glib_2.0.dll_g_utf16_to_utf8
add esp, 0x14
mov dword [0x1008cd90], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1008cd90]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret

Function at 0x10006ab0
Capabilities:
Encode data using xor

Disassembly:
inc esp
and al, 0x24
mov ebx, dword [esp + 0x40]
lea edx, [edi + 0x6c]
call fcn.10006c9b
mov ecx, 4
lea edx, [edi + 0xdc]
lea eax, [esp + 0x28]
call fcn.10006c9b
mov eax, dword [esp + 0x44]
lea edx, [eax + ebx]
add eax, 0xfffffff0
je 0x10006c70
xor esi, esi
xor ebp, ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], edx
mov edx, eax
mov edi, dword [esp + 0xc]
Function at 0x100092e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0xc
push eax
call sym.vmtools.dll_DynBuf_Init
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.100091e0
add esp, 0x10
test al, al
jne 0x10009325
lea ecx, [ebp - 0xc]
push ecx
call sym.vmtools.dll_DynBuf_Destroy
add esp, 4
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0xc
xor al, al
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push edx
push 1
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x10009353
lea edx, [ebp - 0xc]
push edx
call sym.vmtools.dll_DynBuf_Destroy
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
call sym.vmtools.dll_DynBuf_Destroy
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x1000a680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
push edi
xor edi, edi
test ecx, ecx
je 0x1000a690
mov dword [ecx], edi
mov dword [ebp - 4], eax
test eax, eax
jl 0x1000a770
push ebx
push esi
jmp 0x1000a6a3
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000a6ac
mov esi, dword [ebp + 8]
jmp 0x1000a6c7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
dec eax
push eax
push edx
push str._s__d_s
push 0
call sym.vmtools.dll_Str_SafeAsprintf
add esp, 0x14
mov esi, eax
test edi, edi
jne 0x1000a704
push edi
push 1
push esi
call fcn.1000ca80
add esp, 0xc
test eax, eax
je 0x1000a6e2
sub eax, 2
neg eax
sbb eax, eax
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1000a73b
call sym.vmtools.dll_Err_ErrString
push eax
push esi
push str.FileRotateByRename
push str.FILE:__s:_failed_to_remove__s:__s_n
call sym.vmtools.dll_Log
add esp, 0x10
jmp 0x1000a73b
push edi
push esi
call fcn.10016370
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x1000a73b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1000a73b
push eax
call sym.vmtools.dll_Err_Errno2String
push eax
push str.FileRotateByRename
push edi
push esi
push 0x10061324
call sym.vmtools.dll_Log
add esp, 0x18
cmp esi, dword [ebp + 8]
jne 0x1000a758
cmp dword [ebp + 0x14], 0
je 0x1000a758
test ebx, ebx
jne 0x1000a758
push edi
call sym.vmtools.dll_UtilSafeStrdup0
mov ecx, dword [ebp + 0x14]
add esp, 4
mov dword [ecx], eax
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
sub dword [ebp - 4], 1
mov edi, esi
jns 0x1000a6a0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10013870
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x80
xor bl, bl
mov dword [ebp - 0x808], 0x80
mov dword [ebp - 0x810], 0x400
call sym.vmtools.dll_UtilSafeMalloc0
add esp, 4
lea ecx, [ebp - 0x80c]
push ecx
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x808]
push edx
push eax
push 0x1006399c
push 0
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10013918
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10063980
push str._s:R
call sym.vmtools.dll_Log
mov eax, dword [esi]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esi], 0
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x80c], 4
je 0x10013932
push str.VMware_User_Group
push 0x10063980
push str._s:_Bad_account_type_for__S_group_n
jmp 0x100138ec
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
Function at 0x4084b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 1], 0
mov ecx, dword [ebp + 0x10]
call fcn.00413ed0
movzx eax, al
xor ecx, ecx
cmp dword [ebp + 0x14], 0
sete cl
cmp eax, ecx
jne 0x4085aa
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4085aa
mov ecx, dword [ebp - 0x1c]
add ecx, 0x64
call fcn.00413ed0
movzx eax, al
test eax, eax
je 0x408516
mov byte [ebp - 1], 1
jmp 0x4085aa
cmp dword [ebp - 0xc], 0
jbe 0x4085aa
mov ecx, dword [ebp - 0xc]
add ecx, 2
push ecx
call fcn.0042e2d1
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x4085aa
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408598
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov byte [eax + 1], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x64
call fcn.00407120
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.004085c0
mov byte [ebp - 1], al
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0042eb09
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x48
call fcn.00413ed0
movzx eax, al
test eax, eax
jne 0x408842
push 0x46371c
mov ecx, dword [ebp - 4]
add ecx, 0x2c
call fcn.00407120
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40880d
mov ecx, dword [ebp - 4]
add ecx, 0x48
call fcn.00407120
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4087ff
mov ecx, dword [ebp - 4]
add ecx, 0x48
call fcn.00407120
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4087ff
mov dword [ebp - 8], 1
jmp 0x408806
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
jmp 0x408844
push str.folder
mov ecx, dword [ebp - 4]
add ecx, 0x2c
call fcn.00407120
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408842
mov ecx, dword [ebp - 4]
add ecx, 0x48
call fcn.00407120
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x408844
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x408ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45aab6
mov eax, dword fs:[0]
push eax
mov eax, 0x12dc
call fcn.0043ef50
mov eax, dword [0x46d394]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12d8], ecx
mov eax, dword [0x4633d4]
mov dword [ebp - 0x50], eax
mov ecx, dword [0x4633d4]
mov dword [ebp - 0x10], ecx
push 0x46373c
lea ecx, [ebp - 0x30]
call fcn.004070c0
mov dword [ebp - 4], 0
push 0x463738
lea ecx, [ebp - 0x4c]
call fcn.004070c0
mov byte [ebp - 4], 1
push 0
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x12d8]
add ecx, 0x18
call fcn.00409460
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp eax, dword [0x4633d4]
je 0x4091a6
lea ecx, [ebp - 0x66c]
push ecx
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4091a4
lea edx, [ebp - 0x66c]
push edx
mov ecx, dword [ebp - 0x12d8]
add ecx, 0x54
call fcn.00409400
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x12d8]
add ecx, 0x18
call fcn.00409460
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, dword [0x4633d4]
je 0x409143
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x30]
call fcn.004056b0
sub esi, eax
push esi
lea ecx, [ebp - 0x30]
call fcn.004056b0
add eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x12b8]
push eax
mov ecx, dword [ebp - 0x12d8]
add ecx, 0x18
call fcn.00409490
mov dword [ebp - 0x12dc], eax
mov ecx, dword [ebp - 0x12dc]
mov dword [ebp - 0x12e0], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x12e0]
push edx
mov ecx, dword [ebp - 0x12d8]
add ecx, 0x54
call fcn.00409420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12b8]
call fcn.00407100
jmp 0x4091a4
mov eax, dword [0x4633d4]
push eax
lea ecx, [ebp - 0x30]
call fcn.004056b0
add eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x12d4]
push ecx
mov ecx, dword [ebp - 0x12d8]
add ecx, 0x18
call fcn.00409490
mov dword [ebp - 0x12e4], eax
mov edx, dword [ebp - 0x12e4]
mov dword [ebp - 0x12e8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x12e8]
push eax
mov ecx, dword [ebp - 0x12d8]
add ecx, 0x54
call fcn.00409420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12d4]
call fcn.00407100
jmp 0x4091f0
lea ecx, [ebp - 0x129c]
push ecx
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4091f0
lea edx, [ebp - 0xc84]
push edx
push 0
push 0x463750
lea eax, [ebp - 0x129c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4091f0
lea ecx, [ebp - 0xc84]
push ecx
mov ecx, dword [ebp - 0x12d8]
add ecx, 0x54
call fcn.00409400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00407100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00407100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042e367
mov esp, ebp
pop ebp
ret