joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c09c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4c0a19
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4c0a07
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004c07b0
add esp, 0xc
test eax, eax
je 0x4c0a07
movzx eax, word [ebp - 0x214]
mov dword [edi + 4], eax
movzx eax, word [ebp - 0x212]
mov dword [edi + 8], eax
movzx eax, word [ebp - 0x210]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi], 0x114
mov dword [edi + 0x10], 2
mov word [edi + 0x14], ax
test esi, esi
je 0x4c0ab6
movzx eax, word [ebp - 0x21c]
mov dword [esi + 4], eax
movzx eax, word [ebp - 0x21a]
mov dword [esi + 8], eax
movzx eax, word [ebp - 0x218]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi], 0x114
mov dword [esi + 0x10], 2
mov word [esi + 0x14], ax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x4c26d0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.004c1740
test al, al
je 0x4c26fd
push 0
push 0x10000
push esi
push 0x4c2700
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x4c3020
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ecx
push edi
push edi
push edi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x4c309e
push edi
push accept
push edi
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp + 8], eax
test eax, eax
je 0x4c3082
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
push eax
call fcn.004c38d0
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
jne 0x4c309e
test esi, esi
je 0x4c309e
push 1
push esi
call fcn.004d72b2
add esp, 8
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov eax, esi
test ecx, ecx
je 0x4c30a9
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c38d0
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x200
push 0
push eax
mov dword [ebp - 0x214], edi
call fcn.004d9fe0
add esp, 0xc
mov dword [ebp - 0x210], 0x200
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4c39ce
lea eax, [ebp - 0x204]
push eax
call fcn.004e1abd
add esp, 4
cmp eax, 0xc8
jne 0x4c39ce
mov edi, 0x2800
push edi
call fcn.004e1b5b
add esp, 4
mov dword [ebx], eax
nop dword [eax + eax]
mov eax, dword [esi]
add eax, 0x200
cmp eax, edi
jb 0x4c398f
lea edi, [edi*2 + 0x200]
push edi
push dword [ebx]
call fcn.004e1ae7
add esp, 8
mov dword [ebx], eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0
push eax
mov eax, edi
sub eax, dword [esi]
push eax
mov eax, dword [ebx]
add eax, dword [esi]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4c39c8
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x4c39ce
add dword [esi], eax
jmp 0x4c3970
mov dword [esi], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c3dc0
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
push edi
test esi, esi
je 0x4c3df9
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4c3e04
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x4c3de0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c46c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004c4420
add esp, 4
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c470b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x4c4720
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004bd350
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret

Function at 0x4c4a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
test ecx, ecx
je 0x4c4a90
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c4a84
mov eax, dword [ebp - 0xc]
cmp eax, 4
je 0x4c4a63
cmp eax, 5
jne 0x4c4a84
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4c4aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push dword [ebp + 0xc]
xor bl, bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c4b02
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c4b02
push dword [ebp + 0x18]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push dword [ebp + 0x14]
push ecx
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c4b30
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
je 0x4c4b49
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x4c4b42
cmp dword [eax + edi + 0x7c], 0
je 0x4c4b42
push ebx
mov ebx, dword [eax + edi + 0x78]
mov eax, dword [ebx + edi + 0x18]
add ebx, edi
test eax, eax
je 0x4c4be9
cmp dword [ebx + 0x14], 0
je 0x4c4be9
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
add ecx, edi
push esi
add edx, edi
mov dword [ebp + 8], ecx
xor esi, esi
mov dword [ebp - 4], edx
test eax, eax
jle 0x4c4bc2
mov eax, dword [ecx + esi*4]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4c4bb0
test dl, dl
je 0x4c4bac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4c4bb0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4c4b90
xor eax, eax
jmp 0x4c4bb5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4c4bcb
mov ecx, dword [ebp + 8]
inc esi
cmp esi, dword [ebx + 0x18]
jl 0x4c4b88
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
movzx ecx, word [eax + esi*2]
cmp ecx, 0xffffffff
je 0x4c4bc2
mov eax, dword [ebx + 0x1c]
pop esi
pop ebx
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
pop edi
mov esp, ebp
pop ebp
ret
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4c4f70
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x4c4f98
cmp dword [ebp + 0xc], 0xffffffff
je 0x4c4f98
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4c4f8c
cmp eax, 0x20
jne 0x4c4f98
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4c4f9e
cmp eax, 0x10
je 0x4c4f9e
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
xor ebx, ebx
call fcn.004c5120
mov edi, eax
test edi, edi
je 0x4c5039
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push edi
call fcn.004c5180
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x4c5030
mov esi, dword [ebp + 0xc]
push esi
call fcn.004d72c0
push esi
mov ebx, eax
push 0
push ebx
call fcn.004d9fe0
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.004d9a60
mov esi, dword [ebp - 4]
lea eax, [ebp + 0xc]
add esp, 0x1c
push eax
push ebx
push 0
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4c5021
push 1
push ebx
call fcn.004d72b2
add esp, 8
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push esi
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c5050
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x4c5119
cmp dword [ebp + 0xc], 0xffffffff
je 0x4c5119
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4c5078
cmp eax, 0x20
jne 0x4c5119
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4c5088
cmp eax, 0x10
jne 0x4c5119
push esi
push edi
xor esi, esi
call fcn.004c5120
mov edi, eax
test edi, edi
je 0x4c5111
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push edi
call fcn.004c5180
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x4c5108
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 0xf
je 0x4c50bf
shr ebx, 4
inc ebx
shl ebx, 4
jmp 0x4c50c2
add ebx, 0x10
push ebx
call fcn.004d72c0
push ebx
mov esi, eax
push 0
push esi
call fcn.004d9fe0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.004d9a60
add esp, 0x1c
lea eax, [ebp + 0xc]
push ebx
mov ebx, dword [ebp - 4]
push eax
push esi
push 0
push 1
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop ebx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4c5120
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.004cb180
push 0
cmp eax, 5
mov dword [ebp - 4], 0
mov ecx, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
lea eax, [ebp - 4]
push 0x18
mov esi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
cmovle esi, ecx
push esi
push str.SEContainer
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4c516d
push 8
push 0x18
push esi
push str.SEContainer
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c5d00
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533ddc
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x614], edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 7
mov dword [ebp - 0x618], edi
mov word [edi + 8], ax
xor ecx, ecx
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], 7
mov dword [ebp - 4], eax
mov word [edi + 0x20], cx
push 0x38
push ecx
lea eax, [ebp - 0x650]
mov byte [ebp - 4], 1
push eax
call fcn.004d9fe0
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 0x654], 0x3c
push 0
push eax
call fcn.004d9fe0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x640], 0x100
push 0x200
mov dword [ebp - 0x644], eax
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004d9fe0
lea eax, [ebp - 0x410]
mov dword [ebp - 0x624], 0x100
push 0x200
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x610]
push 0
push eax
call fcn.004d9fe0
add esp, 0x30
mov dword [ebp - 0x61c], 0x100
lea eax, [ebp - 0x610]
mov dword [ebp - 0x620], eax
lea eax, [ebp - 0x654]
push eax
push accept
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov eax, dword [ebp - 0x648]
lea edx, [ebp - 0x210]
mov dword [edi], eax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c5e27
sub edx, ecx
lea eax, [ebp - 0x210]
sar edx, 1
lea ecx, [edi + 8]
push edx
push eax
call fcn.00413520
mov ax, word [ebp - 0x63c]
lea edx, [ebp - 0x410]
mov word [edi + 4], ax
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c5e60
sub edx, esi
lea eax, [ebp - 0x410]
sar edx, 1
lea ecx, [edi + 0x20]
push edx
push eax
call fcn.00413520
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 4
Function at 0x4c5fe0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
jne 0x4c5ff2
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
mov ebx, 0xa000
xor esi, esi
push ebx
call fcn.004e1b5b
add esp, 4
mov dword [ebp - 4], esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4c6098
nop dword [eax + eax]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c6094
lea ecx, [eax + esi]
cmp ecx, ebx
jb 0x4c6056
sub ecx, ebx
mov eax, 0xcccccccd
mul ecx
shr edx, 0xf
imul eax, edx, 0xa000
add eax, 0xa000
add ebx, eax
push ebx
push edi
call fcn.004e1ae7
mov edi, eax
add esp, 8
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
lea eax, [edi + esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4c6094
cmp dword [ebp - 8], 0
je 0x4c6094
add esi, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4c6020
test esi, esi
jne 0x4c60a3
push edi
call fcn.004e1b56
add esp, 4
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c6570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533e9b
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x838], edx
lea edx, [ebp - 0x82c]
push edx
push 1
push 0
push eax
push ecx
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x82c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x82c], 0
jne 0x4c65f7
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4c6727
push 0x800
xor edi, edi
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.004d9fe0
xor eax, eax
mov dword [ebp - 0x818], edi
add esp, 0xc
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x830]
push eax
push edi
lea eax, [ebp - 0x834]
push eax
push edi
push dword [ebp - 0x838]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c66dd
mov eax, dword [ebp - 0x834]
cmp eax, 1
je 0x4c6675
cmp eax, 2
je 0x4c6675
cmp eax, 7
jne 0x4c66dd
mov eax, dword [ebp - 0x830]
cmp eax, 0x800
jae 0x4c668a
lea edi, [ebp - 0x810]
jmp 0x4c6695
push eax
call fcn.004d72c0
add esp, 4
mov edi, eax
lea eax, [ebp - 0x830]
push eax
push edi
lea eax, [ebp - 0x834]
push eax
push 0
push dword [ebp - 0x838]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c66dd
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c66c1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x828]
call fcn.00413520
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4c6702
lea eax, [ebp - 0x810]
cmp edi, eax
je 0x4c6702
push 2
push edi
call fcn.004d72b2
add esp, 8
movups xmm0, xmmword [ebp - 0x828]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x818]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x4c68b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 2
push 0
push esi
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x4c68fd
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
mov eax, dword [ebp - 8]
je 0x4c68f8
test eax, eax
je 0x4c68fd
mov dword [ebp - 4], eax
jmp 0x4c6900
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4c690b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x4cb630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4cb689
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
push 0x59d188
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004e7085
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x214], 0
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], 0
push eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0
call fcn.004cb9c0
add esp, 0x18
test al, al
je 0x4cb677
mov eax, dword [ebp - 0x21c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x218]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x214]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi], 0x114
mov dword [edi + 0x10], 2
mov word [edi + 0x14], ax
test esi, esi
je 0x4cb774
mov eax, dword [ebp - 0x22c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x228]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x224]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi], 0x114
mov dword [esi + 0x10], 2
mov word [esi + 0x14], ax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret

Function at 0x4cb790
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5ce998]
sub esp, 8
test eax, eax
jne 0x4cb7e5
push str.SE_UID
push 4
push eax
push 4
call fcn.004cb230
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x5ce998], eax
test eax, eax
jne 0x4cb7e5
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 8]
and eax, 0x7fffffff
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
jne 0x4cb7fc
push dword [0x5ce998]
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esp, ebp
pop ebp
ret
Function at 0x4cb800
Capabilities:
Encrypt or decrypt via wincrypt
Reference public rsa key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
je 0x4cb9b0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4cb9b0
push edi
xor edi, edi
call fcn.004c5120
mov edx, eax
mov dword [ebp - 0x20], edx
test edx, edx
je 0x4cb9a8
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], edi
test eax, eax
je 0x4cb842
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x4cb852
mov eax, dword [ebp + 0x1c]
mov ecx, 0x100
shl eax, 8
add eax, 0x548ff0
push esi
lea esi, [ebp - 0x10]
push esi
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4cb99c
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 4
push eax
push 8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
mov ecx, dword [ebp - 0x14]
lea eax, [ebx - 1]
shr ecx, 3
xor edx, edx
mov dword [ebp - 8], ecx
lea esi, [ecx - 0xb]
div esi
inc eax
imul eax, ecx
push eax
call fcn.004d72c0
push dword [ebp - 8]
mov edi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004d72c0
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x4cb8cb
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, ebx
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, esi
mov dword [ebp - 0x1c], eax
setbe bl
add edx, 0xfffffff5
cmp eax, edx
cmovbe esi, eax
mov eax, dword [ebp - 4]
add eax, dword [ebp + 8]
push esi
push eax
push ecx
mov dword [ebp - 0x18], esi
call fcn.004d9a60
add dword [ebp - 4], esi
lea eax, [ebp - 0x18]
add esp, 0xc
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
movzx eax, bl
push 0
push eax
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4cb944
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push esi
push dword [ebp - 0xc]
lea eax, [ebx + edi]
push eax
call fcn.004d9a60
add ebx, esi
add esp, 0xc
mov esi, dword [ebp - 8]
add esi, 0xfffffff5
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x1c], esi
ja 0x4cb8c8
jmp 0x4cb954
push 1
push edi
call fcn.004d72b2
mov ebx, dword [ebp - 0x14]
add esp, 8
xor edi, edi
push 1
push dword [ebp - 0xc]
call fcn.004d72b2
add esp, 8
test edi, edi
je 0x4cb993
mov eax, dword [ebp + 0x10]
mov edx, 0
mov dword [eax], ebx
mov eax, ebx
shr eax, 1
mov dword [ebp + 8], eax
je 0x4cb993
lea esi, [ebx - 1]
mov ebx, eax
add esi, edi
nop
mov al, byte [esi]
lea esi, [esi - 1]
mov cl, byte [edx + edi]
mov byte [edx + edi], al
inc edx
mov byte [esi + 1], cl
cmp edx, ebx
jb 0x4cb980
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret