joyce8/EMBER2024-capa huggingface dataset:
Function at 0x539e80
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x62e040]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
xor bl, bl
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], eax
push edi
test esi, esi
jne 0x539f0a
test ecx, ecx
jne 0x539ece
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8
push 0x60
push 1
push 1
push 0x80
push 0x100081
push ecx
lea eax, [esp + 0x3c]
push eax
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x539f04
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x24]
mov bl, 1
push 5
push 0x18
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x539fea
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x74]
push esi
push 0x8000000
push 2
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x28], edx
push eax
push 5
lea eax, [esp + 0x28]
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x54], 0x18
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x539fea
mov eax, dword ds:[esp + 0x18]
push 2
push 0
push 2
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x539fea
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
test bl, bl
je 0x539ff5
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 8
Function at 0x53a2e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ecx
push ebx
mov ebx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
cmp eax, 0x1000
jae 0x53a314
pop edi
mov eax, 0xc0000017
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x53a49b
lea esp, [esp]
cmp ebx, 0xffffffff
je 0x53a49b
push esi
push 0x1000
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x1000
mov esi, eax
push 0
push esi
mov dword [ebp - 4], esi
call fcn.00582250
add esp, 0xc
push 0
push 0x1000
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push ebx
push dword [ebp - 8]
call dword [0x5a38f4]
call esi
mov esi, eax
lfence
test esi, esi
js 0x53a492
mov ecx, dword [ebp - 4]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x53a479
mov ebx, dword [ecx + 0x3c]
test ebx, ebx
je 0x53a479
cmp ebx, dword [ebp + 8]
jae 0x53a479
lea ecx, [ecx]
cmp ebx, 0x10000000
jae 0x53a479
lea eax, [ebx + 0xf8]
cmp eax, 0x1000
jb 0x53a3c5
mov esi, 0xc0000017
jmp 0x53a47e
cmp dword [ebx + ecx], 0x4550
lea edx, [ebx + ecx]
je 0x53a3db
mov esi, 0xc000007b
jmp 0x53a47e
movzx eax, word [edx + 0x14]
mov dword [ebp - 0xc], 0xe0
cmp ax, word [ebp - 0xc]
je 0x53a402
mov dword [ebp - 0xc], 0xf0
cmp ax, word [ebp - 0xc]
je 0x53a402
mov esi, 0xc0000903
jmp 0x53a47e
movzx eax, word [edx + 0x18]
mov dword [ebp - 0xc], 0x10b
mov word [edi + 0x18], ax
cmp ax, word [ebp - 0xc]
je 0x53a426
mov dword ds:[ebp - 0xc], 0x20b
cmp ax, word [ebp - 0xc]
jne 0x53a3d1
movzx eax, word [edx + 6]
mov dword [edi + 0x10], eax
cmp eax, 0x7f
jae 0x53a3d1
lea ecx, [eax + eax*4]
movzx eax, word [edx + 0x14]
add eax, ebx
lea eax, [eax + ecx*8]
add eax, 0x110
cmp eax, 0x1000
jb 0x53a454
mov ecx, dword [ebp - 4]
mov esi, 0xc0000017
jmp 0x53a47e
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov dword [edi + 0xc], edx
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x1c], eax
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, 0xc000012f
push ecx
push 0
lfence
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0xc000000d
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x53fe00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push ecx
mov ebx, edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x53ffd9
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x1c]
cmp ecx, esi
jle 0x53fe3c
mov eax, esi
mov dword [ebx + 0x1c], ecx
mov esi, ecx
mov dword [ebx + 0x18], eax
mov ecx, eax
sub esi, ecx
cmp dword [ebx + 0x14], 1
push esi
push 0x42
je 0x53ff05
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x53ffd1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebx + 0x18]
add ecx, dword [ebx]
push esi
push ecx
push eax
call fcn.005823b0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esi + esi*2]
lea eax, [eax*2 + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x53feff
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor edi, edi
mov edx, eax
test esi, esi
je 0x53fee4
mov ecx, dword [ebx + 0x18]
add ecx, dword [ebx]
movzx eax, byte [ecx + edi]
shr eax, 4
movsx eax, byte [eax + 0x618b10]
mov word [edx], ax
mov eax, dword [ebx + 0x18]
add eax, dword [ebx]
movzx eax, byte [eax + edi]
inc edi
and eax, 0xf
movsx eax, byte [eax + 0x618b10]
mov word [edx + 2], ax
mov eax, 0x20
mov word [edx + 4], ax
add edx, 6
cmp edi, esi
jb 0x53fea6
mov esi, dword [ebp - 4]
xor eax, eax
push esi
mov word [edx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, dword [ebp - 8]
push edi
jmp 0x53ffbf
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [esi + 1]
mov dword [ebp - 4], eax
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edi
test eax, eax
je 0x53ffd1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebx + 0x18]
add ecx, dword [ebx]
push esi
push ecx
push eax
call fcn.005823b0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
je 0x53ffbc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword ds:[ebx + 0x18]
mov edi, eax
add ecx, dword [ebx]
push esi
push ecx
push edi
call fcn.005823b0
add esp, 0xc
test esi, esi
je 0x53ffa6
mov ecx, 0x5e
cmp byte [ebx + 0x28], 0
mov al, byte [edi]
movzx eax, al
jge 0x53ff91
push 0x117
push eax
call fcn.0058a377
add esp, 8
mov ecx, 0x5e
jmp 0x53ff99
sub eax, 0x20
cmp ecx, eax
sbb eax, eax
inc eax
test eax, eax
jne 0x53ffa0
mov byte [edi], 0x2e
inc edi
sub esi, 1
jne 0x53ff71
mov esi, dword [ebp - 8]
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push dword [ebp - 4]
push str.BinaryData
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53ffe0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, ecx
mov edi, edx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x54010f
push str.BinaryData
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x540033
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 8], eax
test ebx, ebx
je 0x540109
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [edi + 0x18]
mov ebx, eax
mov edx, dword [edi + 0x1c]
mov esi, ecx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
cmp ecx, edx
jle 0x540064
mov esi, edx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], esi
mov edx, ecx
test byte [edi + 0x28], 0x10
je 0x5400b5
cmp esi, 0xffffffff
jne 0x54008b
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x54007d
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
mov ecx, dword [ebp - 4]
mov edx, edi
push ebx
push esi
call fcn.00540200
jmp 0x5400d2
mov ecx, dword [ebp - 4]
push edx
push esi
mov edx, edi
call fcn.00540120
mov ecx, dword ds:[ebp - 4]
mov edx, edi
push ebx
push esi
call fcn.00540200
mov ecx, dword [ebp - 4]
mov edx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0053fc20
jmp 0x5400d2
cmp esi, 0xffffffff
jne 0x5400c8
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x5400c8
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
mov eax, dword [edi + 4]
sub eax, esi
cmp ebx, eax
cmova ebx, eax
mov eax, dword ds:[edi]
push ebx
push dword [ebp - 0xc]
add eax, esi
push eax
call fcn.005823b0
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x10]
push 0x105
push 0
push 0
push dword [ebp - 4]
mov dword [edi + 0x10], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x543bc0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x62e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x14]
mov edi, ecx
push eax
push edi
mov esi, edx
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x543dbf
mov eax, dword ds:[ebp - 8]
or eax, dword [ebp - 0x10]
or eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x14]
je 0x543dbf
cmp dword [esi + 0x1bc], 0
jg 0x543c6d
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 0
mov ebx, eax
push ebx
push edi
call dword [sym.imp.USER32.dll_GetUpdateRgn]
mov eax, dword [esi + 0x1c0]
test eax, eax
jne 0x543c3b
mov dword [esi + 0x1c0], ebx
jmp 0x543c4d
push 2
push ebx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
jmp 0x543c60
test eax, eax
je 0x543dbf
jmp 0x543db4
test dword [esi + 0x20], 0x200000
je 0x543d2c
cmp dword [esi + 0x17c], 0
jne 0x543d2c
push dword [esi]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x543d2c
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x17c], eax
test eax, eax
je 0x543d2c
mov eax, dword [esi + 0x38]
mov dword [esi + 0x188], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x18c], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x190], eax
mov eax, dword [esi + 0x44]
push eax
mov dword [esi + 0x194], eax
mov eax, dword [esi + 0x190]
inc eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x184], eax
test eax, eax
jne 0x543d0a
push dword [esi + 0x17c]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 0x17c], 0
jmp 0x543d2c
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword ds:[esi + 0x184]
push dword [esi + 0x17c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x180], eax
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
test ebx, ebx
je 0x543dbf
mov ecx, dword [ebp - 0x50]
mov edx, esi
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x17c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x543da8
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00548f00
mov edx, dword ds:[ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push 0xcc0020
push edx
push ecx
push dword [esi + 0x17c]
sub eax, edx
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x543db4
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push ebx
call fcn.00548f00
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005802ef
mov esp, ebp
pop ebp
ret
Function at 0x550f80
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xc
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
xor eax, eax
cmp dword [0x62ebb0], 0x3f
push eax
sbb ecx, ecx
push eax
and ecx, 0xfffffffc
mov dword [esi], eax
push eax
add ecx, 4
mov dword [esi + 4], eax
push ecx
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
test eax, eax
jne 0x550fdc
push esi
push eax
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x62ebb0], 0x3f
lea ecx, [ebp - 4]
push 4
push ecx
push 0x54
push eax
jae 0x551009
mov dword [ebp - 4], 0xa00
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0x2800
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 3
push eax
push 0x76
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [0x62ebb0]
cmp eax, 0x64
jb 0x551056
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x85
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [0x62ebb0]
cmp eax, 0x72
jb 0x551075
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0xc3
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x5511c0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
and edx, 1
shl edx, 0x17
push esi
mov esi, dword [ebp + 8]
mov eax, edx
or eax, 0x100
test byte [ebp + 0x14], 2
cmove eax, edx
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 8], eax
pop esi
test eax, eax
jne 0x551205
xor al, al
mov esp, ebp
pop ebp
ret 0x10
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 8
push ecx
push 0x3f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5513e0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push 0xffff
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x55141a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x551468
mov eax, dword [ebp - 4]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0
push eax
mov dword [ebp - 8], 0
call sym.SystemInformer.exe_PhCreateString3
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push dword [ebp + 0xc]
push 0xffff
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x551472
lea ecx, ds:[esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x551468
call fcn.004fc020
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [esi + 4]
call sym.SystemInformer.exe_PhCountStringZ
add eax, eax
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x551500
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x62e040]
xor eax, esp
mov dword [esp + 0x218], eax
mov edx, dword [ebp + 0xc]
lea eax, [esp]
push ebx
push esi
mov esi, dword [ebp + 8]
and dl, 1
push edi
mov edi, dword [ebp + 0x10]
push 0
push eax
movzx ecx, dl
lea eax, [esp + 0x28]
neg ecx
mov dword [esp + 0x14], 0x100
push eax
sbb ecx, ecx
and ecx, 5
mov eax, ecx
or eax, 0x13
test byte [ebp + 0xc], 2
push 0
cmove eax, ecx
push eax
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edi, edi
test eax, eax
je 0x5515ed
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x20]
xor bl, bl
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x5515a4
mov dx, word [esp + 0x20]
cmp dx, 0x2d
je 0x55158f
cmp dx, 0x2b
jne 0x5515a4
add eax, 2
sub ecx, 2
cmp dx, 0x2d
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
sete bl
lea eax, [esp + 0x18]
mov edx, 0xa
push eax
lea ecx, [esp + 0x14]
call fcn.00501640
mov edx, dword ds:[esp + 0x18]
mov ecx, dword [esp + 0x1c]
test bl, bl
je 0x5515cb
neg edx
adc ecx, 0
neg ecx
test al, al
je 0x5515ed
mov dword [edi], edx
mov al, 1
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword ds:[esp + 0x224]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 0xc
Function at 0x551720
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.005a07d0
mov eax, dword [0x62e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x1000
mov dword [ebp - 0x100c], eax
mov eax, dword [ebp + 0xc]
push edi
push 4
push dword [0x635044]
mov dword [ebp - 0x1010], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1014], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x1008]
push eax
push edi
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x100c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x551848
mov ecx, dword [ebp - 0x1008]
test ecx, ecx
je 0x551815
lea eax, ds:[ecx + ebx]
cmp edi, eax
jae 0x5517d2
add edi, edi
push edi
test esi, esi
jne 0x5517bb
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x5517ca
push esi
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [ebp - 0x1008]
mov esi, eax
push ecx
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebx + esi]
push eax
call fcn.005823b0
add ebx, dword [ebp - 0x1008]
lea eax, [ebp - 0x1008]
add esp, 0xc
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x100c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x551790
lea eax, [ebx + 1]
cmp edi, eax
jae 0x551848
inc edi
lfence
push edi
test esi, esi
jne 0x551835
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x551846
push esi
push 4
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov esi, eax
mov byte [ebx + esi], 0
test ebx, ebx
je 0x55188e
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x55185e
mov dword [eax], esi
jmp 0x55186d
push esi
push 0
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x551879
mov dword [eax], ebx
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ef
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push dword [0x635044]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005802ef
mov esp, ebp
pop ebp
ret 0xc
Function at 0x571400
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x62e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x50], eax
mov esi, 0x78
mov edi, dword [eax + 0x30]
mov edx, edi
and edx, 0x3f
mov eax, 0x38
sub eax, edx
sub esi, edx
cmp edx, 0x38
cmovb esi, eax
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x4b]
push 0
push eax
call fcn.00582250
mov eax, dword ds:[ebp - 0x50]
lea edx, [ebp - 0x4c]
mov ecx, edi
mov byte [ebp - 0x4c], 0x80
shr ecx, 0x1d
add esp, 0xc
mov eax, dword [eax + 0x2c]
shl eax, 3
or ecx, eax
lea eax, [edi*8]
bswap eax
bswap ecx
mov dword [ebp + esi - 0x48], eax
lea eax, [esi + 8]
mov dword [ebp + esi - 0x4c], ecx
mov esi, dword [ebp - 0x50]
mov ecx, esi
push eax
call fcn.00571340
mov ecx, dword [esi + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx], edx
mov ecx, dword [esi + 0x1c]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 4], edx
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 8], edx
mov ecx, dword [esi + 0x24]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 0xc], edx
mov ecx, dword [esi + 0x28]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 4]
shl eax, 8
xor ecx, ebp
or edx, eax
mov dword [ebx + 0x10], edx
pop edi
mov dword [esi + 0x18], 0x67452301
mov dword [esi + 0x1c], 0xefcdab89
mov dword [esi + 0x20], 0x98badcfe
mov dword [esi + 0x24], 0x10325476
mov dword [esi + 0x28], 0xc3d2e1f0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
pop esi
pop ebx
call fcn.005802ef
mov esp, ebp
pop ebp
ret

Function at 0x578a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x578a80
lea edi, [esi + 0xc]
cmp ecx, edi
je 0x578a80
push 0
push 0
sub ecx, esi
lea eax, [ebp - 8]
sub ecx, 0xc
push ecx
push edi
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x578a92
mov dword [esi + 4], edi
mov ecx, edi
mov al, byte [ebp + 8]
mov byte [ecx], al
inc dword [esi + 4]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x578aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
test esi, esi
je 0x578aeb
push 0
push 0
push 0x2000
lea edi, [esi + 0xc]
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x578aeb
mov eax, dword [ebp - 4]
test eax, eax
je 0x578aeb
add eax, 0xc
mov dword [esi + 4], edi
add eax, esi
mov dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x578b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
test esi, esi
je 0x578b44
mov eax, dword [esi + 4]
lea edi, [esi + 0xc]
cmp eax, edi
je 0x578b3c
push 0
push 0
sub eax, esi
sub eax, 0xc
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x578b44
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret