joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475160
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x475175
xor eax, eax
jmp 0x4751ea
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x4751a2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x4751e5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x4751e3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x4751df
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x4751e3
xor eax, eax
jmp 0x4751ea
jmp 0x475199
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x475290
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x50f5b8], 0
je 0x4752a9
mov eax, dword [0x50f5b8]
jmp 0x475349
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x4752bb
xor eax, eax
jmp 0x475349
push 8
call fcn.0043e252
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x475311
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x4752fa
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0043e28c
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x50f5b8], eax
mov dword [0x50f5bc], 0
mov eax, dword [ebp - 4]
jmp 0x475349
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x47532b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4752db
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x50f5c0]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x50f5c0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x475c40
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004744b0
add esp, 0xc
mov dword [ebp - 0x10], 0
cmp dword [0x50f5a8], 0
jne 0x475c7d
cmp dword [0x50f5a4], 0
je 0x475c7d
mov eax, dword [0x50f5a4]
mov dword [0x50f5a8], eax
cmp dword [0x50f5a8], 0
je 0x475cfa
mov ecx, dword [0x50f5a8]
cmp dword [ecx + 8], 0
je 0x475cfa
mov edx, dword [0x50f5a8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 8]
jb 0x475cfa
mov ecx, dword [0x50f5a8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x475cfa
mov eax, dword [0x50f5a8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jb 0x475cc9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x475cd0
xor eax, eax
jmp 0x475e1d
mov ecx, dword [0x50f5a8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00460c60
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x475e1d
mov edx, dword [0x50f5a4]
mov dword [0x50f5a8], edx
jmp 0x475d16
mov eax, dword [0x50f5a8]
mov ecx, dword [eax + 4]
mov dword [0x50f5a8], ecx
cmp dword [0x50f5a8], 0
je 0x475d56
cmp dword [0x50f5a8], 0
je 0x475d54
mov edx, dword [0x50f5a8]
cmp dword [edx + 8], 0
je 0x475d54
mov eax, dword [0x50f5a8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jb 0x475d54
mov edx, dword [0x50f5a8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x475d54
jmp 0x475cae
jmp 0x475d08
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00474590
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x475e1b
mov eax, dword [ebp - 4]
mov dword [0x50f5a8], eax
mov ecx, dword [0x50f5a8]
mov dword [ecx], 0x52727464
mov edx, dword [0x50f5a8]
mov dword [edx + 8], 0
mov eax, dword [0x50f5a8]
mov ecx, dword [0x50f5a4]
mov dword [eax + 4], ecx
mov edx, dword [0x50f5a8]
mov dword [0x50f5a4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x50f5a8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x38c
jmp 0x475de7
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 1
jle 0x475e0b
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
mov edx, dword [ebp - 0x18]
imul edx, edx, 0x48
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x475dde
mov eax, dword [0x50f5a8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x475cae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4760d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x507628]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4760fb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4761b4
push 0x1c
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.00460c60
add esp, 0xc
push 0x1c
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x47612a
xor eax, eax
jmp 0x4761b4
push 0
push 0x40
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x476148
xor eax, eax
jmp 0x4761b4
movzx edx, word [ebp - 0x48]
cmp edx, 0x5a4d
jne 0x476162
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x58]
ja 0x476162
cmp dword [ebp - 0xc], 0x40
jae 0x476171
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4761b4
push 0
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x476195
xor eax, eax
jmp 0x4761b4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x4550
je 0x4761af
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4761b4
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045ba17
mov esp, ebp
pop ebp
ret 0xc
Function at 0x477510
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x507628]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x434], 0
push 0x104
lea eax, [ebp - 0x418]
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp + 0xc], 1
jb 0x477563
cmp dword [ebp + 0xc], 0x1000
jbe 0x477575
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x477752
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x434]
push ecx
call fcn.00477240
test eax, eax
jne 0x47759b
jmp 0x477752
cmp dword [ebp - 0x41c], 0
je 0x4775b0
cmp dword [ebp - 0x41c], 0x104
jb 0x4775ba
jmp 0x477752
push str._sysnative_rundll32.exe
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.00477780
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x4775e9
jmp 0x477752
mov eax, dword [ebp - 0x434]
add eax, 0xc
push eax
push str.rundll32.exe___hs__1
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004777e0
add esp, 0x10
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jge 0x477625
jmp 0x477752
push 0x10
push 0
lea edx, [ebp - 0x430]
push edx
call fcn.00460c60
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x480]
push eax
call fcn.00460c60
add esp, 0xc
mov dword [ebp - 0x480], 0x44
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x480]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [ebp + 0x14]
test eax, eax
je 0x477752
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
push 0x4d65ec
mov edx, dword [ebp - 0x430]
push edx
call fcn.00476e80
test eax, eax
jne 0x4776da
push 0xffffffffffffffff
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x477752
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x484], 0x1f4
lea eax, [ebp - 0x484]
push eax
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x484], 0
je 0x477748
jmp 0x477752
mov dword [ebp - 0x420], 1
lea ecx, [ebp - 0x434]
push ecx
call fcn.004774c0
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045ba17
mov esp, ebp
pop ebp
ret 0x10

Function at 0x47ae00
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047ab70
Function at 0x4800d0
Capabilities:
Access the windows event log

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.00461c70
mov eax, dword [0x507628]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x480135
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x480135
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00463007
add eax, 0x40
push eax
call fcn.004c17dc
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045ba17
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.00469bc6
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4801c4
call fcn.0047ff90
test eax, eax
jle 0x4801c4
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.0045ba17
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.0045ba17
add esp, 0x108
ret
Function at 0x4832d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.00461c70
mov eax, dword [0x507628]
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 0x483300
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x483300
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 0x483378
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x48335a
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 0x483378
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x48340a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x4833f8
lea eax, [esi + esi]
call fcn.00461df0
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 0x48340a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4833a3
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 0x48340a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.0045c545
mov esi, eax
add esp, 8
test esi, esi
jne 0x4834ae
call fcn.004611ad
cmp dword [eax], 2
je 0x4833f0
call fcn.004611ad
cmp dword [eax], 9
jne 0x483402
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.004c19a1
mov esi, eax
add esp, 8
test esi, esi
jne 0x4834ae
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00482930
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x4da310
push eax
push 0x4da30c
push ecx
push str.fopen_
push 5
call fcn.00482630
add esp, 0x2c
call fcn.004611ad
cmp dword [eax], 2
jne 0x483480
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00482930
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.0045ba17
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00482930
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.0045ba17
mov esp, ebp
pop ebp
ret
push 0x508da8
call fcn.0047e3f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4834e0
push esi
call fcn.0045c9f0
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.0045ba17
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.0047de80
push esi
push 1
push 0x6a
push edi
call fcn.0047e1e0
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.0045ba17
mov esp, ebp
pop ebp
ret
Function at 0x486e10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x486e57
mov al, byte [edx]
test al, al
je 0x486e57
push edi
mov edi, 0x100
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 0x486e27
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4874a0
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 0x487583
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x48751e
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 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x487570
shl edx, 0x10
cmp edi, 2
jne 0x48752f
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x48755d
lea edx, [edi + 0x3c]
jmp 0x48756a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
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 0x4874c0
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x48bf40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.00461c70
mov eax, dword [0x507628]
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 0x48bfa5
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.00482930
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0045ba17
add esp, 0x20
ret
cmp ebp, 0x29
jge 0x48bfd3
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.00482930
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0045ba17
add esp, 0x20
ret
push esi
mov byte [edi], 0
lea esi, [edi + 1]
push 0
add edi, 0x15
call fcn.0047fc50
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x50]
push 0
push edi
push eax
push ecx
call fcn.0047fb20
mov edx, ebp
sub edx, ebx
sub edx, 0x29
push edx
lea eax, [edi + 0x14]
push 0
push eax
call fcn.00460c60
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.004680d0
push 0x14
push esi
call fcn.0047bf10
add esp, 0x38
test eax, eax
jle 0x48c065
push 0x48
add ebp, 0xffffffec
push str..crypto_rsa_rsa_oaep.c
push ebp
call fcn.0047f470
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x48c07a
push 0x4b
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.00482930
add esp, 0x14
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0045ba17
add esp, 0x20
ret
call fcn.0047fc50
push eax
push 0x14
push esi
push ebp
push ebx
call fcn.0048bde0
add esp, 0x14
test eax, eax
jl 0x48c065
test ebp, ebp
jle 0x48c0ab
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 0x48c0a0
call fcn.0047fc50
push eax
push ebp
push edi
lea eax, [esp + 0x24]
push 0x14
push eax
call fcn.0048bde0
add esp, 0x14
test eax, eax
jl 0x48c065
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 0x48c0f0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047f610
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.0045ba17
add esp, 0x20
ret
Function at 0x48c750
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x48c81c
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x48c771
cmp al, 0x6b
jne 0x48c81c
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x48c7dd
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x48c791
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x48c791
cmp al, 0xbb
jne 0x48c7ba
inc ecx
cmp ecx, esi
jl 0x48c781
sub esi, ecx
test ecx, ecx
jne 0x48c7e0
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.00482930
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.00482930
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x48c809
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.00482930
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call fcn.004680d0
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.00482930
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x491eb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00461c70
mov eax, dword [0x507628]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebp, ebp
je 0x491eff
mov eax, 1
mov dword [esi], ebp
jmp 0x491f01
mov ebp, dword [esi]
test ecx, ecx
je 0x491fe4
push ebp
call fcn.004882d0
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x491f30
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call fcn.004801f0
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x491f87
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call fcn.0047f6a0
add esp, 0xc
test eax, eax
je 0x492086
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call fcn.0047f850
add esp, 0xc
test eax, eax
je 0x492086
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.0047f860
add esp, 0xc
test eax, eax
je 0x492086
jmp 0x491fc1
cmp edi, 0x80
jbe 0x491fa3
push str.len_0__len__int_sizeof_ctx__key_
push 0x5f
push str..cryptohmachmac.c
call fcn.004801f0
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call fcn.004680d0
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x491fec
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call fcn.00460c60
add esp, 0xc
jmp 0x491fec
test eax, eax
je 0x492072
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x491ff0
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call fcn.0047f6a0
add esp, 0xc
test eax, eax
je 0x492086
push ebp
call fcn.004882d0
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0047f850
add esp, 0x10
test eax, eax
je 0x492086
xor eax, eax
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x492034
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call fcn.0047f6a0
add esp, 0xc
test eax, eax
je 0x492086
push ebp
call fcn.004882d0
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0047f850
add esp, 0x10
test eax, eax
je 0x492086
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.0047f9c0
add esp, 8
test eax, eax
jne 0x49208a
xor eax, eax
jmp 0x49208f
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045ba17
add esp, 0x8c
ret