joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4b30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
jne 0x4c4b5c
test eax, eax
jne 0x4c4b5c
xor eax, eax
cmp dword [esi + 0xc], 0
jne 0x4c4b5c
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x4c4bb3
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4c4b7b
call fcn.004877f0
push dword [esi]
call fcn.00470390
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x4c4ba1
call fcn.004877f0
push dword [esi + 4]
call fcn.00470390
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, ecx
mov ebx, dword [edi]
cmp edx, ebx
je 0x4c4bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x4c4bde
call fcn.004877f0
push dword [esi]
call fcn.00470390
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4c4bed
mov dword [esi], ebx
call fcn.004877f0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp eax, ebx
je 0x4c4c43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x4c4c29
call fcn.004877f0
push dword [esi + 4]
call fcn.00470390
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4c4c39
mov dword [esi + 4], ebx
call fcn.004877f0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4c8990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4c89c3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
nop word [eax + eax]
movzx eax, byte [ecx + esi]
xor al, byte [edx + esi]
or bl, al
inc esi
cmp edi, esi
jne 0x4c89b0
movzx eax, bl
jmp 0x4c89c5
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ce1a4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4ce1d1
mov edx, dword [ebp + 0xc]
xor esi, esi
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x567180]
inc esi
cmp ecx, esi
jne 0x4ce1b9
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d0370
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea edi, [ebp - 0x220]
mov dword [edi + 4], eax
mov dword [edi], eax
push edi
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
test eax, eax
js 0x4d04c1
mov dword [ebp - 0x224], eax
mov esi, 0xff
mov ebx, 0x58881e
push esi
push dword [ebp - 0x21c]
push ebx
call fcn.00521971
add esp, 0xc
push ebx
call fcn.00520fd4
add esp, 4
sub esi, eax
push esi
push 0x55b052
push ebx
call fcn.00521971
add esp, 0xc
push edi
call sub.ntdll.dll_RtlFreeUnicodeString
lea esi, [ebp - 0x218]
push 0x208
push 0
push esi
call fcn.0050bb40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push 0x104
push esi
push 0x560420
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x4d042b
push eax
push esi
push edi
call fcn.005219b6
add esp, 0xc
test eax, eax
je 0x4d045a
push 0x104
push esi
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x4d0456
push eax
push esi
push edi
call fcn.005219b6
add esp, 0xc
test eax, eax
je 0x4d045a
xor eax, eax
jmp 0x4d045c
mov al, 1
mov byte [0x58841d], al
mov dword [ebp - 0x218], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x561f2d
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d04ac
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov ecx, edi
call dword [section..00cfg]
push esi
push ebx
call edi
test eax, eax
je 0x4d04ac
cmp dword [ebp - 0x218], 0
setne cl
jmp 0x4d04ae
xor ecx, ecx
mov eax, dword [ebp - 0x224]
mov byte [0x588a1e], cl
mov byte [0x58841c], 1
test eax, eax
setns bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d0601
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x4d0626
mov eax, dword [ecx + 4]
test eax, eax
je 0x4d064f
bt ebx, 8
jae 0x4d0639
mov eax, ebx
and eax, 0x200
jne 0x4d064f
cmp edi, 2
mov eax, 0x58841e
mov ecx, 0x58861e
cmove ecx, eax
cmp word [ecx], 0
je 0x4d0661
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
xorps xmm0, xmm0
lea esi, [ebp - 0x34]
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esi], 0
je 0x4d064f
cmp byte [0x588a1e], 0
setne al
bt ebx, 8
jb 0x4d064f
shr ebx, 9
and ebx, 1
or bl, al
je 0x4d064f
cmp edi, 2
mov eax, 0x5678bc
mov edx, 0x5678d0
cmove edx, eax
mov eax, dword [ebp + 8]
movzx ebx, byte [eax + 0xb]
test bl, bl
js 0x4d06bf
mov ecx, ebx
mov esi, eax
mov eax, ebx
jmp 0x4d06c4
mov esi, dword [eax]
mov eax, dword [eax + 4]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x44], ecx
xor ecx, ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x50], ecx
mov ebx, dword [edx + 4]
mov edi, eax
sub edi, ebx
jb 0x4d0709
push ebx
push dword [edx]
push esi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
call fcn.0051d15e
mov edx, dword [ebp - 0x4c]
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x48]
je 0x4d0717
add edx, 0x14
mov ecx, dword [ebp - 0x50]
inc ecx
cmp ecx, dword [ebp - 0x44]
jb 0x4d06e1
jmp 0x4d0777
movzx ecx, word [esi + ebx*2]
cmp ecx, 0x5c
je 0x4d0724
test ecx, ecx
jne 0x4d0709
lea eax, [esi + ebx*2]
mov ebx, dword [edx + 8]
cmp ebx, 1
je 0x4d0742
cmp ebx, 2
mov esi, ebx
jne 0x4d074e
mov dword [ebp - 0x3c], str.WOW6432Node
mov dword [ebp - 0x38], eax
jmp 0x4d074e
mov dword [ebp - 0x3c], 0x567888
mov dword [ebp - 0x38], esi
mov esi, ebx
mov dword [ebp - 0x40], esi
cmp cx, 0x5c
jne 0x4d0766
lea esi, [eax + 2]
dec edi
cmp word [eax + 2], 0x5c
mov eax, esi
je 0x4d0757
jmp 0x4d0768
mov esi, eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x44], eax
mov edx, dword [edx + 0xc]
xor ecx, ecx
mov eax, edi
jmp 0x4d0710
cmp dword [ebp - 0x40], 0
je 0x4d064f
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4d078e
mov eax, dword [ecx]
mov edx, dword [ebp - 0x38]
sub edx, eax
sar edx, 1
push dword [ebp - 0x3c]
push edx
call fcn.00467926
jmp 0x4d064f
Function at 0x4d0990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x58841c], 0
jne 0x4d09b9
call fcn.004d0370
test al, al
je 0x4d0a4a
mov eax, dword [ebp + 0xc]
xor ecx, ecx
lea edx, [ebp - 0x1c]
mov dword [edx + 4], ecx
mov dword [edx], ecx
push eax
push edx
call sub.ntdll.dll_RtlInitUnicodeString
mov eax, 0x18
lea esi, [ebp - 0x20]
mov dword [esi], eax
xor edx, edx
dec edx
lea ecx, [ebp - 0x2c]
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
push eax
call fcn.0044c4f4
mov edi, 5
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x20]
call fcn.00445be0
mov ebx, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x20]
push ebx
push 1
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0xc0000023
je 0x4d0a1f
cmp eax, 0x80000005
jne 0x4d0a26
dec edi
jne 0x4d09f0
xor ebx, ebx
jmp 0x4d0a58
test eax, eax
js 0x4d0a22
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4d0a4e
add ebx, dword [ebx + 8]
add eax, ebx
mov ecx, dword [ebp + 0x14]
push eax
push ebx
call fcn.0044839c
jmp 0x4d0a56
xor ebx, ebx
jmp 0x4d0a65
mov ecx, dword [ebp + 0x14]
call fcn.0042e0e0
mov bl, 1
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov dword [ecx], eax
call fcn.0042e0be
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4d3f80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x4d3f91
test eax, eax
jne 0x4d3fe1
test eax, eax
jne 0x4d3fa7
mov ecx, dword [0x588a28]
test ecx, ecx
je 0x4d3fa7
call dword [section..00cfg]
call ecx
cmp dword [0x588a20], 0
je 0x4d3fe1
mov esi, dword [0x588a24]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x4d3fe7
test esi, esi
je 0x4d3fe1
mov ecx, dword [0x588a20]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4d3fcf
jmp 0x4d3fe1
Function at 0x4d66b0
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
lea esi, [ebp - 0x18]
push 6
push esi
push ecx
call fcn.004d6060
add esp, 0xc
test eax, eax
je 0x4d685c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], edi
push esi
call fcn.004a8db0
add esp, 4
movzx ebx, byte [0x56ae25]
cmp eax, ebx
jne 0x4d673c
mov edi, eax
push esi
call fcn.004a8eb0
add esp, 4
mov ecx, 0x56ae18
test bl, bl
je 0x4d684c
push edi
push 0x56ae1c
push eax
call fcn.00509f3d
mov ecx, 0x56ae18
add esp, 0xc
test eax, eax
je 0x4d684c
push esi
call fcn.004a8db0
add esp, 4
movzx ebx, byte [0x56aeb9]
cmp eax, ebx
jne 0x4d6784
mov edi, eax
push esi
call fcn.004a8eb0
add esp, 4
mov ecx, 0x56aeac
test bl, bl
je 0x4d684c
push edi
push 0x56aeb0
push eax
call fcn.00509f3d
mov ecx, 0x56aeac
add esp, 0xc
test eax, eax
je 0x4d684c
push esi
call fcn.004a8db0
add esp, 4
movzx ebx, byte [0x56af4d]
cmp eax, ebx
jne 0x4d67cc
mov edi, eax
push esi
call fcn.004a8eb0
add esp, 4
mov ecx, 0x56af40
test bl, bl
je 0x4d684c
push edi
push 0x56af44
push eax
call fcn.00509f3d
mov ecx, 0x56af40
add esp, 0xc
test eax, eax
je 0x4d684c
push esi
call fcn.004a8db0
add esp, 4
movzx ebx, byte [0x56afe1]
cmp eax, ebx
jne 0x4d680c
mov edi, eax
push esi
call fcn.004a8eb0
add esp, 4
mov ecx, 0x56afd4
test bl, bl
je 0x4d684c
push edi
push 0x56afd8
push eax
call fcn.00509f3d
mov ecx, 0x56afd4
add esp, 0xc
test eax, eax
je 0x4d684c
push esi
call fcn.004a8db0
add esp, 4
movzx ebx, byte [0x56b079]
cmp eax, ebx
jne 0x4d6863
mov edi, eax
push esi
call fcn.004a8eb0
add esp, 4
mov ecx, 0x56b06c
test bl, bl
je 0x4d684c
push edi
push 0x56b070
push eax
call fcn.00509f3d
mov ecx, 0x56b06c
add esp, 0xc
test eax, eax
jne 0x4d6863
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov dword [ebp - 0x1c], 1
jmp 0x4d6863
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
mov eax, dword [ebp - 0x1c]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4dbb40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x575010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x4dbc5d
mov dword [ebp - 0x14], 0x4dbd00
lea eax, [ebp - 0x14]
push 0
push eax
push 0x4dbad0
push 0x588b50
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4dbc71
cmp dword [0x588b54], 0
jne 0x4dbc5d
push dword [0x588b58]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dbc5d
mov esi, eax
push 0x588b5c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x588b60]
mov ebx, dword [0x588b64]
mov eax, dword [0x588b68]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x588b6c]
mov dword [ebp - 0x20], eax
mov eax, dword [0x588b70]
mov dword [ebp - 0x24], eax
push 0x588b5c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x4dbbfb
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x4dbc10
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4dbc26
mov edi, dword [esi + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x4dbc3f
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x4dbc54
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push esi
call fcn.00477900
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.0051a568
int3

Function at 0x4dbc80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x4dbd00
lea eax, [ebp - 0x14]
push 0
push eax
push 0x4dbad0
push 0x588b50
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4dbcfa
xor esi, esi
cmp dword [0x588b54], 0
jne 0x4dbce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x588b58]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4dbce6
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0051a568
int3
Function at 0x4dbd20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x4dbd00
lea eax, [ebp - 0x14]
push 0
push eax
push 0x4dbad0
push 0x588b50
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4dbe0d
mov esi, dword [ebp + 0x10]
cmp dword [0x588b54], 0
je 0x4dbd78
mov ecx, esi
call dword [section..00cfg]
push dword [ebp + 0xc]
call esi
add esp, 4
xor esi, esi
jmp 0x4dbdc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x588b58]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4dbdd8
mov ebx, dword [ebp + 8]
push 0x588b5c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebx*4 + 0x588b60], esi
push 0x588b5c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [edi + ebx*4], eax
mov esi, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x14
push 1
call fcn.00477980
add esp, 8
test eax, eax
je 0x4dbd64
mov edi, eax
push eax
push dword [0x588b58]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4dbd99
push edi
call fcn.00477900
add esp, 4
jmp 0x4dbd64
call fcn.0051a568
int3
Function at 0x4e9010
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2010
call fcn.00509180
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x578dbc]
cmp eax, 0xffffffff
je 0x4e9243
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x4e9243
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.0050b5c0
add esp, 0xc
mov ecx, dword [0x578dbc]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2014], ecx
push ecx
call fcn.004fb8b0
add esp, 8
test ebx, ebx
je 0x4e908b
push ebx
call fcn.00507dfc
add esp, 4
mov ecx, 0x101
lea esi, [ebp - 0x2010]
nop word cs:[eax + eax]
mov dword [ebp - 0x2018], ecx
mov eax, dword [0x589bd0]
mov ecx, dword [0x579028]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4e91e9
mov ebx, dword [0x589bcc]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x4e90df
mov ecx, ebx
call fcn.00471ba0
push 0x1000
push 0x588bcc
lea eax, [ebp - 0x1810]
push eax
call fcn.0050b5c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0x800
push 0xff
push esi
call fcn.0050bb40
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x1804]
nop word [eax + eax]
mov edx, dword [ecx]
mov dword [ebp + eax*8 - 0x2010], edx
mov word [ebp + eax*8 - 0x200c], ax
inc eax
add ecx, 0x10
cmp eax, 0x100
jne 0x4e9120
mov ecx, esi
lea edx, [ebp - 0x1810]
push 1
push 0x10
call fcn.004e9260
add esp, 8
mov ebx, 4
xor eax, eax
jmp 0x4e916b
add ebx, 8
cmp ebx, 0x804
je 0x4e91d0
movzx edx, word [ebp + ebx - 0x2010]
mov edi, dword [ebp + edx*8 - 0x810]
test edi, edi
je 0x4e9160
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x4e9160
mov esi, dword [ebp + edx*8 - 0x80c]
cmp esi, dword [ebp + ecx - 0x1808]
jne 0x4e9160
mov ecx, dword [ebp + ecx - 0x180c]
test ecx, ecx
je 0x4e9160
mov dword [ebp + edx*8 - 0x810], 0
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov al, 1
jmp 0x4e9160
mov ecx, dword [ebp - 0x2018]
dec ecx
je 0x4e922e
test al, 1
lea esi, [ebp - 0x2010]
jne 0x4e90a0
jmp 0x4e9233
push 0x589bd0
call fcn.00507e37
add esp, 4
cmp dword [0x589bd0], 0xffffffff
jne 0x4e90c7
push 4
call fcn.00507d96
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.00471b90
mov dword [0x589bcc], ebx
push 0x589bd0
call fcn.00507ead
add esp, 4
jmp 0x4e90c7
call fcn.0048db80
push 2
push dword [ebp - 0x2014]
call fcn.004fb8b0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
add esp, 0x2010
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f2ea0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x184
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0xc0], xmm0
movdqu xmmword [ebp - 0xd0], xmm0
movdqu xmmword [ebp - 0xe0], xmm0
movdqu xmmword [ebp - 0xf0], xmm0
lea esi, [ebp - 0xf0]
push esi
push 0x20
push dword [ebp + 0x10]
call fcn.004a97c0
add esp, 0xc
and byte [ebp - 0xf0], 0xf8
movzx eax, byte [ebp - 0xd1]
and al, 0x3f
or al, 0x40
mov byte [ebp - 0xd1], al
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x100], xmm0
movdqu xmmword [ebp - 0x110], xmm0
movdqu xmmword [ebp - 0x120], xmm0
movdqu xmmword [ebp - 0x130], xmm0
movdqu xmmword [ebp - 0x140], xmm0
movdqu xmmword [ebp - 0x150], xmm0
movdqu xmmword [ebp - 0x160], xmm0
movdqu xmmword [ebp - 0x170], xmm0
movdqu xmmword [ebp - 0x180], xmm0
movdqu xmmword [ebp - 0x190], xmm0
lea edi, [ebp - 0x190]
push 0x56bb28
push esi
push edi
call fcn.004efa20
add esp, 0xc
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x50], xmm0
movdqu xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x40], 0xffffffff
movdqu xmmword [ebp - 0x78], xmm0
movdqu xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x68], 0xffffffff
movdqu xmmword [ebp - 0xa0], xmm0
movdqu xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 0x90], 0xffffffff
movsd xmm0, qword [ebp - 0x120]
movsd qword [ebp - 0x18], xmm0
movdqu xmm0, xmmword [ebp - 0x140]
movups xmm1, xmmword [ebp - 0x130]
movups xmmword [ebp - 0x28], xmm1
movdqu xmmword [ebp - 0x38], xmm0
lea esi, [ebp - 0x60]
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.004f9e30
lea ebx, [ebp - 0x88]
mov ecx, ebx
mov edx, edi
push esi
call fcn.004fa1f0
add esp, 4
lea edx, [ebp - 0x168]
lea edi, [ebp - 0xb0]
mov ecx, edi
push esi
call fcn.004fa1f0
add esp, 4
mov esi, dword [ebp + 8]
mov ecx, esi
mov edx, edi
call fcn.004ed880
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x28], xmm0
movdqu xmmword [ebp - 0x38], xmm0
lea ecx, [ebp - 0x38]
mov edx, ebx
call fcn.004ed880
movzx eax, byte [ebp - 0x38]
shl al, 7
xor byte [esi + 0x1f], al
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
mov eax, dword [ebp + 0xc]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x30], xmm1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
add esp, 0x184
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x50895d
Capabilities:
Parse pe header

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

Function at 0x514ac7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00514c5e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x514c36
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x514c36
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x514beb
jg 0x514b23
test eax, eax
je 0x514be1
push 1
push 0x1000
call fcn.00477980
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x514b46
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x514bd8
push 0x8000
push ebx
call fcn.0051a62b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x514b6f
jg 0x514b6a
cmp ecx, 0x1000
jb 0x514b6f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0051d487
add esp, 0x10
cmp eax, 0xffffffff
je 0x514bb4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x514b6a
jl 0x514b9b
test ecx, ecx
jne 0x514b5c
push dword [ebp - 0xc]
push ebx
call fcn.0051a62b
push esi
call fcn.00477900
add esp, 0xc
xor ebx, ebx
jmp 0x514c44
cmp byte [edi + 0x24], 0
je 0x514bcb
cmp dword [edi + 0x20], 5
jne 0x514bcb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x514bd6
mov ebx, dword [edi + 0x18]
jmp 0x514bd8
xor ebx, ebx
push esi
call fcn.00477900
pop ecx
jmp 0x514c44
test ecx, ecx
jg 0x514bad
jl 0x514beb
test eax, eax
jae 0x514bad
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00519713
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x514c0b
cmp byte [edi + 0x1c], 0
je 0x514bad
jmp 0x514c3c
push ebx
call fcn.0051835a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x514bad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x514c44
cmp byte [edi + 0x1c], 0
je 0x514c41
mov ebx, dword [edi + 0x18]
jmp 0x514c44
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00519713
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret