joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10078070
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x10078082
jmp dword [edx*4 + 0x100780d8]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10077bc0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10077970
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10078280
push str.TFTP_finished
push 0x10147988
push eax
call fcn.1005b510
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x1014862c
push eax
call fcn.1005b460
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x1007ba20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007b9a0
Function at 0x1007e1d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007e1f0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x1014fed4
push esi
mov dword [ebp - 8], ebx
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbspbrk
add esp, 8
test eax, eax
je 0x1007e23c
test ebx, ebx
je 0x1007e22c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1007e265
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007e265
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x1007e310
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007e281
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1007e306
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1007e306
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007e2b2
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007e2d0
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1007e2e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x1007e2fd
push 8
push 0
push ebx
call eax
jmp 0x1007e304
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1019b004]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1007efc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x1007efec
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1007efdd
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x1007f020
cmp dword [esi + 8], 0
jne 0x1007f010
push 0x10147c08
push dword [eax + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x1007f010
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1007f042
mov eax, dword [esi + 8]
test eax, eax
je 0x1007f03c
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10082460
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x10082493
push 0x2e
push edi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x10082491
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x10084870
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1008489d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x100848e4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x100848ea
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1008494b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x10084910
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x10084977
mov eax, dword [esi + 4]
push 1
push 0x101508be
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x101508bf
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x10084950
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100902d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.100857c0
mov eax, dword [0x1019b080]
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 0x10090361
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 0x10090361
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 0x10090361
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 0x100903d9
lea eax, [esi + esi]
call fcn.10144d20
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 0x100903c7
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 0x100903c7
call fcn.10144d20
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 0x100903e2
test edi, edi
jne 0x100903e6
mov edi, 0x10151e00
jmp 0x100903eb
mov edx, edi
mov edi, 0x10151e00
jmp 0x100903eb
test edi, edi
je 0x10090458
cmp byte [edi], 0
je 0x10090458
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100903f0
sub ecx, esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x1009042c
lea eax, [ecx + 1]
cmp eax, esi
jae 0x1009042c
push esi
push edi
push ebx
call fcn.100972c0
add esp, 0xc
cmp eax, esi
jb 0x1009045b
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084980
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, esi
jae 0x1009045b
push esi
push edi
push ebx
call fcn.100972c0
push esi
push 0x10147768
push ebx
call fcn.10097260
push esi
push str..rnd
push ebx
call fcn.10097260
add esp, 0x24
jmp 0x1009045b
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.10084980
mov esp, ebp
pop ebp
ret
Function at 0x10090480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.100857c0
mov eax, dword [0x1019b080]
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 0x100904c5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.10084980
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100904ae
push 0x10147c08
push eax
call fcn.100b31e0
mov ebx, eax
add esp, 8
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x100905e5
push 0x30
lea eax, [esp + 0x4c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
add esp, 4
push eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32
add esp, 8
test eax, eax
js 0x100905dc
mov eax, 8
call fcn.100857c0
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.10090090
add esp, 0x10
test dword [esp + 0x4e], 0x2000
je 0x10090560
mov eax, 0x800
cmp esi, 0xffffffff
push 0
push ebx
cmove esi, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_setbuf
add esp, 8
nop dword [eax]
mov edi, 0x400
test esi, esi
jle 0x1009056e
cmp esi, edi
cmovl edi, esi
push ebx
push edi
lea eax, [esp + 0x80]
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x100905c2
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.100857c0
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push ebx
push eax
call fcn.10090090
add dword [esp + 0x54], ebx
add esp, 0x10
mov ebx, dword [esp + 0x40]
test esi, esi
jle 0x10090560
sub esi, edi
test esi, esi
jg 0x10090560
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 sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov ecx, dword [esp + 0x47c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10084980
mov esp, ebp
pop ebp
ret

Function at 0x10090600
Capabilities:
Query environment variable

Disassembly:
push str.OPENSSL_CONF
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x10090625
push 0x1e3
push str.cryptoconfconf_mod.c
push eax
call fcn.10096ee0
add esp, 0xc
ret
call fcn.100a6f00
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10090630
push esi
push edi
sub eax, edx
push 0x1eb
push str.cryptoconfconf_mod.c
lea edi, [eax + 0xd]
push edi
call fcn.10086550
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1009065a
pop edi
pop esi
ret
push edi
call fcn.100a6f00
push eax
push esi
call fcn.100972c0
push edi
push 0x10147768
push esi
call fcn.10097260
push edi
push str.openssl.cnf
push esi
call fcn.10097260
add esp, 0x24
mov eax, esi
pop edi
pop esi
ret
Function at 0x10096450
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 0x10096490
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.10092a20
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x100965e0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.100857c0
push esi
push edi
mov edi, dword [esp + 0x38]
xor esi, esi
mov eax, edi
sub eax, esi
je 0x10096628
sub eax, 2
je 0x10096628
sub eax, 0x15
je 0x10096628
push 0x2a1
push str.crypto_bio_b_addr.c
push 0x83
push 0x87
push 0x20
call fcn.10092a20
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
call fcn.100963d0
cmp eax, 1
jne 0x10096620
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 0x10096657
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 0x100966a5
push 0x2cc
push str.crypto_bio_b_addr.c
push 2
push 0x87
push 0x20
call fcn.10092a20
push edi
call fcn.10096af0
push eax
push 1
call fcn.10092160
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 0x100968c0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x428
call fcn.100857c0
mov eax, dword [0x1019b080]
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.100963d0
cmp eax, 1
je 0x10096914
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.10084980
add esp, 0x428
ret
push ebp
push 0x401
lea eax, [esp + 0x34]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x100969e2
push 0xef
push str.crypto_bio_b_addr.c
push 2
push 0x86
push 0x20
call fcn.10092a20
add esp, 0x14
push 0
push 0x400
push 0x101a52e0
push 0x400
push ebp
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x101a52e0
push 1
call fcn.10092160
add esp, 8
xor eax, eax
jmp 0x10096acf
cmp byte [esp + 0x10], 0
jne 0x10096a23
movzx eax, word [ebx]
cmp eax, 2
jne 0x100969f7
movzx eax, word [ebx + 2]
jmp 0x10096a04
cmp eax, 0x17
jne 0x10096a02
movzx eax, word [ebx + 2]
jmp 0x10096a04
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x101479c0
lea eax, [esp + 0x18]
push 0x20
push eax
call fcn.10087850
add esp, 0x10
test edi, edi
je 0x10096a40
push 0x101
lea eax, [esp + 0x34]
push str.crypto_bio_b_addr.c
push eax
call fcn.10096ee0
add esp, 0xc
mov dword [edi], eax
test esi, esi
je 0x10096a5d
push 0x103
lea eax, [esp + 0x14]
push str.crypto_bio_b_addr.c
push eax
call fcn.10096ee0
add esp, 0xc
mov dword [esi], eax
test edi, edi
je 0x10096a66
cmp dword [edi], 0
je 0x10096a6f
test esi, esi
je 0x10096aca
cmp dword [esi], 0
jne 0x10096aca
test edi, edi
je 0x10096a8d
push 0x112
push str.crypto_bio_b_addr.c
push dword [edi]
call fcn.10086580
add esp, 0xc
mov dword [edi], 0
test esi, esi
je 0x10096aab
push 0x116
push str.crypto_bio_b_addr.c
push dword [esi]
call fcn.10086580
add esp, 0xc
mov dword [esi], 0
push 0x119
push str.crypto_bio_b_addr.c
push 0x41
push 0x86
push 0x20
call fcn.10092a20
add esp, 0x14
xor eax, eax
jmp 0x10096acf
mov eax, 1
mov ecx, dword [esp + 0x434]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10084980
add esp, 0x428
ret
Function at 0x10097340
Capabilities:
Query environment variable

Disassembly:
mov eax, 8
call fcn.100857c0
cmp dword [0x101a48e0], 0
jne 0x10097466
push ebx
push edi
push str.OPENSSL_ia32cap
mov dword [0x101a48e0], 1
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov edi, eax
add esp, 4
test edi, edi
je 0x10097438
xor ebx, ebx
lea eax, [esp + 8]
cmp byte [edi], 0x7e
push esi
sete bl
push eax
push str._I64i
lea esi, [ebx + edi]
push esi
call fcn.10051150
add esp, 0xc
test eax, eax
jne 0x100973b4
push eax
push eax
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
add esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x100973d7
push 0x101a5af0
call section..text
mov esi, dword [esp + 0x10]
add esp, 4
mov ecx, dword [esp + 0x10]
not esi
not ecx
and eax, esi
and edx, ecx
jmp 0x100973e9
cmp byte [edi], 0x3a
jne 0x100973f1
push 0x101a5af0
call section..text
add esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
push 0x3a
push edi
mov dword [0x101a5af8], 0
call sub.VCRUNTIME140.dll_strchr
add esp, 8
pop esi
test eax, eax
je 0x1009744d
inc eax
xor ebx, ebx
push 0
push 0
cmp byte [eax], 0x7e
sete bl
add eax, ebx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
add esp, 0xc
test ebx, ebx
je 0x10097431
not eax
and dword [0x101a5af8], eax
jmp 0x1009744d
mov dword [0x101a5af8], eax
jmp 0x1009744d
push 0x101a5af0
call section..text
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 8]
or eax, 0x400
mov dword [0x101a5af0], eax
mov eax, dword [esp + 0xc]
pop edi
mov dword [0x101a5af4], eax
pop ebx
add esp, 8
ret
Function at 0x100975e0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.100857c0
mov eax, dword [0x1019b080]
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 0x1009766d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1009766d
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.1004bcd0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf
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 0x100977b5
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10097675
sub ecx, edx
lea edi, [ecx + 1]
lea eax, [edi + edi]
call fcn.10144d20
mov esi, esp
test esi, esi
jne 0x10097699
mov esi, str.no_stack_
jmp 0x10097723
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100976c2
xor ecx, ecx
test edi, edi
je 0x100976c2
mov eax, dword [ebp + 8]
movsx ax, byte [ecx + eax]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, edi
jb 0x100976b1
xor ecx, ecx
test edi, edi
je 0x10097723
lea ebx, [ecx + 0x53]
nop dword [eax + eax]
cmp word [esi + ecx*2], 0x25
jne case.0x100976f2.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.0x100976f2.43
movzx eax, byte [eax + 0x100977e4]
jmp dword [eax*4 + 0x100977cc]
inc ecx
add edx, 2
jmp 0x100976e0
mov word [esi + ecx*2 + 2], bx
jmp case.0x100976f2.43
mov eax, 0x73
jmp 0x10097719
mov eax, 0x43
jmp 0x10097719
mov eax, 0x63
mov word [esi + ecx*2 + 2], ax
inc ecx
cmp ecx, edi
jb 0x100976d0
lea eax, [ebp + 0xc]
push eax
push 0
push esi
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.1004bcd0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf
add esp, 0x1c
xor eax, eax
mov word [ebp - 6], ax
call fcn.100974a0
test eax, eax
jle 0x1009779f
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x100977b5
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 0x100977b5
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.10084980
mov esp, ebp
pop ebp
ret
Function at 0x10097ce0
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.100b31e0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x10097d97
push 0x4a
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10092a20
push 0x10165000
push esi
push 0x10165004
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.10092160
add esp, 0x2c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x10097d79
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x10097d79
push 0x53
push str.crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10092a20
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.10092a20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10164fb0
call fcn.10086ce0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10097db9
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.100868b0
push edi
push ebx
push 0x6a
push esi
call fcn.100868e0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x100ae290
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 0x100ae2c1
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x100ae2c8
add edx, 4
add esi, 4
sub ecx, 4
jae 0x100ae2b0
xor edi, edi
cmp ecx, 0xfffffffc
je 0x100ae303
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x100ae303
cmp ecx, 0xfffffffd
je 0x100ae303
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x100ae303
cmp ecx, 0xfffffffe
je 0x100ae303
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x100ae303
cmp ecx, 0xffffffff
je 0x100ae303
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle 0x100ae31e
push 0x157
push str.cryptox509v3_v3_addr.c
push str.assertion_failed:_memcmp_min__max__length____0
call fcn.10097470
add esp, 0xc
mov edi, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
jle 0x100ae33d
mov esi, edi
mov edx, ebp
sub esi, ebp
nop
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x100ae33d
inc ecx
inc edx
cmp ecx, ebx
jl 0x100ae330
lea edx, [ebx - 1]
test edx, edx
js 0x100ae361
mov esi, edi
lea eax, [edx + ebp]
sub esi, ebp
nop dword [eax + eax]
cmp byte [eax + esi], 0
jne 0x100ae361
cmp byte [eax], 0xff
jne 0x100ae361
dec eax
sub edx, 1
jns 0x100ae350
cmp ecx, edx
jl case.0x100ae38d.2
jle 0x100ae373
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.0x100ae38d.2
movzx eax, byte [eax + 0x100ae400]
jmp dword [eax*4 + 0x100ae3e0]
mov eax, 7
jmp 0x100ae3c3
mov eax, 6
jmp 0x100ae3c3
mov eax, 5
jmp 0x100ae3c3
mov eax, 4
jmp 0x100ae3c3
mov eax, 3
jmp 0x100ae3c3
mov eax, 2
jmp 0x100ae3c3
mov eax, 1
test dl, dh
jne case.0x100ae38d.2
and bl, dl
cmp bl, dl
jne case.0x100ae38d.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