joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd4f0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0049d850
mov esi, dword [ebp + 0xc]
push 0x2454
push 0
push esi
call fcn.0049d850
lea eax, [esi + 8]
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x2148]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2348]
lea ecx, [esi + 0x1048]
mov dword [ebp - 0x20], eax
mov eax, 0x80
mov dword [ebp - 8], ecx
lea ecx, [esi + 0x2048]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
add esp, 0x18
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4bd578
sub eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp + 0x10]
sar eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4bd5d2
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x4bd5ae
cmp eax, 4
je 0x4bd5ae
cmp eax, 1
jne 0x4bd5d2
mov cx, word [ebp - 0x24]
and dword [esi + 0x2448], 0
and dword [esi + 0x244c], 0
or dword [esi + 0x2450], 0xffffffff
mov dword [esi + 4], eax
xor eax, eax
mov word [esi], cx
inc eax
jmp 0x4bd5d4
xor eax, eax
pop esi
leave
ret

Function at 0x4bd971
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x59ece0]
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
lea eax, [ebp - 0x20a]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call fcn.0049d850
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffffffffffff96
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x6a
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x210], 0x6a
jne 0x4bda66
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x20c]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4bda19
cmp cx, bx
je 0x4bda15
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4bda19
add eax, 4
add edx, 4
cmp cx, bx
jne 0x4bd9f3
xor eax, eax
jmp 0x4bda1e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4bda66
push 1
push ebx
push 0xffffffffffffff92
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x210]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x214]
add eax, dword [ebp - 0x210]
push 1
push ebx
neg eax
push eax
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d4b1
leave
ret
Function at 0x4be07b
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ecx + 0x61858]
mov dword [ebp - 8], ecx
push edi
xor ecx, ecx
xor edi, edi
xor edx, edx
cmp cx, word [eax]
je 0x4be0a4
mov edx, eax
push 0x10000000
push edi
push edi
push edi
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x14], eax
cmp eax, edi
je 0x4be21f
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 0x20]
lea edx, [edi + 0x2348]
mov ecx, edx
mov dword [ebp - 0x18], 3
lea eax, [ecx + 2]
mov bx, word [ecx]
add ecx, 2
test bx, bx
jne 0x4be0df
sub ecx, eax
sar ecx, 1
je 0x4be0f3
mov dword [ebp - 0xc], edx
lea edx, [edi + 0x2048]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be0fe
sub ecx, ebx
sar ecx, 1
je 0x4be112
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
mov ebx, dword [ebp - 8]
jne 0x4be13e
lea edx, [ebx + 0x60610]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be129
sub ecx, dword [ebp - 8]
sar ecx, 1
je 0x4be13e
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x14], 0
jne 0x4be167
lea edx, [ebx + 0x60710]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be152
sub ecx, dword [ebp - 8]
sar ecx, 1
je 0x4be167
mov dword [ebp - 0x14], edx
xor eax, eax
inc eax
cmp dword [edi + 4], eax
jne 0x4be172
mov dword [ebp - 0x18], eax
push 0x4bdc68
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [esi + 0x20]
movzx ecx, word [eax]
push esi
push dword [ebx + 0x26d8]
add eax, 0x2148
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push ecx
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x18], eax
test eax, eax
je 0x4be21f
add ebx, 0x60810
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4be1b8
sub eax, edx
sar eax, 1
je 0x4be21a
mov dword [ebp - 0x28], 3
test ebx, ebx
je 0x4be1e3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4be1e9
and dword [ebp - 0x24], 0
jmp 0x4be202
lea edi, [eax + eax]
mov eax, edi
call fcn.004a2ac0
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.0042b560
mov dword [ebp - 0x24], eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0x26
push dword [esi + 0x14]
mov dword [ebp - 0x20], 0x5974a2
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x4be221
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
leave
ret 4
Function at 0x4be5ab
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x26f0]
sub eax, dword [esi + 0x26ec]
push 2
xor ebx, ebx
push ebx
push ebx
push dword [esi + 8]
sar eax, 2
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 4], ebx
je 0x4be66b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
call edi
mov eax, dword [esi + 0x26f0]
sub eax, dword [esi + 0x26ec]
mov dword [ebp - 0xc], 4
sar eax, 2
test eax, eax
je 0x4be641
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x26ec]
push 0x20
push dword [eax + ebx*4]
push dword [esi + 8]
call edi
mov eax, dword [esi + 0x26f0]
sub eax, dword [esi + 0x26ec]
add dword [ebp - 0xc], 0x20
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x4be613
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x6a
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push dword [esi + 8]
call edi
pop edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
leave
ret
Function at 0x4bea55
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.004a2a90
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1010], edi
mov dword [ebp - 0x100c], 0x583578
cmp dword [edi + 0x2480], ebx
je 0x4bea98
mov dword [ebp - 0x100c], str.POST
xor eax, eax
push 0xffe
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push ebx
push eax
mov dword [ebp - 0x1008], ebx
mov dword [ebp - 0x101c], 0x583564
mov dword [ebp - 0x1018], ebx
call fcn.0049d850
mov eax, dword [esi + 0x20]
lea ecx, [eax + 0x1048]
push ecx
add eax, 0x48
push eax
push str._s_s
lea eax, [ebp - 0x1004]
push 0x7ff
push eax
call fcn.004bdbab
add esp, 0x20
mov eax, 0x8400c300
cmp dword [edi + 0x62cbc], ebx
je 0x4beb02
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x4beb10
or eax, 0x803000
push esi
push eax
lea eax, [ebp - 0x101c]
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x100c]
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x4bec21
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x100c]
push ecx
push 2
push eax
mov dword [ebp - 0x100c], 0x3a98
call edi
push 4
lea eax, [ebp - 0x1014]
push eax
push 0x41
push dword [esi + 0x1c]
mov dword [ebp - 0x1014], 1
call edi
push 0xa
mov dword [ebp - 0x1008], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x1044]
rep stosd dword es:[edi], eax
xor ecx, ecx
push 2
pop edx
mov eax, 0x5168
mul edx
seto cl
mov dword [ebp - 0x1044], 0x28
neg ecx
or ecx, eax
push ecx
call fcn.0049ca06
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4bebfc
push 0xa2d0
push ebx
push edi
call fcn.0049d850
mov ecx, dword [ebp - 0x1010]
add esp, 0xc
push dword [ebp - 0x1008]
push 0x5167
push edi
push esi
call fcn.004be235
mov eax, edi
mov dword [ebp - 0x103c], edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4bebe7
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x1038], eax
push esi
push 1
push ebx
lea eax, [ebp - 0x1044]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov dword [ebp - 0x1008], eax
cmp edi, ebx
je 0x4bec21
push edi
call fcn.0049d97d
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1008]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d4b1
leave
ret 4
Function at 0x4bf2d2
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x26dc]
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [eax + ecx*4]
push 0xa
pop ecx
xor eax, eax
lea edi, [esi + 0x8044]
rep stosd dword es:[edi], eax
mov edi, 0x8000
push edi
push eax
lea ebx, [esi + 0x40]
push ebx
mov dword [esi + 0x8044], 0x28
call fcn.0049d850
mov ecx, dword [esi + 0x8040]
mov dword [esi + 0x8058], ebx
add esp, 0xc
lea ebx, [esi + 0x805c]
mov dword [ebx], edi
test ecx, ecx
je 0x4bf33e
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0x18]
sub eax, dword [ecx + 8]
inc eax
cmp eax, edi
jle 0x4bf33a
mov eax, edi
mov dword [ebx], eax
jmp 0x4bf367
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x5d108], 0xffffffff
jne 0x4bf353
cmp dword [ecx + 0x5d10c], 0xffffffff
je 0x4bf367
mov eax, dword [ecx + 0x5d108]
sub eax, dword [ecx + 0x5d118]
cmp eax, edi
jg 0x4bf365
mov edi, eax
mov dword [ebx], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x20]
xor edi, edi
inc edi
mov dword [esi + 0x28], 9
cmp dword [eax + 4], edi
je 0x4bf3c6
push esi
push edi
lea eax, [esi + 0x8044]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x4bf3a5
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x4bf3bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4bf3a1
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004bed99
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
push dword [ebx]
push dword [esi + 0x8058]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4bf394
Function at 0x4bf435
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x214], ebx
call fcn.0049d850
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffffffffffff96
push dword [edi + 8]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call esi
push ebx
lea eax, [ebp - 0x210]
push eax
push 0x6a
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x210], 0x6a
jne 0x4bf620
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x20c]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4bf4f3
cmp cx, bx
je 0x4bf4ef
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4bf4f3
add eax, 4
add edx, 4
cmp cx, bx
jne 0x4bf4cd
xor eax, eax
jmp 0x4bf4f8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4bf620
push 1
push ebx
push 0xffffffffffffff92
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x210]
push eax
push 4
lea eax, [ebp - 0x224]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x224]
add eax, dword [ebp - 0x210]
push 1
push ebx
neg eax
push eax
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x210]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x218], ebx
cmp dword [ebp - 0x214], ebx
jbe 0x4bf5e9
lea esi, [edi + 0x5cfd8]
push ebx
lea ecx, [ebp - 0x210]
push ecx
push 0x20
lea eax, [esi - 0x18]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
add dword [esi - 0x10], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi - 4]
adc dword [esi - 0xc], eax
mov eax, dword [esi - 8]
sub eax, dword [esi - 0x10]
mov dword [esi - 0x18], ebx
sbb ecx, dword [esi - 0xc]
add eax, 1
adc ecx, ebx
add dword [ebp - 0x220], eax
lea eax, [esi - 0x18]
mov dword [ebp - 0x228], eax
adc dword [ebp - 0x21c], ecx
lea eax, [ebp - 0x228]
push eax
lea ecx, [edi + 0x26ec]
mov dword [esi - 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.004bf3da
inc dword [ebp - 0x218]
mov eax, dword [ebp - 0x218]
add esi, 0x20
cmp eax, dword [ebp - 0x214]
jb 0x4bf56d
mov ecx, dword [edi + 0x5d108]
sub ecx, dword [ebp - 0x220]
mov edx, dword [edi + 0x5d10c]
sbb edx, dword [ebp - 0x21c]
mov dword [edi + 0x5d120], ecx
mov eax, edx
mov dword [edi + 0x5d11c], eax
xor eax, eax
mov dword [edi + 0x5d124], edx
mov dword [edi + 0x5d118], ecx
inc eax
jmp 0x4bf622
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d4b1
leave
ret
Function at 0x4bff32
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x4bff55
xor eax, eax
inc eax
jmp 0x4c00da
push edi
lea edi, [esi + 0x5d128]
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
push 0x5c
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
push ebx
mov word [ebp - 6], ax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4c00d7
mov ecx, dword [esi + 0x5d108]
mov eax, dword [esi + 0x5d10c]
cmp ecx, 0xffffffff
jne 0x4bffb1
cmp eax, ecx
je 0x4bffcc
cmp dword [ebp - 0x14], eax
ja 0x4bffcc
jb 0x4bffbd
cmp dword [ebp - 0x18], ecx
ja 0x4bffcc
mov dword [esi + 0x2470], 2
jmp 0x4c00d7
push ebx
push 0x20
push 4
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x4c00c1
cmp dword [esi + 0x26fc], ebx
je 0x4c00bc
mov eax, dword [esi + 0x26f0]
mov ecx, dword [esi + 0x26ec]
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x26ec]
call fcn.004301e1
mov ecx, esi
call fcn.004bf435
test eax, eax
jne 0x4c00bc
cmp dword [esi + 0x2468], ebx
ja 0x4c0036
mov dword [esi + 0x2468], 5
push 0xa
pop ecx
cmp dword [esi + 0x2468], ecx
jbe 0x4c0047
mov dword [esi + 0x2468], ecx
mov eax, dword [esi + 0x5d108]
mov ecx, dword [esi + 0x5d10c]
add eax, 0xffffffff
mov dword [esi + 0x5cfd0], eax
lea eax, [esi + 0x5cfc0]
adc ecx, 0xffffffff
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esi + 0x5cfd4], ecx
push eax
lea ecx, [esi + 0x26ec]
mov dword [esi + 0x5cfc8], ebx
mov dword [esi + 0x5cfcc], ebx
call fcn.004bf3da
mov eax, dword [esi + 0x5d108]
mov edx, dword [esi + 0x5d10c]
mov cl, 0x20
call fcn.004a4630
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x5d108]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
inc eax
jmp 0x4c00d9
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d4b1
leave
ret
Function at 0x4c06ff
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x26dc]
mov ecx, dword [ebp + 8]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x20]
xor ebx, ebx
inc ebx
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x4c0774
cmp dword [edi + 0x2480], 0
je 0x4c0761
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 0x4c0765
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x4c0798
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4c0796
jmp 0x4c0761
cmp dword [esi], 0
jne 0x4c0785
mov eax, dword [esi + 4]
test eax, eax
je 0x4c0785
mov dword [esi + 0x18], eax
jmp 0x4c0761
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.004bfdbb
test eax, eax
jne 0x4c0761
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4c1066
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 + 0x26dc]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x4c10da
cmp dword [edi + 0x2480], 0
je 0x4c1106
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 0x4c10c8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4c1106
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x4c1109
cmp dword [esi], 0
jne 0x4c10eb
mov eax, dword [esi + 4]
test eax, eax
je 0x4c10eb
mov dword [esi + 0x18], eax
jmp 0x4c1106
push 1
push ebx
mov dword [esi + 0x28], 4
call fcn.004bfdbb
test eax, eax
jne 0x4c1106
push ebx
mov ecx, edi
call fcn.004bed99
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4c14cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x805c]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
push esi
push edi
mov edi, ecx
jne 0x4c14ef
mov eax, dword [ebx]
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [edi + 0x26fc], esi
je 0x4c1591
call fcn.004bd971
mov esi, dword [ebx + 0x8040]
mov ecx, dword [esi + 8]
add ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
adc eax, dword [esi + 0x1c]
push 0
mov edx, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push dword [edi + 8]
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4c153f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c15cc
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebx + 0x40]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c15cc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x4c15cc
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], 0
mov ecx, dword [ebp - 4]
add dword [edi + 0x5d118], ecx
push ecx
push ebx
adc dword [edi + 0x5d11c], 0
mov ecx, edi
call fcn.004c13df
mov ecx, edi
call fcn.004be5ab
xor eax, eax
inc eax
jmp 0x4c15ce
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebx + 0x40]
push eax
push dword [edi + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c15cc
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x4c15cc
add dword [edi + 0x5d118], ecx
push ecx
push ebx
adc dword [edi + 0x5d11c], esi
mov ecx, edi
call fcn.004c13df
jmp 0x4c158c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4c1c3f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x4c1c52
xor eax, eax
jmp 0x4c1cc6
lea eax, [esi + 0x5d538]
push str.MetalinkFile
push eax
call fcn.0049cec9
pop ecx
pop ecx
cmp eax, edi
je 0x4c1c7e
xor ecx, ecx
mov word [eax], cx
add eax, 0x1a
push eax
call fcn.004c4810
pop ecx
mov dword [esi + 0x2694], eax
mov ecx, esi
call fcn.004be866
test eax, eax
je 0x4c1c4e
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
cmp eax, edi
je 0x4c1cc3
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4c1b83
push edi
push edi
mov dword [ebp - 4], edi
mov dword [esi + 0x5d100], 8
call fcn.004c4af5
add esp, 0x18
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x4c1f7a
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [edx + 0x38]
sub esp, 0xc
push ebx
mov ebx, eax
add ecx, ebx
push esi
mov eax, 0x1505
cmp edi, 0x102
jae 0x4c2071
test edi, edi
je 0x4c2071
and dword [ebp - 4], 0
test edi, edi
je 0x4c1fbe
mov esi, dword [ebp - 4]
imul eax, eax, 0x21
movzx esi, byte [esi + ecx]
add eax, esi
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jb 0x4c1faa
and eax, 0xff
lea ecx, [edx + eax*4 + 0x60]
mov esi, dword [ecx]
mov dword [ecx], ebx
and dword [edx + 0x474], 0
test esi, esi
je 0x4c2071
mov eax, ebx
sub eax, esi
cmp eax, edi
jbe 0x4c2071
mov ecx, dword [edx + 0x2c]
sub ecx, 0x106
cmp eax, ecx
jae 0x4c2071
cmp edi, dword [edx + 0x478]
ja 0x4c2071
and dword [ebp - 4], 0
test edi, edi
je 0x4c2043
mov eax, dword [edx + 0x38]
mov ecx, esi
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov bl, byte [eax]
mov eax, dword [edx + 0x38]
cmp bl, byte [eax + ecx]
jne 0x4c2071
mov ebx, dword [edx + 0x5c]
mov eax, ecx
shr eax, 3
mov al, byte [eax + ebx]
and cl, 7
shr al, cl
test al, 1
je 0x4c2071
inc dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc dword [ebp - 8]
inc ecx
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 4], edi
jb 0x4c2010
mov ecx, dword [edx + 0x38]
lea eax, [esi + edi]
cmp byte [eax + ecx - 1], 0x3b
je 0x4c2067
mov ebx, dword [edx + 0x5c]
lea ecx, [esi + edi]
mov eax, ecx
shr eax, 3
mov al, byte [eax + ebx]
and cl, 7
shr al, cl
test al, 1
jne 0x4c2071
mov dword [edx + 0x474], esi
mov eax, edi
jmp 0x4c2073
xor eax, eax
pop esi
pop ebx
leave
ret