joyce8/EMBER2024-capa huggingface dataset:
Function at 0x538ee0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
test esi, esi
jne 0x538f3a
test eax, eax
jne 0x538f0a
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x60
push 1
push 1
push 0x80
push 0x100081
push eax
lea eax, [ebp + 0xc]
push eax
call sym.SystemInformer.exe_PhCreateFile
test eax, eax
jns 0x538f35
lfence
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
mov bl, 1
push esi
push 0x8000000
push 2
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x1000
push eax
push 0
push 5
lea eax, [esp + 0x24]
mov dword [esp + 0x34], 0
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test bl, bl
je 0x538f73
push esi
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x538f85
lfence
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 2
push 0
push 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1000
push eax
push 0
push 0
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0xffffffffffffffff
push dword [esp + 0x30]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword ds:[esp + 0xc]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jns 0x538fd8
lfence
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00538bc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x539040
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x60], 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 0x5390d1
test ecx, ecx
jne 0x53908e
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8
push 0
push 0x60
push 1
push 1
push 0x80
push 0
push 0x100081
push ecx
lea eax, [esp + 0x44]
push eax
call sym.SystemInformer.exe_PhCreateFileWin32Ex
test eax, eax
jns 0x5390cb
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x24]
mov bl, 1
push 5
push 0x18
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x53917e
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x5c]
push esi
push 0x8000000
push 2
push eax
push 0
push 5
lea eax, [esp + 0x28]
mov dword [esp + 0x30], edx
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x53917e
mov eax, dword [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 ds:[esp + 0x10]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x53917e
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
mov edi, edi
test bl, bl
je 0x53918b
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8
Function at 0x5391c0
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x60], 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 0x53924a
test ecx, ecx
jne 0x53920e
mov eax, 0xc0000030
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057ee0f
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 0x539244
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x24]
mov bl, 1
push 5
push 0x18
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x5392f1
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x5c]
push esi
push 0x8000000
push 2
push eax
push 0
push 5
lea eax, [esp + 0x28]
mov dword [esp + 0x30], edx
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x5392f1
mov eax, dword [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 0x5392f1
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 0x5392fc
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 8
Function at 0x5395e0
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 0x539614
pop edi
mov eax, 0xc0000017
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x53979b
lea esp, [esp]
cmp ebx, 0xffffffff
je 0x53979b
push esi
push 0x1000
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x1000
mov esi, eax
push 0
push esi
mov dword [ebp - 4], esi
call fcn.00580ff0
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 [0x5a28f0]
call esi
mov esi, eax
lfence
test esi, esi
js 0x539792
mov ecx, dword [ebp - 4]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x539779
mov ebx, dword [ecx + 0x3c]
test ebx, ebx
je 0x539779
cmp ebx, dword [ebp + 8]
jae 0x539779
lea ecx, [ecx]
cmp ebx, 0x10000000
jae 0x539779
lea eax, [ebx + 0xf8]
cmp eax, 0x1000
jb 0x5396c5
mov esi, 0xc0000017
jmp 0x53977e
cmp dword [ebx + ecx], 0x4550
lea edx, [ebx + ecx]
je 0x5396db
mov esi, 0xc000007b
jmp 0x53977e
movzx eax, word [edx + 0x14]
mov dword [ebp - 0xc], 0xe0
cmp ax, word [ebp - 0xc]
je 0x539702
mov dword [ebp - 0xc], 0xf0
cmp ax, word [ebp - 0xc]
je 0x539702
mov esi, 0xc0000903
jmp 0x53977e
movzx eax, word [edx + 0x18]
mov dword [ebp - 0xc], 0x10b
mov word [edi + 0x18], ax
cmp ax, word [ebp - 0xc]
je 0x539726
mov dword ds:[ebp - 0xc], 0x20b
cmp ax, word [ebp - 0xc]
jne 0x5396d1
movzx eax, word [edx + 6]
mov dword [edi + 0x10], eax
cmp eax, 0x7f
jae 0x5396d1
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 0x539754
mov ecx, dword [ebp - 4]
mov esi, 0xc0000017
jmp 0x53977e
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 [0x633f94]
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 0x53f240
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 0x53f419
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 0x53f27c
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 0x53f345
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x53f411
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.00581150
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 0x53f33f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor edi, edi
mov edx, eax
test esi, esi
je 0x53f324
mov ecx, dword [ebx + 0x18]
add ecx, dword [ebx]
movzx eax, byte [ecx + edi]
shr eax, 4
movsx eax, byte [eax + 0x6178c0]
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 + 0x6178c0]
mov word [edx + 2], ax
mov eax, 0x20
mov word [edx + 4], ax
add edx, 6
cmp edi, esi
jb 0x53f2e6
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 0x53f3ff
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 0x53f411
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.00581150
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
je 0x53f3fc
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.00581150
add esp, 0xc
test esi, esi
je 0x53f3e6
mov ecx, 0x5e
cmp byte [ebx + 0x28], 0
mov al, byte [edi]
movzx eax, al
jge 0x53f3d1
push 0x117
push eax
call fcn.0058932e
add esp, 8
mov ecx, 0x5e
jmp 0x53f3d9
sub eax, 0x20
cmp ecx, eax
sbb eax, eax
inc eax
test eax, eax
jne 0x53f3e0
mov byte [edi], 0x2e
inc edi
sub esi, 1
jne 0x53f3b1
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 0x53f420
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 0x53f54f
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 0x53f473
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 8], eax
test ebx, ebx
je 0x53f549
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 0x53f4a4
mov esi, edx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], esi
mov edx, ecx
test byte [edi + 0x28], 0x10
je 0x53f4f5
cmp esi, 0xffffffff
jne 0x53f4cb
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x53f4bd
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
mov ecx, dword [ebp - 4]
mov edx, edi
push ebx
push esi
call fcn.0053f640
jmp 0x53f512
mov ecx, dword [ebp - 4]
push edx
push esi
mov edx, edi
call fcn.0053f560
mov ecx, dword ds:[ebp - 4]
mov edx, edi
push ebx
push esi
call fcn.0053f640
mov ecx, dword [ebp - 4]
mov edx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0053f060
jmp 0x53f512
cmp esi, 0xffffffff
jne 0x53f508
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x53f508
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.00581150
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 0x543000
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x62d040]
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 0x5431ff
mov eax, dword ds:[ebp - 8]
or eax, dword [ebp - 0x10]
or eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x14]
je 0x5431ff
cmp dword [esi + 0x1bc], 0
jg 0x5430ad
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 0x54307b
mov dword [esi + 0x1c0], ebx
jmp 0x54308d
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 0x5430a0
test eax, eax
je 0x5431ff
jmp 0x5431f4
test dword [esi + 0x20], 0x200000
je 0x54316c
cmp dword [esi + 0x17c], 0
jne 0x54316c
push dword [esi]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x54316c
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x17c], eax
test eax, eax
je 0x54316c
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 0x54314a
push dword [esi + 0x17c]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 0x17c], 0
jmp 0x54316c
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 0x5431ff
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 0x5431e8
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00548340
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 0x5431f4
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push ebx
call fcn.00548340
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.0057ee0f
mov esp, ebp
pop ebp
ret
Function at 0x568d20
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xc
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
xor eax, eax
cmp dword [0x62dbb0], 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 0x568d7c
push esi
push eax
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x62dbb0], 0x3f
lea ecx, [ebp - 4]
push 4
push ecx
push 0x54
push eax
jae 0x568da9
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 [0x62dbb0]
cmp eax, 0x64
jb 0x568df6
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 [0x62dbb0]
cmp eax, 0x72
jb 0x568e15
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 0x568f60
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 0x568fa5
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 0x569180
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 0x5691ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x569208
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 0x569212
lea ecx, ds:[esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x569208
call fcn.004fbe40
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 0x5692a0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x21c], eax
mov edx, dword [ebp + 0xc]
lea eax, [esp + 4]
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 0x56934e
lea eax, [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push 0xa
lea eax, [esp + 0x18]
push eax
call sym.SystemInformer.exe_PhStringToInteger64
test al, al
je 0x56934e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi], eax
mov al, 1
mov dword [edi + 4], ecx
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword ds:[esp + 0x224]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x569480
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0059f780
mov eax, dword [0x62d040]
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 [0x633f94]
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 0x5695a8
mov ecx, dword [ebp - 0x1008]
test ecx, ecx
je 0x569575
lea eax, ds:[ecx + ebx]
cmp edi, eax
jae 0x569532
add edi, edi
push edi
test esi, esi
jne 0x56951b
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x56952a
push esi
push 4
push dword [0x633f94]
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.00581150
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 0x5694f0
lea eax, [ebx + 1]
cmp edi, eax
jae 0x5695a8
inc edi
lfence
push edi
test esi, esi
jne 0x569595
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x5695a6
push esi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov esi, eax
mov byte [ebx + esi], 0
test ebx, ebx
je 0x5695ee
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x5695be
mov dword [eax], esi
jmp 0x5695cd
push esi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x5695d9
mov dword [eax], ebx
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push dword [0x633f94]
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.0057ee0f
mov esp, ebp
pop ebp
ret 0xc