joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401539
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x694
mov eax, dword [0x46f06c]
xor eax, esp
mov dword [esp + 0x690], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0xc], eax
push 0x40152c
mov dword [esp + 0x14], ebx
call fcn.00437810
mov dword [esp], 0x40152c
call fcn.004336eb
mov dword [esp], 0x40152c
call fcn.00430cae
mov dword [0x4d8518], 1
mov byte [0x4d851c], 1
mov dword [esp], 0x471bb0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x40bac2
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push str.seup_process
lea ecx, [esp + 0x1c]
call fcn.004017f0
or edi, 0xffffffff
lea eax, [esp + 0x18]
push edi
push ebx
push eax
mov ecx, 0x47047c
call fcn.004019c8
push ebx
push 1
lea ecx, [esp + 0x20]
call fcn.004018fa
push 0x208
lea eax, [esp + 0x28c]
push ebx
push eax
call fcn.004352b0
add esp, 0xc
lea eax, [esp + 0x288]
push 0x104
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x54]
call fcn.004017bf
lea eax, [esp + 0x288]
push eax
call fcn.00401320
lea ecx, [esp + 0x6c]
mov dword [esp], 0x465b08
mov esi, eax
call fcn.004017bf
push eax
lea ecx, [esp + 0x14]
call fcn.0040179f
push dword [esp + 0x14]
lea eax, [esp + 0x28c]
push dword [esp + 0x14]
push esi
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.0041b0e0
add esp, 0x14
lea ecx, [esp + 0x68]
xor esi, esi
push esi
push 1
call fcn.0040182a
cmp dword [esp + 0x60], 3
jbe 0x40177a
mov edi, 0x208
lea eax, [esp + 0x80]
push edi
push esi
push eax
call fcn.004352b0
add esp, 0xc
lea eax, [esp + 0x80]
push 0x104
push eax
push esi
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call esi
push str.360base.dll
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x80]
push eax
call fcn.0041c170
lea ecx, [esp + 0x30]
call fcn.00415850
cmp dword [0x4d8524], 0
jne 0x4016f0
call fcn.00416bc0
push edi
xor esi, esi
lea eax, [esp + 0x494]
push esi
push eax
call fcn.004352b0
add esp, 0xc
lea eax, [esp + 0x490]
push 0x104
push eax
push esi
call ebx
test eax, eax
je 0x40174e
mov edx, 0x8f2
lea ecx, [esp + 0x68]
call fcn.00409c3f
cmp dword [eax + 0x14], 8
jb 0x40172e
mov eax, dword [eax]
sub esp, 0x14
lea ecx, [esp + 0x4a4]
mov edx, eax
call fcn.0041c740
add esp, 0x14
lea ecx, [esp + 0x68]
push esi
push 1
call fcn.0040182a
mov ecx, dword [0x4d8524]
push str.360seup
call fcn.00417370
test al, al
je 0x40176b
mov ecx, dword [esp + 0xc]
call fcn.0040456e
mov edi, dword [0x471938]
lea ecx, [esp + 0x30]
call fcn.004158d0
push esi
push 1
lea ecx, [esp + 0x58]
call fcn.0040182a
mov ecx, dword [esp + 0x69c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043223c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402465
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x402478
push 0xd
pop eax
jmp 0x4024bc
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x40248b
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x402483
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402894
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40c], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x4028ff
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4028ff
call fcn.00402053
mov esi, eax
jmp 0x4029d2
push dword [ebp - 0x40c]
push dword [ebp - 0x410]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x402922
call fcn.00402053
jmp 0x4029c5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x402918
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x402948
mov esi, 0x8007000e
jmp 0x4029c7
push 2
pop ecx
mul ecx
test edx, edx
jne 0x402a00
cmp eax, 0xffffffff
ja 0x402a00
cmp eax, 0x400
jbe 0x402973
push eax
lea ecx, [ebp - 0x408]
call fcn.00404afe
jmp 0x40297f
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
je 0x402941
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x402918
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.004033ca
mov esi, eax
test edi, edi
je 0x4029d2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x4029eb
lea ecx, [ebp - 0x408]
call fcn.00404a6a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223c
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00401fa4
int3
Function at 0x4042bd
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x466fa8
lea ecx, [ebp - 0x34]
call fcn.004017bf
xor edi, edi
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
mov esi, edi
cmovae eax, dword [ebp - 0x34]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x404371
inc esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404371
mov edx, 0x8f0
lea ecx, [ebp - 0x1c]
call fcn.00409c3f
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x40435d
push esi
call dword [sym.imp.USER32.dll_IsIconic]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x404348
push 1
push esi
call edi
push 5
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor edi, edi
push ebx
mov esi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040182a
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.0040182a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223c
mov esp, ebp
pop ebp
ret
Function at 0x40438f
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
push 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 8
push eax
mov dword [ebp - 8], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
and dword [0x472e54], 0
mov esi, dword [0x470428]
mov eax, dword [0x47042c]
jmp 0x4043ff
mov ecx, dword [esi]
test ecx, ecx
je 0x4043fc
push 1
call dword [ecx + 0x1c]
mov eax, dword [0x47042c]
add esi, 4
cmp esi, eax
jb 0x4043ec
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
and dword [0x472e5c], 0
push 0xc
mov dword [0x472e58], eax
call fcn.0043224d
mov esi, dword [0x47192c]
xorps xmm0, xmm0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esi, 0x10
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], esi
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [0x472e5c], eax
lea eax, [ebp - 0x64]
push esi
mov dword [0x472e60], ecx
mov dword [ebp - 0x64], 0x467140
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], eax
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x472e5c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00404863
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x18], 0
call fcn.00404b44
xor eax, eax
mov dword [ebp - 0x2c], 1
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov ecx, dword [ebp - 0x10]
call fcn.004132a6
call fcn.0040cf2b
mov ecx, eax
call fcn.0040cf57
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x64]
call fcn.00403ea6
mov esi, dword [0x47192c]
add esi, 0x10
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x1c], esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [0x472e5c]
mov ecx, edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404994
cmp eax, 0xffffffff
je 0x404511
push eax
mov ecx, edi
call fcn.004049c1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x18], 0
call fcn.00404b44
push dword [ebp - 0x14]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
call fcn.00403fdf
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x54], 0
je 0x40454b
push dword [ebp - 0x54]
call fcn.00414b6c
and dword [ebp - 0x54], 0
pop ecx
and dword [ebp - 0x50], 0
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x60], 0
je 0x404562
push dword [ebp - 0x60]
call fcn.00414b6c
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40573b
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x3c
pop ebx
xor eax, eax
mov esi, edx
push ebx
push eax
lea eax, [ebp - 0x3c]
mov edi, ecx
push eax
call fcn.004352b0
push 0x2454
push 0
push esi
call fcn.004352b0
lea eax, [esi + 8]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
mov ecx, 0x800
lea eax, [esi + 0x2148]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x2c], eax
add esp, 0x18
lea eax, [esi + 0x48]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebx + 0x44]
lea eax, [esi + 0x1048]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [esi + 0x2348]
mov dword [ebp - 0x14], ecx
mov ecx, edi
mov dword [ebp - 0x20], eax
lea eax, [esi + 0x2048]
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
mov dword [ebp - 0x18], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4057c4
lea eax, [ebp - 0x3c]
sub ecx, edx
push eax
push dword [ebp + 8]
sar ecx, 1
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x405819
mov edx, dword [ebp - 0x30]
xor eax, eax
inc eax
cmp edx, 3
je 0x4057fa
cmp edx, 4
je 0x4057fa
cmp edx, eax
jne 0x405819
mov cx, word [ebp - 0x24]
or dword [esi + 0x2450], 0xffffffff
mov dword [esi + 0x2448], ebx
mov dword [esi + 0x244c], ebx
mov word [esi], cx
mov dword [esi + 4], edx
jmp 0x40581b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405822
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x472e74], 0
je 0x405836
xor eax, eax
jmp 0x4058d1
push edi
push str.MetalinkFile
mov edi, 0x4d0398
push edi
call fcn.00433710
pop ecx
pop ecx
test eax, eax
je 0x405861
xor ecx, ecx
mov word [eax], cx
add eax, 0x1a
push eax
call fcn.0043ba65
pop ecx
mov dword [0x4754fc], eax
mov eax, dword [0x4d5b48]
sub eax, dword [0x4d5b44]
push esi
mov esi, 0x2454
cdq
idiv esi
xor esi, esi
test eax, eax
jne 0x40588d
push esi
mov edx, 0x472e78
mov ecx, edi
call fcn.0040573b
pop ecx
test eax, eax
je 0x4058cf
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4752cc], eax
test eax, eax
je 0x4058cc
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push 0x472e68
push 0x405b2f
push esi
push esi
mov dword [0x4cff60], 8
call fcn.0043a80c
add esp, 0x18
mov dword [0x472e74], eax
xor eax, eax
inc eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406520
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
inc ebx
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x406595
cmp dword [edi + 0x2480], 0
je 0x406582
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x406586
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x4065b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4065b7
jmp 0x406582
cmp dword [esi], 0
jne 0x4065a6
mov eax, dword [esi + 4]
test eax, eax
je 0x4065a6
mov dword [esi + 0x18], eax
jmp 0x406582
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.004078ce
test eax, eax
jne 0x406582
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x406ca5
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x406d19
cmp dword [edi + 0x2480], 0
je 0x406d45
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x406d07
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x406d45
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x406d48
cmp dword [esi], 0
jne 0x406d2a
mov eax, dword [esi + 4]
test eax, eax
je 0x406d2a
mov dword [esi + 0x18], eax
jmp 0x406d45
push 1
push ebx
mov dword [esi + 0x28], 4
call fcn.004078ce
test eax, eax
jne 0x406d45
push ebx
mov ecx, edi
call fcn.004073f3
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40701b
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x26d8]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa
mov ebx, dword [eax + ebx*4]
xor eax, eax
mov dword [ebp - 4], ecx
pop ecx
push 0x8000
lea edx, [ebx + 0x8044]
mov edi, edx
lea esi, [ebx + 0x40]
push eax
rep stosd dword es:[edi], eax
push esi
mov dword [edx], 0x28
call fcn.004352b0
mov ecx, dword [ebx + 0x8040]
lea edi, [ebx + 0x805c]
add esp, 0xc
mov dword [ebx + 0x8058], esi
mov esi, dword [ebp - 4]
mov edx, 0x8000
mov dword [edi], edx
test ecx, ecx
je 0x407084
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0x18]
sub eax, dword [ecx + 8]
inc eax
jmp 0x4070a2
cmp dword [esi + 0x5d100], 0xffffffff
jne 0x407096
cmp dword [esi + 0x5d104], 0xffffffff
je 0x4070a9
mov eax, dword [esi + 0x5d100]
sub eax, dword [esi + 0x5d110]
cmp eax, edx
cmovg eax, edx
mov dword [edi], eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x28], 9
cmp dword [eax + 4], 1
je 0x407109
push ebx
push 1
lea ecx, [ebx + 0x8044]
push ecx
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x4070e7
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x407100
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4070e2
push dword [ebp + 8]
mov ecx, esi
call fcn.004073f3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push dword [edi]
push dword [ebx + 0x8058]
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4070d5
Function at 0x40750e
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x14], esi
push 0x10000000
push ecx
lea eax, [esi + 0x61850]
mov dword [ebp - 0xc], ecx
cmp dx, word [eax]
push ecx
push ecx
cmove eax, ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x14], eax
test eax, eax
je 0x4076c7
mov eax, dword [ebx + 0x20]
xor ebx, ebx
mov dword [ebp - 0x10], eax
lea edx, [eax + 0x2348]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40756c
sub ecx, edi
sar ecx, 1
cmovne ebx, edx
mov edx, dword [ebp - 0x10]
add edx, 0x2048
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x40758c
sub ecx, edi
push 0
sar ecx, 1
pop eax
mov edi, eax
cmovne edi, edx
test ebx, ebx
jne 0x4075ca
lea edx, [esi + 0x60608]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x4075b6
sub ecx, dword [ebp - 8]
sar ecx, 1
cmovne ebx, edx
test edi, edi
jne 0x4075ec
add esi, 0x60708
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x4075d9
sub ecx, edx
sar ecx, 1
cmovne edi, esi
mov eax, dword [ebp - 0x10]
xor esi, esi
push 3
pop ecx
inc esi
cmp dword [eax + 4], esi
push 0x405bf9
push dword [ebp - 0x18]
cmovne esi, ecx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push edx
mov ecx, dword [edx + 0x20]
push dword [eax + 0x26d4]
push esi
movzx eax, word [ecx]
push edi
push ebx
push eax
lea eax, [ecx + 0x2148]
push eax
push dword [edx + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4076c7
mov edi, dword [ebp - 0x14]
add edi, 0x60808
xor esi, esi
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40764e
sub ecx, edx
sar ecx, 1
je 0x4076c2
mov dword [ebp - 0x24], 3
test edi, edi
jne 0x40766f
mov dword [ebp - 0x20], esi
jmp 0x4076aa
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x407674
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x407692
xor eax, eax
jmp 0x4076a7
add esi, esi
mov eax, esi
call fcn.004329f0
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.004054bd
mov dword [ebp - 0x20], eax
push 0xc
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], 0x467288
push ecx
push 0x26
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x4076c9
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret 4
Function at 0x4076df
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.004330f0
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x1028], 0x4672a0
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [eax + 0x2480]
mov dword [ebp - 0x1010], eax
mov ax, word [0x465b08]
push 0xffe
mov word [ebp - 0x100c], ax
lea eax, [ebp - 0x100a]
push ebx
push eax
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1024], ebx
call fcn.004352b0
mov ecx, dword [edi + 0x20]
add esp, 0xc
lea eax, [ecx + 0x1048]
push eax
lea eax, [ecx + 0x48]
push eax
push 0x4672a8
lea eax, [ebp - 0x100c]
push 0x7ff
push eax
call fcn.0040940d
mov eax, dword [ebp - 0x1010]
add esp, 0x14
mov ecx, 0x8400c300
mov edx, 0x8408c300
cmp dword [eax + 0x62cb4], ebx
mov eax, dword [edi + 0x20]
cmove edx, ecx
push edi
mov ecx, edx
or ecx, 0x803000
cmp dword [eax + 4], 4
lea eax, [ebp - 0x1028]
cmovne ecx, edx
test esi, esi
push ecx
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x100c]
mov ecx, str.POST
push eax
mov eax, 0x46728c
cmovne eax, ecx
push eax
push dword [edi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0x1c], eax
test eax, eax
je 0x4078b9
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 0x1018]
push 4
push ecx
push 2
pop ecx
push ecx
push eax
mov dword [ebp - 0x1018], 0x3a98
call esi
push 4
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x101c], 1
push eax
push 0x41
push dword [edi + 0x1c]
call esi
push 0xa
mov dword [ebp - 0x1020], eax
lea edi, [ebp - 0x1050]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x1050], 0x28
push 2
pop edx
mov eax, 0x5168
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004326f5
mov esi, eax
pop ecx
test esi, esi
je 0x407892
push 0xa2d0
push ebx
push esi
call fcn.004352b0
mov edi, dword [ebp - 0x1014]
add esp, 0xc
push dword [ebp - 0x1020]
push ecx
mov ecx, dword [ebp - 0x1010]
push esi
push edi
call fcn.004079a2
mov ecx, esi
mov dword [ebp - 0x1048], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40787b
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x1044], ecx
jmp 0x407898
mov edi, dword [ebp - 0x1014]
push edi
push 1
push ebx
lea eax, [ebp - 0x1050]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov ebx, eax
test esi, esi
je 0x4078b9
push esi
call fcn.004324e8
pop ecx
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223c
mov esp, ebp
pop ebp
ret 4