joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e460
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x1003e52c
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x1003e481
cmp al, 0x6b
jne 0x1003e52c
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x1003e4ed
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x1003e4a1
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x1003e4a1
cmp al, 0xbb
jne 0x1003e4ca
inc ecx
cmp ecx, esi
jl 0x1003e491
sub esi, ecx
test ecx, ecx
jne 0x1003e4f0
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call sym.LIBEAY32.dll_ERR_put_error
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 sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x1003e519
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call sub.MSVCR90.dll_memcpy
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 sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x100473e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
test eax, eax
jne 0x100473f6
mov dword [esp + 4], ecx
jmp fcn.1004a640
mov dword [esp + 4], ecx
jmp eax
Function at 0x1004e070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1004e07c
ret
mov dword [esp + 4], eax
jmp sym.LIBEAY32.dll_EC_GROUP_precompute_mult
Function at 0x10059590
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jge 0x100595cb
push 0x244
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
mov eax, esi
pop esi
ret

Function at 0x100598f0
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push esi
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jge 0x10059931
push 0x244
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x10059940
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
mov ecx, ebp
mov ebx, 1
call fcn.100595d0
mov edi, eax
add esp, 4
test edi, edi
jge 0x1005997f
push 0x82
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x10059a3d
call sym.LIBEAY32.dll_BIO_sock_init
cmp eax, 1
jne 0x10059a4d
test edi, edi
jle 0x10059998
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
push 0x90
push str..crypto_bio_b_sock.c
push 0x16
push 9
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100599d3
push 0x95
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x10059a23
cmp word [eax + 8], 2
je 0x100599f4
push 0x9c
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x10059a23
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx ecx, byte [edx]
mov byte [esi], cl
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dl, byte [ecx + 1]
mov byte [esi + 1], dl
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx ecx, byte [edx + 2]
mov byte [esi + 2], cl
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 3]
mov byte [esi + 3], cl
xor ebx, ebx
push 0xa5
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
test ebx, ebx
je 0x10059a54
push ebp
push 0x100d1c4c
push 2
call sym.LIBEAY32.dll_ERR_add_error_data
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x1005b410
Capabilities:
Set socket configuration

Disassembly:
mov eax, 4
call fcn.100bff40
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 0x28], 0
jg 0x1005b429
cmp dword [ecx + 0x2c], 0
jle 0x1005b479
mov edx, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x30]
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push 4
lea edx, [esp + 4]
push edx
add eax, ecx
push 0x1006
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x1c]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1005b479
push str.setsockopt
call dword [sym.imp.MSVCR90.dll_perror]
add esp, 4
pop ecx
ret

Function at 0x1005b920
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x14
call fcn.100bff40
push esi
mov esi, dword [edi + 0x20]
mov dword [esp + 8], 0
cmp dword [esi + 0x28], 0
jg 0x1005b946
cmp dword [esi + 0x2c], 0
jle 0x1005ba41
mov edx, dword [edi + 0x1c]
push ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
mov ebx, dword [sym.imp.MSVCR90.dll_perror]
test eax, eax
jge 0x1005b983
push str.getsockopt
call ebx
add esp, 4
jmp 0x1005b9ac
mov ecx, dword [esp + 8]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0x30], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esi + 0x34], ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCR90.dll__ftime32]
movzx eax, word [esp + 0x18]
mov ecx, dword [esi + 0x28]
imul eax, eax, 0x3e8
mov edx, dword [esi + 0x2c]
sub ecx, dword [esp + 0x14]
add esp, 4
sub edx, eax
jns 0x1005b9da
dec ecx
add edx, 0xf4240
test ecx, ecx
jge 0x1005b9e3
xor ecx, ecx
lea edx, [ecx + 1]
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x1005b9ef
cmp dword [esi + 0x34], eax
je 0x1005b9fa
cmp eax, ecx
jg 0x1005b9fa
jne 0x1005ba40
cmp dword [esi + 0x34], edx
jl 0x1005ba40
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [edi + 0x1c]
push 4
add eax, ecx
lea ecx, [esp + 0xc]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1005ba40
push str.setsockopt
call ebx
add esp, 4
pop ebx
pop esi
add esp, 0x14
ret

Function at 0x1005c490
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x1005c4d7
mov al, byte [edx]
test al, al
je 0x1005c4d7
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 0x1005c4a7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1005d3b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.100bff40
mov eax, dword [0x10116c70]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x48], 0
test esi, esi
jne 0x1005d3f7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.100bff70
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x54]
push eax
push esi
call dword [sym.imp.MSVCR90.dll__stat32]
add esp, 8
test eax, eax
jl 0x1005d3e0
mov eax, 8
call fcn.100bff40
fldz
fstp qword [esp]
lea ecx, [esp + 0x5c]
push 0x24
push ecx
call sym.LIBEAY32.dll_RAND_add
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x1005d3e0
push 0x100d221c
push esi
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [esp + 0x4c], eax
test eax, eax
je 0x1005d4d3
jmp 0x1005d454
mov eax, dword [esp + 0x4c]
test ebx, ebx
jle 0x1005d462
cmp ebx, 0x400
mov esi, ebx
jl 0x1005d467
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
add esp, 0x10
mov dword [esp + 0x50], edi
test edi, edi
jle 0x1005d4b6
fild dword [esp + 0x50]
mov eax, 8
call fcn.100bff40
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call sym.LIBEAY32.dll_RAND_add
add dword [esp + 0x58], edi
add esp, 0x10
test ebx, ebx
jle 0x1005d450
sub ebx, esi
test ebx, ebx
jg 0x1005d450
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
lea edx, [esp + 0x7c]
push 0x400
push edx
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100bff70
mov esp, ebp
pop ebp
ret
Function at 0x1005d4f0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x430
call fcn.100bff40
mov eax, dword [0x10116c70]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push esi
mov esi, dword [esp + 0x43c]
push edi
lea eax, [esp + 0x14]
push eax
xor edi, edi
push esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCR90.dll__stat32]
push 0x180
push 0x8101
push esi
call dword [sym.imp.MSVCR90.dll__open]
add esp, 0x14
cmp eax, 0xffffffff
je 0x1005d556
push 0x100d2220
push eax
call dword [sym.imp.MSVCR90.dll__fdopen]
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x1005d56f
push 0x100d2220
push esi
call dword [sym.imp.MSVCR90.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x1005d61f
push ebp
push 0x180
push esi
call dword [sym.imp.MSVCR90.dll__chmod]
mov ebp, dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 8
mov edi, 0x400
lea ebx, [ebx]
cmp edi, 0x400
mov esi, 0x400
jg 0x1005d59f
mov esi, edi
lea ecx, [esp + 0x3c]
push esi
push ecx
sub edi, 0x400
call sym.LIBEAY32.dll_RAND_bytes
add esp, 8
test eax, eax
jg 0x1005d5bf
mov dword [esp + 0x14], 1
push ebx
push esi
lea edx, [esp + 0x44]
push 1
push edx
call ebp
add esp, 0x10
test eax, eax
jle 0x1005d5db
add dword [esp + 0x10], eax
test edi, edi
jg 0x1005d590
jmp 0x1005d5e3
mov dword [esp + 0x10], 0
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
lea eax, [esp + 0x40]
push 0x400
push eax
call sym.LIBEAY32.dll_OPENSSL_cleanse
add esp, 0xc
cmp dword [esp + 0x14], 0
pop ebp
je 0x1005d61f
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.100bff70
add esp, 0x430
ret
mov ecx, dword [esp + 0x438]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100bff70
add esp, 0x430
ret

Function at 0x1005d640
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
xor esi, esi
call sym.LIBEAY32.dll_i2d_X509_PKEY
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.MSVCR90.dll_getenv]
test eax, eax
jne 0x1005d697
push str.RANDFILE
call ebx
mov esi, eax
add esp, 4
test esi, esi
je 0x1005d697
cmp byte [esi], 0
je 0x1005d697
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005d670
sub eax, edx
inc eax
cmp eax, edi
jae 0x1005d697
push edi
push esi
mov esi, dword [esp + 0x18]
push esi
call sym.LIBEAY32.dll_BUF_strlcpy
add esp, 0xc
cmp eax, edi
jb 0x1005d705
pop edi
pop esi
xor eax, eax
pop ebx
ret
call sym.LIBEAY32.dll_i2d_X509_PKEY
test eax, eax
jne 0x1005d6ac
push str.HOME
call ebx
add esp, 4
mov esi, eax
test esi, esi
jne 0x1005d6b7
mov esi, 0x100d222c
jmp 0x1005d6bc
cmp byte [esi], 0
je 0x1005d6fe
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005d6c1
sub eax, edx
add eax, 6
cmp eax, edi
jae 0x1005d6fe
push edi
push esi
mov esi, dword [esp + 0x18]
push esi
call sym.LIBEAY32.dll_BUF_strlcpy
push edi
push 0x100cb600
push esi
call sym.LIBEAY32.dll_BUF_strlcat
push edi
push str..rnd
push esi
call sym.LIBEAY32.dll_BUF_strlcat
add esp, 0x24
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov esi, dword [esp + 0x10]
mov byte [esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x1005db20
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x74
call fcn.100bff40
mov eax, dword [0x10116c70]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1005db58
call sym.LIBEAY32.dll_OPENSSL_isservice
test eax, eax
jg 0x1005dca1
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
mov ebx, eax
push edi
mov dword [esp + 0x48], ebx
call esi
push 0xa
push edi
mov dword [esp + 0x4c], eax
call esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
push 0x10
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x50], esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x50]
push ecx
push 0x18
push esi
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
movzx esi, word [esp + 0x60]
imul esi, dword [esp + 0x58]
imul esi, dword [esp + 0x5c]
push 0x2cd
push str..crypto_rand_rand_win.c
push esi
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1005dc82
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
xor ebx, ebx
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x1005dc75
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push 0xcc0020
push ebx
push 0
push edi
push 0x10
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
push ecx
push esi
push edx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push 0
call sym.LIBEAY32.dll_EVP_sha1
mov ecx, dword [esp + 0x40]
push eax
push 0
lea eax, [esp + 0x74]
push eax
push esi
push ecx
call sym.LIBEAY32.dll_EVP_Digest
add esp, 0x18
mov eax, 8
call fcn.100bff40
fldz
fstp qword [esp]
lea edx, [esp + 0x70]
push 0x14
push edx
call sym.LIBEAY32.dll_RAND_add
add ebx, 0x10
add esp, 0x10
cmp ebx, dword [esp + 0x38]
jl 0x1005dbfd
mov eax, dword [esp + 0x3c]
push eax
call sym.LIBEAY32.dll_CRYPTO_free
mov ebx, dword [esp + 0x44]
add esp, 4
mov eax, dword [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100bff70
mov esp, ebp
pop ebp
ret
Function at 0x1005e5a0
Capabilities:
Capture screenshot

Disassembly:
call sym.LIBEAY32.dll_RAND_poll
jmp fcn.1005db20

Function at 0x10062010
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 0x100620f3
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x1006208e
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 0x100620e0
shl edx, 0x10
cmp edi, 2
jne 0x1006209f
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 0x100620cd
lea edx, [edi + 0x3c]
jmp 0x100620da
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 0x10062030
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x100a43b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0xc
call fcn.100bff40
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x100a43ca
xor eax, eax
pop edi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x100a446f
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x100a443b
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
call sym.LIBEAY32.dll_lh_retrieve
add esp, 8
test eax, eax
jne 0x100a445c
mov ecx, 0x100efaf8
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100a4424
test dl, dl
je 0x100a4420
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100a4424
add eax, 2
add ecx, 2
test dl, dl
jne 0x100a4404
xor eax, eax
jmp 0x100a4429
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100a443b
push edi
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
jne 0x100a445f
mov eax, dword [ebx + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], str.default
mov dword [esp + 0x18], edi
call sym.LIBEAY32.dll_lh_retrieve
add esp, 8
test eax, eax
je 0x100a4466
mov eax, dword [eax + 8]
pop esi
pop ebx
pop edi
add esp, 0xc
ret
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0xc
ret
push edi
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
pop ebx
pop edi
add esp, 0xc
ret

Function at 0x100a56f0
Capabilities:
Query environment variable

Disassembly:
push str.OPENSSL_CONF
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x100a570c
push eax
call sym.LIBEAY32.dll_BUF_strdup
add esp, 4
ret
call sym.LIBEAY32.dll_X509_get_default_cert_area
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a5714
push esi
push edi
sub eax, edx
push 0x231
lea edi, [eax + 0xd]
push str..cryptoconfconf_mod.c
push edi
call sym.LIBEAY32.dll_CRYPTO_malloc
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100a573e
pop edi
pop esi
ret
push edi
call sym.LIBEAY32.dll_X509_get_default_cert_area
push eax
push esi
call sym.LIBEAY32.dll_BUF_strlcpy
push edi
push 0x100cb600
push esi
call sym.LIBEAY32.dll_BUF_strlcat
push edi
push str.openssl.cnf
push esi
call sym.LIBEAY32.dll_BUF_strlcat
add esp, 0x24
pop edi
mov eax, esi
pop esi
ret

Function at 0x100a5ce0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x10118d28], 0
jne 0x100a5d50
call sym.LIBEAY32.dll_OPENSSL_load_builtin_modules
call sym.LIBEAY32.dll_ENGINE_load_builtin_engines
call sym.LIBEAY32.dll_ERR_clear_error
mov eax, dword [esp + 4]
push 0x30
push eax
push 0
call sym.LIBEAY32.dll_CONF_modules_load_file
add esp, 0xc
test eax, eax
jg 0x100a5d50
push esi
call sym.LIBEAY32.dll_ERR_load_crypto_strings
push 0
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call sym.LIBEAY32.dll_BIO_new_fp
mov esi, eax
add esp, 8
test esi, esi
je 0x100a5d47
push str.Auto_configuration_failed_n
push esi
call sym.LIBEAY32.dll_BIO_printf
push esi
call sym.LIBEAY32.dll_ERR_print_errors
push esi
call sym.LIBEAY32.dll_BIO_free
add esp, 0x10
push 1
call dword [sym.imp.MSVCR90.dll_exit]
pop esi
ret
Function at 0x100adc20
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x100adc45
push 0x165
push str..cryptoengineeng_list.c
push 0x43
push 0x6a
push 0x26
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop ebx
ret
push esi
push 0x168
push str..cryptoengineeng_list.c
push 0x1e
push 9
call sym.LIBEAY32.dll_CRYPTO_lock
mov eax, dword [0x10118d34]
add esp, 0x10
mov esi, eax
test eax, eax
je 0x100adcc7
mov ecx, dword [esi]
mov eax, ebx
jmp 0x100adc70
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100adc90
test dl, dl
je 0x100adc8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100adc90
add eax, 2
add ecx, 2
test dl, dl
jne 0x100adc70
xor eax, eax
jmp 0x100adc95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100adca2
mov esi, dword [esi + 0x6c]
test esi, esi
jne 0x100adc67
jmp 0x100adcc7
test byte [esi + 0x54], 4
je 0x100adcc4
call sym.LIBEAY32.dll_ENGINE_new
mov ecx, eax
test ecx, ecx
jne 0x100adcb7
xor esi, esi
jmp 0x100adcc7
push esi
call fcn.100adba0
add esp, 4
mov esi, ecx
jmp 0x100adcc7
inc dword [esi + 0x58]
push 0x182
push str..cryptoengineeng_list.c
push 0x1e
push 0xa
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
test esi, esi
je 0x100adce6
mov eax, esi
pop esi
pop ebx
ret
mov ecx, str.dynamic
mov eax, ebx
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100add10
test dl, dl
je 0x100add0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100add10
add eax, 2
add ecx, 2
test dl, dl
jne 0x100adcf0
xor eax, eax
jmp 0x100add15
sbb eax, eax
sbb eax, 0xffffffff
push edi
test eax, eax
je 0x100addc2
push str.OPENSSL_ENGINES
call dword [sym.imp.MSVCR90.dll_getenv]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100add37
mov edi, str._usr_local_ssl_lib_engines
push str.dynamic
call sym.LIBEAY32.dll_ENGINE_by_id
mov esi, eax
add esp, 4
test esi, esi
je 0x100addc2
push 0
push ebx
push 0x100f1bd0
push esi
call sym.LIBEAY32.dll_ENGINE_ctrl_cmd_string
add esp, 0x10
test eax, eax
je 0x100addc2
push 0
push 0x100c28bc
push str.DIR_LOAD
push esi
call sym.LIBEAY32.dll_ENGINE_ctrl_cmd_string
add esp, 0x10
test eax, eax
je 0x100addc2
push 0
push edi
push str.DIR_ADD
push esi
call sym.LIBEAY32.dll_ENGINE_ctrl_cmd_string
add esp, 0x10
test eax, eax
je 0x100addc2
push 0
push 0x100f1bb8
push str.LIST_ADD
push esi
call sym.LIBEAY32.dll_ENGINE_ctrl_cmd_string
add esp, 0x10
test eax, eax
je 0x100addc2
push 0
push 0
push str.LOAD
push esi
call sym.LIBEAY32.dll_ENGINE_ctrl_cmd_string
add esp, 0x10
test eax, eax
je 0x100addc2
pop edi
mov eax, esi
pop esi
pop ebx
ret
push esi
call sym.LIBEAY32.dll_ENGINE_free
push 0x1a2
push str..cryptoengineeng_list.c
push 0x74
push 0x6a
push 0x26
call sym.LIBEAY32.dll_ERR_put_error
push ebx
push 0x100f1ba0
push 2
call sym.LIBEAY32.dll_ERR_add_error_data
add esp, 0x24
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100bff70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10116c70]
jne 0x100bff7a
repz ret
jmp fcn.100c063f
Function at 0x10001880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054d7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10034bcc
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x1000190b
push eax
push esi
call fcn.10036110
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x100bb5dc
call fcn.10034d74
int3