joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4120c7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47ab31
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x49c0b8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x49ead4]
mov ecx, 0x49ead4
xor ebx, ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push dword [ebp + 0xc]
and dword [esp + 0x3c], ebx
or dword [esp + 0x18], 0xffffffff
lea eax, [esp + 0x20]
push eax
call fcn.0040d3f3
and dword [esp + 0x10], ebx
mov byte [esp + 0x38], 1
cmp dword [esi + 0xc8], ebx
jle 0x412173
cmp dword [esp + 0x20], 0
jne 0x41214c
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004125d4
jmp 0x41215d
push dword [ebp + 8]
lea ebx, [esp + 0x18]
push esi
lea ecx, [esp + 0x24]
call fcn.0041266c
mov ebx, eax
test ebx, ebx
jne 0x412173
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0xc8]
jl 0x41212f
lea ecx, [esp + 0x1c]
call fcn.0040d435
lea eax, [edi - 0x10]
call fcn.00408f63
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push bind
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x412d3a
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x412d30
cmp edi, 0x200000
ja 0x412d30
lea eax, [edi + 2]
push esi
push eax
call fcn.00445215
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412d2f
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x412d2f
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc
Function at 0x41361d
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x479d86
call fcn.0044ce70
mov eax, dword [0x49ead4]
mov esi, 0x49ead4
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x18], edi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], edi
mov eax, dword [0x49ead4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x4136d4
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.004136f4
push edi
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov byte [ebp - 0x14], 0xff
mov byte [ebp - 0x13], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov ebx, dword [ebp - 0x20]
je 0x4136cb
cmp dword [ebp - 0x18], 2
jne 0x4136cb
mov esi, dword [ebx - 0xc]
push edi
lea eax, [ebp - 0x18]
push eax
add esi, esi
push esi
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4136cb
cmp dword [ebp - 0x18], esi
jne 0x4136cb
inc edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00408f63
lea eax, [ebx - 0x10]
call fcn.00408f63
mov eax, edi
lea esp, [ebp - 0x38]
call fcn.0044ceba
ret 8
Function at 0x414ea9
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xec
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x74], bl
lea edi, [ebp - 0x73]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x60], ebx
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
push 0xc6
stosd dword es:[edi], eax
lea eax, [ebp - 0x52]
push ebx
push eax
mov esi, ecx
mov word [ebp - 0x54], bx
call fcn.00445850
push str.Chinese_simplified
push ebx
call fcn.004491f7
add esp, 0x14
push esi
push 0x49f934
call fcn.00409107
call fcn.004152ec
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x74]
push 0x49f938
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x54]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.004155ea
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push edi
push edi
lea eax, [ebp - 0x60]
push eax
call esi
push ebx
push ebx
push edi
push ebx
mov dword [0x49f928], eax
call esi
cmp dword [0x49f928], ebx
mov dword [0x49f92c], eax
je 0x414fac
cmp eax, ebx
je 0x414fac
push ebx
push ebx
push 0x49f920
push 0x41512c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [0x49f930], eax
mov eax, ecx
jmp 0x414fae
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446679
add ebp, 0x78
leave
ret

Function at 0x4152ec
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
push 4
mov eax, 0x47a415
call fcn.0044ce07
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push bind
push dword [0x49f934]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41538b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41532e
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x100000
jb 0x41538b
mov eax, dword [0x49f934]
add eax, 0xfffffff0
call fcn.00408ddf
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.004153ed
mov edi, dword [ebp - 0x10]
mov ebx, dword [0x49f934]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [edi - 0x10]
call fcn.00408f63
xor eax, eax
inc eax
call fcn.0044cea6
ret
Function at 0x415b9d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 1
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push bind
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415bf3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.ProxyEnable
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415bf3
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], esi
je 0x415c01
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x415c07
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp + 0x388], eax
push ebx
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x77]
push ebx
push eax
xor edi, edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x78], bl
call fcn.00445850
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415c8d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push str.ProxyServer
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415c8d
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.00409b02
inc edi
cmp dword [ebp - 0x7c], ebx
je 0x415c9b
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x388]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.00446679
add ebp, 0x38c
leave
ret
Function at 0x41689e
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, eax
push dword [ebx + 0x14]
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416a35
mov eax, dword [ebx + 0x14]
push esi
push 0x80
push 3
push esi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x416a35
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0xc], esi
mov edi, eax
jne 0x416a1d
cmp edi, 0x200000
ja 0x416a1d
cmp edi, esi
je 0x416a1d
cmp edi, 0xffffffff
je 0x416a1d
cmp dword [ebx + 0x18], esi
je 0x416986
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00445215
cmp eax, esi
mov ebx, dword [ebp + 8]
pop ecx
mov dword [ebx], eax
je 0x416a1d
lea ecx, [edi + edi + 2]
push ecx
push esi
push eax
call fcn.00445850
add esp, 0xc
push esi
push esi
push 2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x416a1d
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebx]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x416a12
lea ebx, [edi + 1]
push ebx
call fcn.00445215
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
je 0x416a1d
push ebx
push esi
push eax
call fcn.00445850
add esp, 0xc
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416a1d
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
push esi
call ebx
mov edi, eax
cmp edi, esi
je 0x416a1d
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00445215
cmp eax, esi
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x416a1d
lea ecx, [edi + edi + 2]
push ecx
push esi
push eax
call fcn.00445850
mov eax, dword [ebp + 8]
add esp, 0xc
push edi
push dword [eax]
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
push esi
call ebx
test eax, eax
je 0x416a1d
mov dword [ebp - 0x14], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
pop edi
je 0x416a35
push dword [ebp - 4]
call fcn.00445a2a
pop ecx
mov eax, dword [ebp - 0x14]
pop esi
pop ebx
leave
ret 4
Function at 0x416b4b
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x479612
call fcn.0044ce07
mov ebx, ecx
mov eax, dword [0x49ead4]
xor esi, esi
mov ecx, 0x49ead4
mov dword [ebp - 0x1c], esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
push esi
push 0x80
push 2
push esi
push 1
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x14]
push 0x40000000
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x416c10
cmp dword [ebx + 0x18], esi
jne 0x416bc3
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x10]
call fcn.00416cf3
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 0xc]
push esi
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x416bfc
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea ecx, [ebp - 0x20]
push ecx
push 2
lea ecx, [ebp - 0x10]
push ecx
push eax
mov byte [ebp - 0x10], 0xff
mov byte [ebp - 0xf], 0xfe
mov dword [ebp - 0x20], esi
call ebx
test eax, eax
je 0x416c07
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push esi
lea edx, [ebp - 0x18]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x416c07
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
call fcn.00408f63
mov eax, dword [ebp - 0x1c]
call fcn.0044cea6
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 4], bl
lea edi, [ebp - 3]
stosb byte es:[edi], al
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x416c90
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 2
jb 0x416c89
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416c89
cmp byte [ebp - 4], 0xff
jne 0x416c89
cmp byte [ebp - 3], 0xfe
jne 0x416c89
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x416f8c
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 0x416fa5
mov eax, dword [ebp - 4]
jmp 0x41707f
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 0x41705a
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 + 0x48a620]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x48a620]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x48a620]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x48a620]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x48a620]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x48a620]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x48a620]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x48a620]
dec ebp
jne 0x416fc4
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x417076
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x48a620]
dec ecx
jne 0x417064
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417084
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41a043
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.00445850
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00446d2b
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x49f9d8], eax
je 0x41a1f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
push str.WinHttpConnect
push dword [0x49f9d8]
mov dword [0x49f97c], eax
call esi
push str.WinHttpOpenRequest
push dword [0x49f9d8]
mov dword [0x49f980], eax
call esi
push str.WinHttpAddRequestHeaders
push dword [0x49f9d8]
mov dword [0x49f984], eax
call esi
push str.WinHttpSendRequest
push dword [0x49f9d8]
mov dword [0x49f988], eax
call esi
push str.WinHttpReceiveResponse
push dword [0x49f9d8]
mov dword [0x49f98c], eax
call esi
push str.WinHttpQueryHeaders
push dword [0x49f9d8]
mov dword [0x49f990], eax
call esi
push str.WinHttpReadData
push dword [0x49f9d8]
mov dword [0x49f994], eax
call esi
push str.WinHttpCloseHandle
push dword [0x49f9d8]
mov dword [0x49f998], eax
call esi
push str.WinHttpCrackUrl
push dword [0x49f9d8]
mov dword [0x49f99c], eax
call esi
push str.WinHttpSetOption
push dword [0x49f9d8]
mov dword [0x49f9a0], eax
call esi
push str.WinHttpSetTimeouts
push dword [0x49f9d8]
mov dword [0x49f9a4], eax
call esi
cmp dword [0x49f97c], edi
mov dword [0x49f9a8], eax
je 0x41a1ee
cmp dword [0x49f988], edi
je 0x41a1ee
cmp dword [0x49f99c], edi
je 0x41a1ee
cmp dword [0x49f980], edi
je 0x41a1ee
cmp dword [0x49f984], edi
je 0x41a1ee
cmp dword [0x49f994], edi
je 0x41a1ee
cmp dword [0x49f998], edi
je 0x41a1ee
cmp dword [0x49f990], edi
je 0x41a1ee
cmp dword [0x49f98c], edi
je 0x41a1ee
cmp dword [0x49f9a0], edi
je 0x41a1ee
cmp dword [0x49f9a4], edi
je 0x41a1ee
cmp eax, edi
je 0x41a1ee
inc edi
mov dword [0x49f978], edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x49f978]
pop edi
xor ecx, ebp
pop esi
call fcn.00446679
leave
ret
Function at 0x41aa78
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47db28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x49c0b8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x49ead4]
or dword [esp + 0x14], 0xffffffff
mov esi, 0x49ead4
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0x40], edi
mov eax, dword [0x49ead4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, esi
lea esi, [esp + 0x20]
mov byte [esp + 0x40], 1
call fcn.00408f48
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov byte [esp + 0x40], 3
mov eax, dword [ebx + 8]
lea edi, [esp + 0x10]
call fcn.00407844
mov eax, dword [ebx + 8]
add eax, 4
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x41ab18
call fcn.00407844
lea esi, [esp + 0x18]
call fcn.0041d4a3
mov byte [esp + 0x40], 4
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx]
mov eax, dword [eax]
push edx
push eax
add ecx, 0x14
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push esi
call fcn.00420885
mov edi, eax
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebx + 8]
push dword [eax]
mov esi, 0x49f920
push edi
push str.KChannel::UpdateIndex_return:_d__indexname:_ws
call fcn.00415020
add esp, 0xc
test edi, edi
jne 0x41ab77
and dword [esp + 0x14], edi
lea esi, [esp + 0x24]
call fcn.00411ffb
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bb3d
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push 0x14
mov eax, 0x47ccb5
call fcn.0044ce07
mov esi, ecx
or dword [ebp - 0x10], 0xffffffff
push edi
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00409130
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0044134b
push dword [ebp - 0x18]
call fcn.0040efb0
pop ecx
push ebx
push esi
call fcn.00446273
test eax, eax
pop ecx
pop ecx
jne 0x41bbef
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebx
push edi
jne 0x41bbae
push esi
call fcn.0040f918
cmp eax, ebx
pop ecx
pop ecx
jne 0x41bbef
xor eax, eax
inc eax
mov dword [ebp - 0x1c], eax
mov dword [0x49fa48], eax
jmp 0x41bbec
lea eax, [ebp - 0x14]
push eax
call fcn.00409130
push 0x48b2ec
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004078e0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.00422011
push edi
call fcn.00427ad7
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00408f63
mov dword [ebp - 0x10], ebx
push ebx
push dword [ebp - 0x10]
push 0x14
call fcn.0042483b
add esp, 0xc
push edi
push esi
push dword [ebp - 0x10]
mov esi, 0x49f920
push str.UpdateFile_return:_d__src:_ws__dst:_ws
call fcn.00415020
mov eax, dword [0x49ead4]
add esp, 0x10
mov ecx, 0x49ead4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
mov eax, 0x48c764
je 0x41bc3a
mov eax, 0x48c76c
push eax
push edi
lea eax, [ebp - 0x14]
push 0x48c774
push eax
call fcn.00407d26
add esp, 0x10
cmp dword [ebp - 0x1c], ebx
je 0x41bc65
cmp dword [ebp - 0x10], ebx
jne 0x41bc65
push 0x48c78c
lea eax, [ebp - 0x14]
push eax
call fcn.004078e0
mov esi, dword [ebp - 0x14]
push esi
call fcn.0041561a
pop ecx
lea eax, [esi - 0x10]
call fcn.00408f63
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00408f63
mov eax, dword [ebp - 0x10]
call fcn.0044cea6
ret