joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1770
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x582c2b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5f4760]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [0x6047fc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
mov ecx, 0x41
lea ebx, [ebp]
call fcn.004a14b0
add esp, 0xc
xor eax, eax
mov word [ebp + 0x80], ax
xor ebx, ebx
xor esi, esi
lea ecx, [ebp]
push ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x4a18ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4a1814
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.004a1520
cmp eax, ebx
je 0x4a182a
mov dword [0x6047fc], eax
jmp 0x4a18ab
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x4a1845
push 0x5c0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x4a1859
push edi
push esi
call fcn.004a1bf0
jmp 0x4a185b
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x6047fc], eax
cmp eax, ebx
jne 0x4a187c
mov dword [ebp - 0x1c], 1
push 0x5e39ec
lea edx, [ebp - 0x1c]
push edx
call fcn.004aab5b
mov esi, 1
mov dword [ebp - 0x24], esi
push eax
call fcn.004a1610
add esp, 4
test eax, eax
jne 0x4a18a6
mov dword [ebp - 0x18], 3
push 0x5e39ec
lea eax, [ebp - 0x18]
push eax
call fcn.004aab5b
mov eax, dword [0x6047fc]
inc dword [eax + 0x5bc]
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, ebx
jne 0x4a18ca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x6047fc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.004a314d
add ebp, 0x88
mov esp, ebp
pop ebp
ret
Function at 0x4a19b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581a00
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x6047fc]
xor edi, edi
cmp ecx, edi
jne 0x4a19fb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x4a1a08
mov dword [ebp - 0x14], edi
jmp 0x4a1a20
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x4a1ac6
mov ecx, dword [0x6047fc]
mov eax, dword [ecx]
cmp eax, edi
je 0x4a19e7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4a19e7
mov dword [ebp - 4], edi
mov ebx, 0x6047fc
call fcn.004a1ae0
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x4a1a5e
mov dword [ebp - 0x18], 1
push 0x5e39ec
lea eax, [ebp - 0x18]
push eax
call fcn.004aab5b
mov ecx, dword [0x6047fc]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4a1a78
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x4a1a8d
mov dword [ebp - 0x1c], 4
push 0x5e39ec
lea edx, [ebp - 0x1c]
push edx
call fcn.004aab5b
mov dword [ebp - 4], 0xffffffff
jmp 0x4a1ab2
mov eax, dword [0x6047fc]
mov eax, dword [eax]
test eax, eax
je 0x4a1ac4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1ae0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x4a1b0d
xor ecx, ecx
jmp 0x4a1b19
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x4a1bcd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x4a1b40
mov dword [esp + 0xc], esi
jmp 0x4a1ba0
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x4a1b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a1b8c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x4a1ba0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4a1ba0
push 0x5e0808
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4a1ba0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x4a1bc3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x4a1b32
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x4a1be1
mov ecx, dword [ebx]
add ecx, 8
call fcn.004a1d70
test eax, eax
je 0x4a1be1
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x4a1bf0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x5819db
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.004add60
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4a1c88
push 0x5e39ec
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004aab5b
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x4a314d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5f4760]
jne 0x4a3157
repz ret
jmp fcn.004ae12e
Function at 0x4c1efb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004ae451
and dword [ebp - 4], 0
cmp dword [0x5ffe94], 0
mov ebx, eax
jne 0x4c1fac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c205d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x595060
push edi
call esi
test eax, eax
je 0x4c205d
push eax
call fcn.004ae3df
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5ffe94], eax
call esi
push eax
call fcn.004ae3df
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5ffe98], eax
call esi
push eax
call fcn.004ae3df
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5ffe9c], eax
call esi
push eax
call fcn.004ae3df
pop ecx
mov dword [0x5ffea4], eax
test eax, eax
je 0x4c1fac
push 0x595008
push edi
call esi
push eax
call fcn.004ae3df
pop ecx
mov dword [0x5ffea0], eax
mov eax, dword [0x5ffea0]
cmp eax, ebx
je 0x4c2004
cmp dword [0x5ffea4], ebx
je 0x4c2004
push eax
call fcn.004ae45a
push dword [0x5ffea4]
mov esi, eax
call fcn.004ae45a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4c2004
test edi, edi
je 0x4c2004
call esi
test eax, eax
je 0x4c1ffb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c1ffb
test byte [ebp - 0xc], 1
jne 0x4c2004
or dword [ebp + 0x10], 0x200000
jmp 0x4c203d
mov eax, dword [0x5ffe98]
cmp eax, ebx
je 0x4c203d
push eax
call fcn.004ae45a
pop ecx
test eax, eax
je 0x4c203d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4c203d
mov eax, dword [0x5ffe9c]
cmp eax, ebx
je 0x4c203d
push eax
call fcn.004ae45a
pop ecx
test eax, eax
je 0x4c203d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5ffe94]
call fcn.004ae45a
pop ecx
test eax, eax
je 0x4c205d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c205f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4c5cc0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.004add60
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret

Function at 0x4c5fd0
Capabilities:
Check os version

Disassembly:
mov eax, 0xa0
call fcn.004c3410
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.004add60
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
cmp eax, 6
jne 0x4c604b
mov eax, dword [esp + 0xc]
cmp eax, 1
ja 0x4c6030
jne 0x4c6052
cmp word [esp + 0x98], 1
jb 0x4c6052
mov eax, 1
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004a314d
add esp, 0xa0
ret
mov eax, 1
ja 0x4c6054
mov eax, esi
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
call fcn.004a314d
add esp, 0xa0
ret
Function at 0x4c6530
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004c3410
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4c65b7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4c65b7
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push pe_nt_image_headers32
push edx
call fcn.004ae111
add esp, 0x10
test eax, eax
jge 0x4c658d
mov eax, pe_nt_image_headers32
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a314d
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004ae111
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4c6649
call fcn.004c63f0
test eax, eax
jle 0x4c6649
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4c665d
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a314d
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004a314d
add esp, 0x108
ret

Function at 0x4c66b0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x4c66d8
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
sub edi, 1
jne 0x4c66c7
pop esi
pop ebx
movzx eax, cl
pop edi
ret
Function at 0x4c9e80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
dec ecx
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
dec ecx
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x4c9eb2
jmp dword [edx*4 + 0x4c9fdc]
mov edi, 0xa
cmp ebx, edi
jle case.0x4c9eb2.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x4c9ec3
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret
Function at 0x4cd0e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.004c3410
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x4cd127
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004a314d
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.0057e726
add esp, 8
test eax, eax
jl 0x4cd110
mov eax, 8
call fcn.004c3410
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.004c6800
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x4cd110
push 0x5d2c50
push esi
call fcn.004a3a26
mov edi, eax
add esp, 8
mov dword [esp + 0x40], edi
test edi, edi
je 0x4cd221
test dword [esp + 0x4e], 0x2000
je 0x4cd1a4
cmp ebx, 0xffffffff
jne 0x4cd18e
mov ebx, 0x800
push 0
push 4
push 0
push edi
call fcn.0057e5c8
add esp, 0x10
jmp 0x4cd1a4
mov edi, dword [esp + 0x40]
test ebx, ebx
jle 0x4cd1b2
cmp ebx, 0x400
mov esi, ebx
jl 0x4cd1b7
mov esi, 0x400
push edi
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.004a3d30
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x4cd205
fild dword [esp + 0x44]
mov eax, 8
call fcn.004c3410
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.004c6800
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x4cd1a0
sub ebx, esi
test ebx, ebx
jg 0x4cd1a0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a3dc4
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.004d3da0
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a314d
mov esp, ebp
pop ebp
ret
Function at 0x4d5620
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x4d5667
mov al, byte [edx]
test al, al
je 0x4d5667
push edi
mov edi, pe_nt_image_headers32
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x4d5637
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4d99a0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.004d9320
mov edi, eax
add esp, 4
test edi, edi
jne 0x4d9a46
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004c7820
push 0x5a7158
push esi
push 0x5a7154
push ebx
push str.fopen_
push 5
call fcn.004c7b20
add esp, 0x2c
call fcn.004a836a
cmp dword [eax], 2
je 0x4d9a25
call fcn.004a836a
cmp dword [eax], 6
je 0x4d9a25
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004c7820
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004c7820
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x5f5b20
call fcn.004c83c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d9a68
push edi
call fcn.004a3dc4
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.004c7e00
push edi
push 1
push 0x6a
push esi
call fcn.004c8160
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4f1250
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.004add60
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x4f12b0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.004add60
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret

Function at 0x4f16f0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
lea eax, [ecx + 1]
ret

Function at 0x4f1790
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
ret
Function at 0x4fb840
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4fb923
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4fb8be
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x5b1d18]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5b1d18]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x5b1d18]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + 0x5b1d18]
mov byte [ecx], dl
jmp 0x4fb910
shl edx, 0x10
cmp edi, 2
jne 0x4fb8cf
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x5b1d18]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5b1d18]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4fb8fd
lea edx, [edi + 0x3c]
jmp 0x4fb90a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x5b1d18]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x4fb860
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret