joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013df20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
cmp dword [ebx], 0
jne 0x1013df57
call fcn.10137740
push str.file_handler_to_read_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
jmp 0x1013e019
push esi
lea ecx, [ebx + 8]
call fcn.1013be80
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1013dfd3
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], esi
jb 0x1013df9c
test eax, eax
jne 0x1013e009
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.10137740
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.failed_to_read_data._Error_code____d
push 0x101a4aec
push edi
call dword [ebx + 0x24]
mov ebx, dword [ebp - 0xc]
add esp, 0x10
mov esi, dword [ebp - 0x10]
jmp 0x1013e00b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.10137740
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.file_pointer_set_error____d
push 0x101a4aec
push edi
call dword [ebx + 0x24]
mov ebx, dword [ebp - 0xc]
add esp, 0x10
xor esi, esi
jmp 0x1013e00b
mov esi, eax
lea ecx, [ebx + 8]
call fcn.1013bea0
cmp esi, 1
pop esi
je 0x1013e03c
push 0x33
push str.Failed_to_read_the_segment_from_the_downloaded_file
lea ecx, [ebx + 0x30]
call fcn.10001c20
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1013e050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
cmp dword [ebx], 0
jne 0x1013e087
call fcn.10137740
push str.file_handler_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
jmp 0x1013e132
push esi
lea ecx, [ebx + 8]
call fcn.1013be80
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1013e0f0
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp dword [ebp - 8], esi
jb 0x1013e0cb
test edi, edi
jne 0x1013e124
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.10137740
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.failed_to_write_data._Error_code____d
jmp 0x1013e113
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x24], 1
call esi
mov dword [ebx + 0x28], eax
call fcn.10137740
mov edi, eax
mov ebx, dword [edi]
call esi
push eax
push str.file_pointer_set_error____d
push 0x101a4aec
push edi
call dword [ebx + 0x24]
mov ebx, dword [ebp - 0xc]
add esp, 0x10
xor edi, edi
lea ecx, [ebx + 8]
call fcn.1013bea0
pop esi
cmp edi, 1
je 0x1013e155
push 0x41
push str.Failed_to_write_the_segment_in_the_file_which_is_to_be_downloaded
lea ecx, [ebx + 0x30]
call fcn.10001c20
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x101402a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10188703
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101e42fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call fcn.10140210
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.10140210
lea ecx, [edi + 0x60]
mov dword [ebp - 4], 1
call fcn.10147ee0
lea esi, [edi + 0x218]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], esi
push 0x20
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1014d1eb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 0x228]
mov byte [ebp - 4], 3
call fcn.1013d940
mov byte [edi + 0x2d8], 0
mov word [edi + 0x2d9], 0x100
mov byte [edi + 0x2db], 0
mov dword [edi + 0x2dc], 0
lea ecx, [edi + 0x2e4]
mov byte [ebp - 4], 5
call fcn.1013c9b0
lea ecx, [edi + 0x340]
mov byte [ebp - 4], 6
mov dword [edi + 0x330], 0
mov dword [edi + 0x334], 0
mov dword [edi + 0x338], 0
mov dword [edi + 0x33c], 3
call fcn.10137240
lea esi, [edi + 0x36c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x10], esi
push 0x20
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1014d1eb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 0x374]
mov byte [ebp - 4], 8
call fcn.1013e740
lea ecx, [edi + 0x48c]
mov byte [ebp - 4], 9
call fcn.1013e170
lea ecx, [edi + 0x4b0]
mov byte [ebp - 4], 0xa
call fcn.1000a530
lea ecx, [edi + 0x4cc]
mov byte [ebp - 4], 0xb
call fcn.1000a530
mov eax, edi
mov byte [ebp - 4], 0xc
mov dword [eax + 0x4e8], 0
mov dword [eax + 0x4ec], 0
mov dword [eax + 0x4f0], 0
lea esi, [eax + 0x508]
mov dword [eax + 0x4f4], 0
mov dword [eax + 0x4f8], 0
mov dword [eax + 0x4fc], 0
mov word [eax + 0x500], 0
mov dword [eax + 0x504], 0
mov dword [ebp - 0x10], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1014d1eb
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, edi
mov byte [ebp - 4], 0xd
add esi, 0x510
mov dword [ebp - 0x10], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1014d1eb
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, edi
mov byte [ebp - 4], 0xe
lea ecx, [edi + 0x4b0]
mov dword [esi + 0x518], 0
mov dword [esi + 0x51c], 0
call fcn.1013beb0
lea ecx, [edi + 0x4cc]
call fcn.1013beb0
mov eax, esi
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 0x10143a30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10182000
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101e42fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x24]
mov dword [esi], vtable.WorkerThread.0
test eax, eax
je 0x10143aa4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
je 0x10143a94
call fcn.10137740
push edi
push dword [esi + 0x38]
mov ecx, dword [eax]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push eax
call dword [ecx + 0x14]
add esp, 0x10
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
lea ecx, [esi + 8]
call fcn.1013be90
lea ecx, [esi + 8]
call fcn.1004bb30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10143cc0
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
cmp dword [edi + 0x24], 0
je 0x10143df2
call fcn.10137740
push dword [edi + 0x38]
push str.thread___d__is_already_running._Closing_it_first
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
add esp, 0xc
cmp byte [edi + 4], 0
je 0x10143df2
push esi
lea ecx, [edi + 8]
mov dword [edi + 0x34], 2
call fcn.1013be80
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x10143d9b
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [edi + 0x28]
xor esi, esi
cmp dword [eax + 8], 3
je 0x10143d9b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [eax + 8], 5
je 0x10143d95
inc esi
cmp esi, 0x12c
jne 0x10143d65
call fcn.10137740
mov ecx, dword [edi + 0x28]
mov edx, dword [eax]
push dword [ecx + 4]
push str.forcing_the_job___d__to_terminate.
push eax
call dword [edx + 0x14]
mov ecx, dword [edi + 0x28]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp esi, 0x3e8
je 0x10143d7c
push 0xa
call ebx
mov eax, dword [edi + 0x28]
cmp dword [eax + 8], 3
jne 0x10143d35
jmp 0x10143d95
call fcn.10137740
mov edx, dword [edi + 0x28]
mov esi, dword [eax]
push dword [edx + 4]
push str.job___d__is_still_not_terminated._Closing_the_thread_handle_now
push eax
call dword [esi + 0x14]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 8]
call fcn.1013bea0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x10143dea
push 0x61a8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test esi, esi
je 0x10143dde
call fcn.10137740
push esi
push dword [edi + 0x38]
mov ecx, dword [eax]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push eax
call dword [ecx + 0x14]
add esp, 0x10
push 0
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x24]
call ebx
mov dword [edi + 0x24], 0
mov dword [edi + 0x34], 3
pop esi
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x10143ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x24], eax
test eax, eax
jne 0x10143e39
call fcn.10137740
push str.failed_to_create_a_new_thread._Fatal_Error
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10143e7b
call fcn.10137740
push str.thread_failed_to_resumed._fatal_error
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
push dword [edi + 0x24]
call ebx
mov dword [edi + 0x24], 0
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x38], eax
xor ecx, ebp
pop edi
mov al, 1
pop ebx
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
Function at 0x10144040
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x1014413e
push esi
lea ecx, [edi + 8]
mov dword [edi + 0x34], 2
call fcn.1013be80
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x101440e3
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [edi + 0x28]
xor esi, esi
cmp dword [eax + 8], 3
je 0x101440e3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
cmp dword [eax + 8], 5
je 0x101440e2
inc esi
cmp esi, 0x12c
jne 0x101440b2
call fcn.10137740
mov ecx, dword [edi + 0x28]
mov edx, dword [eax]
push dword [ecx + 4]
push str.forcing_the_job___d__to_terminate.
push eax
call dword [edx + 0x14]
mov ecx, dword [edi + 0x28]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x101440ba
cmp esi, 0x3e8
je 0x101440c9
push 0xa
call ebx
mov eax, dword [edi + 0x28]
cmp dword [eax + 8], 3
jne 0x10144080
jmp 0x101440e2
call fcn.10137740
mov edx, dword [edi + 0x28]
mov esi, dword [eax]
push dword [edx + 4]
push str.job___d__is_still_not_terminated._Closing_the_thread_handle_now
push eax
call dword [esi + 0x14]
add esp, 0xc
pop ebx
lea ecx, [edi + 8]
call fcn.1013bea0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x10144136
push 0x61a8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
test esi, esi
je 0x10144126
call fcn.10137740
push esi
push dword [edi + 0x38]
mov ecx, dword [eax]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push eax
call dword [ecx + 0x14]
add esp, 0x10
push 0
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0
mov dword [edi + 0x34], 3
pop esi
mov al, 1
pop edi
ret
Function at 0x101465b0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x20], 0
je 0x1014674b
cmp byte [esi + 0x28], 0
je 0x1014674b
lea eax, [ebp - 8]
mov dword [ebx], 0
push eax
push dword [esi + 0xb0]
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x10146642
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
mov ecx, esi
call fcn.10147260
call fcn.10137740
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.Error__d_in_WinHttpQueryDataAvailable._n
push 0x101a4aec
push esi
call dword [edi + 0x24]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
cmova ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x10146669
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
je 0x101466d0
push 0x101e91ca
push ecx
call fcn.1014e2ba
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x101466cd
call fcn.10137740
push dword [ebp - 8]
push str.failed_to_allote_mmeory_of_size__d
mov ecx, dword [eax]
push 0x101a4aec
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x101a4aec
call fcn.10001b50
push 0
push 0x14
mov ecx, esi
call fcn.10147c20
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 8]
push ecx
push 0
push dword [edi]
call fcn.10150b00
add esp, 0xc
push ebx
push dword [ebp - 8]
push dword [edi]
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1014672e
call fcn.10137740
push str.Error__u_in_WinHttpReadData._n
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10147260
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 0x10
call fcn.10137740
push str.downloader_is_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
push 0x101a4aec
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001c20
push 0
push 0x13
mov ecx, esi
call fcn.10147c20
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x101467b0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], eax
cmp byte [edi + 0x20], 0
je 0x101468ba
cmp byte [edi + 0x28], 0
je 0x101468ba
mov esi, dword [ebp + 0x18]
cmp esi, dword [ebp + 0x14]
mov dword [ebx], 0
cmova esi, dword [ebp + 0x14]
test esi, esi
jne 0x101467f6
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x10], 0
je 0x10146851
push 0x101e91ca
push esi
call fcn.1014e2ba
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x10146853
call fcn.10137740
push esi
push str.failed_to_allote_mmeory_of_size__d
push 0x101a4aec
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x101a4aec
call fcn.10001b50
push 0
push 0x14
mov ecx, edi
call fcn.10147c20
mov eax, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, eax
push esi
push 0
push dword [ecx]
call fcn.10150b00
mov eax, dword [ebp - 4]
add esp, 0xc
push ebx
push esi
push dword [eax]
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x101468a8
call fcn.10137740
push str.Error__u_in_WinHttpReadData._n
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.10147260
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.10137740
push str.downloader_is_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
push 0x101a4aec
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001c20
push 0
push 0x13
mov ecx, edi
call fcn.10147c20
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10146d00
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0xc], eax
mov edi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x24
jne 0x10146d4e
cmp eax, 0x2f76
je 0x10146d5b
cmp eax, 0x7a
je 0x10146d70
push eax
mov ecx, edi
call fcn.10147260
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10146da4
call fcn.10137740
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x101e91ca
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1014e2ba
mov esi, eax
add esp, 8
test esi, esi
jne 0x10146e0d
call fcn.10137740
push str.failed_to_allocate_memory
push 0x101a4aec
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
sub esp, 0xc
mov ecx, esp
push str.Memory_Allocation_Failed
call fcn.10001b50
push esi
push 0x14
mov ecx, edi
call fcn.10147c20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 8]
push eax
push esi
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x10146e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.10147260
push esi
call fcn.1014d1e6
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
push esi
call fcn.10001b10
push esi
call fcn.1014d1e6
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret 8
Function at 0x10146f80
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101e42fc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
push 0
push 0
push 0x16
push dword [edi]
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10147014
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1014d543
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push esi
push 0
push 0x16
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10147006
call fcn.10137740
push esi
push str.Header_contents:__n_s
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
test esi, esi
je 0x10147013
push esi
call fcn.1014d1e6
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1014d1d5
mov esp, ebp
pop ebp
ret
Function at 0x1014d543
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1014d1eb
Function at 0x1016f54c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1016f1fd

Function at 0x1016f557
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1016f387
Function at 0x404270
Capabilities:
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jne 0x404294
push esi
call fcn.00404540
test eax, eax
jne 0x404294
push str.Cant_open_clipboard_for_writing.
call fcn.00404370
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4042cd
cmp dword [esi + 0x18], ebx
je 0x4042bf
cmp dword [esi + 8], ebx
je 0x4042b4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a0bac
call fcn.00404370
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp eax, ebx
je 0x404306
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40432d
cmp word [ecx], bx
push eax
sete byte [esp + 0x13]
call edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
cmp byte [esp + 0xf], bl
je 0x40432d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], ebx
je 0x404323
cmp dword [esi + 8], ebx
je 0x404318
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov edx, dword [esi + 4]
push edx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x404342
mov dword [esi + 4], ebx
jmp 0x404306
cmp dword [esi + 0x18], ebx
je 0x40435f
cmp dword [esi + 8], ebx
je 0x404354
mov eax, dword [esi]
push eax
call edi
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], ebx
mov dword [esi], ebx
push 0x4a0bcc
call fcn.00404370
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404440
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
test esi, esi
je 0x404450
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40451f
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.0048d617
add esp, 0xc
test eax, eax
je 0x404516
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.0048cdc9
add esp, 8
test eax, eax
je 0x404516
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.0048cdc9
add esp, 8
test eax, eax
je 0x404516
lea edx, [esp]
push str.Native
push edx
call fcn.0048cdc9
add esp, 8
test eax, eax
je 0x404516
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.0048cdc9
add esp, 8
test eax, eax
je 0x404516
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.0048cdc9
add esp, 8
test eax, eax
je 0x40450c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.0048cdc9
add esp, 8
test eax, eax
jne 0x404525
test esi, esi
je 0x404516
mov dword [esi], 1
xor eax, eax
add esp, 0x20c
ret
xor eax, eax
mov word [esp], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x20c
ret