joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa24549
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0xa28004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebx], edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 9
push edi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00a26262
cmp eax, edi
jl 0xa246e0
push dword [ebp - 0x214]
mov esi, 0x100
push dword [0xa283a0]
lea eax, [ebp - 0x20c]
push 0xa21cd4
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00a241c0
add esp, 0x20
cmp eax, edi
jl 0xa246e0
test dword [0xa283a8], 4
je 0xa246a0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x214], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0xa2466d
push esi
push edi
push edi
push 0xa215c8
push 0x101
lea eax, [ebp - 0x208]
push eax
call fcn.00a2409f
cmp eax, edi
jl 0xa246e0
lea eax, [ebp - 0x208]
push eax
push 0xa21ccc
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00a241c0
add esp, 0x1c
cmp eax, edi
jl 0xa246e0
test dword [0xa283a8], 8
je 0xa246dc
mov eax, dword [ebp - 0x218]
push dword [eax]
lea eax, [ebp - 0x20c]
push 0xa21ccc
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00a241c0
add esp, 0x1c
cmp eax, edi
jge 0xa246e7
cmp eax, 0x8007007a
jne 0xa246fd
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x21c]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x20c]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a235d0
leave
ret 0x10
Function at 0xa24d4c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0xa28004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x420], ebx
cmp byte [0xa283a5], bl
jne 0xa24d8d
call fcn.00a24c17
push edi
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
mov edi, 0xfde9
push edi
mov dword [ebp - 0x40c], eax
call esi
mov dword [ebp - 0x410], eax
cmp eax, 0x400
jbe 0xa24dde
push eax
call fcn.00a25662
pop ecx
mov dword [ebp - 0x40c], eax
cmp eax, ebx
jne 0xa24dde
mov dword [ebp - 0x408], 0x8007000e
jmp 0xa24ea8
push ebx
push ebx
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
push ebx
push edi
call esi
mov esi, dword [ebp - 0x414]
cmp dword [esi + 0x10], 0xffffffff
je 0xa24ea8
call fcn.00a23caf
test eax, eax
jne 0xa24e21
mov dword [ebp - 0x408], 0x80240fff
jmp 0xa24ea8
push 2
push ebx
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0xa24e42
call fcn.00a27074
mov dword [ebp - 0x408], eax
jmp 0xa24e98
push ebx
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xa24e35
test dword [esi + 0xc], 8
je 0xa24e75
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [0xa287cc], ebx
je 0xa24e98
test byte [esi + 0xc], 0x14
mov eax, 0x200000
je 0xa24e8d
mov eax, 0x2d00000
cmp edi, eax
jbe 0xa24e98
mov ecx, esi
call fcn.00a23f22
mov eax, dword [0xa2839c]
cmp eax, ebx
je 0xa24ea8
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x404]
pop edi
cmp dword [ebp - 0x40c], eax
je 0xa24eeb
push dword [ebp - 0x40c]
call fcn.00a256b0
mov dword [esp], 0xa21f50
push 2
lea eax, [ebp - 0x418]
push ebx
push eax
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], 1
call fcn.00a24bad
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop esi
xor ecx, ebp
pop ebx
call fcn.00a235d0
leave
ret 8
Function at 0xa24f06
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0xa28004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
inc esi
push edi
mov edi, ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x40c], ebx
cmp dword [ebp + 0xc], esi
jne 0xa24f5c
test byte [edi + 0xc], 0x10
jne 0xa24f6e
mov dword [ebp - 0x408], esi
jmp 0xa25099
cmp dword [ebp + 0xc], 2
jne 0xa24f6e
test byte [edi + 0xc], 4
jne 0xa24f6e
cmp dword [ebp + 8], 2
ja 0xa24f51
test byte [edi + 0xc], 3
je 0xa250b0
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 8]
ja 0xa250b0
xor eax, eax
push 0x3fe
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push ebx
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x414], ebx
add esp, 0xc
and dword [ebp - 0x410], 0
mov esi, 0x200
lea ebx, [ebp - 0x404]
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push dword [ebp - 0x420]
mov ecx, edi
push dword [ebp - 0x418]
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.00a24713
mov dword [ebp - 0x408], eax
test eax, eax
jge 0xa25032
cmp eax, 0x8007007a
jne 0xa25060
and dword [ebp - 0x408], 0
cmp dword [ebp - 0x410], 0
jne 0xa25032
push 2
push 0x800
call fcn.00a25706
test eax, eax
je 0xa25032
mov ebx, eax
xor eax, eax
inc eax
mov esi, 0x800
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x410], eax
jmp 0xa24fba
test dword [edi + 0xc], 1
je 0xa25042
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dword [edi + 0xc], 2
je 0xa25060
sub esi, dword [ebp - 0x414]
mov ecx, edi
push esi
push ebx
call fcn.00a24d4c
mov dword [ebp - 0x408], eax
xor esi, esi
inc esi
cmp dword [ebp - 0x40c], 0
je 0xa25099
push ebx
call fcn.00a256b0
and dword [ebp - 0x41c], 0
mov dword [esp], 0xa21fe0
push 2
lea eax, [ebp - 0x41c]
push 0
push eax
mov dword [ebp - 0x418], esi
call fcn.00a24bad
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a235d0
leave
ret 0x18
mov dword [ebp - 0x408], esi
jmp 0xa25063

Function at 0xa25b8f
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0xa25bdc
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0xa25bef
cmp dword [ebp + 8], 2
je 0xa25bd9
lea eax, [ebp - 4]
push eax
push 2
push 1
push edi
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0xa25bdc
jmp 0xa25bef
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0xa25bf6
call fcn.00a27074
mov edi, eax
cmp dword [ebp - 4], esi
je 0xa25c04
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0xa25e49
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
inc ebx
jmp 0xa25e97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0xa25e74
cmp eax, 5
jne 0xa25eb3
mov ecx, dword [ebp + 0x10]
inc ecx
cmp ebx, ecx
jae 0xa25f4f
push dword [ebp + 0x14]
call fcn.00a25e14
mov dword [ebp - 4], eax
cmp eax, 0x800704c7
je 0xa25f60
inc ebx
push edi
call esi
cmp eax, 0xffffffff
je 0xa25e64
test al, 0x10
jne 0xa25f60
mov dword [ebp - 4], 0x80070057
jmp 0xa25f60
cmp eax, 3
je 0xa25ec1
cmp eax, 2
jne 0xa25f4f
mov eax, dword [ebp + 0xc]
lea esi, [edi + eax*2 - 2]
jmp 0xa25ed7
cmp word [esi], 0x5c
je 0xa25edb
test eax, eax
jbe 0xa25edd
dec esi
dec esi
dec eax
cmp esi, edi
ja 0xa25eca
test eax, eax
je 0xa25ea7
cmp esi, edi
je 0xa25ea7
cmp eax, 2
jbe 0xa25f07
push dword [ebp + 0x14]
xor ecx, ecx
push dword [ebp + 0x10]
mov word [esi], cx
push eax
push edi
call fcn.00a25e49
push 0x5c
pop ecx
mov dword [ebp - 4], eax
mov word [esi], cx
test eax, eax
jl 0xa25f60
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
inc ebx
jmp 0xa25f3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0xa25f22
cmp eax, 5
jne 0xa25f48
mov ecx, dword [ebp + 0x10]
inc ecx
cmp ebx, ecx
jae 0xa25f4f
push dword [ebp + 0x14]
call fcn.00a25e14
mov dword [ebp - 4], eax
cmp eax, 0x800704c7
je 0xa25f60
inc ebx
push 0
push edi
call esi
test eax, eax
je 0xa25f12
jmp 0xa25f60
cmp eax, 0xb7
je 0xa25f60
test eax, eax
jle 0xa25f5d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0xa25f6f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
je 0xa2607f
push dword [ebp + 8]
call fcn.00a25dcf
test eax, eax
je 0xa2607f
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], edi
push edi
jmp 0xa25fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0xa25fb1
cmp eax, 5
jne 0xa25fe7
mov ecx, dword [ebp + 0xc]
inc ecx
cmp dword [ebp - 4], ecx
jae 0xa2606f
push dword [ebp + 0x10]
call fcn.00a25e14
mov ebx, eax
cmp ebx, 0x800704c7
je 0xa26084
inc dword [ebp - 4]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0xa25fa1
jmp 0xa26084
cmp eax, 0xb7
je 0xa26084
cmp eax, 3
jne 0xa2606f
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0xa25ffd
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.00a25662
mov edi, eax
pop ecx
test edi, edi
jne 0xa26025
mov ebx, 0x8007000e
jmp 0xa26084
push dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edi
call fcn.00a24065
movzx ebx, word [edi + 6]
xor eax, eax
push edi
mov word [edi + 6], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xa2605a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0xa2605a
mov ebx, 0x80070003
jmp 0xa26084
push dword [ebp + 0x10]
mov word [edi + 6], bx
push dword [ebp + 0xc]
push esi
push edi
call fcn.00a25e49
mov ebx, eax
jmp 0xa26084
test eax, eax
jle 0xa2606b
and eax, 0xffff
or eax, 0x80070000
jmp 0xa2606b
mov ebx, 0x80070057
push edi
call fcn.00a256b0
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0xa26376
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [eax + esi + 1]
cmp ecx, dword [ebp + 0xc]
jb 0xa263a8
mov ebx, 0x8007007a
jmp 0xa263d2
test eax, eax
jne 0xa263b5
call fcn.00a27074
mov ebx, eax
jmp 0xa263d2
push 0x5c
pop ecx
lea eax, [edi + eax*2]
mov word [eax], cx
lea ecx, [esi + esi + 2]
push ecx
push dword [ebp + 0x10]
add eax, 2
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0xa26c01
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp edi, esi
jne 0xa26c1a
cmp ebx, esi
jne 0xa26c1e
cmp ebx, esi
jge 0xa26c4f
mov dword [ebp - 4], 0x80070057
test edi, edi
je 0xa26c32
test ebx, ebx
jle 0xa26c32
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0xa26c3b
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
pop esi
test eax, eax
je 0xa26c48
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
leave
ret 0x14
lea eax, [ebx + ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
test eax, eax
je 0xa26c83
jle 0xa26c7e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0xa26c92
test edi, edi
jne 0xa26c97
test ecx, ecx
jbe 0xa26c97
mov dword [ebp - 4], 0x800700ea
cmp dword [ebp - 4], esi
jl 0xa26cbf
mov edx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x10], 2
sete al
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], edx
je 0xa26cc2
cmp edx, 1
jne 0xa26cb6
cmp dword [ebp + 0x10], 2
je 0xa26cc2
mov dword [ebp - 4], 0x8007065d
jmp 0xa26cc2
mov edx, dword [ebp + 8]
cmp dword [ebp - 4], 0x800700ea
jne 0xa26cdf
xor eax, eax
shr ecx, 1
cmp edx, 7
sete al
inc eax
add ecx, eax
mov esi, ecx
jmp 0xa26c25
cmp dword [ebp - 4], esi
jl 0xa26c25
shr ecx, 1
mov esi, ecx
je 0xa26cf6
cmp word [edi + esi*2 - 2], 0
je 0xa26cf7
inc esi
cmp edx, 7
jne 0xa26d0a
cmp esi, 2
jl 0xa26d09
cmp word [edi + esi*2 - 4], 0
je 0xa26d0a
inc esi
cmp esi, ebx
jle 0xa26d1a
mov dword [ebp - 4], 0x800700ea
jmp 0xa26c25
dec esi
xor ecx, ecx
lea eax, [edi + esi*2]
mov word [eax], cx
cmp edx, 7
jne 0xa26c32
mov word [eax - 2], cx
jmp 0xa26c32
Function at 0xa26d3a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov ebx, 0x80070057
cmp dword [ebp + 0x14], esi
je 0xa26dc4
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0xa26d8a
cmp eax, 0xea
je 0xa26d8a
cmp eax, esi
jle 0xa26dbe
and eax, 0xffff
or eax, 0x80070000
jmp 0xa26dbe
mov ebx, dword [ebp - 4]
shr ebx, 1
inc ebx
inc ebx
lea eax, [ebx + ebx]
push eax
call fcn.00a25662
mov edi, eax
pop ecx
cmp edi, esi
jne 0xa26da8
mov ebx, 0x8007000e
jmp 0xa26dc4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00a26c01
mov ebx, eax
cmp ebx, esi
jge 0xa26dcd
push edi
call fcn.00a256b0
pop ecx
xor edi, edi
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0xa26dd6
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0xa26de2
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0xa26dee
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18

Function at 0xa2708e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, eax
mov edi, ecx
mov esi, 0x80070057
je 0xa2714c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0xa270cf
mov esi, 0x8007000e
jmp 0xa2713c
inc esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0xa270e8
call fcn.00a27074
mov esi, eax
jmp 0xa2713c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0xa2712a
cmp eax, 2
je 0xa2712a
cmp eax, 3
je 0xa27126
cmp eax, 4
je 0xa27112
jbe 0xa2710b
cmp eax, 6
jbe 0xa2712a
mov esi, 0x80070057
jmp 0xa2713c
neg edi
sbb edi, edi
and edi, 0x7ff8fffb
add edi, 0x80070005
mov esi, edi
jmp 0xa2713c
xor esi, esi
jmp 0xa2713c
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fffb
add ebx, 0x80070005
mov esi, ebx
cmp dword [ebp - 4], 0
je 0xa2714c
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x41a1f8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [0x41a1fc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0x2d4c9f4], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x84c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x41a200]
mov edx, dword [0x41a204]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x2d4c9f4], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d4c9f0]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0x2d4c9f4], 0x3eb
mov dword [0x2d4c9f0], eax
mov eax, dword [0x2d4c944]
cmove eax, dword [ebp - 8]
mov dword [0x2d4c944], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
add dword [ebp - 0x10], edx
xor edx, edx
mov eax, dword [ebp - 4]
mov dword [0x2d4c9ec], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0x2d4c9f4], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x40135a
push edx
push edx
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0x2d4c9f4], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139d
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
jne 0x40127f
mov edi, dword [ebp - 0x28]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c027
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4195a4]
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.0040797c
mov dword [ebp - 0x14], eax
cmp dword [0x4530d0], esi
jne 0x40c11a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c0a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c1fa
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c1fa
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c1fa
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4530d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4530d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4530d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4530e0], eax
test eax, eax
je 0x40c117
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4530dc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c13f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c132
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c154
push 4
pop eax
jmp 0x40c1fc
cmp dword [ebp - 0x14], esi
je 0x40c154
push dword [0x4530d0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c139
mov eax, dword [0x4530dc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1b2
cmp dword [0x4530e0], edi
je 0x40c1b2
push eax
call ebx
push dword [0x4530e0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1b2
test eax, eax
je 0x40c1b2
call ecx
test eax, eax
je 0x40c1a7
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 0x40c1a7
test byte [ebp - 8], 1
jne 0x40c1b2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c1e2
mov eax, dword [0x4530d4]
cmp eax, edi
je 0x40c1df
push eax
call ebx
test eax, eax
je 0x40c1df
call eax
mov esi, eax
test esi, esi
je 0x40c1df
mov eax, dword [0x4530d8]
cmp eax, edi
je 0x40c1df
push eax
call ebx
test eax, eax
je 0x40c1df
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4530d0]
call ebx
test eax, eax
je 0x40c1fa
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c1fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040388c
mov esp, ebp
pop ebp
ret