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

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push eax
push 0x435429
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
xor eax, eax
pop ebp
ret 0x10

Function at 0x43fd7e
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x43fd95
push ebx
call fcn.0044939b
pop ecx
test eax, eax
jne 0x43fdd7
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x43fda9
push edi
call fcn.0044939b
pop ecx
test eax, eax
jne 0x43fdd6
push ebx
call fcn.00449419
push edi
call fcn.00449419
lea eax, [esi + 0xc]
pop ecx
cmp dword [eax], 0
pop ecx
mov byte [esi + 0x10], 0
je 0x43fdc7
xor eax, eax
jmp 0x43fdd6
push esi
push 0x43fd40
push eax
call fcn.0044950d
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x4439f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov dword [eax + 0x30], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], 0x20
mov dword [eax + 0x54], 1
mov dword [eax + 0x48], 4
mov dword [eax + 0x58], ecx
lea esi, [eax + 0x70]
push 8
mov edx, ecx
pop edi
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
shr edx, 1
xor edx, eax
dec edi
jne 0x443a26
mov dword [esi], edx
inc ecx
add esi, 4
cmp ecx, 0x100
jb 0x443a21
pop edi
pop esi
pop ebp
ret

Function at 0x444bda
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x444bed
xor eax, eax
jmp 0x444c7e
lea eax, [esi + 0x30]
push eax
call fcn.004493af
pop ecx
test eax, eax
je 0x444c00
push 0xc
pop eax
jmp 0x444c7e
push edi
xor edi, edi
lea eax, [esi + 0x14]
inc edi
push eax
mov dword [esi + 0x28], edi
call fcn.0044939b
pop ecx
test eax, eax
jne 0x444c74
lea eax, [esi + 0x18]
push eax
call fcn.0044939b
pop ecx
test eax, eax
jne 0x444c74
lea eax, [esi + 0x1c]
push eax
call fcn.0044939b
pop ecx
test eax, eax
jne 0x444c74
push dword [ebp + 0x14]
lea eax, [esi + 0x20]
push dword [ebp + 0x14]
push eax
call fcn.004494ae
add esp, 0xc
test eax, eax
jne 0x444c74
push dword [ebp + 0x14]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.004494ae
add esp, 0xc
test eax, eax
jne 0x444c74
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
push dword [ebp + 0xc]
mov dword [esi + 4], edi
push eax
call fcn.0044950d
add esp, 0xc
test eax, eax
je 0x444c79
push 0xc
pop eax
jmp 0x444c7d
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x44805a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x100
or esi, edi
mov eax, esi
shr eax, 7
and eax, 1
push eax
add ebx, ebx
mov ecx, edi
and ecx, ebx
mov eax, esi
shr eax, 8
add ecx, edi
add eax, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + eax*2]
push eax
push dword [ebp + 8]
call fcn.00449034
add esi, esi
mov eax, esi
xor eax, ebx
not eax
add esp, 0xc
and edi, eax
cmp esi, 0x10000
jb 0x44806d
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4480ae
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
and ecx, 1
neg ecx
sar ecx, 4
shr edx, 4
and ecx, 0x7f
xor edx, ecx
add esi, esi
add edi, dword [ebx + edx*4]
cmp esi, 0x10000
jb 0x4480c2
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4480f7
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
add ecx, esi
mov eax, edx
shr eax, 8
add eax, ecx
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
and eax, 1
neg eax
shr ecx, 4
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0x14]
add edx, edx
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x44810c
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x449177
Capabilities:
Encode data using xor

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

Function at 0x4491ff
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 0x449241
mov eax, dword [ebp + 0x10]
mov edx, eax
shr eax, 1
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
and edx, 1
movzx ecx, word [eax + edi*2]
mov eax, edx
neg eax
sar eax, 4
and eax, 0x7f
shr ecx, 4
xor ecx, eax
mov eax, dword [ebp + 0x14]
add edi, edi
add esi, dword [eax + ecx*4]
or edi, edx
dec ebx
jne 0x449211
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x44950d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.004924d8
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x449539
call fcn.00449451
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x45894c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
cmp dword [edi + 0x18], 0xffffffff
je 0x458a31
push esi
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00458766
lea eax, [ebp - 8]
push eax
call fcn.0045913c
mov esi, dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x458a28
push ebx
mov ebx, 0x4eb630
push ebx
lea ecx, [ebp - 8]
call fcn.004044ee
push ebx
lea ecx, [ebp - 4]
call fcn.004044ee
lea eax, [ebp - 0xc]
push eax
call fcn.00458fb9
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00406bd9
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00459207
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.00406bd9
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00458766
add esp, 0xc
push 0
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
pop ebx
lea ecx, [esi - 0x10]
call fcn.00404f8d
pop esi
or dword [edi + 0x18], 0xffffffff
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00406b6a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x458a5e
mov esi, dword [ebp - 4]
jmp 0x458ab8
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x458ab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x458ab3
lea eax, [ebp - 4]
push eax
call fcn.00459253
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], edi
je 0x458ab9
push esi
call fcn.00458a38
pop ecx
test eax, eax
je 0x458ab9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x458ab6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x458ab6
jmp 0x458ab9
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.00404f8d
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x458c05
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp + 8]
mov dword [ebp - 8], edi
xor ebx, ebx
call fcn.00406b6a
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00458ba6
test eax, eax
jne 0x458d31
push ebx
push esi
call fcn.00493aa2
pop ecx
pop ecx
test eax, eax
jne 0x458d34
push 0x4eb630
lea ecx, [ebp - 4]
call fcn.004044ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 4]
push str._s_d__x
push eax
call fcn.00404994
mov edi, dword [ebp - 4]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.00493b54
pop ecx
pop ecx
test eax, eax
je 0x458cb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4d4500
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0042367e
mov ecx, dword [ebp - 8]
add esp, 0xc
push dword [eax]
call fcn.00458ba6
mov ecx, dword [ebp - 4]
jmp 0x458cf0
lea ecx, [edi - 0x10]
call fcn.00404f8d
xor ebx, ebx
jmp 0x458d34
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 8]
push esi
mov ecx, ebx
call fcn.00458ba6
test eax, eax
jne 0x458d29
push 0x4d4500
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0042367e
add esp, 0xc
push dword [eax]
mov ecx, ebx
call fcn.00458ba6
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.00404f8d
test ebx, ebx
je 0x458caa
push 0x4d4500
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0042367e
add esp, 0xc
push 5
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
lea ecx, [edi - 0x10]
call fcn.00404f8d
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.00404f8d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x458fb9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4eebc0]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x4eebbc
test al, 1
jne 0x458ffe
or eax, 1
push 0x4eb630
mov ecx, ebx
mov dword [0x4eebc0], eax
call fcn.004044ee
push 0x4bb2ab
call fcn.0048f202
pop ecx
mov ecx, dword [0x4eebbc]
cmp dword [ecx - 0xc], 0
je 0x459010
add ecx, 0xfffffff0
push ecx
jmp 0x459069
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x459060
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040481a
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.004047a1
push ebx
call fcn.004591c7
mov edi, str.drivers_
push edi
call fcn.0040481a
pop ecx
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.0041e1c3
pop edi
mov eax, dword [0x4eebbc]
add eax, 0xfffffff0
push eax
call fcn.00406c4d
add eax, 0x10
pop ecx
mov ecx, dword [ebp - 4]
mov dword [esi], eax
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f059
leave
ret
Function at 0x459642
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0x4eb630
lea ecx, [ebp - 4]
mov dword [ebp - 8], edi
xor ebx, ebx
call fcn.004044ee
push dword [ebp + 8]
call fcn.0040481a
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004047a1
mov eax, dword [edi]
lea ecx, [ebp - 4]
push dword [eax - 0xc]
push eax
call fcn.0041e1c3
mov esi, dword [ebp - 4]
push esi
mov ecx, edi
call fcn.00458ac7
test eax, eax
jne 0x45978c
push ebx
push esi
call fcn.00493aa2
pop ecx
pop ecx
test eax, eax
jne 0x459834
push 0x4eb630
lea ecx, [ebp + 8]
call fcn.004044ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp + 8]
push str._s_d__x
push eax
call fcn.00404994
mov edi, dword [ebp + 8]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.00493b54
pop ecx
pop ecx
test eax, eax
je 0x45970e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4d4500
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042367e
mov ecx, dword [ebp - 8]
jmp 0x45973b
lea ecx, [edi - 0x10]
call fcn.00404f8d
xor ebx, ebx
jmp 0x459834
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 8]
push esi
mov ecx, ebx
call fcn.00458ac7
test eax, eax
jne 0x459781
push 0x4d4500
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042367e
mov ecx, ebx
add esp, 0xc
push dword [eax]
call fcn.00458ac7
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.00404f8d
test ebx, ebx
je 0x4596ff
push 0x4d4500
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042367e
add esp, 0xc
push 5
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
lea ecx, [edi - 0x10]
call fcn.00404f8d
mov edi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.0045913c
pop ecx
test eax, eax
je 0x459831
mov ebx, 0x4eb630
push ebx
lea ecx, [ebp - 8]
call fcn.004044ee
push ebx
lea ecx, [ebp + 8]
call fcn.004044ee
lea eax, [ebp - 4]
push eax
call fcn.00458fb9
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.00406bd9
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
lea eax, [ebp - 4]
push esi
push eax
call fcn.00459207
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.00406bd9
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00458766
add esp, 0xc
push dword [eax]
mov ecx, edi
call fcn.00458ac7
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00404f8d
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.00404f8d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x459845
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 0x459861
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
je 0x459877
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 0x459859
jmp 0x45987a
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x45a1c8
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 0x45ab01
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.0040de87
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45abae
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x45abad
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], edi
call fcn.00404b04
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 0x45abad
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x45abad
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 0x45ab62
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov byte [eax + edi], bl
call fcn.0043582f
test esi, esi
je 0x45abaa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x45ae21
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 0x45ae3a
mov eax, dword [ebp - 4]
jmp 0x45af14
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 0x45aeef
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 + 0x4c00a8]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c00a8]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c00a8]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c00a8]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c00a8]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c00a8]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c00a8]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4c00a8]
dec ebp
jne 0x45ae59
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x45af0b
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4c00a8]
dec ecx
jne 0x45aef9
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46004e
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
mov edi, ecx
call fcn.004921d0
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.00495008
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 0x4601b1
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 0x4601af
cmp dword [edi + 0x10], ebx
je 0x4601af
cmp dword [edi + 0x24], ebx
je 0x4601af
cmp dword [edi + 8], ebx
je 0x4601af
cmp dword [edi + 0xc], ebx
je 0x4601af
cmp dword [edi + 0x1c], ebx
je 0x4601af
cmp dword [edi + 0x20], ebx
je 0x4601af
cmp dword [edi + 0x18], ebx
je 0x4601af
cmp dword [edi + 0x14], ebx
je 0x4601af
cmp dword [edi + 0x28], ebx
je 0x4601af
cmp dword [edi + 0x2c], ebx
je 0x4601af
test eax, eax
je 0x4601af
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.0048f059
leave
ret
Function at 0x4601c2
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4eb664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
mov edi, ecx
call fcn.004921d0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4c0f64
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00495008
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 0x460303
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c0f80
push eax
call esi
push 0x4c0f90
push dword [edi + 0x6c]
mov dword [edi + 0x3c], eax
call esi
push 0x4c0fa4
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 0x4c0fd0
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 0x4c0ff4
push dword [edi + 0x6c]
mov dword [edi + 0x50], eax
call esi
push 0x4c1008
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 0x4c1030
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 0x460300
cmp dword [edi + 0x40], ebx
je 0x460300
cmp dword [edi + 0x44], ebx
je 0x460300
cmp dword [edi + 0x48], ebx
je 0x460300
cmp dword [edi + 0x4c], ebx
je 0x460300
cmp dword [edi + 0x50], ebx
je 0x460300
cmp dword [edi + 0x54], ebx
je 0x460300
cmp dword [edi + 0x58], ebx
je 0x460300
cmp dword [edi + 0x5c], ebx
je 0x460300
cmp dword [edi + 0x60], ebx
je 0x460300
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.0048f059
leave
ret