joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401de0
Capabilities:
Allocate or change rwx memory
Map section object
Parse pe header
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x427bf4]
mov edx, dword [eax + 0x3c]
xor ecx, ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [edx + eax + 0x50]
mov esi, 0xfffff000
and esi, dword [ebp + 4]
mov dword [0x427bf0], eax
mov ebx, eax
push edi
mov dword [ebp - 8], ecx
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x401e29
mov edx, dword [esi + 0x3c]
mov eax, 0x4550
mov edi, eax
cmp word [esi + edx], di
je 0x401e31
sub esi, 0x1000
jmp 0x401e14
push ecx
push ebx
push ecx
push 0x40
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401e63
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x401e6c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp + 8]
add esp, 0xc
push 0x40
push 0
push 1
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push edi
call dword [sym.imp.ntdll.dll_ZwMapViewOfSection]
test eax, eax
js 0x401ee2
push 0
mov eax, fcn.004071e0
sub eax, esi
add eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
push 0
push 0
push eax
push esi
call dword [sym.imp.ntdll.dll_ZwQueueApcThread]
push 0
push esi
test eax, eax
js 0x401edc
call dword [sym.imp.ntdll.dll_ZwResumeThread]
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402520
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x427be0], 0
je 0x402566
cmp dword [0x427be4], 0
je 0x402566
mov eax, dword [0x427be8]
test eax, eax
je 0x402566
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x427be0]
mov ecx, dword [0x427be4]
push 1
push 0
push 0
push 0
push eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4028b0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
push ebx
push esi
xor ecx, ecx
push edi
mov ebx, eax
mov dword [ebp - 0x1c], 0x65006b
mov dword [ebp - 0x18], 0x6e0072
mov dword [ebp - 0x14], 0x6c0065
mov dword [ebp - 0x10], 0x320033
mov dword [ebp - 0xc], 0x64002e
mov dword [ebp - 8], 0x6c006c
mov word [ebp - 4], cx
mov esi, dword [ebx + 0x30]
lea edi, [ebp - 0x1c]
mov edx, edi
cmp esi, edx
je 0x40293b
movzx ecx, word [esi]
add esi, 2
test cx, cx
je 0x40293b
mov edi, edi
movzx edx, word [edi]
add edi, 2
cmp cx, dx
je 0x402930
jae 0x402923
mov ecx, edx
movzx edx, word [esi - 2]
movzx edx, dx
movzx ecx, cx
sub ecx, edx
cmp ecx, 0x20
jne 0x402945
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x402910
mov eax, dword [ebx + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebx]
cmp dword [ebx + 0x18], 0
je 0x402951
cmp ebx, eax
jne 0x4028f7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x402978
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x402971
mov ecx, dword [edi + 0x3c]
lea eax, [ecx + edi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x60]
test eax, eax
je 0x402971
mov edx, dword [ebp + 0xc]
push ebx
lea ebx, [eax + edi]
mov eax, edx
shr eax, 0x10
push esi
test eax, eax
jne 0x4029b2
and edx, 0xffff
sub edx, dword [ebx + 0x10]
jmp 0x402aea
test byte [ebp + 0x10], 1
je 0x4029bd
mov dword [ebp - 4], edx
jmp 0x4029d2
mov eax, edx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4029c0
sub eax, edx
dec eax
call fcn.00401410
mov dword [ebp - 4], eax
cmp dword [ebx + 0x18], 0
mov dword [ebp + 8], 0
jbe 0x402a40
nop
mov edx, dword [ebx + 0x20]
mov eax, dword [ebp + 8]
lea ecx, [edx + eax*4]
mov esi, dword [ecx + edi]
add esi, edi
mov edx, esi
mov al, byte [edx]
inc edx
test al, al
jne 0x4029f0
cmp byte [0x427bd8], al
jne 0x402a04
call fcn.00401450
sub edx, esi
or eax, 0xffffffff
dec edx
mov ecx, edx
je 0x402a29
mov edi, edi
movzx edx, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4276a8]
inc esi
dec ecx
jne 0x402a10
not eax
cmp dword [ebp - 4], eax
je 0x402ad8
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebx + 0x18]
jb 0x4029e0
xor esi, esi
cmp esi, ebx
jb 0x402acf
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x64]
add eax, ebx
cmp esi, eax
jae 0x402acf
mov al, byte [esi]
lea ecx, [ebp - 0x88]
mov edx, esi
test al, al
je 0x402a72
inc edx
mov byte [ecx], al
mov al, byte [edx]
inc ecx
test al, al
jne 0x402a68
mov dl, byte [edx]
mov byte [ecx], dl
mov cl, byte [ebp - 0x88]
xor esi, esi
lea eax, [ebp - 0x88]
cmp cl, 0x2e
je 0x402a91
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402a84
xor ecx, ecx
cmp byte [eax], 0x2e
setne cl
lea edi, [ecx - 1]
and edi, eax
je 0x402acf
mov byte [edi], 0
cmp dword [0x427bf8], esi
jne 0x402acf
push 0
push 0
lea edx, [ebp - 0x88]
push edx
call dword [0x427bfc]
test eax, eax
je 0x402acf
push 0
inc edi
push edi
push eax
call fcn.00402960
add esp, 0xc
mov esi, eax
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp + 8]
lea edx, [eax + ecx*2]
mov edx, dword [edx + edi]
and edx, 0xffff
cmp edx, 0xffffffff
je 0x402a40
mov eax, dword [ebx + 0x1c]
lea ecx, [eax + edx*4]
mov esi, dword [ecx + edi]
add esi, edi
jmp 0x402a42
Function at 0x402b10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, 0xfffff000
and esi, dword [ebp + 4]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x402b3a
mov edx, dword [esi + 0x3c]
mov eax, 0x4550
mov ecx, eax
cmp word [esi + edx], cx
je 0x402b42
sub esi, 0x1000
jmp 0x402b25
mov eax, dword [edx + esi + 0x34]
lea ebx, [edx + esi + 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
cmp esi, eax
je 0x402cb2
push edi
mov edi, dword [ebx + 0x88]
test edi, edi
je 0x402bfa
add edi, esi
cmp dword [ebx + 0x8c], 0
mov dword [ebp - 0xc], 0
jbe 0x402bfa
lea ecx, [ecx]
mov eax, dword [edi + 4]
lea edx, [edi + 8]
add eax, edi
mov dword [ebp - 8], edx
cmp edx, eax
jae 0x402be5
nop
movzx eax, word [edx]
mov cx, ax
shr cx, 0xc
cmp cx, 3
jne 0x402bb1
and eax, 0xfff
add eax, dword [edi]
mov ecx, esi
sub ecx, dword [ebp - 4]
add dword [eax + esi], ecx
jmp 0x402bd6
cmp cx, 0xa
jne 0x402bd6
and eax, 0xfff
add eax, dword [edi]
xor ebx, ebx
lea ecx, [esi + eax]
mov eax, esi
cdq
sub eax, dword [ebp - 4]
sbb edx, ebx
add dword [ecx], eax
mov ebx, dword [ebp - 0x10]
adc dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [edi + 4]
add edx, 2
add eax, edi
mov dword [ebp - 8], edx
cmp edx, eax
jb 0x402b90
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
add ecx, eax
add edi, eax
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebx + 0x8c]
jb 0x402b80
mov dword [ebx + 0x1c], esi
call fcn.004028b0
push 1
push 0x9b102e2d
push eax
call fcn.00402960
add esp, 0xc
mov dword [0x427bfc], eax
test eax, eax
je 0x402cb1
mov edi, dword [ebx + 0x68]
test edi, edi
je 0x402cb1
mov ecx, dword [edi + esi + 0xc]
add edi, esi
mov dword [ebp - 0xc], edi
test ecx, ecx
je 0x402cb1
jmp 0x402c45
mov eax, dword [0x427bfc]
push 0
push 0
add ecx, esi
push ecx
call eax
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x402ca4
mov ebx, dword [edi + 0x10]
mov edi, dword [edi]
mov eax, dword [edi + esi]
add edi, esi
add ebx, esi
test eax, eax
je 0x402ca1
jmp 0x402c73
mov ecx, dword [ebp - 0x10]
test eax, 0xf0000000
je 0x402c7f
movzx eax, word [edi]
jmp 0x402c83
lea eax, [eax + esi + 2]
push 0
push eax
push ecx
call fcn.00402960
add esp, 0xc
test eax, eax
je 0x402ca1
add edi, 4
mov dword [ebx], eax
mov eax, dword [edi]
add ebx, 4
test eax, eax
jne 0x402c70
mov edi, dword [ebp - 0xc]
mov ecx, dword [edi + 0x20]
add edi, 0x14
mov dword [ebp - 0xc], edi
test ecx, ecx
jne 0x402c40
pop edi
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + esi + 0x50]
mov dword [0x427bf4], esi
pop esi
mov dword [0x427bf0], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402d19
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x402d20
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402d30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x402d53
pop esi
pop ebp
ret
push edi
cmp esi, 0xffffffff
jne 0x402d68
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
push 8
push 0
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x402d59
push ebx
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x402dc0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
xor esi, esi
push esi
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x402e16
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
je 0x402e41
nop
cmp dword [eax + 4], 2
je 0x402e3b
mov eax, dword [eax + 0x1c]
cmp eax, esi
jne 0x402e20
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x18]
mov esi, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [edx], 0
test ecx, ecx
je 0x402e9f
lea edx, [ebp - 8]
push edx
or eax, 1
push eax
mov eax, dword [ebp + 8]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402e98
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
test eax, eax
jne 0x402ea2
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push 0
push ecx
push eax
call edi
test eax, eax
jne 0x402f1a
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402ecc
mov dword [ebp - 0xc], eax
jmp 0x402f1a
push esi
add eax, 4
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
mov eax, dword [ebp - 8]
add esp, 8
test eax, eax
jne 0x402ee8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 0xc]
push esi
push ecx
push 0
push edx
push eax
call edi
test eax, eax
jne 0x402f0b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], esi
mov dword [ebp - 0xc], ecx
jmp 0x402f19
test esi, esi
je 0x402f19
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop esi
mov eax, dword [ebp - 8]
pop edi
test eax, eax
je 0x402f29
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x402f30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
mov dword [ebp - 4], edi
test eax, eax
je 0x402f65
push edi
lea edx, [ebp - 4]
push edx
push edi
or ecx, 2
push ecx
push edi
push edi
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x402f5e
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402f67
mov eax, esi
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402f87
lea edi, [eax + 1]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402f95
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
or ebx, 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
test eax, eax
je 0x402ff8
lea ecx, [ebp - 4]
push ecx
push 0x101
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40303a
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402ffa
mov eax, edi
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xc]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40301a
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x403028
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 4
jne 0x40303a
cmp dword [ebp - 0xc], ebx
jne 0x40303a
mov eax, dword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4032e0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40330a
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x2b
lea ecx, [ebp - 0x3f]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, 8
mov dword [ebp - 0x40], 0x208
mov dword [ebp - 0x3c], 0x6610
mov dword [ebp - 0x38], 0x20
mov esi, str.GD_brWJJBeTgTGSgEFB_quRcfCkBHWgl
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push 0x2c
lea ecx, [ebp - 0x40]
push ecx
push edx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4033c2
mov ecx, dword [ebp - 4]
push edi
lea eax, [ebp - 0x10]
push eax
push 4
push ecx
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4033c2
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edi
cmp eax, edi
je 0x4033c2
lea edx, [ebp - 0xc]
push edx
push eax
call fcn.00403240
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, 4
jbe 0x4033c2
mov esi, dword [ebp - 0xc]
cmp esi, edi
je 0x4033c2
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push 1
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4033ca
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4035d0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a0
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 5
jbe 0x40361c
push esi
call fcn.00403d20
add esp, 4
mov esp, ebp
pop ebp
ret
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x89e]
push eax
mov word [ebp - 0x8a0], dx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x800
lea ecx, [ebp - 0x8a0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x8a0]
push edx
push esi
call fcn.004041c0
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x4038d0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
mov esi, eax
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov word [ebp - 0x218], ax
call sub.msvcrt.dll_memset
mov edx, dword [esi]
mov ecx, dword [edx + 0x24]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 0x10], 0x208
call ecx
mov edi, eax
cmp edi, ebx
jl 0x403a02
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x403a02
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [ebp - 0xc]
push ecx
push 9
push eax
call edx
mov edi, eax
cmp edi, ebx
jl 0x403a02
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x403a11
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x40a4c0
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
cmp edi, ebx
jl 0x403a02
cmp dword [ebp - 4], ebx
je 0x403a02
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x40a8cc
call edi
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [ebp - 0x218]
push edx
call edi
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
push esi
push eax
call edx
push esi
mov edi, eax
call ebx
test edi, edi
js 0x403a00
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4039d9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4039e8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
test eax, eax
je 0x4039f7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x403a11
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x403a20
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x403a2f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
cmp edi, ebx
jl 0x403a3a
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403be0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push esi
push edi
mov edi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x23e]
push ecx
mov dword [ebp - 4], 0
mov word [ebp - 0x240], ax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x240]
push eax
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x38]
push ecx
call esi
lea edx, [ebp - 0x28]
push edx
call esi
lea eax, [ebp - 0x18]
push eax
call esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, 8
lea eax, [ebp - 0x240]
mov edx, ecx
push eax
mov word [ebp - 0x28], cx
mov word [ebp - 0x18], dx
call esi
push 0x40a8e0
mov dword [ebp - 0x20], eax
call esi
mov ecx, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x10], eax
call esi
mov ecx, dword [ebp - 0x18]
mov esi, eax
lea eax, [ebp - 4]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x38]
push 3
mov edx, dword [edi]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 8]
push 6
push eax
mov ecx, dword [edx + 0x44]
push esi
push edi
call ecx
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
js 0x403d02
mov eax, dword [ebp - 4]
test eax, eax
je 0x403d0a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret