joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ca90
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c6b0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c7050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp esi, edi
je 0x42cb9c
jmp 0x42cad0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x42cb8b
mov edi, dword [esi]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
lea edx, [edi - 4]
mov ecx, eax
jl 0x42cb08
cmp ecx, dword [edi - 0x10]
jne 0x42cb08
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x42cb41
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x42cc1b
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
lea ecx, [ebx + 0x10]
mov edx, dword [edi - 0xc]
lea eax, [edx*2 + 2]
push eax
push edi
lea eax, [edx*2 + 2]
push eax
push ecx
call fcn.0044775d
add esp, 0x10
add ebx, 0x10
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42cbf3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42cb8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
add esi, 4
cmp esi, edi
jne 0x42cad0
mov esi, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42cbdf
cmp esi, edi
je 0x42cbd6
mov edx, dword [esi]
or ecx, 0xffffffff
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42cbcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x42cbb0
mov esi, dword [ebp + 8]
push esi
call fcn.004474c4
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42cc11
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
jmp 0x42cba1
call fcn.00404090
int3

Function at 0x42ccb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
Function at 0x42ccd0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c6ee
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.00448850
mov eax, dword [0x4c7050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1018], ebx
lea eax, [ebp - 0x1028]
mov byte [ebp - 4], 1
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
call sub.PSAPI.DLL_EnumProcesses
or ecx, 0xffffffff
xor edi, edi
test eax, eax
je 0x42ce5c
mov eax, dword [ebp - 0x1028]
shr eax, 2
test eax, eax
je 0x42cddd
lea esi, [ebp - 0x1010]
mov ebx, eax
nop
mov eax, dword [esi]
test eax, eax
je 0x42cdcf
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.0042c2d0
add esp, 8
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
mov byte [ebp - 4], 2
setne cl
test ecx, ecx
je 0x42ce9b
push eax
push dword [ebp - 0x1014]
call fcn.00452476
add esp, 8
test eax, eax
jne 0x42cdab
push esi
lea ecx, [ebp - 0x1020]
call fcn.0042e470
mov edx, dword [ebp - 0x1014]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42cdcf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
add esi, 4
cmp edi, ebx
jb 0x42cd60
mov ebx, dword [ebp - 0x1020]
mov edi, dword [ebp - 0x101c]
xor edx, edx
sub edi, ebx
mov esi, ebx
mov dword [ebp - 0x1024], edi
lea eax, [edi + 3]
shr eax, 2
cmp ebx, dword [ebp - 0x101c]
cmova eax, edx
mov dword [ebp - 0x1014], eax
test eax, eax
je 0x42ce49
xor ebx, ebx
lea ebx, [ebx]
push dword [esi]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
lea esi, [esi + 4]
cmp ebx, dword [ebp - 0x1014]
jne 0x42ce10
mov ebx, dword [ebp - 0x1020]
mov edi, dword [ebp - 0x1024]
sar edi, 2
test ebx, ebx
je 0x42ce59
push ebx
call fcn.004474c4
add esp, 4
or ecx, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42ce7d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448352
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403040
int3
Function at 0x42d0c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c760
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c7050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, 1
mov dword [ebp - 4], 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x42d10b
push 0
lea ecx, [ebp + 8]
call fcn.00403910
mov eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42d152
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 4], 1
mov edi, dword [ecx - 0xc]
jle 0x42d143
push edi
lea ecx, [ebp + 0xc]
call fcn.00418090
mov ecx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42d17c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x42d19d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d200
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c788
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x4c7050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0x104
push eax
call fcn.004529fa
push 0x104
push 0x4a46ec
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00453518
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004529fa
push 0x104
push 0x4a46f4
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00453518
add esp, 0x40
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42d3b3
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.004529fa
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x10
jmp 0x42d2f0
lea eax, [ebp - 0x670]
push eax
push esi
call ebx
test eax, eax
je 0x42d391
lea eax, [ebp - 0x644]
push eax
call fcn.0042cc30
add esp, 4
test eax, eax
jne 0x42d2f0
push 0x104
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00453518
add esp, 0x10
lea eax, [ebp - 0x218]
test byte [ebp - 0x670], 0x10
je 0x42d364
push ecx
mov ecx, esp
push eax
call fcn.00401830
call fcn.0042d200
add esp, 4
test eax, eax
je 0x42d3ac
lea eax, [ebp - 0x218]
push eax
call edi
jmp 0x42d36f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42d3ac
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004529fa
jmp 0x42d2e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x42d3ac
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call edi
mov esi, eax
jmp 0x42d3b5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42d3d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448352
mov esp, ebp
pop ebp
ret
Function at 0x42d400
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4c7050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.00403660
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42d44b
push 0x80004005
call fcn.00403040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.00403490
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004031c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042bc10
push 0x44
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00452ac0
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x6c], 0x44
cmp dword [esi - 4], 1
jle 0x42d4c7
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00403410
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x42d4de
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00403410
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push edi
push 0
push 0
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp + 0x10], 0
mov ebx, eax
je 0x42d51c
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x24]
call edi
mov edx, dword [ebp - 0x14]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42d53f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42d55c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42d57c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x42d59d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e5f0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca88
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c7050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 4], 1
mov esi, esp
push eax
call fcn.004031c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042e560
add esp, 8
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004024c0
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42e672
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x42e689
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00403410
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov edx, dword [ebp + 8]
test eax, eax
mov ecx, 1
mov byte [ebp - 4], 0
cmovns ebx, ecx
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42e6cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x42e6ec
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e700
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cad9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c7050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
call fcn.00403660
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42e752
push 0x80004005
call fcn.00403040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], 1
mov esi, esp
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x1c], 0
call fcn.004031c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042e560
add esp, 8
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004024c0
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42e7c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], 1
jle 0x42e7e0
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403410
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], 1
jle 0x42e7fe
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.00403410
mov eax, dword [ebp + 0xc]
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
call sub.urlmon.dll_URLOpenBlockingStreamW
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x42e880
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x100000
or eax, ecx
jge 0x42e83a
push 0x100000
mov ecx, edi
call fcn.00419eb0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
lea ecx, [ebp - 0x1c]
push ecx
push 0x100000
push dword [edi]
push edx
call dword [eax + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x42e855
xor ecx, ecx
jmp 0x42e867
push dword [eax - 8]
push eax
call fcn.00452b50
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x42e8b2
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x42e8b2
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42e89e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403040
int3
Function at 0x42e8c0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cb18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c7050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00403660
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42e90b
push 0x80004005
call fcn.00403040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov byte [ebp - 4], 1
mov edi, esp
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x1c], 0
call fcn.004031c0
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042e560
add esp, 8
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004024c0
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42e97d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x42e994
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00403410
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x42e9b2
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00403410
mov eax, dword [ebp + 8]
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
call sub.urlmon.dll_URLOpenBlockingStreamW
mov edi, eax
test edi, edi
js 0x42ea52
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x42ea4d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100000
or eax, ecx
jge 0x42e9fa
push 0x100000
lea ecx, [ebp - 0x14]
call fcn.00419eb0
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
lea ecx, [ebp - 0x1c]
push ecx
push 0x100000
push esi
push edx
call dword [eax + 0xc]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.00452b50
add esp, 8
test eax, eax
js 0x42ea43
cmp eax, dword [esi - 8]
jg 0x42ea43
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test edi, edi
js 0x42ea52
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.00415ff0
jmp 0x42ea52
push 0x80070057
call fcn.00403040
mov edi, 0x80004003
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42ea6f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42ea90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ed80
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42ee07
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, eax
test esi, esi
je 0x42edf9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, eax
test esi, esi
je 0x42edf0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42ee10
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.00448850
mov eax, dword [0x4c7050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 0xf0000000
push 1
push 0
mov dword [ebp - 0x4014], eax
lea eax, [ebp - 0x4010]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov esi, eax
test esi, esi
je 0x42ef59
lea eax, [ebp - 0x4008]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x4010]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, eax
test esi, esi
je 0x42ef4b
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42eea3
xor esi, esi
jmp 0x42ef59
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x400c]
push 0
push eax
push 0x4000
lea eax, [ebp - 0x4004]
mov dword [ebp - 0x400c], 0
push eax
push esi
call edi
test eax, eax
je 0x42ef0f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 0x400c]
test eax, eax
je 0x42ef0e
push 0
push eax
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x4008]
call ebx
push 0
lea eax, [ebp - 0x400c]
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push esi
call edi
test eax, eax
jne 0x42eed6
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x4018]
mov dword [ebp - 0x4018], 0x10
push eax
push dword [ebp - 0x4014]
push 2
push dword [ebp - 0x4008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x4008]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x4010]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42ef76
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00448352
mov esp, ebp
pop ebp
ret