joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push esi
push edi
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x49c894
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp - 0x18], 0x42f
jne 0x49c877
mov eax, dword [0x52fa68]
test eax, eax
jne 0x49c7ad
cmp byte [0x52ff5c], al
jne 0x49c894
mov ecx, dword [0x52fa6c]
test ecx, ecx
je 0x49c87d
test eax, eax
je 0x49c87d
push ecx
mov byte [0x52ff5c], 1
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x49c807
push dword [0x52fa6c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49c7f3
push 5
push dword [0x52fa6c]
call esi
push 5
jmp 0x49c7ff
push 0
push dword [0x52fa6c]
call esi
push 0
push dword [0x52fa68]
call esi
push 2
push dword [0x52fa6c]
jmp 0x49c81e
mov ecx, dword [0x52fa68]
cmp eax, ecx
je 0x49c82a
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x49c811
jmp 0x49c87d
push 0x13
xor eax, eax
push eax
push eax
push eax
push eax
push dword [0x52fa6c]
push ecx
call edi
push 0x13
xor eax, eax
push eax
push eax
push eax
push eax
push dword [0x52fa68]
push dword [0x52fa6c]
call edi
push 0x13
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [0x52fa68]
call edi
push 0x13
xor eax, eax
push eax
push eax
push eax
push eax
push 0xfffffffffffffffe
push dword [0x52fa68]
call edi
jmp 0x49c87d
cmp dword [ebp - 0x18], 2
je 0x49c89c
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x49c78b
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x49c896
Function at 0x49e1f9
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x4a7929
call fcn.0049e6bc
sub esp, 0x18
push ebx
mov ebx, ecx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
mov byte [ebx + 8], al
push 0x49c8a0
mov dword [ebp - 4], eax
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0x64
mov dword [ebx], vtable.zorder::zorderwnd.0
push 0x1e
push eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x18], al
mov dword [ebx + 0x10], vtable.zorder::Window_UP_Z_.0
call esi
mov eax, dword [ebx + 0x1c]
mov dword [0x52fa74], eax
push 0x49c93d
xor eax, eax
mov dword [ebx + 0x20], vtable.zorder::Window_Z_.0
push 0x1f4
push 0x14
push eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x2c], eax
mov byte [ebx + 0x28], al
call esi
mov eax, dword [ebx + 0x2c]
mov dword [0x52fa70], eax
mov byte [ebp - 4], 2
and dword [ebx + 0x30], 0
and dword [ebx + 0x34], 0
call fcn.00425bc4
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], eax
push ecx
mov byte [ebp - 4], 7
push ecx
mov ecx, ebx
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x68], eax
call fcn.0049de09
push 5
pop ecx
mov byte [ebx + 0x74], 1
lea esi, [ebp - 0x24]
mov edi, 0x52fec8
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x220]
sub esp, 0x25c
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
mov dword [esp], esi
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x228], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x22c], edx
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ebx
lea ebx, [ebp - 0x210]
mov dword [ebp - 0x248], ecx
mov dword [ebp - method.fmt::v7::basic_memory_buffer_char__500u__std::allocator_char___.grow_unsigned_int_], 0x87666c
mov dword [ebp - 0x214], 0x1f4
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x230], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sym.__ZN3fmt2v710vformat_toINS0_6detail13arg_formatterINS2_15buffer_appenderIcEEcEEcNS0_20basic_format_contextIS5_cEEEENT1_8iterat
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x218]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], esi
mov dword [esp], eax
call sym._fwrite
cmp esi, eax
ja 0x4030d5
mov eax, dword [ebp - 0x21c]
mov dword [ebp - method.fmt::v7::basic_memory_buffer_char__500u__std::allocator_char___.grow_unsigned_int_], 0x87666c
cmp eax, ebx
je 0x4030cd
mov dword [esp], eax
call sym.operator_delete_void_
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xc
call sym.___cxa_allocate_exception
mov edi, eax
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 4], str.cannot_write_to_file
mov dword [esp + 8], 0x14
mov ecx, edi
mov eax, dword [eax]
mov dword [esp], eax
call method.fmt::v7::system_error.system_error___int__fmt::v7::basic_string_view_char__
sub esp, 0xc
mov dword [esp + 8], method.fmt::v7::system_error.system_error__
mov dword [esp + 4], 0x8717f0
mov dword [esp], edi
call sym.___cxa_throw
mov esi, eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - method.fmt::v7::basic_memory_buffer_char__500u__std::allocator_char___.grow_unsigned_int_], 0x87666c
cmp eax, ebx
je 0x40313e
mov dword [esp], eax
call sym.operator_delete_void_
mov dword [esp], esi
call sym.__Unwind_Resume
mov dword [esp], edi
mov esi, eax
call sym.___cxa_free_exception
jmp 0x403122
Function at 0x408450
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
test eax, eax
js 0x408490
cmp eax, 1
je 0x408470
add esp, 0x1c
ret
mov eax, dword [ecx]
mov edx, dword [edx + 4]
mov ecx, dword [eax + 4]
movsx edx, byte [edx]
mov eax, dword [ecx]
mov dword [esp], edx
call dword [eax + 8]
sub esp, 4
add esp, 0x1c
ret
mov dword [esp + 0x24], 0
add esp, 0x1c
jmp dbg.uv_close

Function at 0x4087b0
Capabilities:
Get hostname

Disassembly:
push edi
push ebx
xor eax, eax
mov ecx, 0x40
sub esp, 0x114
lea edi, [esp + 0x10]
mov ebx, dword [esp + 0x120]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x10]
mov dword [esp + 4], 0x100
mov dword [esp], edi
call dword [sym.imp.WS2_32.dll_gethostname]
sub esp, 8
test eax, eax
je 0x408800
mov dword [ebx], 0
mov dword [ebx + 4], 0
add esp, 0x114
mov eax, ebx
pop ebx
pop edi
ret
mov dword [esp], edi
mov ecx, ebx
call method.xmrig::String.String_char_const_
sub esp, 4
mov eax, ebx
add esp, 0x114
pop ebx
pop edi
ret
Function at 0x40e770
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov dword [ecx], sym.xmrig::ConsoleLog::ConsoleLog__
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [esp], 1
call dbg.uv_guess_handle
cmp eax, 0xe
je 0x40e7b4
cmp eax, 7
je 0x40e7b4
mov byte [0x7ea154], 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
mov dword [esp], 0xc4
call sym.operator_new_unsigned_int_
mov esi, eax
mov dword [ebx + 4], eax
call sym._uv_default_loop
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call dbg.uv_tty_init
test eax, eax
js 0x40e7a4
mov dword [esp + 4], 0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dbg.uv_tty_set_mode
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
mov dword [esp], 0xfffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
cmp eax, 0xffffffff
mov ebx, eax
je 0x40e838
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
sub esp, 8
test eax, eax
jne 0x40e880
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x40e7ab
lea ecx, [ebp - 0x10]
mov dword [esp], eax
call method.xmrig::Title.value___const
mov eax, dword [ebp - 0x10]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [ebp - 0x10]
sub esp, 4
test eax, eax
je 0x40e7ab
mov dword [esp], eax
call sym.operator_delete___void_
jmp 0x40e7ab
mov eax, dword [ebp - 0x10]
mov dword [esp], ebx
and eax, 0xffffffbf
mov dword [ebp - 0x10], eax
or al, 0x80
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
sub esp, 8
jmp 0x40e838
Function at 0x452ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], 0x20
mov dword [esp + 4], 0x20
mov dword [esp + 8], ebx
mov dword [esp], eax
call method.xmrig.keccak_unsigned_char_const__int__unsigned_char__int_
mov dword [esp + 0x20], ebx
add esp, 0x18
pop ebx
jmp sym._sc_reduce32

Function at 0x45e9a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x10
mov ecx, dword [ecx + 4]
call method.xmrig::Base.config___const
add eax, 0x48
mov ecx, ebx
mov dword [esp], eax
call method.xmrig::Api.genWorkerId_xmrig::String_const_
sub esp, 4
mov dword [esp], 0x20
call sym.operator_new_unsigned_int_
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, esi
mov dword [esp], eax
call method.xmrig::Httpd.Httpd_xmrig::Base_
mov dword [ebx + 0x30], esi
sub esp, 4
lea esp, [ebp - 8]
mov ecx, esi
pop ebx
pop esi
pop ebp
jmp fcn.00460a90
Function at 0x49fb50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
mov ecx, dword [ecx + 0x10]
call method.xmrig::Base.isBackground___const
test al, al
jne 0x49fb70
xor eax, eax
add esp, 0x1c
ret 4
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
je 0x49fba0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 8
xor eax, eax
add esp, 0x1c
ret 4
mov dword [esp], 0xfffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_FreeConsole]
xor eax, eax
add esp, 0x1c
ret 4
Function at 0x507c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 8
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 8]
mov edi, dword [eax]
test ebx, ebx
je 0x507cd3
test edi, edi
je 0x507cd3
mov eax, dword [eax + 4]
movzx edx, byte [ebx]
and eax, 0x100
jne 0x507d40
cmp edx, 0x7f
jbe 0x507d40
lea eax, [edi + 1]
xor esi, esi
mov dword [esp], eax
mov ecx, dword [esp]
mov dword [esp + 4], ecx
jmp 0x507ce8
xor ecx, ecx
mov dword [esp + 4], 1
xor esi, esi
mov dword [esp], 1
xor edi, edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x507d32
mov eax, dword [esp + 0x20]
mov ebp, dword [eax]
test ebp, ebp
je 0x507d32
mov eax, esi
lea edx, [edi - 1]
mov byte [ebp], al
and eax, 1
test edi, edi
movzx eax, al
je 0x507d29
sub ecx, edi
add ebp, ecx
mov ecx, esi
xor cl, byte [ebx + edx]
movzx ecx, cl
add eax, ecx
mov byte [ebp + edx], al
sub edx, 1
shr eax, 8
cmp edx, 0xffffffff
jne 0x507d10
mov eax, dword [esp + 0x20]
mov edi, dword [esp]
add dword [eax], edi
mov eax, dword [esp + 4]
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x507d60
cmp edx, 0x80
jbe 0x507d70
lea eax, [edi + 1]
mov esi, 0xffffffff
mov dword [esp], eax
jmp 0x507cca
mov dword [esp], edi
xor esi, esi
jmp 0x507cca
mov dword [esp], edi
mov esi, 0xffffffff
jne 0x507cca
cmp edi, 1
je 0x507d60
lea eax, [ebx + 1]
lea esi, [ebx + edi]
xor edx, edx
nop
lea esi, [esi]
movzx ecx, byte [eax]
add eax, 1
or edx, ecx
cmp esi, eax
jne 0x507d90
test edx, edx
setne al
mov edx, eax
and eax, 1
neg edx
add eax, edi
mov esi, edx
mov dword [esp], eax
jmp 0x507cca
Function at 0x5179a0
Capabilities:
Resolve dns

Disassembly:
push esi
push ebx
sub esp, 0x54
mov ebx, dword [esp + 0x6c]
cmp ebx, 0x17
ja 0x5179be
mov eax, 1
mov ecx, ebx
shl eax, cl
test eax, 0x800005
jne 0x5179f4
mov dword [esp + 0x10], 0x293
mov dword [esp + 0xc], str.crypto_bio_b_addr.c
xor esi, esi
mov dword [esp + 8], 0x83
mov dword [esp + 4], 0x8f
mov dword [esp], 0x20
call sym._ERR_put_error
add esp, 0x54
mov eax, esi
pop ebx
pop esi
ret
call sym._BIO_sock_init
cmp eax, 1
mov esi, eax
je 0x517a10
xor esi, esi
add esp, 0x54
mov eax, esi
pop ebx
pop esi
ret
lea edx, [esp + 0x30]
xor ecx, ecx
xor eax, eax
mov dword [edx + eax], ecx
add eax, 4
cmp eax, 0x20
jb 0x517a18
cmp dword [esp + 0x68], 1
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
jne 0x517a3e
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x74]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
sub esp, 0x10
test eax, eax
je 0x5179ec
mov dword [esp + 0x10], 0x2c6
mov dword [esp + 0xc], str.crypto_bio_b_addr.c
xor esi, esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x8f
mov dword [esp], 0x20
mov dword [esp + 0x2c], eax
call sym._ERR_put_error
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dbg.gai_strerrorW
mov dword [esp], 1
mov dword [esp + 4], eax
call sym._ERR_add_error_data
jmp 0x5179ec

Function at 0x51a500
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x945d10]
test eax, eax
je 0x51a510
mov eax, 1
ret
push edi
mov edx, 0x945b80
xor eax, eax
mov edi, edx
mov ecx, 0x64
sub esp, 0x28
mov dword [0x945d10], 1
rep stosd dword es:[edi], eax
mov dword [esp + 4], edx
mov dword [esp], 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x51a550
mov eax, 1
add esp, 0x28
pop edi
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], 0x87
mov dword [esp + 8], eax
mov dword [esp + 0xc], str.crypto_bio_b_sock.c
mov dword [esp + 4], 9
mov dword [esp], 2
call sym._ERR_put_error
mov dword [esp + 0x10], 0x88
mov dword [esp + 0xc], str.crypto_bio_b_sock.c
mov dword [esp + 8], 0x7a
mov dword [esp + 4], 0x70
mov dword [esp], 0x20
call sym._ERR_put_error
mov eax, 0xffffffff
jmp 0x51a54b

Function at 0x51aab0
Capabilities:
Set socket configuration

Disassembly:
push ebx
sub esp, 0x38
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0x8004667e
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
test eax, eax
mov ebx, eax
js 0x51aaf0
xor eax, eax
test ebx, ebx
sete al
add esp, 0x38
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], 0xc3
mov dword [esp + 8], eax
mov dword [esp + 0xc], str.crypto_bio_b_sock.c
mov dword [esp + 4], 5
mov dword [esp], 2
call sym._ERR_put_error
xor eax, eax
test ebx, ebx
sete al
add esp, 0x38
pop ebx
ret
Function at 0x51f860
Capabilities:
Check if file exists

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov dword [esp + 4], esi
mov dword [esp], ebp
call sym._openssl_fopen
mov dword [esp + 4], 0x62
mov dword [esp], esi
mov edi, eax
call sym._strchr
cmp eax, 1
sbb ebx, ebx
and ebx, 0x10
add ebx, 1
test edi, edi
je 0x51f8e4
mov dword [esp], 0x814660
call sym._BIO_new
test eax, eax
mov esi, eax
je 0x51f9d0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._BIO_clear_flags
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x6a
mov dword [esp], esi
call sym._BIO_ctrl
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], 0x48
mov dword [esp + 8], eax
mov dword [esp + 0xc], str.crypto_bio_bss_file.c
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._ERR_put_error
mov dword [esp + 0x14], 0x814626
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x814629
mov dword [esp + 8], ebp
mov dword [esp + 4], str.fopen_
mov dword [esp], 5
call sym._ERR_add_error_data
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
cmp dword [eax], 2
je 0x51f952
call ebx
cmp dword [eax], 6
jne 0x51f990
mov dword [esp + 0x10], 0x4f
mov dword [esp + 0xc], str.crypto_bio_bss_file.c
xor esi, esi
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0x6d
mov dword [esp], 0x20
call sym._ERR_put_error
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0x51
mov dword [esp + 0xc], str.crypto_bio_bss_file.c
xor esi, esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x6d
mov dword [esp], 0x20
call sym._ERR_put_error
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call sym._fclose
jmp 0x51f8da
Function at 0x522b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ecx + 0x1c]
test edi, edi
jne 0x522b52
mov dword [eax + 4], 0
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [edi + edi]
mov dword [esp], edx
mov ebx, ecx
mov esi, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 4], ebp
call sym._bn_wexpand
test eax, eax
je 0x522cb0
mov eax, dword [ebx + 0x24]
xor dword [esi + 0xc], eax
test ebp, ebp
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], eax
mov eax, esi
mov edx, dword [eax + 4]
mov esi, dword [esi]
jle 0x522bb3
mov ecx, ebp
mov eax, edx
mov dword [esp + 0x1c], ebx
sub ecx, edx
lea edx, [esi + edx*4]
neg eax
mov ebx, ecx
nop
mov ecx, eax
sar ecx, 0x1f
and dword [edx + eax*4], ecx
add eax, 1
cmp ebx, eax
jne 0x522ba0
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
test edi, edi
mov dword [eax + 4], ebp
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x24], eax
jle 0x522cc0
xor eax, eax
lea ebp, [edi*4]
mov dword [esp + 0x1c], edi
xor ebx, ebx
mov edi, eax
lea esi, [esi]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
imul eax, dword [esi]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
call sym._bn_mul_add_words
mov ecx, dword [esi + ebp]
add eax, ebx
xor edx, edx
add eax, ecx
cmp ecx, eax
mov dword [esi + ebp], eax
setne dl
or ebx, edx
xor edx, edx
cmp ecx, eax
setae dl
add edi, 1
add esi, 4
and ebx, edx
cmp dword [esp + 0x1c], edi
jne 0x522be0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._bn_wexpand
test eax, eax
je 0x522cb0
mov edx, dword [esp + 0x28]
mov dword [esi + 4], edi
lea ebp, [edi*4]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx]
mov dword [esi + 0xc], eax
mov esi, dword [esi]
add ecx, ebp
mov eax, dword [esp + 0x20]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._bn_sub_words
mov ecx, dword [esp + 0x1c]
sub ebx, eax
add ebp, ecx
mov edx, dword [esi]
mov eax, dword [ecx]
add ecx, 4
add esi, 4
xor eax, edx
and eax, ebx
xor eax, edx
mov dword [esi - 4], eax
mov dword [ecx - 4], 0
cmp ebp, ecx
jne 0x522c81
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._bn_wexpand
test eax, eax
je 0x522cb0
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov eax, dword [edx + 0xc]
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [edx]
lea eax, [eax + edi*4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._bn_sub_words
jmp 0x522c9f
Function at 0x572bc0
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 8
mov ebx, dword [esp + 0x10]
call sym._OPENSSL_issetugid
test eax, eax
jne 0x572be0
mov dword [esp + 0x10], ebx
add esp, 8
pop ebx
jmp sym._getenv
add esp, 8
xor eax, eax
pop ebx
ret

Function at 0x578870
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
xor eax, eax
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x5788ba
movsx edx, byte [ebx]
test dl, dl
je 0x5788ba
mov esi, 0x100
nop
lea esi, [esi]
or edx, esi
add ebx, 1
add esi, 0x100
mov ecx, edx
shr ecx, 2
xor ecx, edx
imul edx, edx
and ecx, 0xf
rol eax, cl
xor eax, edx
movsx edx, byte [ebx]
test dl, dl
jne 0x578890
mov edx, eax
shr edx, 0x10
xor eax, edx
pop ebx
pop esi
ret

Function at 0x578fd0
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
xor eax, eax
push ebx
sub esp, 0x10
mov esi, dword [esp + 0x20]
test esi, esi
je 0x579022
movsx edx, byte [esi]
test dl, dl
je 0x579022
mov edi, 0x100
xor ebx, ebx
nop
mov dword [esp], edx
add esi, 1
call sym._ossl_tolower
or eax, edi
movsx edx, byte [esi]
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol ebx, cl
xor ebx, eax
test dl, dl
jne 0x578ff0
mov eax, ebx
shr eax, 0x10
xor eax, ebx
add esp, 0x10
pop ebx
pop esi
pop edi
ret