joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e85d
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00441f50
mov ecx, dword [ecx]
lea eax, [ebp - 0x10020]
push ebx
mov bl, dl
mov edx, 0x7fff
push eax
call fcn.0046dde0
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.0046e199
test al, al
je 0x46e8a5
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0x46e8aa
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x46e8f2
xor al, al
pop ebx
leave
ret
call fcn.00424963
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], 3
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x46e8a5
mov al, 1
jmp 0x46e8a7

Function at 0x46e97b
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0x46e9f9
jne 0x46e98e
push 0
jmp 0x46e9f3
cmp esi, 0xf
jae 0x46e9f2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
test eax, eax
je 0x46e9f2
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0x4b10e8]
call fcn.004420b0
cmp eax, esi
jb 0x46e9ab
jmp 0x46e9f9
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret

Function at 0x46eb20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x46eb7b
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x4704d2
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x470517
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47059d
push 1
mov edx, esi
mov ecx, eax
call fcn.00470371
pop ecx
jmp 0x47059f
test dword [ebp + 8], eax
je 0x47053d
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x4705a1
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x47057d
or eax, 0xffffffff
jmp 0x4705a1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x470554
cmp eax, 0xffffffff
jne 0x470506
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x4c6a10
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47059d
test eax, eax
je 0x47059d
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00470371
pop ecx
cmp dword [esi], edi
je 0x470596
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x47059f
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10

Function at 0x4705a7
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x4705eb
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47066f
push 1
mov edx, esi
mov ecx, eax
call fcn.00470371
pop ecx
jmp 0x470671
test al, 1
je 0x470610
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x470673
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x47064f
or eax, 0xffffffff
jmp 0x470673
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x470626
cmp eax, 0xffffffff
jne 0x4705da
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push SysReAllocString
push 0x4c6a10
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47066f
test eax, eax
je 0x47066f
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00470371
pop ecx
cmp dword [esi], edi
je 0x470668
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x470671
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10
Function at 0x4707ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 0x1f5
lea esi, [ebx + 0x38]
mov dword [ebp - 8], edi
push esi
call edi
mov eax, dword [ebx + 8]
mov ecx, 0xffff
test eax, eax
jne 0x470826
push ecx
call fcn.0041fe0b
pop ecx
mov ecx, 0xffff
mov dword [ebx + 8], eax
push ecx
mov dword [ebx + 0x14], ecx
call fcn.0041fe0b
pop ecx
push 0
mov dword [ebx + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0xffff
push dword [ebx + 8]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x470907
cmp dword [ebp - 4], 0
jbe 0x470901
lea esi, [ebx + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [ebx + 0x14], eax
jae 0x4708c2
mov eax, dword [ebx + 0x10]
add eax, dword [ebp - 4]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
jns 0x47088d
fadd qword [0x4c81c0]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x4c33f8]
call fcn.004420b0
push eax
mov dword [ebx + 0x14], eax
call fcn.0041fe0b
push dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
push edi
push dword [ebx + 0xc]
call fcn.00420e20
push edi
call fcn.0041fe14
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0xc]
push ecx
push dword [ebx + 8]
push eax
call fcn.00420e20
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push 0xffff
push dword [ebx + 8]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x470855
mov edi, dword [ebp - 8]
lea esi, [ebx + 0x38]
cmp dword [ebx + 8], 0
je 0x47091a
push dword [ebx + 8]
call fcn.0041fe14
and dword [ebx + 8], 0
pop ecx
mov ebx, 0x1f6
push ebx
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x47096b
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0
je 0x4709d7
push ebx
lea ebx, [edi + 0x38]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp eax, 0x1f6
je 0x4709d6
push esi
lea esi, [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x1f6
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push 0x3e8
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [edi + 0x34], 0
je 0x4709c2
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [edi + 0x34], 0
push 0x1f6
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
pop edi
ret
Function at 0x473d1e
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.00441f50
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x473dd4
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push str.___s
push eax
call fcn.0041fb21
lea eax, [ebp - 0x10004]
push eax
call fcn.00424963
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x473d97
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x473d97
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x473dac
cmp byte [ebp + 0x10], al
je 0x473dd4
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x473ddc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
pop edi
pop ebx
leave
ret 0xc
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.00422340
lea eax, [ebx + ebx]
mov dword [ebp - 0x50000], 0xa0000003
mov word [ebp - 0x4fff6], ax
add eax, 2
mov word [ebp - 0x4fff4], ax
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
lea eax, [ebp - 0x4fff0]
push eax
call fcn.0042d2eb
mov eax, dword [ebp - 0x4fff6]
lea ecx, [ebp + 8]
add esp, 0x18
xor edx, edx
add eax, 0xc
mov word [ebp - 0x4fffc], ax
movzx eax, ax
push edx
push ecx
push edx
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push edi
test eax, eax
jne 0x473e6b
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x473dcb
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
jmp 0x473dd6
Function at 0x479642
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4796dd
lea eax, [ebp - 0x22c]
push 0x49cc40
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x4796cb
lea eax, [ebp - 0x22c]
push 0x4c6b7c
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x4796cb
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
mov eax, dword [ebp + 0x10]
or ecx, dword [ebp + 0xc]
not eax
and ecx, eax
lea eax, [ebp - 0x22c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x47978e
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x47966c
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
je 0x479785
lea eax, [ebp - 0x258]
push eax
push 0x4c6b74
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x47977c
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x47976a
lea eax, [ebp - 0x22c]
push 0x49cc40
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x47976a
lea eax, [ebp - 0x22c]
push 0x4c6b7c
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x47976a
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00479642
test al, al
je 0x479799
push 0x4c6b7c
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x47970c
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x479787
xor ebx, ebx
jmp 0x47977e
Function at 0x47979d
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x479823
lea eax, [ebp - 0x22c]
push 0x49cc40
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x479811
lea eax, [ebp - 0x22c]
push 0x4c6b7c
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x479811
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
call fcn.0046dae5
pop ecx
test al, al
je 0x4798d4
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4797c7
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
je 0x4798cb
lea eax, [ebp - 0x258]
push eax
push 0x4c6b74
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4798c2
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x4798b0
lea eax, [ebp - 0x22c]
push 0x49cc40
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x4798b0
lea eax, [ebp - 0x22c]
push 0x4c6b7c
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x4798b0
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047979d
test al, al
je 0x4798df
push 0x4c6b7c
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x479852
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x4798cd
xor ebx, ebx
jmp 0x4798c4
Function at 0x479b2b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
call fcn.00409cb3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push 0x4c6b74
mov dword [ebp - 0x18], eax
inc dword [eax]
call fcn.004033c6
lea eax, [ebp - 0x278]
mov bl, 1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x479c8a
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.00473874
cmp eax, 1
je 0x479c85
cmp eax, 0xb
jne 0x479bb0
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x479b90
lea eax, [ebp - 0x24c]
push 0x49cc40
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x479c6b
lea eax, [ebp - 0x24c]
push 0x4c6b7c
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x479c6b
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a8c7
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004033c6
test byte [ebp - 0x278], 0x10
je 0x479c48
cmp byte [ebp + 0x18], 0
je 0x479c17
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x479c6b
push 0x49cb68
lea ecx, [ebp - 0x14]
call fcn.004033c6
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00479b2b
mov bl, al
test bl, bl
je 0x479c87
jmp 0x479c6b
mov edx, dword [ebp + 0xc]
xor eax, eax
or eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x25c]
add dword [edx], eax
adc dword [edx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x479c6b
add dword [edi], 1
adc dword [edi + 4], 0
lea eax, [ebp - 0x278]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x479b90
jmp 0x479c87
xor bl, bl
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x24]
call fcn.0040988f
lea ecx, [ebp - 0x14]
call fcn.0040988f
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x18
Function at 0x47c476
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 0x74], 4
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], eax
jne 0x47c498
or eax, 0x800000
mov dword [ebp - 4], eax
movzx eax, word [edi + 0x78]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x70]
push dword [edi + 0x30]
push dword [edi + 0x20]
push eax
push dword [edi + 0x10]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
test eax, eax
jne 0x47c4e4
mov dword [esi + 0x18], 0xb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c4dd
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor al, al
jmp 0x47c603
push ebx
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [edi + 0x60]
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x47c508
mov dword [esi + 0x18], 0xc
jmp 0x47c5dc
cmp byte [ebp + 0xc], bl
je 0x47c518
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0047d001
test dword [ebp - 4], 0x1000
je 0x47c54f
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0xc], 0x100
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x47c5d5
push edi
call fcn.0047c437
cmp eax, 0xc8
jne 0x47c5d5
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
call fcn.004262fb
pop ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp byte [ebp + 0x10], bl
je 0x47c5bd
mov ecx, esi
push edi
cmp byte [esi + 0x30], bl
je 0x47c5b4
call fcn.0047cf1a
jmp 0x47c5b9
call fcn.0047ce44
mov bl, al
jmp 0x47c5f6
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c5d1
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov bl, 1
jmp 0x47c5f6
mov dword [esi + 0x18], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c5f6
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
test edi, edi
je 0x47c601
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x47cd1e
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov edi, ecx
cmp eax, ebx
jne 0x47cd3b
movzx ecx, word [edi + 0x8c]
jmp 0x47cd3f
movzx ecx, word [edi + 0x58]
movzx edx, cx
mov ecx, dword [edi + 0xc0]
cmp dx, bx
jne 0x47cd55
xor esi, esi
push esi
push esi
push esi
push ebx
jmp 0x47cd7c
cmp dx, 2
jne 0x47cd76
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffcc
xor esi, esi
push esi
push str._local_
push dword [eax + edi + 0xb0]
push 3
jmp 0x47cd7c
xor esi, esi
push esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
test eax, eax
jne 0x47cd8e
xor al, al
jmp 0x47cdae
cmp byte [edi + 0xdc], 0
je 0x47cdac
push 8
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push 0x32
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47ce44
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 0x4c6a94
push dword [esi + 0x34]
call fcn.0042e5eb
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x47ce70
mov dword [esi + 0x18], 0x1f
jmp 0x47ceea
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47cee3
cmp dword [ebp - 4], 0
je 0x47cebb
push edi
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call fcn.0042dbb3
mov eax, dword [ebp - 4]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x47ce76
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47cecc
mov dword [esi + 0x18], 0x21
jmp 0x47ceea
and dword [esi + 0x18], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47cf06
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
jmp 0x47cf06
mov dword [esi + 0x18], 0x20
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47cf04
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor bl, bl
test edi, edi
je 0x47cf11
push edi
call fcn.0042e678
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x47cf1a
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
inc eax
mov esi, ecx
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x47cf4d
mov eax, 0x400
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x47cfa5
test eax, eax
jne 0x47cf5a
mov edi, ebx
jmp 0x47cf66
push eax
call fcn.0041fe0b
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47cfd2
cmp dword [ebp - 4], ebx
je 0x47cf9c
push dword [ebp - 4]
lea ecx, [esi + 0x44]
push edi
call fcn.0047d27e
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], ebx
test eax, eax
je 0x47cfa5
mov eax, dword [ebp - 8]
jmp 0x47cf52
push ebx
push edi
call fcn.0041fdcd
pop ecx
pop ecx
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47cfe4
mov dword [esi + 0x18], 0x21
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47cfce
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor al, al
jmp 0x47cffa
push ebx
push edi
call fcn.0041fdcd
pop ecx
pop ecx
mov dword [esi + 0x18], 0x20
jmp 0x47cfb4
mov dword [esi + 0x18], ebx
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x47cff8
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4