joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a4dd1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101c3080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x100a4e14
call fcn.100936b7
mov dword [eax], 0xf
call fcn.100936ca
mov dword [eax], 0xd
call fcn.1008d25d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084565
leave
ret
test eax, eax
jne 0x100a4e1b
inc eax
jmp 0x100a4e08
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x100a4e06
xor eax, eax
cmp ecx, 1
setne al
jmp 0x100a4e08
Function at 0x100b12f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.10084f50
mov eax, dword [0x101c3080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 1
push edi
push edi
push str.RANDFILE
mov dword [ebp - 8], str.RANDFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
jne 0x100b1381
push edi
push edi
push str.HOME
mov dword [ebp - 8], str.HOME
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x100b1381
push eax
push eax
push str.USERPROFILE
mov dword [ebp - 8], str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x100b1381
push eax
push eax
push str.SYSTEMROOT
mov dword [ebp - 8], str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x100b13f9
lea eax, [esi + esi]
call fcn.10085320
mov eax, esp
push esi
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jae 0x100b13e7
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 8], eax
test eax, eax
je 0x100b13e7
call fcn.10085320
mov esi, esp
push 0
push 0
push dword [ebp - 8]
push esi
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, esi
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x100b1402
test edi, edi
jne 0x100b1406
mov edi, 0x1017aae0
jmp 0x100b140b
mov edx, edi
mov edi, 0x1017aae0
jmp 0x100b140b
test edi, edi
je 0x100b1478
cmp byte [edi], 0
je 0x100b1478
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b1410
sub ecx, esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x100b144c
lea eax, [ecx + 1]
cmp eax, esi
jae 0x100b144c
push esi
push edi
push ebx
call fcn.100b82c0
add esp, 0xc
cmp eax, esi
jb 0x100b147b
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084565
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, esi
jae 0x100b147b
push esi
push edi
push ebx
call fcn.100b82c0
push esi
push 0x10169678
push ebx
call fcn.100b8260
push esi
push str..rnd
push ebx
call fcn.100b8260
add esp, 0x24
jmp 0x100b147b
mov byte [ebx], 0
xor eax, eax
cmp byte [ebx], al
cmovne eax, ebx
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084565
mov esp, ebp
pop ebp
ret
Function at 0x100b14a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.10084f50
mov eax, dword [0x101c3080]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x44], edi
test eax, eax
jne 0x100b14e5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.10084565
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100b14ce
push 0x10169b18
push eax
call fcn.100d41e0
mov ebx, eax
add esp, 8
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x100b1605
push 0x30
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.10085f10
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.1009d709
add esp, 4
push eax
call fcn.1009688e
add esp, 8
test eax, eax
js 0x100b15fc
mov eax, 8
call fcn.10084f50
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.100b10b0
add esp, 0x10
test dword [esp + 0x4e], 0x2000
je 0x100b1580
mov eax, 0x800
cmp esi, 0xffffffff
push 0
push ebx
cmove esi, eax
call fcn.10166360
add esp, 8
nop dword [eax]
mov edi, 0x400
test esi, esi
jle 0x100b158e
cmp esi, edi
cmovl edi, esi
push ebx
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.100938b6
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x100b15e2
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.10084f50
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push ebx
push eax
call fcn.100b10b0
add dword [esp + 0x54], ebx
add esp, 0x10
mov ebx, dword [esp + 0x40]
test esi, esi
jle 0x100b1580
sub esi, edi
test esi, esi
jg 0x100b1580
lea eax, [esp + 0x78]
push 0x400
push eax
call fcn.10001360
mov ebx, dword [esp + 0x48]
add esp, 8
mov edi, dword [esp + 0x44]
push ebx
call fcn.1008d47d
add esp, 4
mov ecx, dword [esp + 0x47c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10084565
mov esp, ebp
pop ebp
ret

Function at 0x100b7460
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x100b74a0
push 0xce
push str.crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.100b3a40
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x100b75f0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.10084f50
push esi
push edi
mov edi, dword [esp + 0x38]
xor esi, esi
mov eax, edi
sub eax, esi
je 0x100b7638
sub eax, 2
je 0x100b7638
sub eax, 0x15
je 0x100b7638
push 0x2a1
push str.crypto_bio_b_addr.c
push 0x83
push 0x87
push 0x20
call fcn.100b3a40
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
call fcn.100b73e0
cmp eax, 1
jne 0x100b7630
cmp dword [esp + 0x34], 1
xorps xmm0, xmm0
mov eax, dword [esp + 0x3c]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0xc], edi
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x10], eax
jne 0x100b7667
or dword [esp + 8], 1
push dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test edi, edi
je 0x100b76b5
push 0x2cc
push str.crypto_bio_b_addr.c
push 2
push 0x87
push 0x20
call fcn.100b3a40
push edi
call fcn.100b7b00
push eax
push 1
call fcn.100b3180
add esp, 0x20
pop edi
mov eax, esi
pop esi
add esp, 0x20
ret
mov esi, 1
pop edi
mov eax, esi
pop esi
add esp, 0x20
ret
Function at 0x100b78d0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x428
call fcn.10084f50
mov eax, dword [0x101c3080]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
mov ebx, dword [esp + 0x430]
push esi
mov esi, dword [esp + 0x440]
push edi
mov edi, dword [esp + 0x440]
call fcn.100b73e0
cmp eax, 1
je 0x100b7924
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.10084565
add esp, 0x428
ret
push ebp
push 0x401
lea eax, [esp + 0x34]
push 0
push eax
call fcn.10085f10
add esp, 0xc
mov byte [esp + 0x10], 0
xor edx, edx
mov dword [esp + 0x29], 0
cmp dword [esp + 0x440], edx
mov eax, 0xa
mov ebp, 0x10
mov word [esp + 0x2d], 0
cmovne edx, eax
mov byte [esp + 0x2f], 0
cmp word [ebx], 2
lea eax, [esp + 0x10]
push edx
push 0x20
push eax
push 0x401
lea eax, [esp + 0x40]
mov ecx, 0x1c
push eax
cmove ecx, ebp
xorps xmm0, xmm0
push ecx
push ebx
movups xmmword [esp + 0x2d], xmm0
movq qword [esp + 0x3d], xmm0
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov ebp, eax
test ebp, ebp
je 0x100b79f2
push 0xef
push str.crypto_bio_b_addr.c
push 2
push 0x86
push 0x20
call fcn.100b3a40
add esp, 0x14
push 0
push 0x400
push 0x101ce680
push 0x400
push ebp
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x101ce680
push 1
call fcn.100b3180
add esp, 8
xor eax, eax
jmp 0x100b7adf
cmp byte [esp + 0x10], 0
jne 0x100b7a33
movzx eax, word [ebx]
cmp eax, 2
jne 0x100b7a07
movzx eax, word [ebx + 2]
jmp 0x100b7a14
cmp eax, 0x17
jne 0x100b7a12
movzx eax, word [ebx + 2]
jmp 0x100b7a14
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x101698d0
lea eax, [esp + 0x18]
push 0x20
push eax
call fcn.100a8870
add esp, 0x10
test edi, edi
je 0x100b7a50
push 0x101
lea eax, [esp + 0x34]
push str.crypto_bio_b_addr.c
push eax
call fcn.100b7ef0
add esp, 0xc
mov dword [edi], eax
test esi, esi
je 0x100b7a6d
push 0x103
lea eax, [esp + 0x14]
push str.crypto_bio_b_addr.c
push eax
call fcn.100b7ef0
add esp, 0xc
mov dword [esi], eax
test edi, edi
je 0x100b7a76
cmp dword [edi], 0
je 0x100b7a7f
test esi, esi
je 0x100b7ada
cmp dword [esi], 0
jne 0x100b7ada
test edi, edi
je 0x100b7a9d
push 0x112
push str.crypto_bio_b_addr.c
push dword [edi]
call fcn.100a75a0
add esp, 0xc
mov dword [edi], 0
test esi, esi
je 0x100b7abb
push 0x116
push str.crypto_bio_b_addr.c
push dword [esi]
call fcn.100a75a0
add esp, 0xc
mov dword [esi], 0
push 0x119
push str.crypto_bio_b_addr.c
push 0x41
push 0x86
push 0x20
call fcn.100b3a40
add esp, 0x14
xor eax, eax
jmp 0x100b7adf
mov eax, 1
mov ecx, dword [esp + 0x434]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10084565
add esp, 0x428
ret
Function at 0x100b85e0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.10084f50
mov eax, dword [0x101c3080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x100b866d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x100b866d
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.1004bb60
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.1008cf9b
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [ebp - 0x208]
push 0
push ecx
test eax, eax
mov ecx, 0x200
cmovs eax, ecx
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x100b87b5
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b8675
sub ecx, edx
lea edi, [ecx + 1]
lea eax, [edi + edi]
call fcn.10085320
mov esi, esp
test esi, esi
jne 0x100b8699
mov esi, str.no_stack_
jmp 0x100b8723
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100b86c2
xor ecx, ecx
test edi, edi
je 0x100b86c2
mov eax, dword [ebp + 8]
movsx ax, byte [ecx + eax]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, edi
jb 0x100b86b1
xor ecx, ecx
test edi, edi
je 0x100b8723
lea ebx, [ecx + 0x53]
nop dword [eax + eax]
cmp word [esi + ecx*2], 0x25
jne case.0x100b86f2.43
lea edx, [ecx + 1]
lea edx, [esi + edx*2]
nop dword [eax]
movzx eax, word [edx]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x100b86f2.43
movzx eax, byte [eax + 0x100b87e4]
jmp dword [eax*4 + 0x100b87cc]
inc ecx
add edx, 2
jmp 0x100b86e0
mov word [esi + ecx*2 + 2], bx
jmp case.0x100b86f2.43
mov eax, 0x73
jmp 0x100b8719
mov eax, 0x43
jmp 0x100b8719
mov eax, 0x63
mov word [esi + ecx*2 + 2], ax
inc ecx
cmp ecx, edi
jb 0x100b86d0
lea eax, [ebp + 0xc]
push eax
push 0
push esi
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.1004bb60
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.1008cfdc
add esp, 0x1c
xor eax, eax
mov word [ebp - 6], ax
call fcn.100b84a0
test eax, eax
jle 0x100b879f
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x100b87b5
push 0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x100b87b5
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084565
mov esp, ebp
pop ebp
ret
Function at 0x100b8ce0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.100d41e0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.100865f0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x100b8d97
push 0x4a
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100b3a40
push 0x1018dce0
push esi
push 0x1018dce4
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.100b3180
add esp, 0x2c
call fcn.100936ca
cmp dword [eax], 2
je 0x100b8d79
call fcn.100936ca
cmp dword [eax], 6
je 0x100b8d79
push 0x53
push str.crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.100b3a40
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x51
push str.crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.100b3a40
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1018dc90
call fcn.100a7d00
mov esi, eax
add esp, 4
test esi, esi
jne 0x100b8db9
push edi
call fcn.1008d47d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.100a78d0
push edi
push ebx
push 0x6a
push esi
call fcn.100a7900
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x100cf290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ebp
push edi
sub ecx, 4
jb 0x100cf2c1
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x100cf2c8
add edx, 4
add esi, 4
sub ecx, 4
jae 0x100cf2b0
xor edi, edi
cmp ecx, 0xfffffffc
je 0x100cf303
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x100cf303
cmp ecx, 0xfffffffd
je 0x100cf303
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x100cf303
cmp ecx, 0xfffffffe
je 0x100cf303
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x100cf303
cmp ecx, 0xffffffff
je 0x100cf303
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle 0x100cf31e
push 0x157
push str.cryptox509v3_v3_addr.c
push str.assertion_failed:_memcmp_min__max__length____0
call fcn.100b8470
add esp, 0xc
mov edi, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
jle 0x100cf33d
mov esi, edi
mov edx, ebp
sub esi, ebp
nop
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x100cf33d
inc ecx
inc edx
cmp ecx, ebx
jl 0x100cf330
lea edx, [ebx - 1]
test edx, edx
js 0x100cf361
mov esi, edi
lea eax, [edx + ebp]
sub esi, ebp
nop dword [eax + eax]
cmp byte [eax + esi], 0
jne 0x100cf361
cmp byte [eax], 0xff
jne 0x100cf361
dec eax
sub edx, 1
jns 0x100cf350
cmp ecx, edx
jl case.0x100cf38d.2
jle 0x100cf373
pop edi
pop esi
pop ebp
lea eax, [ecx*8]
pop ebx
ret
mov bl, byte [ecx + ebp]
mov dh, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x100cf38d.2
movzx eax, byte [eax + 0x100cf400]
jmp dword [eax*4 + 0x100cf3e0]
mov eax, 7
jmp 0x100cf3c3
mov eax, 6
jmp 0x100cf3c3
mov eax, 5
jmp 0x100cf3c3
mov eax, 4
jmp 0x100cf3c3
mov eax, 3
jmp 0x100cf3c3
mov eax, 2
jmp 0x100cf3c3
mov eax, 1
test dl, dh
jne case.0x100cf38d.2
and bl, dl
cmp bl, dl
jne case.0x100cf38d.2
pop edi
pop esi
pop ebp
lea eax, [eax + ecx*8]
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x100da3e0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.100a78d0
add esp, 8
test esi, esi
jg 0x100da437
je 0x100da419
cmp esi, 0xffffffff
jne 0x100da437
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100da630
add esp, 4
test eax, eax
je 0x100da437
push 0xa
push edi
call fcn.100a8030
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x100df110
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, 2
je 0x100df16c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100df15d
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0
call fcn.100c9e10
add esp, 0x10
cmp dword [esp + 0x1c], 0xffffffff
je 0x100df15d
push 0x2f
push str.cryptoececx_meth.c
push 0x66
push 0x10a
push 0x10
call fcn.100b3a40
add esp, 0x14
xor eax, eax
pop edi
pop ebx
ret
test edi, edi
je 0x100df168
cmp dword [esp + 0x18], 0x20
je 0x100df16c
push 0x35
jmp 0x100df142
push esi
push 0x3a
push str.cryptoececx_meth.c
push 0x24
call fcn.100a77e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100df1a2
push 0x3c
push str.cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.100b3a40
add esp, 0x14
xor eax, eax
pop esi
pop edi
pop ebx
ret
test ebx, ebx
jne 0x100df1b9
push dword [esp + 0x1c]
push edi
push esi
call fcn.10086070
add esp, 0xc
jmp 0x100df265
push 0x43
push str.cryptoececx_meth.c
push 0x20
call fcn.100da900
add esp, 0xc
mov dword [esi + 0x20], eax
test eax, eax
jne 0x100df1fc
push 0x45
push str.cryptoececx_meth.c
push 0x41
push 0x10a
push 0x10
call fcn.100b3a40
push 0x46
push str.cryptoececx_meth.c
push esi
call fcn.100a75a0
add esp, 0x20
xor eax, eax
pop esi
pop edi
pop ebx
ret
cmp ebx, 2
jne 0x100df24b
push 0x20
push eax
call fcn.100b1130
add esp, 8
test eax, eax
jg 0x100df235
push 0x4b
push str.cryptoececx_meth.c
push dword [esi + 0x20]
call fcn.100da8f0
push 0x4c
push str.cryptoececx_meth.c
push esi
call fcn.100a75a0
add esp, 0x18
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [esi + 0x20]
and byte [eax], 0xf8
mov eax, dword [esi + 0x20]
and byte [eax + 0x1f], 0x7f
mov eax, dword [esi + 0x20]
or byte [eax + 0x1f], 0x40
jmp 0x100df259
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
push dword [esi + 0x20]
push esi
call fcn.10101440
add esp, 8
push esi
push 0x40a
push dword [esp + 0x18]
call fcn.100ac310
add esp, 0xc
mov eax, 1
pop esi
pop edi
pop ebx
ret
Function at 0x100f2a00
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x100f2aec
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x100f2a7e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], cl
jmp 0x100f2acf
shl edx, 0x10
cmp esi, 2
jne 0x100f2a8e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x100f2abb
lea ecx, [esi + 0x3c]
jmp 0x100f2ac8
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x100f2a20
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x100f2cb0
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
mov eax, 0x6c
call fcn.10084f50
mov eax, dword [0x101c3080]
xor eax, esp
mov dword [esp + 0x68], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100f2d26
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100f2d1a
mov eax, 8
call fcn.10084f50
movsd xmm0, qword [0x10199e70]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.100b10b0
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100f2d8a
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100f2d7e
mov eax, 8
call fcn.10084f50
movsd xmm0, qword [0x10199e70]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.100b10b0
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.100f2e10
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.10084f50
movsd xmm0, qword [0x1016bca8]
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.100b10b0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], eax
mov eax, 8
call fcn.10084f50
movsd xmm0, qword [0x1016bca8]
lea eax, [esp + 0xc]
movsd qword [esp], xmm0
push 4
push eax
call fcn.100b10b0
mov ecx, dword [esp + 0x78]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.10084565
add esp, 0x6c
ret