joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002f43
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
jne 0x10002fbe
mov eax, dword [ebp - 0x10]
mov ax, word [eax + 0x14]
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
test eax, eax
je 0x10002fbe
lea eax, [ebp - 8]
push eax
push 0x40
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000af1b
leave
ret

Function at 0x10003377
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100033c7
test al, 0x10
jne 0x100033c7
push ebx
push 0x1000d388
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 2
mov ebx, eax
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push ebx
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x28
mov eax, esi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10003f60
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], 0x5a
mov byte [ebp - 0x18], 0x46
mov byte [ebp - 0x17], 0x66
mov byte [ebp - 0x16], 0x42
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.10004280
push 9
pop ecx
lea esi, [ebp - 0x2c]
mov edi, 0x10010b78
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, 0x10010b78
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000af1b
leave
ret

Function at 0x1000403e
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.10004280
push 9
pop ecx
lea esi, [ebp - 0x2c]
mov edi, 0x10010ba0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, 0x10010ba0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000af1b
leave
ret
Function at 0x100042c2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x100042ed
push edi
not esi
xor edi, edi
movzx eax, byte [edi + ecx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x1000d568]
inc edi
cmp edi, edx
jne 0x100042d2
not esi
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x1000431f
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 [0x100108ca], 0
push esi
push edi
jne 0x100043e7
push ebx
sub esp, 0xc
push 0x69
pop ecx
call fcn.10007edd
add esp, 0xc
mov ebx, eax
mov esi, str.Initialize_class_first
mov edi, ebx
push 5
pop ecx
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 0x10004361
push 0x11
pop ecx
mov esi, 0x1000d9c0
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 0x10004389
mov ax, word [0x1000da08]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x1000439f
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100043ab
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 0x100043c4
mov ax, word [0x1000da0c]
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 0x10004417
mov ecx, dword [0x10010900]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010900]
lea edi, [eax + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010900]
lea esi, [eax + 0x30]
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [edi]
add edx, dword [esi]
mov ecx, dword [eax + 0x44]
call edx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000af1b
leave
ret
Function at 0x10004425
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 [0x100108ca], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x100044ee
sub esp, 0xc
push 0x69
pop ecx
call fcn.10007edd
add esp, 0xc
mov ebx, eax
mov esi, str.Initialize_class_first
mov edi, ebx
push 5
pop ecx
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 0x10004469
push 0x11
pop ecx
mov esi, 0x1000d9c0
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 0x10004491
mov ax, word [0x1000da08]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100044a7
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100044b3
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 0x100044cc
mov ax, word [0x1000da0c]
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 0x1000451e
mov ecx, dword [0x10010900]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010900]
mov edi, dword [eax + 0x4c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010900]
lea esi, [eax + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
push ebx
mov ecx, edi
mov eax, dword [eax]
add eax, dword [esi]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000af1b
leave
ret
Function at 0x1000452d
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 [0x100108ca], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov ebx, ecx
jne 0x100045f9
sub esp, 0xc
push 0x69
pop ecx
call fcn.10007edd
add esp, 0xc
mov ebx, eax
mov esi, str.Initialize_class_first
mov edi, ebx
push 5
pop ecx
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 0x10004574
push 0x11
pop ecx
mov esi, 0x1000d9c0
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 0x1000459c
mov ax, word [0x1000da08]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100045b2
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100045be
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 0x100045d7
mov ax, word [0x1000da0c]
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 0x10004635
mov ecx, dword [0x10010900]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010900]
lea edi, [eax + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010900]
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 [edi]
add edx, dword [esi]
mov ecx, dword [eax + 0x50]
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000af1b
leave
ret
Function at 0x10004699
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 [0x100108ca], 0
push ebx
push esi
push edi
mov bl, cl
jne 0x10004765
sub esp, 0xc
push 0x69
pop ecx
call fcn.10007edd
add esp, 0xc
mov ebx, eax
mov esi, str.Initialize_class_first
mov edi, ebx
push 5
pop ecx
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 0x100046dd
push 0x11
pop ecx
mov esi, 0x1000d9c0
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 0x10004705
mov ax, word [0x1000da08]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x1000471b
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004727
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 0x10004740
mov ax, word [0x1000da0c]
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 0x100047f1
mov ecx, dword [0x10010900]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010900]
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 [0x10010900]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010900]
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 0x100047c1
mov dword [ecx + eax], 1
jmp 0x100047c5
and dword [ecx + eax], 0
mov ecx, dword [0x10010900]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x10010900]
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.1000af1b
leave
ret
Function at 0x10004800
Capabilities:
Print debug messages

Disassembly:
push 0x128
mov eax, 0x1000c232
call fcn.1000c125
mov esi, edx
mov edi, ecx
cmp byte [0x100108ca], 0
jne 0x100048c7
sub esp, 0xc
push 0x69
pop ecx
call fcn.10007edd
add esp, 0xc
mov ebx, eax
mov esi, str.Initialize_class_first
mov edi, ebx
push 5
pop ecx
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 0x10004842
push 0x11
pop ecx
mov esi, 0x1000d9c0
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 0x1000486a
mov ax, word [0x1000da08]
lea edx, [ebp - 0x1c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004880
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000488c
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 0x100048a5
mov ax, word [0x1000da0c]
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 0x1000493c
push ecx
lea ecx, [ebp - 0x134]
call fcn.10004942
lea ecx, [ebp - 0x134]
call fcn.10001000
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x20], 0x3e
call fcn.10006973
push esi
lea ecx, [ebp - 0x134]
call fcn.100069a8
push dword [ebp + 8]
lea ecx, [ebp - 0x134]
call fcn.10006973
push 0
lea ecx, [ebp - 0x134]
call fcn.100069a8
push ecx
push ecx
call fcn.10001057
sub esp, 0x10
lea edx, [ebp - 0x134]
lea ecx, [ebp - 0x20]
call fcn.1000452d
add esp, 0x10
lea ecx, [ebp - 0x134]
call fcn.1000103d
call fcn.1000c114
ret
Function at 0x100070db
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 [0x10010954], ecx
xor esi, esi
and dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x18]
push edi
xor ebx, ebx
mov dword [0x10010950], edx
xor edi, edi
mov dword [ebp - 0x20], ebx
call fcn.10007211
test eax, eax
jne 0x100071be
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov ebx, dword [ebp + 8]
inc esi
mov dword [0x10010cbc], eax
mov eax, dword [ebp + 0x10]
mov dword [0x10010cc4], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.100073a1
add esp, 0xc
test eax, eax
jne 0x100071bb
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 0x100071bb
mov ecx, dword [ebp - 0x1c]
call fcn.10007b4c
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.10007c2a
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.100076d6
pop ecx
pop ecx
test eax, eax
jne 0x100071bb
push ecx
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea edx, [ebp - 0x18]
call fcn.10007832
add esp, 0xc
test eax, eax
jne 0x100071bb
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea edx, [ebp - 0x18]
call fcn.100072c5
pop ecx
test eax, eax
jne 0x100071bb
xor edi, edi
mov ebx, esi
jmp 0x100071be
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0
je 0x100071d1
push dword [ebp - 0x1c]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
and dword [ebp - 0x1c], 0
test edi, edi
je 0x100071df
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
test esi, esi
je 0x100071ed
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov ecx, dword [0x10010990]
test ecx, ecx
je 0x10007200
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.1000af1b
leave
ret
Function at 0x10007211
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 0x1000db48
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov dword [0x10010990], eax
test eax, eax
jne 0x10007246
mov eax, 0x8009030e
jmp 0x100072b7
push ebx
push 0x38
push edi
mov ebx, 0x10010958
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x10010958], 4
cmp dword [ebp - 0x10], edi
je 0x10007279
lea eax, [ebp - 0x10]
mov dword [0x1001095c], 1
mov dword [0x10010960], eax
lea eax, [ebp - 0xc]
mov dword [0x10010978], 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 [0x10010988], 0x400018
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleA]
mov esi, eax
pop ebx
cmp dword [ebp - 0x10], edi
je 0x100072b5
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.1000af1b
leave
ret
Function at 0x100076d6
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 [0x10010950]
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 0x10007825
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 0x1000772d
mov eax, 0x80090304
jmp 0x10007824
test esi, esi
je 0x1000776b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007736
sub ecx, edx
cmp ecx, 1
jbe 0x1000776b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007749
sub ecx, edx
cmp byte [ecx + esi - 1], 0x2f
jne 0x1000776b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000775e
sub ecx, edx
mov byte [ecx + esi - 1], al
push ebx
push dword [0x10010954]
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.1000ae9a
mov ecx, ebx
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000778b
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 0x10007823
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 [0x10010cbc]
cmp eax, 0xffffffff
je 0x10007817
test eax, eax
je 0x10007817
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x10007823
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.1000af1b
leave
ret
Function at 0x10007d9e
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 0x10007e6e
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 [0x10010990]
call dword [sym.imp.CRYPT32.dll_CertFindChainInStore]
mov edi, eax
test edi, edi
je 0x10007e6e
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 [0x10010960], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
push eax
push ebx
push ebx
push 0x10010958
push ebx
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push ebx
mov dword [0x10010958], 4
mov dword [0x1001095c], 1
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleA]
test eax, eax
jne 0x10007df2
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.1000af1b
leave
ret