joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b818
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x664]
push 0x24c
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x668], ebx
call fcn.005091d0
mov ax, word [0x53fc30]
add esp, 0xc
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push 0x206
push ebx
push eax
call fcn.005091d0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x540418
push esi
push 0x540480
push 0xffffffffffffffff
push 0x103
push eax
call fcn.005038e8
add esp, 0x18
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b8b2
xor eax, eax
jmp 0x40b9c7
mov ecx, 0x54048c
lea eax, [ebp - 0x63c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b8e3
test dx, dx
je 0x40b8df
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b8e3
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b8bd
mov eax, ebx
jmp 0x40b8e8
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b99a
mov ecx, 0x540490
lea eax, [ebp - 0x63c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b921
test dx, dx
je 0x40b91d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b921
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b8fb
mov eax, ebx
jmp 0x40b926
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b99a
mov ax, word [0x53fc30]
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.005091d0
add esp, 0xc
lea eax, [ebp - 0x63c]
test byte [ebp - 0x668], 0x10
push eax
push esi
push 0x540480
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x103
push eax
je 0x40b985
call fcn.005038e8
add esp, 0x18
lea ecx, [ebp - 0x210]
call fcn.0040b818
jmp 0x40b99a
call fcn.005038e8
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x668]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b8b2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x40b9d8
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, edx
xor esi, esi
push esi
mov edi, ecx
mov dword [ebp - 0x264], eax
push eax
mov dword [ebp - 0x25c], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x208
call fcn.0050283e
pop ecx
push edi
push str._s.
push 0xffffffffffffffff
mov ebx, eax
push 0x104
push ebx
mov dword [ebp - 0x260], ebx
call fcn.005038e8
add esp, 0x14
mov dword [ebp - 0x258], esi
lea eax, [ebp - 0x254]
push 0x24c
push esi
push eax
call fcn.005091d0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bb3b
lea eax, [ebp - 0x22c]
push 0x54048c
push eax
call fcn.005036e8
pop ecx
pop ecx
test eax, eax
je 0x40bb25
lea eax, [ebp - 0x22c]
push 0x540490
push eax
call fcn.005036e8
pop ecx
pop ecx
test eax, eax
je 0x40bb25
push 0x208
call fcn.0050283e
pop ecx
mov esi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
push 0x540480
push 0xffffffffffffffff
push 0x104
push esi
call fcn.005038e8
push 0x208
call fcn.0050283e
add esp, 0x1c
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x264]
push 0x540480
push 0xffffffffffffffff
push 0x104
push edi
call fcn.005038e8
add esp, 0x18
test byte [ebp - 0x258], 0x10
je 0x40bb07
mov edx, edi
mov ecx, esi
call fcn.0040b9d8
jmp 0x40bb11
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call fcn.0050269b
pop ecx
push edi
call fcn.0050269b
mov edi, dword [ebp - 0x25c]
pop ecx
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ba65
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x260]
call fcn.0050269b
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x40bb5f
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0x220]
mov esi, ecx
push eax
push ebx
push ebx
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x40bba0
xor al, al
jmp 0x40bca3
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x240]
rep stosd dword es:[edi], eax
push 0x206
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
mov dword [ebp - 0x240], 0x1f01ff
inc edi
mov dword [ebp - 0x238], 3
push ebx
push eax
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x22c], edi
call fcn.005091d0
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x40bc2d
cmp word [ebp - 0x210], bx
je 0x40bc2d
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], eax
jmp 0x40bc41
mov dword [ebp - 0x228], 2
mov dword [ebp - 0x224], str.Authenticated_Users
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x40bc71
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40bb99
push ebx
push dword [ebp - 0x214]
push ebx
push ebx
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, eax
call esi
push dword [ebp - 0x214]
call esi
xor eax, eax
test edi, edi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret

Function at 0x40bcb4
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bce8
mov ebx, 0x80
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40bce8
mov ecx, esi
call fcn.0040bb5f
test al, al
je 0x40bce8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop ebx
pop ecx
ret
Function at 0x40bd63
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x121c
call fcn.0050d9b0
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
xor esi, esi
mov dword [ebp - 0x1214], eax
test eax, eax
je 0x40be94
lea eax, [ebp - 0x1218]
push eax
push 0x1000
lea eax, [ebp - 0x120c]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40be94
push ebx
mov ebx, dword [ebp - 0x1218]
push edi
shr ebx, 2
mov edi, esi
mov dword [ebp - 0x1210], edi
test ebx, ebx
je 0x40be8e
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005091d0
add esp, 0xc
push dword [ebp + edi*4 - 0x120c]
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40be66
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x40be66
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.360se.exe
push eax
call fcn.005036e8
pop ecx
pop ecx
test eax, eax
jne 0x40be66
mov edx, dword [ebp - 0x1214]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x121c], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40be3e
sub ecx, dword [ebp - 0x121c]
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push edx
push eax
call fcn.00503923
add esp, 0xc
test eax, eax
je 0x40be84
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x1210]
inc edi
mov dword [ebp - 0x1210], edi
cmp edi, ebx
jb 0x40bdc9
jmp 0x40be8e
xor esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop ebx
jmp 0x40be96
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret

Function at 0x40c89c
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 4], 0
and dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
ret
Function at 0x40cdba
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x3c
pop ebx
xor eax, eax
mov esi, edx
push ebx
push eax
lea eax, [ebp - 0x3c]
mov edi, ecx
push eax
call fcn.005091d0
push 0x2454
push 0
push esi
call fcn.005091d0
lea eax, [esi + 8]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
mov ecx, 0x800
lea eax, [esi + 0x2148]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x2c], eax
add esp, 0x18
lea eax, [esi + 0x48]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebx + 0x44]
lea eax, [esi + 0x1048]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], eax
xor ebx, ebx
lea eax, [esi + 0x2348]
mov dword [ebp - 0x14], ecx
mov ecx, edi
mov dword [ebp - 0x20], eax
lea eax, [esi + 0x2048]
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
mov dword [ebp - 0x18], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40ce43
lea eax, [ebp - 0x3c]
sub ecx, edx
push eax
push dword [ebp + 8]
sar ecx, 1
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40ce98
mov edx, dword [ebp - 0x30]
xor eax, eax
inc eax
cmp edx, 3
je 0x40ce79
cmp edx, 4
je 0x40ce79
cmp edx, eax
jne 0x40ce98
mov cx, word [ebp - 0x24]
or dword [esi + 0x2450], 0xffffffff
mov dword [esi + 0x2448], ebx
mov dword [esi + 0x244c], ebx
mov word [esi], cx
mov dword [esi + 4], edx
jmp 0x40ce9a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dbe5
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
inc ebx
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x40dc5a
cmp dword [edi + 0x2480], 0
je 0x40dc47
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 0x40dc4b
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x40dc7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40dc7c
jmp 0x40dc47
cmp dword [esi], 0
jne 0x40dc6b
mov eax, dword [esi + 4]
test eax, eax
je 0x40dc6b
mov dword [esi + 0x18], eax
jmp 0x40dc47
and dword [esi + 0x28], 0
push ebx
push ecx
mov ecx, edi
call fcn.0040efb2
test eax, eax
jne 0x40dc47
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x40e372
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 + 0x26d8]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x40e3e6
cmp dword [edi + 0x2480], 0
je 0x40e412
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 0x40e3d4
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40e412
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x40e415
cmp dword [esi], 0
jne 0x40e3f7
mov eax, dword [esi + 4]
test eax, eax
je 0x40e3f7
mov dword [esi + 0x18], eax
jmp 0x40e412
push 1
push ebx
mov dword [esi + 0x28], 4
call fcn.0040efb2
test eax, eax
jne 0x40e412
push ebx
mov ecx, edi
call fcn.0040ead4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40e6f0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x26d8]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa
mov ebx, dword [eax + ebx*4]
xor eax, eax
mov dword [ebp - 4], ecx
pop ecx
lea edx, [ebx + 0x8044]
mov edi, edx
lea esi, [ebx + 0x40]
rep stosd dword es:[edi], eax
mov edi, 0x8000
mov dword [edx], 0x28
push edi
push eax
push esi
call fcn.005091d0
mov edx, dword [ebx + 0x8040]
lea ecx, [ebx + 0x805c]
add esp, 0xc
mov dword [ebx + 0x8058], esi
mov dword [ecx], edi
test edx, edx
je 0x40e75b
mov eax, dword [edx + 0x10]
sub eax, dword [edx + 0x18]
sub eax, dword [edx + 8]
inc eax
cmp eax, edi
jg 0x40e756
mov edi, eax
mov esi, dword [ebp - 4]
jmp 0x40e782
mov esi, dword [ebp - 4]
cmp dword [esi + 0x5d100], 0xffffffff
jne 0x40e770
cmp dword [esi + 0x5d104], 0xffffffff
je 0x40e784
mov eax, dword [esi + 0x5d100]
sub eax, dword [esi + 0x5d110]
cmp eax, edi
jg 0x40e782
mov edi, eax
mov dword [ecx], edi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebx + 0x20]
xor edi, edi
inc edi
mov dword [ebx + 0x28], 9
cmp dword [eax + 4], edi
je 0x40e7e4
push ebx
push edi
lea ecx, [ebx + 0x8044]
push ecx
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x40e7c2
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x40e7db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40e7be
push dword [ebp + 8]
mov ecx, esi
call fcn.0040ead4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebx + 0x805c]
push eax
push dword [eax]
push dword [ebx + 0x8058]
push dword [ebx + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x40e7b1
Function at 0x40ebf2
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0xc], esi
mov edx, esi
lea eax, [edi + 0x61850]
cmp cx, word [eax]
je 0x40ec1d
mov edx, eax
push 0x10000000
push esi
push esi
push esi
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebx + 0x14], eax
test eax, eax
je 0x40edb2
mov edx, dword [ebx + 0x20]
add edx, 0x2348
mov dword [ebp - 8], esi
mov ecx, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 3
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x40ec58
sub ecx, esi
sar ecx, 1
je 0x40ec6d
mov dword [ebp - 8], edx
mov edx, dword [ebx + 0x20]
add edx, 0x2048
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x40ec7b
sub ecx, esi
sar ecx, 1
je 0x40ec90
mov dword [ebp - 0x14], edx
cmp dword [ebp - 8], 0
jne 0x40ecb6
lea edx, [edi + 0x60608]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x40eca1
sub ecx, esi
sar ecx, 1
je 0x40ecb6
mov dword [ebp - 8], edx
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x40ecdf
lea edx, [edi + 0x60708]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x40ecc8
sub ecx, esi
mov esi, edx
sar ecx, 1
jne 0x40ecdf
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x20]
xor ecx, ecx
inc ecx
cmp dword [eax + 4], ecx
jne 0x40eced
mov dword [ebp - 0x18], ecx
push 0x40d2b8
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
push ebx
push dword [edi + 0x26d4]
movzx eax, word [ecx]
push dword [ebp - 0x18]
push esi
push edx
push eax
lea eax, [ecx + 0x2148]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x40edb2
add edi, 0x60808
xor esi, esi
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40ed39
sub ecx, edx
sar ecx, 1
je 0x40edad
mov dword [ebp - 0x28], 3
test edi, edi
jne 0x40ed5a
mov dword [ebp - 0x24], esi
jmp 0x40ed95
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40ed5f
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x40ed7d
xor eax, eax
jmp 0x40ed92
add esi, esi
mov eax, esi
call fcn.00512570
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.00409acc
mov dword [ebp - 0x24], eax
push 0xc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0x53f8ed
push ecx
push 0x26
push dword [ebx + 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
inc eax
jmp 0x40edb4
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret 4
Function at 0x40edca
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.0050d9b0
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1010], 0x54059c
xor ebx, ebx
mov dword [ebp - 0x1018], esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1014], edi
cmp dword [esi + 0x2480], ebx
je 0x40ee13
mov dword [ebp - 0x1010], str.POST
mov ax, word [0x53fc30]
push 0xffe
mov word [ebp - 0x100c], ax
lea eax, [ebp - 0x100a]
push ebx
push eax
mov dword [ebp - 0x1024], 0x5405b0
mov dword [ebp - 0x1020], ebx
call fcn.005091d0
mov ecx, dword [edi + 0x20]
add esp, 0xc
lea eax, [ecx + 0x1048]
push eax
lea eax, [ecx + 0x48]
push eax
push str._s_s
lea eax, [ebp - 0x100c]
push 0x7ff
push eax
call fcn.0041093e
add esp, 0x14
mov ecx, 0x8400c300
cmp dword [esi + 0x62cb4], ebx
je 0x40ee7e
mov ecx, 0x8408c300
mov eax, dword [edi + 0x20]
cmp dword [eax + 4], 4
jne 0x40ee8d
or ecx, 0x803000
push edi
push ecx
lea eax, [ebp - 0x1024]
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x1010]
push dword [edi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0x1c], eax
test eax, eax
je 0x40ef9d
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 0x1010]
push 4
push ecx
push 2
pop ecx
push ecx
push eax
mov dword [ebp - 0x1010], 0x3a98
call esi
push 4
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x101c], 1
push eax
push 0x41
push dword [edi + 0x1c]
call esi
push 0xa
mov esi, eax
lea edi, [ebp - 0x104c]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x104c], 0x28
push 2
pop edx
mov eax, 0x5168
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050283e
mov edi, eax
pop ecx
test edi, edi
je 0x40ef76
push 0xa2d0
push ebx
push edi
call fcn.005091d0
add esp, 0xc
push esi
mov esi, dword [ebp - 0x1014]
push ecx
mov ecx, dword [ebp - 0x1018]
push edi
push esi
call fcn.0040f086
mov ecx, edi
mov dword [ebp - 0x1044], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40ef5f
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x1040], ecx
jmp 0x40ef7c
mov esi, dword [ebp - 0x1014]
push esi
push 1
push ebx
lea eax, [ebp - 0x104c]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov ebx, eax
test edi, edi
je 0x40ef9d
push edi
call fcn.005028a5
pop ecx
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret 4
Function at 0x40f6f2
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
je 0x40f716
xor eax, eax
inc eax
jmp 0x40f883
lea edi, [esi + 0x5d120]
mov dword [ebp - 0x18], ebx
push edi
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
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40f881
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x40f771
cmp eax, ecx
je 0x40f78c
cmp dword [ebp - 0x14], eax
ja 0x40f78c
jb 0x40f77d
cmp dword [ebp - 0x18], ecx
ja 0x40f78c
mov dword [esi + 0x2470], 2
jmp 0x40f881
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 0x40f86b
cmp dword [esi + 0x26f0], ebx
je 0x40f70e
lea edi, [esi + 0x26e4]
mov ecx, esi
mov eax, dword [edi]
mov dword [edi + 4], eax
call fcn.0040fb1a
test eax, eax
jne 0x40f70e
cmp dword [esi + 0x2468], ebx
ja 0x40f7e4
mov dword [esi + 0x2468], 5
push 0xa
pop eax
cmp dword [esi + 0x2468], eax
jbe 0x40f7f5
mov dword [esi + 0x2468], eax
mov dword [esi + 0x5cfc0], ebx
mov ecx, edi
mov dword [esi + 0x5cfc4], ebx
mov edx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
add edx, 0xffffffff
mov dword [esi + 0x5cfc8], edx
adc eax, 0xffffffff
mov dword [esi + 0x5cfcc], eax
lea eax, [esi + 0x5cfb8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040bea5
mov eax, dword [esi + 0x5d100]
mov cl, 0x20
mov edx, dword [esi + 0x5d104]
call fcn.0052a3c0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
push ecx
push dword [esi + 0x5d100]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x40f70e
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret