joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e88
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x418171
call fcn.00418070
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
or esi, 0xffffffff
push edi
mov edi, ecx
cmp ebx, esi
jne 0x401eb7
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x401edd
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x401edd
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x401ea6
cmp dword [edi + 0x54], 0
jne 0x401ee7
mov eax, esi
jmp 0x401ea6
mov eax, edi
call fcn.00402812
cmp dword [edi + 0x44], 0
jne 0x401f0a
push dword [edi + 0x54]
movsx eax, bl
push eax
call fcn.00403d81
pop ecx
cmp eax, esi
pop ecx
mov eax, ebx
jne 0x401ea6
jmp 0x401ee3
lea esi, [ebp - 0x34]
mov byte [ebp - 0xd], bl
call fcn.00402537
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x401fb8
lea eax, [ebp - 0x34]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x24]
add ebx, eax
push ebx
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
test eax, eax
js 0x401fe0
cmp eax, 1
jg 0x401fc0
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x401f67
lea eax, [ebp - 0x34]
mov esi, dword [ebp - 0x14]
sub esi, eax
je 0x401f8d
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x401f7a
lea eax, [ebp - 0x34]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040504f
add esp, 0x10
cmp esi, eax
jne 0x401fe0
lea eax, [ebp - 0xd]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x401fdb
test esi, esi
jne 0x401f19
cmp dword [ebp - 0x24], 0x20
jae 0x401fe0
push esi
push 8
pop ebx
lea esi, [ebp - 0x34]
call fcn.0040257b
jmp 0x401f19
mov edx, dword [ebp - 0x34]
jmp 0x401f2b
cmp eax, 3
jne 0x401fe0
movsx eax, byte [ebp - 0xd]
push dword [edi + 0x54]
push eax
call fcn.00403d81
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x401fe3
mov esi, dword [ebp + 8]
jmp 0x401fe3
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0040264a
jmp 0x401ee3
Function at 0x40271e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x418183
call fcn.00418070
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x402803
cmp byte [edi + 0x49], bl
je 0x402803
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402755
xor al, al
jmp 0x402805
push esi
lea esi, [ebp - 0x2c]
call fcn.00402537
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4027a5
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x4027aa
dec eax
je 0x4027ae
dec eax
dec eax
je 0x4027ff
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040264a
mov al, bl
pop esi
jmp 0x402805
mov edx, dword [ebp - 0x2c]
jmp 0x40276f
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4027ba
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, eax
je 0x4027e0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4027cd
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040504f
add esp, 0x10
cmp esi, eax
jne 0x402792
cmp byte [edi + 0x49], 0
je 0x4027ff
test esi, esi
jne 0x402761
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.0040257b
jmp 0x402761
mov bl, 1
jmp 0x402794
mov al, 1
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40595b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f788]
jne 0x405965
repz ret
jmp fcn.0040c3dc
Function at 0x41377c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f788]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b103
and dword [ebp - 0x14], 0
cmp dword [0x421638], 0
mov dword [ebp - 0x18], eax
jne 0x41382f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4138d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4138d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x421638], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42163c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x421640], eax
call edi
push eax
call esi
mov dword [0x421648], eax
test eax, eax
je 0x41382f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x421644], eax
mov eax, dword [0x421644]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413888
cmp dword [0x421648], ecx
je 0x413888
push eax
call esi
push dword [0x421648]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413888
test ebx, ebx
je 0x413888
call edi
test eax, eax
je 0x41387f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41387f
test byte [ebp - 8], 1
jne 0x413888
or dword [ebp + 0x10], 0x200000
jmp 0x4138bb
mov eax, dword [0x42163c]
cmp eax, dword [ebp - 0x18]
je 0x4138bb
push eax
call esi
test eax, eax
je 0x4138bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4138bb
mov eax, dword [0x421640]
cmp eax, dword [ebp - 0x18]
je 0x4138bb
push eax
call esi
test eax, eax
je 0x4138bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x421638]
call esi
test eax, eax
je 0x4138d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4138d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040595b
leave
ret
Function at 0x513ca8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0x1f
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 2
jge 0x513ce3
mov eax, 2
mov dword [ebp - 0xc], 2
push dword [ebp + 8]
call fcn.004425f7
push eax
push dword [ebp + 0xc]
call fcn.004425f7
pop edx
xchg edx, eax
add eax, edx
push eax
push dword [ebp - 0xc]
pop eax
bsr eax, eax
pop edx
xchg edx, eax
mov cl, dl
shl eax, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [0x548e7c]
cmp eax, edx
jle 0x513d85
mov eax, dword [ebp - 0x14]
shl eax, 1
mov dword [0x548e7c], eax
push dword [0x548e34]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
push dword [0x548e7c]
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [0x548e34], eax
mov eax, 0
mov edx, dword [0x548e34]
cmp eax, edx
jne 0x513d85
push 0
push dword [ebp - 0x14]
push 2
push 0
push str.Cannot_allocate_memory:_init_buffer:
push 6
push 0x18
lea esi, [esp + 4]
push esi
push 2
call fcn.004219c6
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
mov eax, dword [0x548e34]
mov dword [0x548e38], eax
leave
ret 8

Function at 0x514be5
Capabilities:
Set console window title
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
push dword [ebp + 8]
call fcn.00442639
push eax
call dword [sym.imp.KERNEL32.DLL_SetConsoleTitleA]
mov dword [ebp - 0xc], eax
mov eax, 0
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x514c2f
push 0
push str.SetConsoleTitle_failed_
push 6
push 0xc
lea esi, [esp + 4]
push esi
push 1
call fcn.004219c6
push 0
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
call fcn.00513847
call fcn.0051390a
push 5
push dword [0x54797c]
call fcn.0044c49f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x514c75
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, 0
cmp eax, edx
je 0x514c75
xor eax, eax
jmp 0x514c78
xor eax, eax
inc eax
cmp eax, 0
je 0x514c9d
mov eax, 0x50
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, 0x32
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
leave
ret 4

Function at 0x4057f1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte es:[ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00404893
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404848
invalid
Function at 0x799058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007991a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x79907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x79906a
add dl, dl
jne 0x799089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7990dc
xor eax, eax
add dl, dl
jne 0x799096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x79917d
add dl, dl
jne 0x7990a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7990b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7990bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7990c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7990d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x799075
mov eax, 1
add dl, dl
jne 0x7990ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7990f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7990e1
sub eax, ebx
mov ebx, 1
jne 0x799128
mov ecx, 1
add dl, dl
jne 0x79910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x799119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x799105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x799075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x79913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x79914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x799136
cmp eax, 0x7d00
jae 0x79916d
cmp eax, 0x500
jb 0x799168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x799075
cmp eax, 0x7f
ja 0x799170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x799075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x79919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x799075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406710
Capabilities:
Access the windows event log

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.004ef2f0
mov eax, dword [0x572bb0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x406775
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x406775
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004eb977
add eax, 0x40
push eax
call fcn.004ef6c3
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e94b7
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.004ef5fc
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x406804
call fcn.004065d0
test eax, eax
jle 0x406804
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.004e94b7
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.004e94b7
add esp, 0x108
ret

Function at 0x406860
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x406884
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 0x406876
pop esi
movzx eax, cl
pop edi
ret

Function at 0x40dec0
Capabilities:
Encode data using xor

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

Disassembly:
mov eax, 0x20
call fcn.004ef2f0
mov eax, dword [0x572bb0]
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 0x4111c5
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.004030a0
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e94b7
add esp, 0x20
ret
cmp ebp, 0x29
jge 0x4111f3
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.004030a0
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e94b7
add esp, 0x20
ret
push esi
mov byte [edi], 0
lea esi, [edi + 1]
push 0
add edi, 0x15
call fcn.0041e2d0
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x50]
push 0
push edi
push eax
push ecx
call fcn.00425320
mov edx, ebp
sub edx, ebx
sub edx, 0x29
push edx
lea eax, [edi + 0x14]
push 0
push eax
call fcn.004ef3a0
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.004eebf0
push 0x14
push esi
call fcn.00408790
add esp, 0x38
test eax, eax
jle 0x411285
push 0x48
add ebp, 0xffffffec
push str..crypto_rsa_rsa_oaep.c
push ebp
call fcn.00405460
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x41129a
push 0x4b
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.004030a0
add esp, 0x14
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e94b7
add esp, 0x20
ret
call fcn.0041e2d0
push eax
push 0x14
push esi
push ebp
push ebx
call fcn.00410fe0
add esp, 0x14
test eax, eax
jl 0x411285
test ebp, ebp
jle 0x4112cb
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 0x4112c0
call fcn.0041e2d0
push eax
push ebp
push edi
lea eax, [esp + 0x24]
push 0x14
push eax
call fcn.00410fe0
add esp, 0x14
test eax, eax
jl 0x411285
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 0x411310
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00405600
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.004e94b7
add esp, 0x20
ret
Function at 0x411950
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x411a1c
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x411971
cmp al, 0x6b
jne 0x411a1c
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x4119dd
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x411991
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x411991
cmp al, 0xbb
jne 0x4119ba
inc ecx
cmp ecx, esi
jl 0x411981
sub esi, ecx
test ecx, ecx
jne 0x4119e0
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004030a0
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.004030a0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x411a09
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.004030a0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call fcn.004eebf0
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.004030a0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x419f60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.004ef2f0
mov eax, dword [0x572bb0]
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 0x419f90
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x419f90
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 0x41a008
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x419fea
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 0x41a008
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x41a09a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x41a088
lea eax, [esi + esi]
call fcn.004ef5d0
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 0x41a09a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a033
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 0x41a09a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.004eaba6
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a13e
call fcn.004ee543
cmp dword [eax], 2
je 0x41a080
call fcn.004ee543
cmp dword [eax], 9
jne 0x41a092
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.004ee9bc
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a13e
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004030a0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x528798
push eax
push 0x528794
push ecx
push str.fopen_
push 5
call fcn.00402c80
add esp, 0x2c
call fcn.004ee543
cmp dword [eax], 2
jne 0x41a110
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004030a0
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.004e94b7
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004030a0
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.004e94b7
mov esp, ebp
pop ebp
ret
push 0x571b98
call fcn.00401c10
mov edi, eax
add esp, 4
test edi, edi
jne 0x41a170
push esi
call fcn.004eb37f
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.004e94b7
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.004016a0
push esi
push 1
push 0x6a
push edi
call fcn.00401a00
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.004e94b7
mov esp, ebp
pop ebp
ret
Function at 0x41ac10
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 0x41acf3
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x41ac8e
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 0x41ace0
shl edx, 0x10
cmp edi, 2
jne 0x41ac9f
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 0x41accd
lea edx, [edi + 0x3c]
jmp 0x41acda
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 0x41ac30
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x434980
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x434999
mov esi, edi
mov edi, eax
jmp 0x43499b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4349ab
mov eax, ebx
jmp 0x4349b5
push eax
push ebx
call fcn.00405d00
add esp, 8
test eax, eax
jne 0x4349bd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4349d9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4349c4
cmp eax, dword [esi + 4]
jge 0x4349f0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4349e0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x434a11
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x434a0e
dec eax
test eax, eax
jg 0x434a00
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret