joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13a8f0ae
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x13a8f0d0
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x13a8f0d0
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x13a8f0d0
ret
cmp word [ebx + 4], 0x14c
jne 0x13a8f0d0
test word [ebx + 0x16], 2
je 0x13a8f0d0
test word [ebx + 0x16], 0x100
je 0x13a8f0d0
cmp word [ebx + 0x18], 0x10b
jne 0x13a8f0d0
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x13a8f0d0
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x13a8f15c
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x13a8f0f0
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.13a7603b
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x13a8f0d0
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x13a8f15c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x13a8f0d0
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x13a8f0d0
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x13a8f0d0
ret
cmp word [ebx + 4], 0x14c
jne 0x13a8f0d0
test word [ebx + 0x16], 2
je 0x13a8f0d0
test word [ebx + 0x16], 0x100
je 0x13a8f0d0
cmp word [ebx + 0x18], 0x10b
jne 0x13a8f0d0
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x13a8f0d0
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x13a8f15c
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x13a8f0f0
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.13a7603b
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x13a8f0d0
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x13a8f213
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x13a8f26c
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x13a8f213
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x13a8f222
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x13e94ec5
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x13a8f273
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.13a760e9
cmp eax, dword [ebp + 0xc]
pop eax
je 0x13a8f312
add edi, 4
add eax, 2
dec ecx
jne 0x13a8f258
call 0x13a8f2bf
loope 0x13a8f2b5
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x13a8f30f
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x13a8f320
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x13a8f2d3
cmp eax, ecx
ja 0x13a8f2d3
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x13a8f35d
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x13a8f353
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.13a765c8
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x13a8f222
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x13a8f26c
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x13a8f213
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x13a8f222
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x13e94ec5
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x13a8f273
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.13a760e9
cmp eax, dword [ebp + 0xc]
pop eax
je 0x13a8f312
add edi, 4
add eax, 2
dec ecx
jne 0x13a8f258
call 0x13a8f2bf
loope 0x13a8f2b5
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x13a8f30f
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x13a8f320
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x13a8f2d3
cmp eax, ecx
ja 0x13a8f2d3
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x13a8f35d
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x13a8f353
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.13a765c8
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x403203
pop dword [ebp - 0x40]
mov eax, 0x403203
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x13405414
add dword [ebp - 0x50], 0x3b11f137
mov dword [ebp - 0x4c], 0xc785f5ea
add dword [ebp - 0x4c], 0x6aad565b
mov dword [ebp - 0x48], 0xbfaf3939
add dword [ebp - 0x48], 0x8c9d0af5
mov dword [ebp - 0x44], 0x669943b4
sub dword [ebp - 0x44], 0x669943b4
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x531505f6
add dword [ebp - 0x50], 0x215d6360
mov dword [ebp - 0x4c], 0x445cf57d
add dword [ebp - 0x4c], 0xfd0f6bf8
mov dword [ebp - 0x48], 0x85096cd5
sub dword [ebp - 0x48], 0x219a0069
mov dword [ebp - 0x44], 0x12964945
sub dword [ebp - 0x44], 0x12964945
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x49940061
add eax, 0xb6ac8073
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x391c5
push 0
call eax
mov ecx, 0x5211
xor edi, edi
add edi, eax
mov ebx, 0xa776b051
sub ebx, 0xa735a051
add ebx, dword [ebp - 0x40]
mov esi, 0xb6617922
sub esi, 0x384cdd19
xor dword [ebp - 0xc], edi
mov edx, dword [ebx]
sub dword [ebp - 0x38], 0xc173c4f1
add edx, esi
xor dword [ebp - 0x24], esi
mov dword [edi], edx
add dword [ebp - 0x10], 0xcee086cd
add edi, 0x8bdc16bf
add edi, 0x7423e945
add ebx, 0x52f3a3be
sub ebx, 0x52f3a3ba
loop 0x403317
add eax, 0x379b7cfd
sub eax, 0x379a41e6
mov ebx, eax
add eax, 0x40d5cc1a
sub eax, 0x40d5cc15
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x402ee4
pop dword [ebp - 0x38]
mov eax, 0x402ee4
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x6cdda999
sub dword [ebp - 0x48], 0x1e8b644e
mov dword [ebp - 0x44], 0x76208328
add dword [ebp - 0x44], 0xbc12c91d
mov dword [ebp - 0x40], 0x2288db41
sub dword [ebp - 0x40], 0xd63c9713
mov dword [ebp - 0x3c], 0x239dc387
sub dword [ebp - 0x3c], 0x239dc387
lea eax, [ebp - 0x48]
push eax
mov eax, 0xacf5fce6
sub eax, 0xacb57be2
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xf88798c3
add dword [ebp - 0x48], 0x7bead093
mov dword [ebp - 0x44], 0x3b67087a
add dword [ebp - 0x44], 0x60558fb
mov dword [ebp - 0x40], 0xc56a0caa
sub dword [ebp - 0x40], 0x61faa03e
mov dword [ebp - 0x3c], 0xe006a54a
add dword [ebp - 0x3c], 0x1ff95ab6
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x37daf
push 0
call eax
mov ecx, 0x7f774c6a
sub ecx, 0x7f770123
xor edi, edi
add edi, eax
mov edx, 0x46e400
add edx, dword [ebp - 0x38]
mov esi, 0xb3cdcca1
add esi, 0x2b38e82a
mov ebx, dword [edx]
xor dword [ebp - 0x10], 0x1451b3e0
sub ebx, esi
xor dword [ebp - 4], edi
mov dword [edi], ebx
add dword [ebp - 0x24], eax
add edi, 0xc8ced8ef
add edi, 0x37312715
add edx, 0x34d86929
add edx, 0xcb2796db
loop 0x402ff8
add eax, 0x8d11e8d2
sub eax, 0x8d10c8e3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e004]
jne 0x40100a
repz ret
jmp fcn.00401858

Function at 0x408aa5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406172
and dword [ebp - 4], 0
cmp dword [0x4340bc], 0
mov ebx, eax
jne 0x408b56
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c07
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c07
push eax
call fcn.00406100
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4340bc], eax
call esi
push eax
call fcn.00406100
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4340c0], eax
call esi
push eax
call fcn.00406100
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4340c4], eax
call esi
push eax
call fcn.00406100
pop ecx
mov dword [0x4340cc], eax
test eax, eax
je 0x408b56
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406100
pop ecx
mov dword [0x4340c8], eax
mov eax, dword [0x4340c8]
cmp eax, ebx
je 0x408bae
cmp dword [0x4340cc], ebx
je 0x408bae
push eax
call fcn.0040617b
push dword [0x4340cc]
mov esi, eax
call fcn.0040617b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bae
test edi, edi
je 0x408bae
call esi
test eax, eax
je 0x408ba5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408ba5
test byte [ebp - 0xc], 1
jne 0x408bae
or dword [ebp + 0x10], 0x200000
jmp 0x408be7
mov eax, dword [0x4340c0]
cmp eax, ebx
je 0x408be7
push eax
call fcn.0040617b
pop ecx
test eax, eax
je 0x408be7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408be7
mov eax, dword [0x4340c4]
cmp eax, ebx
je 0x408be7
push eax
call fcn.0040617b
pop ecx
test eax, eax
je 0x408be7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4340bc]
call fcn.0040617b
pop ecx
test eax, eax
je 0x408c07
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c09
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b962
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [0x234b8f4], 0x930
jne 0x40b98a
push str.hidipezilac
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x234b8f4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x234b610], eax
jne 0x40b9bc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
lea eax, [ebp - 0x1c]
push eax
push str.receyodat
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
leave
ret
Function at 0x403015
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x403024
pop dword [ebp - 0x1c]
mov eax, 0x40885445
sub eax, 0x40482421
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xea89b2ec
sub dword [ebp - 0x2c], 0x9c376da1
mov dword [ebp - 0x28], 0x2c9eea13
add dword [ebp - 0x28], 0x5946232
mov dword [ebp - 0x24], 0x6d70f596
sub dword [ebp - 0x24], 0x2124b168
mov dword [ebp - 0x20], 0xceb67a93
add dword [ebp - 0x20], 0x3149856d
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xba3d3176
add eax, 0x46034f02
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x5f9ea1ae
add dword [ebp - 0x2c], 0x14d3c7a8
mov dword [ebp - 0x28], 0x1ca62d04
sub dword [ebp - 0x28], 0xdb39cb8f
mov dword [ebp - 0x24], 0x6fa53e9d
add dword [ebp - 0x24], 0xf3ca2dcf
mov dword [ebp - 0x20], 0xda7bfc9e
sub dword [ebp - 0x20], 0xda7bfc9e
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x354ac
push 0
call eax
mov ecx, 0x4104
xor ebx, ebx
add ebx, eax
mov esi, 0x6be7a07c
add esi, 0x945d7384
add esi, dword [ebp - 0x1c]
mov edi, 0x9826c631
sub edi, 0xf8c9af5e
add dword [ebp - 8], 0xd2b68553
mov edx, dword [esi]
add dword [ebp - 8], ebx
add edx, edi
xor dword [ebp - 0xc], edi
mov dword [ebx], edx
sub dword [ebp - 0x18], ecx
add ebx, 0xae345669
sub ebx, 0xae345665
add esi, 0x6b39ee5a
add esi, 0x94c611aa
loop 0x40313d
add eax, 0x71cbee3e
add eax, 0x8e3508a5
mov ebx, eax
add eax, 0x8e3f0844
add eax, 0x71c0f7c1
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x1000104e
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], 0x1000480c
and dword [esp + 0x10], esi
lea ecx, [esp + 0x1c]
xor edi, edi
mov dword [0x10006420], 0x10004828
xor ebx, ebx
call fcn.1000118e
test eax, eax
jne 0x1000113e
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.100012f9
add esp, 0xc
test eax, eax
jne 0x1000113e
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 0x1000113e
mov ecx, dword [esp + 0x10]
call fcn.10001ac4
push ecx
mov ecx, dword [esp + 0x14]
call fcn.10001ba2
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.100015e7
pop ecx
pop ecx
test eax, eax
jne 0x1000113e
push ecx
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
call fcn.10001743
add esp, 0xc
test eax, eax
jne 0x1000113e
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
call fcn.1000122e
pop ecx
test eax, eax
jne 0x1000113e
xor edi, edi
mov ebx, esi
cmp dword [esp + 0x10], 0
je 0x10001154
push dword [esp + 0x10]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
and dword [esp + 0x10], 0
test edi, edi
je 0x10001163
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
test esi, esi
je 0x10001172
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov ecx, dword [0x10006460]
test ecx, ecx
je 0x10001185
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 0x1000118e
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 0x10004204
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov dword [0x10006460], eax
test eax, eax
jne 0x100011b9
mov eax, 0x8009030e
jmp 0x1000122a
push ebx
push 0x38
push edi
mov ebx, 0x10006428
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x10006428], 4
cmp dword [ebp - 4], edi
je 0x100011ec
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 0x10001228
push dword [ebp - 4]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x100015e7
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 esi
mov esi, 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 0x10001736
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 0x1000163e
mov eax, 0x80090304
jmp 0x10001735
test esi, esi
je 0x1000167c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001647
sub ecx, edx
cmp ecx, 1
jbe 0x1000167c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000165a
sub ecx, edx
cmp byte [ecx + esi - 1], 0x2f
jne 0x1000167c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000166f
sub ecx, edx
mov byte [ecx + esi - 1], al
push ebx
push dword [0x10006424]
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.10001036
mov ecx, ebx
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000169c
mov eax, dword [ebp - 0x48]
sub ecx, edx
mov esi, dword [ebp - 0x4c]
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 - 0x54], eax
lea eax, [ebp - 0x5c]
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 - 0x5c], ebx
mov dword [ebp - 0x58], 4
call dword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
js 0x10001734
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x34]
push ebx
push eax
push edi
push dword [ebp - 0x50]
call dword [0x1000647c]
cmp eax, 0xffffffff
je 0x10001728
test eax, eax
je 0x10001728
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x10001734
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.100028ba
leave
ret