joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0237
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
or esi, 0x100
mov ecx, dword [ebp + 8]
mov eax, esi
shr eax, 8
movzx edx, word [ecx + eax*2]
mov ecx, esi
shr ecx, 7
add esi, esi
and ecx, 1
shr edx, 4
neg ecx
sar ecx, 4
and ecx, 0x7f
xor edx, ecx
add edi, dword [ebx + edx*4]
cmp esi, 0x10000
jb 0x4b024b
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b0280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, 0x100
xor edi, edi
or edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0x14]
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x4b0295
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b12ee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
inc eax
shl eax, cl
push edi
or esi, eax
xor edi, edi
cmp esi, 1
je 0x4b1331
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov edx, esi
and esi, 1
shr edx, 1
neg esi
sar esi, 4
and esi, 0x7f
movzx ecx, word [ebx + edx*2]
shr ecx, 4
xor ecx, esi
mov esi, edx
add edi, dword [eax + ecx*4]
cmp esi, 1
jne 0x4b130e
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4b1376
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
inc edi
test ebx, ebx
je 0x4b13b8
mov eax, dword [ebp + 0x10]
mov edx, eax
shr eax, 1
and edx, 1
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edi*2]
mov eax, edx
neg eax
shr ecx, 4
sar eax, 4
add edi, edi
and eax, 0x7f
or edi, edx
xor ecx, eax
mov eax, dword [ebp + 0x14]
add esi, dword [eax + ecx*4]
dec ebx
jne 0x4b1388
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b1686
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.004f5bb2
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x4b16b2
call fcn.004b15ca
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c1876
Capabilities:
Copy file

Disassembly:
push 0x10
mov eax, 0x532645
call fcn.004f1d7f
mov esi, ecx
cmp dword [esi + 0x18], 0xffffffff
je 0x4c1981
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00472220
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004c20de
add esp, 0x10
test eax, eax
je 0x4c1976
call fcn.00437474
push eax
lea ecx, [ebp - 0x18]
call fcn.0043a4ef
mov byte [ebp - 4], 1
call fcn.00437474
push eax
lea ecx, [ebp - 0x14]
call fcn.0043a4ef
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.004c1f4a
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0043c2e8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00436fdb
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.004c21c0
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0043c2e8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00436fdb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00472220
add esp, 0xc
push 0
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
or dword [esi + 0x18], 0xffffffff
call fcn.004f1d4d
ret

Function at 0x4c198b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x532668
call fcn.004f1d7f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0043c206
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c1a08
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c1a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4c1a08
lea eax, [ebp - 0x10]
push eax
call fcn.004c222a
mov eax, dword [ebp - 0x10]
pop ecx
cmp dword [eax - 0xc], esi
je 0x4c1a0b
push eax
call fcn.004c198b
pop ecx
test eax, eax
je 0x4c1a0b
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c1a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c1a0b
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, esi
call fcn.004f1d4d
ret
Function at 0x4c1b69
Capabilities:
Delete file
Move file

Disassembly:
push 8
mov eax, 0x5326c6
call fcn.004f1d7f
mov edi, ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
xor ebx, ebx
call fcn.0043c206
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.004c1aff
test eax, eax
jne 0x4c1ca4
push ebx
push dword [ebp + 8]
call fcn.004f594f
pop ecx
pop ecx
test eax, eax
jne 0x4c1ca7
call fcn.00437474
push eax
lea ecx, [ebp - 0x10]
call fcn.0043a4ef
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x53c9f8
push eax
call fcn.0043ab29
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebp + 8]
call fcn.004f6a25
pop ecx
pop ecx
test eax, eax
je 0x4c1c20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x55c6dc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0045922d
add esp, 0xc
mov byte [ebp - 4], 2
jmp 0x4c1c51
lea ecx, [esi - 0x10]
call fcn.00436fdb
jmp 0x4c1ca7
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp + 8]
mov ecx, edi
call fcn.004c1aff
test eax, eax
jne 0x4c1c9c
push 0x55c6dc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0045922d
add esp, 0xc
mov byte [ebp - 4], 3
push dword [eax]
mov ecx, edi
call fcn.004c1aff
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00436fdb
test edi, edi
je 0x4c1c13
push 0x55c6dc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0045922d
add esp, 0xc
push 5
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
lea ecx, [esi - 0x10]
call fcn.00436fdb
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, ebx
call fcn.004f1d4d
ret 4

Function at 0x4c1f4a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
mov eax, dword [0x5ac810]
push ebx
mov ebx, 0x5ac80c
push esi
mov esi, dword [ebp + 8]
test al, 1
jne 0x4c1f97
or eax, 1
mov dword [0x5ac810], eax
call fcn.00437474
push eax
mov ecx, ebx
call fcn.0043a4ef
push 0x537ac2
call fcn.004f109b
pop ecx
mov ecx, dword [0x5ac80c]
cmp dword [ecx - 0xc], 0
je 0x4c1fa9
add ecx, 0xfffffff0
push ecx
jmp 0x4c2002
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4c1ff9
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0043a8c3
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0043a84a
push ebx
call fcn.004c2180
mov edi, str.drivers_
push edi
call fcn.0043a8c3
pop ecx
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.004516f5
pop edi
mov eax, dword [0x5ac80c]
add eax, 0xfffffff0
push eax
call fcn.0043c35e
add eax, 0x10
pop ecx
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop esi
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x4c264f
Capabilities:
Delete file
Move file

Disassembly:
push 0xc
mov eax, 0x53285c
call fcn.004f1d7f
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ebx, ebx
call fcn.00437474
push eax
lea ecx, [ebp - 0x10]
call fcn.0043a4ef
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0043a8c3
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0043a84a
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004516f5
mov esi, dword [ebp - 0x10]
mov ecx, edi
push esi
call fcn.004c1a1e
test eax, eax
jne 0x4c2795
push ebx
push esi
call fcn.004f594f
pop ecx
pop ecx
test eax, eax
jne 0x4c285a
call fcn.00437474
push eax
lea ecx, [ebp + 8]
call fcn.0043a4ef
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp + 8]
push 0x53c9f8
push eax
call fcn.0043ab29
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.004f6a25
pop ecx
pop ecx
test eax, eax
je 0x4c2713
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c272a
lea ecx, [edi - 0x10]
call fcn.00436fdb
xor ebx, ebx
jmp 0x4c285a
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
push esi
call fcn.004c1a1e
test eax, eax
jne 0x4c2787
push 0x55c6dc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0045922d
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push dword [eax]
call fcn.004c1a1e
mov ecx, dword [ebp - 0x18]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.00436fdb
test ebx, ebx
je 0x4c2704
push 0x55c6dc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0045922d
add esp, 0xc
push 5
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
xor ebx, ebx
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.00436fdb
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.004c20de
pop ecx
test eax, eax
je 0x4c2857
call fcn.00437474
push eax
lea ecx, [ebp - 0x14]
call fcn.0043a4ef
mov byte [ebp - 4], 2
call fcn.00437474
push eax
lea ecx, [ebp + 8]
call fcn.0043a4ef
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.004c1f4a
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0043c2e8
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00436fdb
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.004c21c0
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0043c2e8
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00436fdb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00472220
add esp, 0xc
mov ecx, edi
push dword [eax]
call fcn.004c1a1e
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.00436fdb
mov eax, ebx
call fcn.004f1d4d
ret 4
Function at 0x4c286c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jmp 0x4c2888
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
je 0x4c289e
push esi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c2880
jmp 0x4c28a1
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c2fc3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4c38aa
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
call fcn.00447bc2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c3957
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x4c3956
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
call fcn.0043ad26
mov edx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c3956
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4c3956
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub eax, ecx
add edx, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], edx
test eax, eax
jne 0x4c390b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [eax + edi], bl
call fcn.00470cb0
test esi, esi
je 0x4c3953
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c3bb8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4c3bd1
mov eax, dword [ebp - 4]
jmp 0x4c3cab
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x4c3c86
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x53cbe0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x53cbe0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x53cbe0]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x53cbe0]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x53cbe0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x53cbe0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x53cbe0]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x53cbe0]
dec ebp
jne 0x4c3bf0
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4c3ca2
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x53cbe0]
dec ecx
jne 0x4c3c90
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c6f8e
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004f28b0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x53d9fc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004f80b8
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x68], eax
test eax, eax
je 0x4c70f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
push str.WinHttpConnect
push dword [edi + 0x68]
mov dword [edi + 4], eax
call esi
push str.WinHttpOpenRequest
push dword [edi + 0x68]
mov dword [edi + 8], eax
call esi
push str.WinHttpAddRequestHeaders
push dword [edi + 0x68]
mov dword [edi + 0xc], eax
call esi
push str.WinHttpSendRequest
push dword [edi + 0x68]
mov dword [edi + 0x10], eax
call esi
push str.WinHttpReceiveResponse
push dword [edi + 0x68]
mov dword [edi + 0x14], eax
call esi
push str.WinHttpQueryHeaders
push dword [edi + 0x68]
mov dword [edi + 0x18], eax
call esi
push str.WinHttpReadData
push dword [edi + 0x68]
mov dword [edi + 0x1c], eax
call esi
push str.WinHttpCloseHandle
push dword [edi + 0x68]
mov dword [edi + 0x20], eax
call esi
push str.WinHttpCrackUrl
push dword [edi + 0x68]
mov dword [edi + 0x24], eax
call esi
push str.WinHttpSetOption
push dword [edi + 0x68]
mov dword [edi + 0x28], eax
call esi
push str.WinHttpQueryDataAvailable
push dword [edi + 0x68]
mov dword [edi + 0x2c], eax
call esi
push str.WinHttpSetTimeouts
push dword [edi + 0x68]
mov dword [edi + 0x34], eax
call esi
mov dword [edi + 0x30], eax
cmp dword [edi + 4], ebx
je 0x4c70ef
cmp dword [edi + 0x10], ebx
je 0x4c70ef
cmp dword [edi + 0x24], ebx
je 0x4c70ef
cmp dword [edi + 8], ebx
je 0x4c70ef
cmp dword [edi + 0xc], ebx
je 0x4c70ef
cmp dword [edi + 0x1c], ebx
je 0x4c70ef
cmp dword [edi + 0x20], ebx
je 0x4c70ef
cmp dword [edi + 0x18], ebx
je 0x4c70ef
cmp dword [edi + 0x14], ebx
je 0x4c70ef
cmp dword [edi + 0x28], ebx
je 0x4c70ef
cmp dword [edi + 0x2c], ebx
je 0x4c70ef
test eax, eax
je 0x4c70ef
inc ebx
mov dword [edi], ebx
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x4c7104
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004f28b0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x53da6c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004f80b8
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x6c], eax
test eax, eax
je 0x4c7245
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53da88
push eax
call esi
push 0x53da98
push dword [edi + 0x6c]
mov dword [edi + 0x3c], eax
call esi
push 0x53daac
push dword [edi + 0x6c]
mov dword [edi + 0x40], eax
call esi
push str.HttpAddRequestHeadersW
push dword [edi + 0x6c]
mov dword [edi + 0x44], eax
call esi
push 0x53dad8
push dword [edi + 0x6c]
mov dword [edi + 0x48], eax
call esi
push str.HttpQueryInfoW
push dword [edi + 0x6c]
mov dword [edi + 0x4c], eax
call esi
push 0x53dafc
push dword [edi + 0x6c]
mov dword [edi + 0x50], eax
call esi
push 0x53db10
push dword [edi + 0x6c]
mov dword [edi + 0x54], eax
call esi
push str.InternetCrackUrlW
push dword [edi + 0x6c]
mov dword [edi + 0x58], eax
call esi
push 0x53db38
push dword [edi + 0x6c]
mov dword [edi + 0x5c], eax
call esi
push str.InternetQueryDataAvailable
push dword [edi + 0x6c]
mov dword [edi + 0x60], eax
call esi
mov dword [edi + 0x64], eax
cmp dword [edi + 0x3c], ebx
je 0x4c7242
cmp dword [edi + 0x40], ebx
je 0x4c7242
cmp dword [edi + 0x44], ebx
je 0x4c7242
cmp dword [edi + 0x48], ebx
je 0x4c7242
cmp dword [edi + 0x4c], ebx
je 0x4c7242
cmp dword [edi + 0x50], ebx
je 0x4c7242
cmp dword [edi + 0x54], ebx
je 0x4c7242
cmp dword [edi + 0x58], ebx
je 0x4c7242
cmp dword [edi + 0x5c], ebx
je 0x4c7242
cmp dword [edi + 0x60], ebx
je 0x4c7242
inc ebx
mov dword [edi + 0x38], ebx
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x4c76cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x210], esi
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x4c76f4
sub edi, edx
lea eax, [ebp - 0x218]
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0x214]
sar edi, 1
cmp edx, edi
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], edi
cmovae eax, esi
push dword [eax]
push ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x4c7738
xor eax, eax
jmp 0x4c77ed
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push dword [ebp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4c7731
push 0x559c0c
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0043d234
lea esi, [ebp - 0x20c]
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4c7771
sub esi, ecx
mov ecx, ebx
sar esi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x210]
jne 0x4c7785
sub ecx, edx
sar ecx, 1
mov edx, ecx
sub edx, edi
lea eax, [edx + esi]
mov dword [ebp - 0x210], eax
lea eax, [ecx + esi]
cmp eax, edi
jbe 0x4c7731
lea eax, [esi + 1]
add eax, edx
cmp eax, dword [ebp + 0xc]
jae 0x4c7731
lea eax, [edx + edx]
add esi, esi
push eax
lea eax, [ebx + edi*2]
push eax
lea eax, [esi + ebx]
push eax
call fcn.004f1180
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004f2260
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add esp, 0x18
mov word [ebx + eax*2], cx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret

Function at 0x4ccaac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 8
mov eax, 0x53348e
call fcn.004f1d7f
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0043c206
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.0043c206
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.004cf906
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ccb48
push edi
push dword [ebp - 0x10]
call fcn.004cf647
pop ecx
pop ecx
test eax, eax
jne 0x4ccb48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4ccb48
lea eax, [ebp - 0x14]
push eax
call fcn.004cf984
mov eax, dword [ebp - 0x14]
pop ecx
cmp dword [eax - 0xc], edi
je 0x4ccb46
push eax
call fcn.004ccaac
pop ecx
test eax, eax
je 0x4ccb46
push edi
push dword [ebp - 0x10]
call fcn.004cf647
pop ecx
pop ecx
test eax, eax
jne 0x4ccb48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4ccb48
mov ebx, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00436fdb
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, ebx
call fcn.004f1d4d
ret