joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100059a2
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x2e
push esi
xor ebx, ebx
call fcn.1000903f
pop ecx
pop ecx
test eax, eax
je 0x10005a2d
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005a8a
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10005a18
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10005a1e
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100059f8
jmp 0x10005a24
mov ebx, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10005a47
cmp word [esi], 0x2f
je 0x10005a3b
mov dword [ebp - 0x234], ebx
jmp 0x10005a96
add esi, 2
push esi
call fcn.10009486
pop ecx
mov ebx, eax
push ebx
push 1
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10005a8a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10005a8a
mov esi, dword [0x10022984]
push 1
push 0x1990
push dword [0x100230b0]
call fcn.10003990
add esp, 0xc
neg eax
sbb eax, eax
and eax, 2
jmp 0x10005ab5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push 0x1998
xor ecx, ecx
push 4
inc ecx
pop ebx
call fcn.1000389c
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
dec eax
pop ebx
call fcn.10008f62
leave
ret
Function at 0x10005ac5
Capabilities:
Check for time delay via gettickcount
Delete file
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
mov dword [ebp - 0x64], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax + eax + 0x42]
push eax
push 0x40
call edi
push ebx
mov dword [ebp - 0x4c], eax
call esi
lea eax, [eax + eax + 0x42]
push eax
push 0x40
call edi
push ebx
push ebx
mov dword [ebp - 0x48], eax
call esi
mov ecx, dword [ebp - 0x4c]
add eax, 0x21
push eax
call fcn.100023fc
push ebx
push ebx
call esi
mov ecx, dword [ebp - 0x48]
add eax, 0x21
push eax
call fcn.100023fc
push 0x10000
push 0x40
call edi
and dword [ebp - 0x50], 0
mov dword [ebp - 0x54], eax
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
je 0x10005c4d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10005bb1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x64]
cmp eax, 0x15f90
ja 0x10005bb1
mov ecx, dword [ebp - 0x58]
sub ecx, edi
mov eax, 0x10000
cmp ecx, eax
jae 0x10005b96
mov eax, ecx
push 0
lea ecx, [ebp - 0x68]
push ecx
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x68]
cmp edi, dword [ebp - 0x58]
jb 0x10005b76
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x64]
cmp eax, 0x5a
ja 0x10005c40
xor edi, edi
push 0
push 0x19
pop eax
call fcn.1000324c
add eax, 0x61
mov word [ebp + edi*2 - 0x44], ax
inc edi
pop ecx
cmp edi, 4
jl 0x10005bca
push 0x5c
push dword [ebp - 0x48]
xor eax, eax
mov word [ebp - 0x3c], ax
call fcn.1000903f
inc eax
inc eax
pop ecx
pop ecx
je 0x10005c33
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x44]
push eax
push ebx
call esi
mov ebx, dword [ebp - 0x48]
lea edi, [eax + 0x21]
call fcn.1000242c
push ebx
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10005c4d
push ebx
push dword [ebp - 0x5c]
call esi
mov ecx, dword [ebp - 0x4c]
add eax, 0x21
push eax
call fcn.100023fc
mov ebx, dword [ebp - 0x5c]
inc dword [ebp - 0x50]
cmp dword [ebp - 0x50], 8
jl 0x10005b40
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10005c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10005c59
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
cmp dword [ebp - 0x4c], ebx
je 0x10005c6b
push dword [ebp - 0x4c]
call esi
cmp dword [ebp - 0x48], ebx
je 0x10005c75
push dword [ebp - 0x48]
call esi
cmp dword [ebp - 0x54], ebx
je 0x10005c7f
push dword [ebp - 0x54]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008f62
leave
ret
Function at 0x100065c3
Capabilities:
Get file size
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x814], eax
add eax, 0xc
push eax
push 0x400
lea ecx, [ebp - 0x804]
call fcn.100023fc
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
push edi
mov ebx, 0x80
push ebx
push 3
push edi
push 3
push closesocket
lea eax, [ebp - 0x804]
push eax
call esi
mov dword [ebp - 0x808], eax
cmp eax, 0xffffffff
je 0x1000664a
lea eax, [ebp - 0x80c]
push eax
push 0x2044
xor ecx, ecx
push 4
inc ecx
pop ebx
call fcn.1000389c
mov esi, eax
neg esi
sbb esi, esi
pop ecx
neg esi
pop ecx
dec esi
jmp 0x10006789
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x804]
push eax
call esi
mov dword [ebp - 0x808], eax
cmp eax, 0xffffffff
jne 0x100066a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x80c]
push eax
push 0x1998
xor ecx, ecx
push 4
inc ecx
pop ebx
call fcn.1000389c
mov esi, eax
neg esi
sbb esi, esi
pop ecx
neg esi
pop ecx
dec esi
jmp 0x10006795
mov esi, dword [0x10022984]
push 1
push 0x1990
push dword [0x100230b0]
call fcn.10003990
add esp, 0xc
test eax, eax
je 0x10006786
push edi
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x810], eax
mov eax, dword [0x100230b4]
xor ebx, ebx
mov esi, eax
mov eax, dword [0x10022984]
push edi
push dword [eax + 0xc]
mov dword [ebp - 0x80c], eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10006786
mov eax, dword [ebp - 0x80c]
push 0x10000
call fcn.1000384d
pop ecx
cmp eax, edi
je 0x10006786
mov esi, dword [0x10022984]
push 1
push 0x1990
push dword [0x100230b0]
call fcn.10003990
add esp, 0xc
test eax, eax
je 0x10006786
push edi
lea eax, [ebp - 0x818]
push eax
mov eax, dword [0x100230b4]
push dword [eax + 8]
add eax, 0xc
push eax
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x100230b4]
add ebx, dword [eax + 8]
cmp dword [eax + 4], edi
je 0x100066e1
cmp ebx, dword [ebp - 0x810]
jb 0x100066e1
push dword [ebp - 0x814]
push edi
push edi
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor esi, esi
inc esi
jmp 0x10006789
or esi, 0xffffffff
push dword [ebp - 0x808]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008f62
leave
ret
Function at 0x10007060
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ebx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
jne 0x100070a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100071bf
push edi
mov edi, 0x22c
push edi
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.1000f670
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
mov dword [ebp - 0x230], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x100070ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100071b2
push str.explorer.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10007121
push dword [ebp - 0x228]
lea esi, [ebp - 0x240]
call fcn.10006fcf
pop ecx
test eax, eax
jne 0x10007121
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp + 8]
je 0x10007151
push edi
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.1000f670
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
mov dword [ebp - 0x230], edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100070ea
jmp 0x100071a2
push dword [ebp - 0x228]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x1000719c
lea eax, [ebp - 0x23c]
push eax
push 0xb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000718d
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x238]
mov dword [ecx], eax
jmp 0x10007193
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100071a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x238]
xor eax, eax
cmp dword [ecx], ebx
setne al
lea esi, [eax - 1]
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008f62
leave
ret
Function at 0x100071cf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov ecx, dword [eax]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 4
push esi
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
xor esi, esi
push edi
cmp eax, esi
jne 0x100071ff
lea eax, [ebp - 8]
push eax
push ecx
call fcn.10007060
pop ecx
pop ecx
jmp 0x1000720c
lea edx, [ebp - 8]
push edx
push ecx
call eax
test eax, eax
jne 0x10007210
call ebx
cmp eax, esi
jne 0x10007285
push 0x40
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.1000f670
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
xor edi, edi
push esi
push dword [ebp - 8]
inc edi
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1000727f
mov esi, dword [0x10022984]
push edi
push 0x1990
push dword [0x100230b0]
call fcn.10003990
add esp, 0xc
neg eax
sbb eax, eax
and eax, 2
jmp 0x100072a6
call ebx
mov ecx, edi
jmp 0x1000728a
call ebx
xor ecx, ecx
inc ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1998
push 4
pop ebx
call fcn.1000389c
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
pop edi
pop esi
dec eax
pop ebx
leave
ret

Function at 0x100076b2
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0xc]
push 2
mov dword [ebp - 0x10], 0x5c3a3a
stosb byte es:[edi], al
pop ebx
mov eax, dword [ebp + 8]
mov ecx, ebx
shr eax, cl
test al, 1
je 0x10007708
lea eax, [ebx + 0x41]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [esi + ebx*8], 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov dword [esi + ebx*8 + 4], eax
jmp 0x10007711
and dword [esi + ebx*8], 0
and dword [esi + ebx*8 + 4], 0
inc ebx
cmp ebx, 0x1a
jl 0x100076d4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.10008f62
leave
ret
Function at 0x10007963
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10019e04]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10019e08]
push ebx
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 8]
stosw word es:[edi], ax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
stosd dword es:[edi], eax
push 0x10019e0c
stosd dword es:[edi], eax
push 5
pop ecx
lea edi, [ebp - 0x10]
call fcn.10003a07
pop ecx
pop ecx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x100079e4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
push 0x1990
xor ecx, ecx
push 0x14
inc ecx
pop ebx
call fcn.1000389c
neg eax
pop ecx
sbb eax, eax
pop ecx
mov ecx, dword [ebp - 4]
and eax, 2
pop edi
xor ecx, ebp
dec eax
pop ebx
call fcn.10008f62
leave
ret
Function at 0x10007a10
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x1001c050]
xor eax, esp
mov dword [esp + 0x268], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
call esi
lea eax, [eax + eax + 0x22]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [esp + 0xc]
mov edi, eax
push str._s
push dword [esp + 0x14]
call esi
lea ecx, [eax + 0x11]
call fcn.10003a07
pop ecx
pop ecx
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], 0xffffffff
jne 0x10007a9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10007b8c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x10019e20
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
je 0x10007b69
push 0x10019e24
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
je 0x10007b69
test byte [esp + 0x20], 0x10
je 0x10007b46
add dword [ebx], 1
push dword [esp + 0xc]
adc dword [ebx + 4], 0
call esi
mov edi, eax
lea eax, [esp + 0x4c]
push eax
call esi
add edi, eax
lea eax, [edi + edi + 0x20]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x10]
push str._s_s
push dword [esp + 0x18]
call esi
mov edi, eax
lea eax, [esp + 0x58]
push eax
call esi
lea ecx, [edi + eax + 0x10]
mov edi, dword [esp + 0x28]
call fcn.10003a07
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebx
push edi
call fcn.10007a10
add esp, 0x1c
test edi, edi
je 0x10007b69
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10007b69
mov eax, dword [esp + 0x14]
add dword [eax], 1
mov edx, dword [esp + 0x40]
push 0
pop ecx
adc dword [eax + 4], ecx
mov eax, dword [esp + 0x18]
add dword [eax], edx
adc dword [eax + 4], ecx
add dword [eax], ecx
mov ecx, dword [esp + 0x3c]
adc dword [eax + 4], ecx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10007a9f
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10008f62
mov esp, ebp
pop ebp
ret
Function at 0x10007bd5
Capabilities:
Create thread
Receive http response
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push dword [ebp + 8]
push 0x10007ba1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x2710
push eax
mov dword [ebp - 4], eax
call edi
mov ebx, 0x102
cmp eax, ebx
jne 0x10007c7b
mov esi, dword [0x10022984]
push 1
push 0x2045
push dword [0x100230b0]
call fcn.10003990
add esp, 0xc
test eax, eax
je 0x10007ca1
mov eax, dword [0x10022984]
mov esi, dword [0x100230b4]
push 0
push dword [eax + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10007ca1
mov eax, dword [ebp - 8]
push 0x10000
call fcn.1000384d
pop ecx
test eax, eax
je 0x10007ca1
mov ecx, dword [0x100230b4]
mov eax, 0x1990
cmp word [ecx + 2], ax
jne 0x10007ca1
push 0x2710
push dword [ebp - 4]
call edi
cmp eax, ebx
je 0x10007c0c
xor esi, esi
xor ecx, ecx
inc ecx
cmp dword [0x10021cbc], esi
jne 0x10007cbf
push 0x10021cc0
push 0x1990
push 0x18
pop ebx
call fcn.1000389c
neg eax
sbb eax, eax
and eax, 2
jmp 0x10007cd7
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or eax, 0xffffffff
jmp 0x10007cda
push 0x10021cbc
push 0x1998
push 4
pop ebx
call fcn.1000389c
neg eax
sbb eax, eax
neg eax
pop ecx
dec eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007d58
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
xor eax, eax
movzx esi, word [0x1002243c]
movzx ebx, word [0x10022440]
pop ecx
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
mov byte [ebp - 0x44], 0
xor eax, eax
pop ecx
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx edi, word [0x1002243e]
sub esi, 0x60
sub edi, 0x60
sub ebx, 0x60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul esi, esi, 0x1a
add esi, edi
imul esi, esi, 0x1a
add eax, ebx
add esi, eax
push esi
call fcn.10009136
xor ebx, ebx
inc ebx
pop ecx
cmp dword [0x10022418], ebx
jne 0x10007e41
movzx ecx, word [0x10022420]
mov eax, dword [0x1002241c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str._s:_d
mov ecx, 0x100
lea edi, [ebp - 0x188]
call fcn.1000248d
add esp, 0xc
push str.https
push 0x10023068
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x49c
test eax, eax
jne 0x10007e33
call fcn.100094e0
pop ecx
test eax, eax
je 0x10007e7c
push ebx
lea ecx, [ebp - 0x188]
push ecx
mov esi, eax
call fcn.10003acc
jmp 0x10007e7e
call fcn.100094e0
pop ecx
test eax, eax
je 0x10007e7c
push 0
jmp 0x10007e23
push str.https
push 0x10023068
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x49c
test eax, eax
jne 0x10007e67
call fcn.100094e0
pop ecx
test eax, eax
je 0x10007e7c
push ebx
jmp 0x10007e73
call fcn.100094e0
pop ecx
test eax, eax
je 0x10007e7c
push 0
mov esi, eax
call fcn.10003a75
jmp 0x10007e7e
xor eax, eax
mov dword [0x10022984], eax
call fcn.10004f3a
test eax, eax
je 0x10007f53
call fcn.10009148
cdq
mov ecx, 0x2328
idiv ecx
lea eax, [ebp - 0x88]
push eax
push 0x40
pop ecx
add edx, 0x3e8
mov dword [0x100230b0], edx
mov esi, edx
mov edx, str.T1B7D95256A2001E
call fcn.100023a1
call fcn.10009148
push 8
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x88]
push eax
push esi
push dword [0x10022984]
call fcn.10004404
test eax, eax
je 0x10007f53
lea eax, [ebp - 0x18c]
push eax
push dword [0x10022984]
push 4
pop eax
call fcn.10003b4e
test eax, eax
je 0x10007f53
mov eax, dword [0x10022984]
push 0
push dword [eax + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10007f53
mov edi, dword [0x10022984]
lea eax, [ebp - 0x24]
push eax
push 4
pop eax
call fcn.1000489c
test eax, eax
je 0x10007f53
push dword [0x100230b0]
lea edi, [ebp - 0x44]
push str._04d
push 0x20
pop ecx
call fcn.1000248d
pop ecx
pop ecx
mov eax, edi
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x10007f53
mov eax, ebx
jmp 0x10007f55
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008f62
leave
ret
Function at 0x10007f64
Capabilities:
Check if file exists
Get disk information
Get disk size
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ec
mov eax, dword [0x1001c050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10019e04]
mov dword [ebp - 0x28], eax
mov eax, dword [0x10019e08]
push ebx
push esi
mov dword [ebp - 0x24], eax
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosw word es:[edi], ax
push 0x1001eea0
lea eax, [ebp - 0x338]
mov dword [ebp - 0x1c], 0x89f4f051
mov dword [ebp - 0x18], 0x763e7760
mov dword [ebp - 0x14], 0xc4e9a964
mov dword [ebp - 0x10], 0x7b159cc8
mov dword [ebp - 0xc], 0xf5c50df3
mov dword [ebp - 8], 0x1df1cd67
call fcn.10003275
lea eax, [ebp - 0x1c]
push 0x18
push eax
lea eax, [ebp - 0x338]
call fcn.100032d2
mov ebx, 0x292
push ebx
lea eax, [ebp - 0x5d0]
push 0
push eax
call fcn.1000f670
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 2
mov dword [ebp - 0x5d0], eax
pop esi
mov eax, dword [ebp - 0x5d0]
mov ecx, esi
shr eax, cl
test al, 1
je 0x100080a8
lea eax, [esi + 0x41]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [ebp - 0x5cc]
mov dword [ebp + ecx*4 - 0x5c8], eax
lea eax, [ebp - 0x5d8]
push eax
lea eax, [ebp - 0x5e0]
push eax
lea eax, [ebp - 0x5e8]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x5e0]
mov dword [ebp + esi*4 - 0x560], eax
mov eax, esi
mov dword [ebp + eax*8 - 0x428], ecx
mov ecx, dword [ebp - 0x5dc]
mov dword [ebp + eax*8 - 0x424], ecx
mov ecx, dword [ebp - 0x5d8]
mov dword [ebp + eax*8 - 0x4f8], ecx
mov ecx, dword [ebp - 0x5d4]
mov dword [ebp + eax*8 - 0x4f4], ecx
inc dword [ebp - 0x5cc]
xor eax, eax
lea edi, [ebp - 0x5e0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x5d8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 0x41]
push eax
lea eax, [ebp - 0x1c]
push eax
push str._s_c
mov ecx, 0x104
lea edi, [ebp - 0x230]
call fcn.10003a07
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100080e2
test al, 0x10
je 0x100080e2
mov byte [ebp + esi - 0x358], 1
inc esi
cmp esi, 0x1a
jl 0x10008002
lea eax, [ebp - 0x5d0]
push eax
xor ecx, ecx
push 0x2010
inc ecx
call fcn.1000389c
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
and eax, 2
pop esi
xor ecx, ebp
dec eax
pop ebx
call fcn.10008f62
leave
ret