joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f50
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0
jne 0x405f91
push 0x10
call fcn.004a7933
add esp, 4
test eax, eax
je 0x405f7e
mov dword [eax], vtable.lagent::ActiveChecking.0
mov dword [eax + 4], 0
mov byte [eax + 8], 1
mov dword [eax + 0xc], edi
jmp 0x405f80
xor eax, eax
mov dword [edi + 0x34], eax
mov byte [0x511d70], 1
mov byte [0x511d71], 1
cmp dword [edi + 0x38], 0
jne 0x405fb9
push 8
call fcn.004a7933
add esp, 4
test eax, eax
je 0x405fb4
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x405fb6
xor eax, eax
mov dword [edi + 0x38], eax
mov esi, dword [edi + 0x38]
push 0
push 0
push dword [edi + 0x34]
push 0x405550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop edi
pop esi
test eax, eax
je 0x405fe4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret
Function at 0x406d30
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4de670
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x50c7c4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 4]
mov dword [esp + 0x10], 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x406dae
mov ecx, dword [edi + 4]
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push 4
push esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], str.LenovoCCSDK_Stop
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [edi + 0x28], 1
push dword [0x512ca0]
call esi
movzx ecx, byte [0x512ca4]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov byte [0x512ca4], cl
push dword [edi + 0x54]
call esi
test eax, eax
je 0x406de7
mov byte [edi + 0x58], 1
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x406df3
call fcn.00429f40
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x406dff
call fcn.00402fa0
push ecx
push 0
push 0x18c
push str.ServiceWrapper.cpp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.004a44e0
mov dword [esp + 0x28], 0
mov edx, str.Waiting_for_stop_event.
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004a4a80
mov esi, dword [esp + 0xc]
test esi, esi
je 0x406e77
push dword [esi + 4]
call fcn.004a861d
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x406e6e
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
push esi
call fcn.004a78e3
add esp, 4
push 0xffffffffffffffff
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406e9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 0x5095a4
push eax
call fcn.004ad92b
push ecx
push 0
push 0x191
push str.ServiceWrapper.cpp
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.004a44e0
mov dword [esp + 0x28], 1
mov edx, str.Service_stop_finished.
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004a4a80
mov esi, dword [esp + 0x14]
test esi, esi
je 0x406f17
push dword [esi + 4]
call fcn.004a861d
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x406f0e
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
push esi
call fcn.004a78e3
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416ef0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dffd8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
add ecx, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
cmp dword [ecx + 0x14], 0x10
jb 0x416f34
mov ecx, dword [ecx]
push 0
push 1
lea edx, [ebp - 0x44]
call fcn.00492790
add esp, 8
test eax, eax
je 0x416f5a
push dword [ebp - 0x44]
call fcn.00491410
add esp, 4
or esi, 0xffffffff
jmp 0x4170b7
call fcn.00490b70
test eax, eax
jne 0x4170a7
push 0x11
call fcn.00435170
mov esi, eax
add esp, 4
test esi, esi
je 0x4170a7
mov ebx, dword [ebp - 0x44]
mov eax, 0x33333333
mov byte [esi + 0x10], 0
movq xmm0, qword [str.123qwe__]
movq qword [esi], xmm0
mov cl, byte [0x4efd4c]
mov byte [esi + 8], cl
mov dword [esi + 9], eax
mov word [esi + 0xd], ax
mov byte [esi + 0xf], al
mov eax, dword [ebx + 8]
push ecx
mov ecx, esi
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call fcn.00493440
mov ecx, dword [ebx + 8]
add esp, 4
mov edx, str.SELECT_count___FROM_sqlite_master_WHERE_type__table_AND_name__
mov esi, 1
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [ecx + 0xb0], eax
lea eax, [ebp + 8]
mov dword [ecx + 0xa4], 0x4932d0
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a6e0
add esp, 4
push 0x4f02bc
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403c80
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2c], 0x10
jb 0x41701b
push dword [ebp - 0x40]
call fcn.004a78e3
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x48]
push 0
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x2c], 0xf
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 0x40], 0
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push ebx
call fcn.00482250
mov edi, dword [ebp - 0x44]
add esp, 0x18
test eax, eax
jne 0x41706d
mov eax, dword [ebp - 0x48]
push dword [edi + eax*4]
call fcn.004a8cc1
add esp, 4
test eax, eax
jne 0x417070
xor esi, esi
jmp 0x417070
or esi, 0xffffffff
push edi
call fcn.004823f0
add esp, 4
push ebx
call fcn.00491410
add esp, 4
cmp dword [ebp - 0x14], 0x10
jb 0x417093
push dword [ebp - 0x28]
call fcn.004a78e3
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jmp 0x4170b7
push dword [ebp - 0x44]
call fcn.00491410
add esp, 4
mov esi, 0xfffffff7
cmp dword [ebp + 0x1c], 0x10
jb 0x4170c8
push dword [ebp + 8]
call fcn.004a78e3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41aac0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e05be
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x50c7c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0041add0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
lea ecx, [edi + 0x24]
push eax
push 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.0041add0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov edx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x68], eax
mov dword [edi + 0x58], edx
mov dword [edi + 0x60], 0
mov byte [edi + 0x64], 0
movsx eax, byte [edx + 8]
and eax, 8
shr eax, 3
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [edx + 0x18]
call fcn.0041ac80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41c360
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x41c391
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x41c380
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x4248b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4248d8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.004a9204
add esp, 8
test eax, eax
sete al
test al, al
jne 0x42490c
push esi
call fcn.004a9848
add esp, 4
cmp eax, 0xffffffff
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
Function at 0x425df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e1208
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x50c7c4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x50c7c4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x425f44
cmp byte [ebx + 0x45], 0
je 0x425f44
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x425e50
xor al, al
jmp 0x425f46
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x425e90
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x425ed1
dec eax
je 0x425ed5
sub eax, 2
je 0x425f2b
xor bl, bl
jmp 0x425f2d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x425f0c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004a9cd8
add esp, 0x10
cmp esi, eax
jne 0x425ecd
cmp byte [ebx + 0x45], 0
je 0x425f2b
test esi, esi
jne 0x425e90
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040fcc0
jmp 0x425e90
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x425f40
push dword [esp + 0x18]
call fcn.004a78e3
add esp, 4
mov al, bl
jmp 0x425f46
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
Function at 0x4297f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e173b
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x44c], 0
push eax
push 0x20019
push 0
push str.SOFTWAREPoliciesLenovoLenovoCustomerFeedbackSDK
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x429869
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4eef1c
mov ecx, edi
call fcn.00407380
jmp 0x4299c3
xor esi, esi
mov dword [ebp - 0x440], 0x104
xor eax, eax
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x448], 4
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], esi
mov word [ebp - 0x438], ax
push eax
push eax
push eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x440]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
push dword [ebp - 0x43c]
call ebx
test eax, eax
jne 0x429992
lea ebx, [ebx]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x450]
push eax
push 0
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x42993b
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x440]
mov dword [ebp - 0x440], 0x104
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x448], 0x104
push eax
inc esi
push esi
push dword [ebp - 0x43c]
call ebx
test eax, eax
je 0x4298d0
jmp 0x429992
push dword [ebp - 0x444]
lea eax, [ebp - 0x218]
push 0x4f40a0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp word [ebp - 0x218], 0
jne 0x429964
xor ecx, ecx
jmp 0x42997f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429970
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00409170
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x438]
mov ecx, edi
push eax
call fcn.00424ba0
cmp dword [ebp - 0x424], 8
jb 0x4299c3
push dword [ebp - 0x438]
call fcn.004a78e3
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
Function at 0x42b050
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.004af8a0
add esp, 8
lea ecx, [ebp - 0x208]
push str.SELECT__FROM_Win32_BIOS
call fcn.00496db0
add esp, 8
cmp word [ebp - 0x208], 0
jne 0x42b0aa
xor ecx, ecx
jmp 0x42b0c2
lea ecx, [ebp - 0x208]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b0b3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
call fcn.00409170
push ecx
push str.SELECT__FROM_Win32_baseboard
lea ecx, [ebp - 0x208]
call fcn.00496db0
add esp, 8
cmp word [ebp - 0x208], 0
jne 0x42b0f3
xor ecx, ecx
jmp 0x42b10f
lea ecx, [ebp - 0x208]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b100
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x208]
mov ecx, edi
push eax
call fcn.00409170
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret 8

Function at 0x42b280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [esp + 8]
push esi
push edi
push eax
push 0
push 0
push 8
push str.EDID
mov edi, ecx
mov dword [esp + 0x28], edx
push 0
push edi
call ebx
test eax, eax
jne 0x42b2e0
push dword [esp + 0x10]
call fcn.004a633d
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 8
push str.EDID
push 0
push edi
call ebx
push esi
test eax, eax
je 0x42b2e9
call fcn.004a861d
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edi, byte [esi + 0x44]
movzx eax, byte [esi + 0x42]
mov ebx, edi
shr ebx, 4
and edi, 0xf
shl ebx, 8
add ebx, eax
shl edi, 8
movzx eax, byte [esi + 0x43]
add edi, eax
call fcn.004a861d
movd xmm1, edi
add esp, 4
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm0, xmm1
call fcn.004ddd90
divsd xmm0, qword [0x4fe268]
divsd xmm0, qword [0x4fe250]
comisd xmm0, xmmword [0x4fe268]
jbe 0x42b2e0
movsd xmm1, qword [0x4fe270]
comisd xmm1, xmm0
jbe 0x42b2e0
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4309b0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e21b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x50c7c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov edi, ecx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4309e8
xor esi, esi
jmp 0x430a03
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x430a03
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4309f4
sub esi, ecx
sar esi, 1
push 0xc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push eax
push 0x26
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x430a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push 0
push eax
push eax
push dword [ebp - 0x14]
push esi
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x430aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0
push 0x68
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov edi, eax
call fcn.004a44e0
mov dword [ebp - 4], 0
mov edx, str.WinHttpSendRequest_without_proxy_error:
mov eax, dword [ebp - 0x14]
push edi
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4a80
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x430ada
push dword [esi + 4]
call fcn.004a861d
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x430ad1
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
push esi
call fcn.004a78e3
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x430a25
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430b20
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e21e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x50c7c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x10]
xor ebx, ebx
test eax, eax
jne 0x430b5d
xor esi, esi
jmp 0x430b7f
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x430b7f
mov esi, eax
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x430b70
sub esi, ecx
sar esi, 1
push 0
push edi
mov ecx, edx
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0x30], ebx
mov dword [edx + 0x34], ebx
call fcn.00499a00
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp eax, 0x103
je 0x430c74
jmp 0x430bb0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x430c78
push eax
push ecx
push ecx
push edx
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x430c99
call ebx
push ecx
push 0
push 0xad
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov ebx, eax
call fcn.004a44e0
mov dword [ebp - 4], 0
mov edx, str.WinHttpSendRequest_error:
mov eax, dword [ebp - 0x18]
push ebx
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4a80
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x430c56
push dword [edi + 4]
call fcn.004a861d
mov ecx, dword [edi + 0xc]
add esp, 4
test ecx, ecx
je 0x430c4d
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
push edi
call fcn.004a78e3
add esp, 4
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push ebx
push edi
call fcn.00499a00
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp eax, 0x103
jne 0x430bb0
test ebx, ebx
je 0x430cc0
push esi
push dword [ebp + 0x10]
push ecx
mov ecx, edi
call fcn.004309b0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x430cac
call ebx
mov ebx, eax
jmp 0x430c59
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430f30
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x20], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], edi
test ebx, ebx
jne 0x430f65
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
mov dword [ebp - 0x1c], 0x14
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
push ecx
push ebx
push 0xffff
push eax
movdqu xmmword [ebp - 0x18], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x430fc1
mov eax, dword [ebp - 0x1c]
mov ecx, edi
shr eax, 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00424c10
mov esi, 1
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x431032
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x431032
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a633d
push dword [ebp - 0x1c]
mov edi, eax
push 0
push edi
call fcn.004af8a0
add esp, 0x10
lea eax, [ebp - 0x1c]
push 0
push eax
push edi
push ebx
push 0xffff
push dword [ebp - 0x20]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x431029
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
shr eax, 1
push eax
push edi
call fcn.00424c10
mov esi, 1
push edi
call fcn.004a78e3
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret