joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57f100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0xdd50c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call edi
test al, 0x80
mov eax, 1
push 0x12
cmovne esi, eax
call edi
test al, al
jns 0x57f14c
or esi, 2
push 0x10
call edi
test al, al
jns 0x57f157
or esi, 4
push 0x5b
call edi
test al, al
jns 0x57f162
or esi, 8
push 0x5c
call edi
test al, al
jns 0x57f16d
or esi, 8
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
test ebx, 0x1000000
je 0x57f195
cmp ecx, 0xd
jne 0x57f1b5
mov dword [ebp - 0x14], 0x23
jmp 0x57f237
xor eax, eax
mov edx, 0x24
nop dword [eax]
cmp edx, ecx
je 0x57f22d
mov edx, dword [eax*8 + 0xd94540]
inc eax
cmp edx, 0x2c
jne 0x57f1a0
xor eax, eax
mov edx, 0x1b
nop dword [eax]
cmp edx, ecx
je 0x57f224
mov edx, dword [eax*8 + 0xd945a0]
inc eax
cmp edx, 0x2c
jne 0x57f1c0
xor eax, eax
mov edx, 0x11
cmp edx, ecx
je 0x57f211
mov edx, dword [eax*8 + 0xd94680]
inc eax
cmp edx, 0x2c
jne 0x57f1d8
lea eax, [ebp - 0x18]
sar ebx, 0x10
push eax
movzx eax, bl
push eax
call fcn.0056cac0
add esp, 8
test eax, eax
jne 0x57f237
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d117b1
mov esp, ebp
pop ebp
ret
mov eax, dword [eax*8 + 0xd9467c]
mov dword [ebp - 0x10], eax
not eax
and eax, esi
mov dword [ebp - 0xc], eax
jmp 0x57f237
mov eax, dword [eax*8 + 0xd9459c]
jmp 0x57f234
mov eax, dword [eax*8 + 0xd9453c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
push ecx
mov eax, dword [ecx + 0x64]
push eax
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00d117b1
mov esp, ebp
pop ebp
ret
Function at 0x582530
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0056c9d0
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
push 0
push dword [ebp + 0x18]
mov ecx, dword [eax]
push 0
push 0
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.00d6963d
mov esi, eax
or eax, 0xffffffff
test esi, esi
push str.char__
cmovs esi, eax
inc esi
push esi
call fcn.0057dfb0
push dword [ebp + 0x1c]
mov edi, eax
mov eax, dword [ebp - 4]
push 0
push dword [ebp + 0x18]
push esi
push edi
push dword [eax + 4]
push dword [eax]
call fcn.00d69661
add esp, 0x40
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._libui___hs:_hs:_hs____hs_hs_n
call fcn.00588a70
push edi
mov esi, eax
call fcn.0057e060
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.0057e060
add esp, 4
call dword [sym.imp.KERNEL32.dll_DebugBreak]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x584d40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0
push 0
push 0xe
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push str.WCHAR__
lea ecx, [esi*2 + 2]
push ecx
call fcn.0057dfb0
add esp, 8
lea ecx, [esi + 1]
mov ebx, eax
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
je 0x584d84
xor eax, eax
mov word [ebx], ax
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x584d90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xdd50c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 0xe
push ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push str.WCHAR__
mov dword [ebp - 0x10], esi
lea ecx, [esi*2 + 2]
push ecx
call fcn.0057dfb0
add esp, 8
lea ecx, [esi + 1]
mov edi, eax
push ecx
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
je 0x584e0e
xor eax, eax
mov word [edi], ax
push edi
call fcn.0057e060
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d117b1
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x584df2
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x584df2
push dword [0xdd62d8]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x584e3d
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x584df2
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
jne 0x584e56
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call fcn.0057e060
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00d117b1
mov esp, ebp
pop ebp
ret
Function at 0x5d6bd0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0xc9a490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
push 0xc9a4b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0xc9ac20
Capabilities:
Access peb ldr_data
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd8ad2b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0xdd50c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0xc9ac64
mov eax, dword [ecx]
jmp 0xc9ac66
mov eax, ecx
mov byte [eax], 0
push 0
push 0xd928f4
mov dword [ebp - 4], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.00460080
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xd1afa0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
cmp esi, edi
jae 0xd1afd6
mov al, byte [esi]
push eax
call fcn.00d29500
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0xd1afb8
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0xd25af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6d7], 0
je 0xd25b88
cmp dword [esi + 0x1ac], 0
je 0xd25b45
push esi
call fcn.00d167f0
push 1
push esi
mov byte [ebp + 8], al
call fcn.00d16a70
push dword [esi + 0x15c]
mov eax, dword [esi + 0x1ac]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.00d16a70
add esp, 0x28
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 0
je 0xd25b59
sub eax, 1
je 0xd25b59
sub eax, 1
jne 0xd25b88
push dword [esi + 0x158]
lea eax, [ecx*2 + 0xdb8a9c]
push 1
add eax, ecx
push 2
push eax
call fcn.00d74cf2
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00d74cf2
add esp, 0x20
pop esi
pop ebp
ret
Function at 0xd276c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00d27700
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00d83869

Function at 0xd27940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0xdb8ca0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0xd27960
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0xdb8cb4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0xdb8cc4
push esi
mov dword [ebp - 8], ebx
call fcn.00d75e13
add esp, 8
test eax, eax
je 0xd279ac
test ebx, ebx
je 0xd2799c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xd279d5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0xd279d5
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0xd27a98
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xd279f1
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0xdd50f4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0xd27a8e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0xd27a8e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xd27a30
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xd27a50
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0xd27a65
mov eax, dword [ebp - 8]
test eax, eax
je 0xd27a85
push 8
push 0
push ebx
call eax
jmp 0xd27a8c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0xdd50f8]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0xd2a460
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0xd2a48b
cmp dword [esi + 0x84], 0
je 0xd2a48b
push 2
push 3
push esi
call fcn.00d29c50
push dword [ebp + 0xc]
call fcn.00d29f20
add esp, 0x10
jmp 0xd2a49a
push dword [ebp + 0xc]
call fcn.00d29f20
add esp, 4
test esi, esi
je 0xd2a4ae
cmp dword [esi + 0x84], 0
je 0xd2a4ae
push 3
push esi
call fcn.00d29c90
add esp, 8
pop esi
pop ebp
ret
Function at 0xd381a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00d1b900
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.00d36450
push dword [ebp + 0xc]
mov edi, eax
call fcn.00d36450
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0xd38227
lea eax, [ebp - 0x20]
push eax
call fcn.00d1b900
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00d1b9b0
add esp, 0x20
test edx, edx
ja 0xd3824a
jb 0xd38215
cmp eax, 0x3e8
ja 0xd3824a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0xd381e0
test edi, edi
je 0xd38234
push edi
call fcn.00d66d8a
add esp, 4
test esi, esi
je 0xd38241
push esi
call fcn.00d66d8a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0xd38257
push edi
call fcn.00d66d8a
add esp, 4
test esi, esi
je 0xd38264
push esi
call fcn.00d66d8a
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xd38b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00d79bcd
add esp, 0x18
test eax, eax
je 0xd38b42
cmp eax, 0xffffffff
jne 0xd38b44
xor eax, eax
pop ebp
ret

Function at 0xd38ca0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00d62a80
add esp, 0xc
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
pop ebp
ret
Function at 0xd3aa50
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp + 0x14], esi
call fcn.00d62a80
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd3ab1e
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0xd3ab00
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0xd3ab00
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0xd3ab00
cmp esi, dword [ebp - 0xc]
jb 0xd3ab00
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0xd3ab0e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0xd3ab1e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xd3bf90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00d3bf00

Function at 0xd47e70
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 0x64
jb 0xd47ea2
push str.Couldnt_set_desired_mode
push esi
call fcn.00d25b90
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0xd47eb9
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00d25c50
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0xd47ed1
push ebx
push esi
call fcn.00d47b40
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0xd47ee5
push esi
call fcn.00d46ba0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0xd47ef9
push esi
call fcn.00d47b20
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0xd47f08
push esi
call fcn.00d47d50
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0xd5e6b0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xdd50c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd5e742
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.00d5e7a0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00d61a50
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0xd5e754
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d117b1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00d117b1
mov esp, ebp
pop ebp
ret
Function at 0xd5f3d0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.00d296e0
mov edi, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0xd5f3fe
mov ebx, dword [edi + 0xe8]
cmp ebx, 0x191
je 0xd5f420
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.00d296e0
add esp, 0xc
test eax, eax
je 0xd5f466
mov ebx, dword [edi + 0xe8]
cmp ebx, 0x197
jne 0xd5f466
push esi
call fcn.00d2c760
mov esi, eax
add esp, 4
test esi, esi
jne 0xd5f437
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebx
pop ebp
ret
cmp ebx, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.00d2e2a0
push esi
mov edi, eax
call dword [0xdd50f8]
add esp, 0x10
test edi, edi
je 0xd5f602
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push 0xf
push str.Content_Length:
push esi
call fcn.00d296e0
add esp, 0xc
test eax, eax
je 0xd5f4c1
mov ecx, dword [edi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xd5f4a1
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.00d25c50
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
add eax, 0x208
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.00d37890
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.00d2c6c0
add esp, 0x14
test al, al
jne 0xd5f5f8
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00d296e0
add esp, 0xc
test eax, eax
je 0xd5f55f
mov ecx, dword [edi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xd5f51b
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.00d25c50
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00d2c6c0
add esp, 0x14
test al, al
je 0xd5f602
push str.CONNECT_responded_chunked
push edi
call fcn.00d25c50
mov eax, dword [ebp + 0x10]
push edi
mov byte [eax + 0x214], 1
call fcn.00d56450
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.00d2c6c0
add esp, 0x14
test al, al
jne 0xd5f5f8
push 7
push str.HTTP_1.
push esi
call fcn.00d75020
add esp, 0xc
test eax, eax
jne 0xd5f602
mov al, byte [esi + 7]
cmp al, 0x30
je 0xd5f599
cmp al, 0x31
jne 0xd5f602
cmp byte [esi + 8], 0x20
jne 0xd5f602
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0xd5f602
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0xd5f602
mov bl, byte [esi + 0xb]
mov al, bl
sub al, 0x30
cmp al, 9
ja 0xd5f602
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0xd5f5cb
cmp al, 0x39
jle 0xd5f602
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, bl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe8], eax
mov dword [edi + 0xd84], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x215], 1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0xd60c50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xdd50f4]
mov edi, eax
add esp, 4
test edi, edi
jne 0xd60c7d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0xd60cc7
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0xd60ccd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xd60d2b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0xd60cf0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0xd60d57
mov eax, dword [esi + 4]
push 1
push 0xdc4059
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0xdc405a
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0xd60d30
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xd60db0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd60de2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret

Function at 0xd61a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0xd61a9d
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
and dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0xd61a62
pop ebx
pop edi
pop esi
pop ebp
ret