joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4466b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4466c5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x4466d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4466d0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x450db0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x511148
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x570be0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x571ba4]
mov ecx, 0x571ba4
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 0
cmp dword [ebx + 0x14], 0
je 0x450e77
cmp dword [ebx + 0x18], 0
je 0x450e77
mov edi, dword [ebp + 8]
push 0x54dc5c
mov ecx, edi
call fcn.00439e70
cmp eax, 0x5781c0
je 0x450e6d
push 0x54dc5c
mov ecx, edi
call fcn.00439e70
cmp byte [eax + 8], 5
jne 0x450e6d
push 0x54dc5c
mov ecx, edi
call fcn.00439e70
mov ecx, eax
call fcn.00439930
test al, al
jne 0x450e6d
push 0
push 0
push 0x402
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebx + 0x18]
call edi
push 0
push dword [ebx + 0x14]
call edi
jmp 0x450e77
mov ecx, dword [ebx + 0x10]
push 2
mov eax, dword [ecx]
call dword [eax + 0x2c]
add esi, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x450e99
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46db40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x570be0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004ecdb0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46dbad
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x46db9d
cmp eax, 4
jne 0x46dbad
cmp dword [ebp - 0x110], 0x5a
jb 0x46dbad
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret
Function at 0x472f30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x570be0]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 0x10]
push edi
mov dword [ebp - 0x128], edx
test esi, esi
jne 0x472f6c
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ecx + 0xc]
mov ecx, 0xffff
movzx eax, word [edi]
cmp ax, cx
je 0x47314a
test byte [edi + 2], 1
je 0x473137
movzx ebx, ax
mov eax, 0x4000
test word [esi], ax
je 0x472faa
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov eax, 0xbfff
and word [esi], ax
push 0x30
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.004ecdb0
add esp, 0xc
lea eax, [ebp - 0x120]
push 0x110
push 0
push eax
mov dword [ebp - 0x158], 0x30
call fcn.004ecdb0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x473011
mov eax, dword [ebp - 0x120]
cmp eax, 5
jae 0x47301b
cmp eax, 4
jne 0x473011
cmp dword [ebp - 0x11c], 0x5a
jae 0x47301b
mov dword [ebp - 0x158], 0x2c
movzx ecx, word [esi]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x154], 1
mov dword [ebp - 0x148], ebx
test ecx, 0x100
je 0x473045
or eax, 3
mov dword [ebp - 0x14c], eax
test ecx, 0x200
je 0x473056
or eax, 8
mov dword [ebp - 0x14c], eax
test ecx, 0x1000
je 0x473069
or eax, 0x1000
mov dword [ebp - 0x14c], eax
test ecx, 0x2000
je 0x4730f8
push 0x30
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.004ecdb0
add esp, 0xc
mov dword [ebp - 0x188], 0x30
call fcn.0046db40
mov ecx, dword [ebp - 0x188]
test al, al
mov eax, 0x2c
cmovne ecx, eax
lea eax, [ebp - 0x188]
push eax
push 0
push ebx
push dword [ebp - 0x128]
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], 0x10
mov dword [ebp - 0x178], ebx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4730f8
mov eax, dword [ebp - 0x180]
or dword [ebp - 0x154], 0x10
and eax, 0xfffff7fb
or dword [ebp - 0x150], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x158]
push eax
push 0
push ebx
mov ebx, dword [ebp - 0x128]
push ebx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, 0x800
test word [esi], ax
je 0x473130
movzx eax, word [edi]
push 0
push eax
movzx eax, word [esi + 6]
push eax
movzx eax, word [esi + 4]
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov ecx, 0xffff
mov edx, ebx
movzx eax, word [edi + 4]
add edi, 4
add esi, 8
cmp ax, cx
jne 0x472f80
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret 4
Function at 0x481a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x570be0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x577758]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0x10c], ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x481c1e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x481c1e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x481c1e
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x481c09
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x481b7e
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.00481db0
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x481bf6
push eax
call fcn.004e7c87
add esp, 4
jmp 0x481bf6
cmp dx, ax
jne 0x481bfb
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.00481db0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x481bd0
push eax
call fcn.004e7c87
add esp, 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x481af6
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret 4
Function at 0x487d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x487d5c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x487d7a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], 0
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x487e66
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x487e66
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x487e66
mov edi, dword [ebp + 0xc]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x18], eax
test eax, eax
je 0x487e66
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x487e56
push edi
push ebx
push eax
call fcn.004ec600
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [esi + 0x18]
mov dword [ebp + 0xc], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x487e4d
mov ecx, dword [ebp + 0xc]
call fcn.00487be0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x487e4d
mov eax, dword [ecx + 8]
mov dword [ecx + 8], 0
test eax, eax
jne 0x487e39
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x487e46
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], 0
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
Function at 0x488ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x489009
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x489015
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x489010
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x489520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515526
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x570be0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4895cc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4895cc
call fcn.0046d620
mov esi, eax
jmp 0x4896bc
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4895ef
call fcn.0046d620
jmp 0x4896af
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x48960d
call fcn.0046d620
jmp 0x4896af
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x48962e
mov esi, 0x8007000e
jmp 0x4896b1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004958a0
jmp 0x489658
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x48966f
mov esi, 0x8007000e
jmp 0x4896b1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x48968f
call fcn.0046d620
jmp 0x4896af
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0048a320
mov esi, eax
test edi, edi
je 0x4896bc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4896e0
lea ecx, [ebp - 0x418]
call fcn.00495b80
jmp 0x4896e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49b390
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004ecd00
mov eax, dword [0x570be0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x49b3f5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x49b3f5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004e93ce
add eax, 0x40
push eax
call fcn.004ed0c1
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e6e0a
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004ecffc
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x49b484
call fcn.0049b250
test eax, eax
jle 0x49b484
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
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.004e6e0a
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e6e0a
add esp, 0x108
ret

Function at 0x49b4e0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x49b504
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
sub edi, 1
jne 0x49b4f6
pop esi
movzx eax, cl
pop edi
ret

Function at 0x4a2b50
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x4a2b97
mov al, byte [edx]
test al, al
je 0x4a2b97
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 0x4a2b67
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4a5de0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.004ecd00
mov eax, dword [0x570be0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x34]
push ebp
mov ebp, dword [esp + 0x30]
dec ebp
lea edx, [ebp - 0x29]
cmp ebx, edx
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
jle 0x4a5e45
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.00497d30
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e6e0a
add esp, 0x20
ret
cmp ebp, 0x29
jge 0x4a5e73
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.00497d30
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e6e0a
add esp, 0x20
ret
push esi
mov byte [edi], 0
lea esi, [edi + 1]
push 0
add edi, 0x15
call fcn.004b2f70
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x50]
push 0
push edi
push eax
push ecx
call fcn.004ba020
mov edx, ebp
sub edx, ebx
sub edx, 0x29
push edx
lea eax, [edi + 0x14]
push 0
push eax
call fcn.004ecdb0
mov edx, dword [esp + 0x34]
mov ecx, edi
sub ecx, ebx
lea eax, [ecx + ebp]
push ebx
mov byte [eax - 0x15], 1
push edx
add eax, 0xffffffec
push eax
call fcn.004ec600
push 0x14
push esi
call fcn.0049d410
add esp, 0x38
test eax, eax
jle 0x4a5f05
push 0x48
add ebp, 0xffffffec
push str..crypto_rsa_rsa_oaep.c
push ebp
call fcn.0049a0e0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x4a5f1a
push 0x4b
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.00497d30
add esp, 0x14
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e6e0a
add esp, 0x20
ret
call fcn.004b2f70
push eax
push 0x14
push esi
push ebp
push ebx
call fcn.004a5c60
add esp, 0x14
test eax, eax
jl 0x4a5f05
test ebp, ebp
jle 0x4a5f4b
mov ecx, ebx
mov eax, edi
sub ecx, edi
mov edx, ebp
lea ecx, [ecx]
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
sub edx, 1
jne 0x4a5f40
call fcn.004b2f70
push eax
push ebp
push edi
lea eax, [esp + 0x24]
push 0x14
push eax
call fcn.004a5c60
add esp, 0x14
test eax, eax
jl 0x4a5f05
lea ecx, [esp + 0x18]
lea edi, [esp + 0x19]
lea ebp, [esp + 0x1a]
lea edx, [esp + 0x1b]
sub ecx, esi
sub edi, esi
sub ebp, esi
sub edx, esi
lea ebx, [esp + 0x1c]
sub ebx, esi
mov eax, esi
mov dword [esp + 0x10], ebx
mov esi, 4
nop
movzx ebx, byte [ecx + eax]
xor byte [eax], bl
movzx ebx, byte [edi + eax]
xor byte [eax + 1], bl
movzx ebx, byte [eax + ebp]
xor byte [eax + 2], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 3], bl
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + eax]
xor byte [eax + 4], bl
add eax, 5
sub esi, 1
jne 0x4a5f90
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0049a280
mov ecx, dword [esp + 0x30]
add esp, 4
lea eax, [esi + 1]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e6e0a
add esp, 0x20
ret
Function at 0x4a65d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x4a669c
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4a65f1
cmp al, 0x6b
jne 0x4a669c
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x4a665d
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x4a6611
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x4a6611
cmp al, 0xbb
jne 0x4a663a
inc ecx
cmp ecx, esi
jl 0x4a6601
sub esi, ecx
test ecx, ecx
jne 0x4a6660
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.00497d30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x81
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.00497d30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x4a6689
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.00497d30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call fcn.004ec600
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.00497d30
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x4aebe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.004ecd00
mov eax, dword [0x570be0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x4aec10
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4aec10
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x4aec88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4aec6a
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x4aec88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x4aed1a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x4aed08
lea eax, [esi + esi]
call fcn.004ecfd0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x4aed1a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aecb3
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x4aed1a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.004e860c
mov esi, eax
add esp, 8
test esi, esi
jne 0x4aedbe
call fcn.004ebef4
cmp dword [eax], 2
je 0x4aed00
call fcn.004ebef4
cmp dword [eax], 9
jne 0x4aed12
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.004ec3d4
mov esi, eax
add esp, 8
test esi, esi
jne 0x4aedbe
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00497d30
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x526788
push eax
push 0x526784
push ecx
push str.fopen_
push 5
call fcn.00497910
add esp, 0x2c
call fcn.004ebef4
cmp dword [eax], 2
jne 0x4aed90
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00497d30
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00497d30
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret
push 0x56fb98
call fcn.00496890
mov edi, eax
add esp, 4
test edi, edi
jne 0x4aedf0
push esi
call fcn.004e8ddc
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.00496320
push esi
push 1
push 0x6a
push edi
call fcn.00496680
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e6e0a
mov esp, ebp
pop ebp
ret
Function at 0x4af890
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 0x4af973
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4af90e
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 + 0x526910]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x526910]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x526910]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + 0x526910]
mov byte [ecx], dl
jmp 0x4af960
shl edx, 0x10
cmp edi, 2
jne 0x4af91f
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x526910]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x526910]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4af94d
lea edx, [edi + 0x3c]
jmp 0x4af95a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x526910]
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 0x4af8b0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret