joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100049ab
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], 0x26
mov byte [ebp - 0x2c], 0x5e
mov byte [ebp - 0x2b], 0x2e
mov byte [ebp - 0x2a], 0x2e
mov byte [ebp - 0x29], 0x3e
mov byte [ebp - 0x28], 0x17
mov byte [ebp - 0x27], 0x43
mov byte [ebp - 0x26], 0x43
mov byte [ebp - 0x25], 0x23
mov byte [ebp - 0x24], 0x23
mov byte [ebp - 0x23], 0x47
mov byte [ebp - 0x22], 0x1b
mov byte [ebp - 0x21], 0x3b
mov byte [ebp - 0x20], 0x47
mov byte [ebp - 0x1f], 0x23
mov byte [ebp - 0x1e], 0x1f
mov byte [ebp - 0x1d], 0x47
mov byte [ebp - 0x1c], 0x2f
mov byte [ebp - 0x1b], 0x3f
mov byte [ebp - 0x1a], 0x43
mov byte [ebp - 0x19], 0x5e
mov byte [ebp - 0x18], 0x7a
mov byte [ebp - 0x17], 0x32
mov byte [ebp - 0x16], 0x5e
mov byte [ebp - 0x15], 0x47
mov byte [ebp - 0x14], 0x3e
mov byte [ebp - 0x13], 0x5e
mov byte [ebp - 0x12], 0x3e
mov byte [ebp - 0x11], 3
mov byte [ebp - 0x10], 0x5a
mov byte [ebp - 0xf], 0xb
mov byte [ebp - 0xe], 0x6b
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x67
mov byte [ebp - 0xb], 0x66
mov byte [ebp - 0xa], 0xb
mov byte [ebp - 9], 0x6b
mov byte [ebp - 8], 0x6e
mov byte [ebp - 7], 0xff
lea ecx, [ebp - 0x2c]
call fcn.10004cfd
push 9
pop ecx
lea esi, [ebp - 0x2c]
mov edi, 0x10010b5c
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, 0x10010b5c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb3f
leave
ret
Function at 0x10004a89
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], 0x4b
mov byte [ebp - 0x50], 0x77
mov byte [ebp - 0x4f], 0xd3
mov byte [ebp - 0x4e], 0x72
mov byte [ebp - 0x4d], 0x31
mov byte [ebp - 0x4c], 0xd2
mov byte [ebp - 0x4b], 0x92
mov byte [ebp - 0x4a], 0x1a
mov byte [ebp - 0x49], 0xb9
mov byte [ebp - 0x48], 0x3a
mov byte [ebp - 0x47], 0xd9
mov byte [ebp - 0x46], 0x3a
mov byte [ebp - 0x45], 0xf9
mov byte [ebp - 0x44], 0xfb
mov byte [ebp - 0x43], 0xfa
mov byte [ebp - 0x42], 0x76
mov byte [ebp - 0x41], 0xd2
mov byte [ebp - 0x40], 0x32
mov byte [ebp - 0x3f], 0x51
mov byte [ebp - 0x3e], pe_nt_image_headers32
mov byte [ebp - 0x3d], 0x98
mov byte [ebp - 0x3c], 0xfb
mov byte [ebp - 0x3b], 0x55
mov byte [ebp - 0x3a], 0x98
mov byte [ebp - 0x39], 0xfb
mov byte [ebp - 0x38], 0xd7
mov byte [ebp - 0x37], 0x32
mov byte [ebp - 0x36], 0x73
mov byte [ebp - 0x35], 0xb1
mov byte [ebp - 0x34], 0x12
mov byte [ebp - 0x33], 0xd2
mov byte [ebp - 0x32], 0x73
mov byte [ebp - 0x31], 0xfb
mov byte [ebp - 0x30], 0x59
mov byte [ebp - 0x2f], 0x3a
mov byte [ebp - 0x2e], 0xd9
mov byte [ebp - 0x2d], 0x3a
mov byte [ebp - 0x2c], 0xd9
mov byte [ebp - 0x2b], 0x98
mov byte [ebp - 0x2a], 0xfb
mov byte [ebp - 0x29], 0xd7
mov byte [ebp - 0x28], 0x16
mov byte [ebp - 0x27], 0x95
mov byte [ebp - 0x26], 0xf5
mov byte [ebp - 0x25], 0xfb
mov byte [ebp - 0x24], 0x12
mov byte [ebp - 0x23], 0x32
mov byte [ebp - 0x22], 0xfb
mov byte [ebp - 0x21], 0x95
mov byte [ebp - 0x20], 0x95
mov byte [ebp - 0x1f], 0x39
mov byte [ebp - 0x1e], 0xb7
mov byte [ebp - 0x1d], 0x59
mov byte [ebp - 0x1c], 0x57
mov byte [ebp - 0x1b], 0xd7
mov byte [ebp - 0x1a], 0x14
mov byte [ebp - 0x19], 0xd7
mov byte [ebp - 0x18], 0x95
mov byte [ebp - 0x17], 0xf9
mov byte [ebp - 0x16], 0x39
mov byte [ebp - 0x15], 0xb9
mov byte [ebp - 0x14], 0xfb
mov byte [ebp - 0x13], 0xb7
mov byte [ebp - 0x12], 0x51
mov byte [ebp - 0x11], 0xd2
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0x73
mov byte [ebp - 0xe], 0x1a
mov byte [ebp - 0xd], 0x76
mov byte [ebp - 0xc], 0x56
mov byte [ebp - 0xb], 0xd4
mov byte [ebp - 0xa], 0x79
mov byte [ebp - 9], 0x19
mov byte [ebp - 8], 0x35
mov byte [ebp - 7], 0xda
mov byte [ebp - 6], 0xff
lea ecx, [ebp - 0x50]
call fcn.10004d13
push 0x12
pop ecx
lea esi, [ebp - 0x50]
mov edi, 0x10010af8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, 0x10010af8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bb3f
leave
ret

Function at 0x10004d5c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov edx, dword [ecx]
je 0x10004d8d
push esi
push edi
mov edi, dword [ebp + 8]
not edx
xor esi, esi
movzx eax, byte [esi + edi]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x1000d7e0]
inc esi
cmp esi, dword [ebp + 0xc]
jne 0x10004d70
pop edi
not edx
pop esi
mov dword [ecx], edx
pop ebp
ret 8
Function at 0x10004d9c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100107ce], 0
push esi
push edi
jne 0x10004e5f
push ebx
push 0x69
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebx, eax
mov esi, str.Initialize_class_first
push 5
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004dd9
push 0x11
pop ecx
mov esi, 0x1000dc38
lea eax, [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
push 0xa
push eax
push 0x16
movsw word es:[edi], word [esi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004e01
mov ax, word [0x1000dc80]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004e17
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004e23
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004e3c
mov ax, word [0x1000dc84]
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop ebx
jmp 0x10004e8f
mov ecx, dword [0x10010804]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010804]
lea edi, [eax + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010804]
lea esi, [eax + 0x30]
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [esi]
add edx, dword [edi]
mov ecx, dword [eax + 0x44]
call edx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000bb3f
leave
ret
Function at 0x10004e9d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100107ce], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x10004f61
push 0x69
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebx, eax
mov esi, str.Initialize_class_first
push 5
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004edc
push 0x11
pop ecx
mov esi, 0x1000dc38
lea eax, [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
push 0xa
push eax
push 0x1b
movsw word es:[edi], word [esi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004f04
mov ax, word [0x1000dc80]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004f1a
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004f26
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004f3f
mov ax, word [0x1000dc84]
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x10004f91
mov ecx, dword [0x10010804]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010804]
mov edi, dword [eax + 0x4c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010804]
lea esi, [eax + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [esi]
mov ecx, edi
push ebx
add edx, dword [eax]
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bb3f
leave
ret
Function at 0x10004fa0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100107ce], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov ebx, ecx
jne 0x10005067
push 0x69
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebx, eax
mov esi, str.Initialize_class_first
push 5
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004fe2
push 0x11
pop ecx
mov esi, 0x1000dc38
lea eax, [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
push 0xa
push eax
push 0x21
movsw word es:[edi], word [esi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000500a
mov ax, word [0x1000dc80]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10005020
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000502c
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005045
mov ax, word [0x1000dc84]
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x100050a3
mov ecx, dword [0x10010804]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010804]
lea edi, [eax + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010804]
push 0
push 0
push 0xa
push 1
push dword [ebp - 0x14]
lea esi, [eax + 0x24]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
mov edx, dword [esi]
add edx, dword [edi]
mov ecx, dword [eax + 0x50]
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bb3f
leave
ret
Function at 0x10005107
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100107ce], 0
push ebx
push esi
push edi
mov bl, cl
jne 0x100051ce
push 0x69
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebx, eax
mov esi, str.Initialize_class_first
push 5
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005146
push 0x11
pop ecx
mov esi, 0x1000dc38
lea eax, [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
push 0xa
push eax
push 0x3e
movsw word es:[edi], word [esi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000516e
mov ax, word [0x1000dc80]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10005184
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005190
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100051a9
mov ax, word [0x1000dc84]
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x1000525a
mov ecx, dword [0x10010804]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010804]
lea esi, [eax + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [eax + 0x18]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi]
add eax, dword [ecx]
push 0x40
push 4
push eax
call edi
mov ecx, dword [0x10010804]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010804]
lea esi, [eax + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi]
mov eax, dword [eax + 0x18]
test bl, bl
je 0x1000522a
mov dword [ecx + eax], 1
jmp 0x1000522e
and dword [ecx + eax], 0
mov ecx, dword [0x10010804]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010804]
lea esi, [eax + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [eax + 0x18]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
mov eax, dword [esi]
add eax, dword [ecx]
push 4
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bb3f
leave
ret
Function at 0x10005269
Capabilities:
Print debug messages

Disassembly:
push 0x128
mov eax, 0x1000ce52
call fcn.1000cd3f
mov esi, edx
mov edi, ecx
cmp byte [0x100107ce], 0
jne 0x10005327
push 0x69
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebx, eax
mov esi, str.Initialize_class_first
push 5
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100052a6
push 0x11
pop ecx
mov esi, 0x1000dc38
lea eax, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
push 0xa
push eax
push 0x4d
movsw word es:[edi], word [esi]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100052ce
mov ax, word [0x1000dc80]
lea edx, [ebp - 0x1c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100052e4
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100052f0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005309
mov ax, word [0x1000dc84]
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
jmp 0x100053d1
push 0x114
xor ebx, ebx
lea eax, [ebp - 0x134]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x123]
mov dword [ebp - 0x134], ebx
add esp, 0xc
mov dword [ebp - 0x130], 0x800
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 1
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x134]
push edi
mov dword [ebp - 0x20], 0x3e
call fcn.1000742a
push esi
lea ecx, [ebp - 0x134]
call fcn.1000745f
push dword [ebp + 8]
lea ecx, [ebp - 0x134]
call fcn.1000742a
push ebx
lea ecx, [ebp - 0x134]
call fcn.1000745f
sub esp, 0x10
lea edx, [ebp - 0x134]
lea ecx, [ebp - 0x20]
call fcn.10004fa0
add esp, 0x10
cmp byte [ebp - 0x124], bl
je 0x100053d8
cmp dword [ebp - 0x130], 0x800
jle 0x100053d8
push dword [ebp - 0x128]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
call fcn.1000cd2e
ret
Function at 0x10007b7a
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov dword [0x10010870], ecx
xor esi, esi
and dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x18]
push edi
xor ebx, ebx
mov dword [0x1001086c], edx
xor edi, edi
mov dword [ebp - 0x20], ebx
call fcn.10007cb0
test eax, eax
jne 0x10007c5d
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov ebx, dword [ebp + 8]
inc esi
mov dword [0x10010d28], eax
mov eax, dword [ebp + 0x10]
mov dword [0x10010d30], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.10007e40
add esp, 0xc
test eax, eax
jne 0x10007c5a
lea eax, [ebp - 0x1c]
mov edi, esi
push eax
push 0x53
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.Secur32.dll_QueryContextAttributesA]
test eax, eax
jne 0x10007c5a
mov ecx, dword [ebp - 0x1c]
call fcn.10008678
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.10008756
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.10008175
pop ecx
pop ecx
test eax, eax
jne 0x10007c5a
push ecx
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea edx, [ebp - 0x18]
call fcn.100082d1
add esp, 0xc
test eax, eax
jne 0x10007c5a
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea edx, [ebp - 0x18]
call fcn.10007d64
pop ecx
test eax, eax
jne 0x10007c5a
xor edi, edi
mov ebx, esi
jmp 0x10007c5d
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0
je 0x10007c70
push dword [ebp - 0x1c]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
and dword [ebp - 0x1c], 0
test edi, edi
je 0x10007c7e
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
test esi, esi
je 0x10007c8c
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov ecx, dword [0x100108ac]
test ecx, ecx
je 0x10007c9f
push 0
push ecx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bb3f
leave
ret
Function at 0x10007cb0
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
push 0x1000ddc0
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov dword [0x100108ac], eax
test eax, eax
jne 0x10007ce5
mov eax, 0x8009030e
jmp 0x10007d56
push ebx
push 0x38
push edi
mov ebx, 0x10010874
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x10010874], 4
cmp dword [ebp - 0x10], edi
je 0x10007d18
lea eax, [ebp - 0x10]
mov dword [0x10010878], 1
mov dword [0x1001087c], eax
lea eax, [ebp - 0xc]
mov dword [0x10010894], 0xa80
push eax
push esi
push edi
push edi
push ebx
push edi
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push edi
mov dword [0x100108a4], 0x400018
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleA]
mov esi, eax
pop ebx
cmp dword [ebp - 0x10], edi
je 0x10007d54
push dword [ebp - 0x10]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000bb3f
leave
ret
Function at 0x10008175
Capabilities:
Encrypt data via sspi
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x1001086c]
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x48]
push ecx
push 4
push eax
mov dword [ebp - 0x58], eax
call dword [sym.imp.Secur32.dll_QueryContextAttributesA]
test eax, eax
jne 0x100082c4
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x48]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x100081cc
mov eax, 0x80090304
jmp 0x100082c3
test esi, esi
je 0x1000820a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100081d5
sub ecx, edx
cmp ecx, 1
jbe 0x1000820a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100081e8
sub ecx, edx
cmp byte [ecx + esi - 1], 0x2f
jne 0x1000820a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100081fd
sub ecx, edx
mov byte [ecx + esi - 1], al
push ebx
push dword [0x10010870]
mov ebx, dword [ebp - 0x48]
push esi
add ebx, edi
push str.GET__s_HTTP_1.0_r_nHost:__s_r_nUser_Agent:_Mozilla_5.0_r_nAccept:__r_n_r_n
push ebx
call fcn.1000babe
mov ecx, ebx
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000822a
mov eax, dword [ebp - 0x48]
sub ecx, edx
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], ebx
lea eax, [ecx + ebx]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push ebx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
push ebx
push esi
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 6
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 4
call dword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
js 0x100082c2
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x34]
push ebx
push eax
push edi
push dword [ebp - 0x5c]
call dword [0x10010d28]
cmp eax, 0xffffffff
je 0x100082b6
test eax, eax
je 0x100082b6
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x100082c2
push esi
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
mov eax, 0x80090304
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000bb3f
leave
ret
Function at 0x100088ca
Capabilities:
Get client handle via schannel
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
push 0x59
push edx
call dword [sym.imp.Secur32.dll_QueryContextAttributesA]
test eax, eax
jne 0x1000899a
mov eax, dword [ebp - 0x20]
xor ebx, ebx
mov dword [ebp - 0x34], eax
mov edi, ebx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x44], 0x20
mov dword [ebp - 0x40], str.1.3.6.1.5.5.7.3.2
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], eax
push edi
lea eax, [ebp - 0x44]
push eax
push 1
push ebx
push 1
push dword [0x100108ac]
call dword [sym.imp.CRYPT32.dll_CertFindChainInStore]
mov edi, eax
test edi, edi
je 0x1000899a
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x1c]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [0x1001087c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
push eax
push ebx
push ebx
push 0x10010874
push ebx
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push ebx
mov dword [0x10010874], 4
mov dword [0x10010878], 1
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleA]
test eax, eax
jne 0x1000891e
push esi
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bb3f
leave
ret