joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b2f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 0x10]
movzx eax, word [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x45b3e0
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
je 0x45b3df
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x45b3df
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x45b3df
push ebx
push esi
push eax
call fcn.0046d7f0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp + 0xc], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x45b3df
push edi
push dword [ebp + 0xc]
call fcn.0045b2d7
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, edi
je 0x45b3df
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
jne 0x45b3d7
push edi
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, edi
je 0x45b3d7
mov dword [esi + 8], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop ebx
push dword [ebp - 8]
call sub.gdiplus.dll_GdiplusShutdown
cmp dword [ebp - 4], edi
pop edi
pop esi
je 0x45b3f8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x45b3fd
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046e0e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x496974
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.0046e0cd
leave
ret
Function at 0x45b463
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x45b48d
xor eax, eax
inc eax
jmp 0x45b4ed
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046e0e0
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x45b4ed
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x45b4e4
lea eax, [ebp - 0x20c]
push eax
call fcn.0045b463
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046e0cd
leave
ret
Function at 0x461363
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.0046e0e0
mov esi, dword [ebp + 0xc]
push 0x2454
push 0
push esi
call fcn.0046e0e0
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], pe_nt_image_headers32
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4613eb
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 0x461445
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x461421
cmp eax, 4
je 0x461421
cmp eax, 1
jne 0x461445
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 0x461447
xor eax, eax
pop esi
leave
ret

Function at 0x4617e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4a02f0]
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.0046e0e0
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 0x4618d9
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x20c]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x46188c
cmp cx, bx
je 0x461888
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x46188c
add eax, 4
add edx, 4
cmp cx, bx
jne 0x461866
xor eax, eax
jmp 0x461891
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4618d9
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.0046e0cd
leave
ret
Function at 0x461eff
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4a02f0]
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 0x461f28
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 0x4620a3
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 0x461f63
sub ecx, eax
sar ecx, 1
je 0x461f77
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 0x461f82
sub ecx, ebx
sar ecx, 1
je 0x461f96
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
mov ebx, dword [ebp - 8]
jne 0x461fc2
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 0x461fad
sub ecx, dword [ebp - 8]
sar ecx, 1
je 0x461fc2
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x14], 0
jne 0x461feb
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 0x461fd6
sub ecx, dword [ebp - 8]
sar ecx, 1
je 0x461feb
mov dword [ebp - 0x14], edx
xor eax, eax
inc eax
cmp dword [edi + 4], eax
jne 0x461ff6
mov dword [ebp - 0x18], eax
push 0x461aec
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 0x4620a3
add ebx, 0x60810
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46203c
sub eax, edx
sar eax, 1
je 0x46209e
mov dword [ebp - 0x28], 3
test ebx, ebx
je 0x462067
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x46206d
and dword [ebp - 0x24], 0
jmp 0x462086
lea edi, [eax + eax]
mov eax, edi
call fcn.004710e0
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.00418150
mov dword [ebp - 0x24], eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0x26
push dword [esi + 0x14]
mov dword [ebp - 0x20], 0x49b3de
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x4620a5
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
leave
ret 4
Function at 0x46242f
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 0x4624ef
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 0x4624c5
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 0x462497
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 0x462916
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.004703d0
mov eax, dword [0x4a02f0]
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], 0x497194
cmp dword [edi + 0x2480], ebx
je 0x462959
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], 0x497180
mov dword [ebp - 0x1018], ebx
call fcn.0046e0e0
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.00461a1e
add esp, 0x20
mov eax, 0x8400c300
cmp dword [edi + 0x62cbc], ebx
je 0x4629c3
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x4629d1
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 0x462ae2
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.0046e263
mov edi, eax
pop ecx
cmp edi, ebx
je 0x462abd
push 0xa2d0
push ebx
push edi
call fcn.0046e0e0
mov ecx, dword [ebp - 0x1010]
add esp, 0xc
push dword [ebp - 0x1008]
push 0x5167
push edi
push esi
call fcn.004620b9
mov eax, edi
mov dword [ebp - 0x103c], edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x462aa8
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 0x462ae2
push edi
call fcn.0046dff2
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1008]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
leave
ret 4
Function at 0x4630ee
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.0046e0e0
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 0x46315a
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0x18]
sub eax, dword [ecx + 8]
inc eax
cmp eax, edi
jle 0x463156
mov eax, edi
mov dword [ebx], eax
jmp 0x463183
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x5d108], 0xffffffff
jne 0x46316f
cmp dword [ecx + 0x5d10c], 0xffffffff
je 0x463183
mov eax, dword [ecx + 0x5d108]
sub eax, dword [ecx + 0x5d118]
cmp eax, edi
jg 0x463181
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 0x4631e2
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 0x4631c1
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x4631db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4631bd
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00462bff
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 0x4631b0
Function at 0x4631f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4a02f0]
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.0046e0e0
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 0x4633e1
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x20c]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4632b4
cmp cx, bx
je 0x4632b0
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4632b4
add eax, 4
add edx, 4
cmp cx, bx
jne 0x46328e
xor eax, eax
jmp 0x4632b9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4633e1
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 0x4633aa
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.00435887
inc dword [ebp - 0x218]
mov eax, dword [ebp - 0x218]
add esi, 0x20
cmp eax, dword [ebp - 0x214]
jb 0x46332e
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 0x4633e3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
leave
ret
Function at 0x463d49
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x463d6c
xor eax, eax
inc eax
jmp 0x463ef1
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 0x463eee
mov ecx, dword [esi + 0x5d108]
mov eax, dword [esi + 0x5d10c]
cmp ecx, 0xffffffff
jne 0x463dc8
cmp eax, ecx
je 0x463de3
cmp dword [ebp - 0x14], eax
ja 0x463de3
jb 0x463dd4
cmp dword [ebp - 0x18], ecx
ja 0x463de3
mov dword [esi + 0x2470], 2
jmp 0x463eee
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 0x463ed8
cmp dword [esi + 0x26fc], ebx
je 0x463ed3
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.00457689
mov ecx, esi
call fcn.004631f6
test eax, eax
jne 0x463ed3
cmp dword [esi + 0x2468], ebx
ja 0x463e4d
mov dword [esi + 0x2468], 5
push 0xa
pop ecx
cmp dword [esi + 0x2468], ecx
jbe 0x463e5e
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.00435887
mov eax, dword [esi + 0x5d108]
mov edx, dword [esi + 0x5d10c]
mov cl, 0x20
call fcn.00471b50
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 0x463ef0
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.0046e0cd
leave
ret
Function at 0x464560
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 0x4645d5
cmp dword [edi + 0x2480], 0
je 0x4645c2
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 0x4645c6
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x4645f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4645f7
jmp 0x4645c2
cmp dword [esi], 0
jne 0x4645e6
mov eax, dword [esi + 4]
test eax, eax
je 0x4645e6
mov dword [esi + 0x18], eax
jmp 0x4645c2
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.00463bd2
test eax, eax
jne 0x4645c2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x464ec7
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 0x464f3b
cmp dword [edi + 0x2480], 0
je 0x464f67
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 0x464f29
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x464f67
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x464f6a
cmp dword [esi], 0
jne 0x464f4c
mov eax, dword [esi + 4]
test eax, eax
je 0x464f4c
mov dword [esi + 0x18], eax
jmp 0x464f67
push 1
push ebx
mov dword [esi + 0x28], 4
call fcn.00463bd2
test eax, eax
jne 0x464f67
push ebx
mov ecx, edi
call fcn.00462bff
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x46532c
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 0x465350
mov eax, dword [ebx]
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [edi + 0x26fc], esi
je 0x4653f2
call fcn.004617e4
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 0x4653a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46542d
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 0x46542d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x46542d
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.00465240
mov ecx, edi
call fcn.0046242f
xor eax, eax
inc eax
jmp 0x46542f
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 0x46542d
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x46542d
add dword [edi + 0x5d118], ecx
push ecx
push ebx
adc dword [edi + 0x5d11c], esi
mov ecx, edi
call fcn.00465240
jmp 0x4653ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4