joyce8/EMBER2024-capa huggingface dataset:
Function at 0xdbaae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x94c015
lea edi, [esi - 0x54b015]
lea eax, [edi + 0x97b390]
push dword [eax]
mov dword [eax], 0x8063abd3
push eax
push edi
or ebp, 0xffffffff
jmp 0xdbab12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xdbab19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdbab08
mov eax, 1
add ebx, ebx
jne 0xdbab2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xdbab20
jne 0xdbab3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xdbab20
xor ecx, ecx
sub eax, 3
jb 0xdbab50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xdbabc2
mov ebp, eax
add ebx, ebx
jne 0xdbab5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xdbab68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xdbab8c
inc ecx
add ebx, ebx
jne 0xdbab78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xdbab6d
jne 0xdbab89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xdbab6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xdbabac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xdbab9d
jmp 0xdbab0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xdbabac
add edi, ecx
jmp 0xdbab0e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x53e710
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xdbabeb
cmp byte [edi], 0x5a
jne 0xdbabd0
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0xdbabce
lea edi, [esi + 0x9a8000]
mov eax, dword [edi]
or eax, eax
je 0xdbac33
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9cb98c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9cbc58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xdbabf1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9cbc60]
or eax, eax
je 0xdbac2d
mov dword [ebx], eax
add ebx, 4
jmp 0xdbac0e
call dword [esi + 0x9cbc5c]
mov ebp, dword [esi + 0x9cbc64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x9bac8e]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xdbac7f
sub esp, 0xffffff80
jmp 0x401480
Function at 0x100aec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1002470
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100af18
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10024ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100af0b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100af1a
xor eax, eax
pop esi
leave
ret 4

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a
Function at 0x402620
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], fcn.00401310
lea eax, [ebp - 8]
push eax
push 0x40
push 0x125c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.004025f0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00402570
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4074a4
call fcn.00402700
call fcn.00401310
add esp, 0x18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x4026a9
push 0x4032b0
push str.Correct_Key_
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
call fcn.00402c30
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x4026ca
push 0x4032b0
push str.Wrong__
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edx
call fcn.00402c30
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x80
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403ca5
mov esp, ebp
pop ebp
ret

Function at 0x40460e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40464d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40464d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40464d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40464d
cmp dword [ecx + 0x74], 0xe
jbe 0x40464d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x43eb65ba
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x67795127
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x405c62
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x405c71
pop dword [ebp - 0x4c]
mov eax, 0x270995c1
sub eax, 0x26c93950
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x6942898
sub dword [ebp - 0x5c], 0xb841e34d
mov dword [ebp - 0x58], 0xd9e8e235
add dword [ebp - 0x58], 0x584a6a10
mov dword [ebp - 0x54], 0xa9c5e643
add dword [ebp - 0x54], 0xa2865deb
mov dword [ebp - 0x50], 0x1acc6a
add dword [ebp - 0x50], 0xffe53396
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x88327366
sub eax, 0x87f1a31a
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xce209a3e
sub dword [ebp - 0x5c], 0x59ae30e8
mov dword [ebp - 0x58], 0xaffafc3a
add dword [ebp - 0x58], 0x9171653b
mov dword [ebp - 0x54], 0x1d63c9cd
sub dword [ebp - 0x54], 0xb9f45d61
mov dword [ebp - 0x50], 0x83d57ae5
sub dword [ebp - 0x50], 0x83d57ae5
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x398aa
push 0
call eax
mov ecx, 0x4749
mov esi, eax
mov edi, 0x99d86887
add edi, 0x66694779
add edi, dword [ebp - 0x4c]
mov edx, 0xc5b8673b
add edx, 0x7e13d5a7
mov ebx, dword [edi]
sub dword [ebp - 0x3c], 0x7d30109
sub ebx, edx
xor dword [ebp - 8], edi
mov dword [esi], ebx
mov dword [ebp - 0x38], 0xdf0a3b8f
add esi, 0xf39ef826
add esi, 0xc6107de
add edi, 0x671651cd
sub edi, 0x671651c9
loop 0x405d88
add eax, 0x1bbd808c
sub eax, 0x1bbc7095
mov ebx, eax
add eax, 0xea302ee3
add eax, 0x15cfd122
mov ecx, 0xbb4b4ab3
add ecx, 0x44f4b54d
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10001440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ae78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1004f430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x10045954
push 0x69
push dword [0x100522fc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10001495
xor eax, eax
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 esi
push dword [0x100522fc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001481
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10001481
push esi
push dword [0x100522fc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], vtable.CFileHandler.0
mov dword [ebp - 4], 0
cmp dword [0x1005235c], 0
jne 0x10001481
mov ecx, dword [ebx + 0xc]
push eax
push edi
call fcn.1000a320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002ad0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x90
lea eax, [ebp - 0x9c]
push 0
push eax
mov edi, ecx
mov esi, 3
call fcn.10027fa0
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 6
jb 0x10002c35
push edi
mov ecx, 0x400
call fcn.1000d510
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10002c35
lea eax, [ebp - 0xa4]
push eax
push 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10002c2e
mov ecx, dword [ebp - 0xa4]
call fcn.10002c50
test eax, eax
je 0x10002b70
mov esi, 2
jmp 0x10002c22
lea eax, [ebp - 0xa8]
push eax
push 0
push 0
push 0x19
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10002c22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10002c22
push dword [ebp - 0xa8]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10002c22
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
push edi
push 0x19
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10002c1b
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov al, byte [eax]
dec al
movzx eax, al
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
cmp eax, 0x2000
jb 0x10002c1b
cmp eax, 0x3000
jae 0x10002c03
mov esi, 4
jmp 0x10002c1b
cmp eax, 0x4000
jae 0x10002c11
mov esi, 5
jmp 0x10002c1b
cmp eax, 0x5000
sbb esi, esi
add esi, 7
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022a24
mov esp, ebp
pop ebp
ret
Function at 0x10002ea0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003af10
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x1004f430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002eec
or eax, 0xffffffff
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 dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10002ed7
push 0x2e
mov ecx, esi
call fcn.10007fc0
mov edi, eax
cmp edi, 0xffffffff
je 0x10002ed7
lea eax, [edi - 1]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.10007df0
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.10007df0
mov byte [ebp - 4], 1
xor edi, edi
lea esp, [esp]
push dword [ebp - 0x30]
mov ecx, esi
call fcn.10007840
mov byte [ebp - 4], 2
push ecx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], vtable.CStringBufferW.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.10008240
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, esi
call fcn.10007a40
mov byte [ebp - 4], 1
test ebx, ebx
je 0x10002f94
push ebx
call fcn.1002354a
add esp, 4
push dword [ebp - 0x20]
mov ecx, esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], vtable.CSeed.0
call fcn.10007a40
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10002fe1
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10002fe1
inc edi
cmp edi, 0xa
jl 0x10002f40
or edi, 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], vtable.CStringBufferW.0
test eax, eax
je 0x10002ff8
push eax
call fcn.1002354a
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], vtable.CSeed.0
mov dword [ebp - 0x3c], vtable.CStringBufferW.0
test eax, eax
je 0x1000302b
push eax
call fcn.1002354a
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004f10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xorps xmm0, xmm0
push esi
lea eax, [ebp - 0x28]
push eax
mov dword [0x1005081c], 0
mov dword [0x10050814], 0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x28], 9
sete al
mov dword [0x1005081c], eax
call fcn.10005070
mov esi, eax
test esi, esi
je 0x10004fa0
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x10004f99
mov eax, dword [0x10050814]
cmp dword [ebp - 4], 0
mov ecx, 1
cmove eax, ecx
mov dword [0x10050814], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100054b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b3d2
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10050840], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], 0
je 0x1000553b
cmp dword [0x10050838], 0
je 0x1000553b
mov dword [ebp - 4], 0
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
push dword [0x10050838]
mov ecx, esi
push dword [0x10050840]
call fcn.100077c0
jmp 0x100056e6
push 0x10050848
mov dword [ebp - vtable.CCritical.0], 0x10050844
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
cmp dword [0x10050840], 0
je 0x10005572
cmp dword [0x10050838], 0
je 0x10005572
mov byte [ebp - 4], 2
jmp 0x100056ad
mov eax, dword [0x1005233c]
test eax, eax
jne 0x10005585
call fcn.10004ce0
mov eax, dword [0x1005233c]
cmp eax, 6
jae 0x100055de
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.10027fa0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x100055d5
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x10050834
call fcn.10007840
mov byte [ebp - 4], 3
jmp 0x100056ad
mov eax, dword [0x10052358]
test eax, eax
jne 0x100055f9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.10011370
mov dword [0x10052358], eax
cmp eax, 2
jne 0x100056a4
call fcn.10005710
push ecx
push str.AppData_
mov ecx, 0x10050834
call fcn.10008010
push eax
push 0
lea eax, [ebp - 0x238]
push eax
mov ecx, 0x10050834
call fcn.10007df0
push eax
mov ecx, 0x10050834
mov byte [ebp - 4], 4
call fcn.100078d0
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.100075d0
cmp dword [0x10050840], 0
mov ecx, 0x10050834
jne 0x10005665
push 0x11
push str.AppDataLocalLow
call fcn.100077c0
jmp 0x100056a9
mov eax, dword [0x10050838]
add eax, 0x11
push eax
call fcn.10007b10
test eax, eax
je 0x100056a9
mov ecx, dword [0x10050838]
mov eax, dword [0x1005083c]
sub eax, ecx
push str.AppDataLocalLow
push eax
mov eax, dword [0x10050840]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
add dword [0x10050838], 0x11
jmp 0x100056a9
call fcn.10005710
mov byte [ebp - 4], 5
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
push dword [0x10050838]
mov ecx, esi
push dword [0x10050840]
call fcn.100077c0
lea ecx, [ebp - 0x220]
call fcn.1000f010
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10022a24
mov esp, ebp
pop ebp
ret 4
Function at 0x10005e70
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b4f2
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x234], 0
call fcn.10027fa0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x230], 0x103
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10005f61
mov dword [ebp - 4], 0
lea edi, [ebp - 0x21c]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
lea ecx, [edi + 2]
jmp 0x10005f20
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10005f20
sub edi, ecx
sar edi, 1
je 0x10006073
push edi
mov ecx, esi
call fcn.10007b10
push edi
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 8]
push dword [esi + 0xc]
call fcn.10023dc5
lea ecx, [edi + 1]
add esp, 0x10
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
jmp 0x10006073
lea eax, [ebp - 0x22c]
push eax
call fcn.100060a0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10006041
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x10006041
push 0x5c
lea ecx, [ebp - 0x22c]
call fcn.10007fc0
cmp eax, 0xffffffff
jne 0x10005fdf
push 0x2f
lea ecx, [ebp - 0x22c]
call fcn.10007fc0
cmp eax, 0xffffffff
jne 0x10005fdf
lea ecx, [ebp - 0x22c]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.100075d0
jmp 0x10006073
sub edi, eax
dec edi
push edi
inc eax
push eax
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x22c]
call fcn.10007df0
mov byte [ebp - 4], 5
push dword [ebp - 0x240]
mov ecx, esi
push dword [ebp - 0x238]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.100077c0
lea ecx, [ebp - 0x244]
call fcn.100075d0
lea ecx, [ebp - 0x22c]
call fcn.100075d0
jmp 0x10006073
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
test eax, eax
je 0x10006073
push eax
call fcn.1002354a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10022a24
mov esp, ebp
pop ebp
ret 4