joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5671
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xffffffffffffffff
push str.cacheupdate_temp_silent.denied
lea ecx, [ebp - 0x19c]
mov byte [esi], 0
call fcn.0043df27
mov edi, eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 4], 0
call fcn.00438814
add esp, 4
push edi
lea ecx, [ebp - 0x94]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0043df70
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.0043d9a3
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 4
call fcn.0043d9a3
lea ecx, [ebp - 0x94]
call fcn.00478277
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404383
mov byte [esi], 1
push 0x4cf3cc
lea ecx, [ebp - 0x94]
call fcn.00478277
push eax
call fcn.00479239
add esp, 8
test eax, eax
je 0x4043a9
push eax
call fcn.0047a0bb
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.0043d9a3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret

Function at 0x4043e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5671
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xffffffffffffffff
push str.cacheupdate_temp_silent.denied
lea ecx, [ebp - 0x19c]
call fcn.0043df27
mov esi, eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 4], 0
call fcn.00438814
add esp, 4
push esi
lea ecx, [ebp - 0x94]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0043df70
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.0043d9a3
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 4
call fcn.0043d9a3
lea ecx, [ebp - 0x94]
call fcn.00478277
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40448f
lea ecx, [ebp - 0x94]
call fcn.00478277
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.0043d9a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x404b50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8406
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.closebtn
lea ecx, [edi + 0x40]
mov dword [0x4e40a8], edi
call fcn.00439f9e
push str.tab_update_view
lea ecx, [edi + 0x40]
mov dword [edi + 0x3a0], eax
call fcn.00439f9e
push str.vLayout_bg
lea ecx, [edi + 0x40]
mov dword [edi + 0x3c4], eax
call fcn.00439f9e
push str.lb_logo
lea ecx, [edi + 0x40]
mov dword [edi + 0x3c8], eax
call fcn.00439f9e
push str.btn_runprogram
lea ecx, [edi + 0x40]
mov dword [edi + 0x3ac], eax
call fcn.00439f9e
push str.lb_bigtext
lea ecx, [edi + 0x40]
mov dword [edi + 0x3a4], eax
call fcn.00439f9e
push str.lb_title
lea ecx, [edi + 0x40]
mov dword [edi + 0x3bc], eax
call fcn.00439f9e
push str.lb_file
lea ecx, [edi + 0x40]
mov dword [edi + 0x3b0], eax
call fcn.00439f9e
push str.lb_speed
lea ecx, [edi + 0x40]
mov dword [edi + 0x3b4], eax
call fcn.00439f9e
push str.pro_pos
lea ecx, [edi + 0x40]
mov dword [edi + 0x3b8], eax
call fcn.00439f9e
mov dword [edi + 0x3c0], eax
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.0047c5e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
lea edx, [eax + 2]
jmp 0x404ca0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404ca0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x238]
call fcn.00403870
push 0xf4
mov dword [ebp - 4], 0
call fcn.00479e99
add esp, 4
test eax, eax
je 0x404ce0
call fcn.00416c30
jmp 0x404ce2
xor eax, eax
xor ecx, ecx
push ecx
lea edx, [ebp - 0x238]
mov dword [edi + 0x3cc], eax
mov word [ebp - 0x254], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
call fcn.00403470
mov edi, dword [edi + 0x3cc]
push 0
lea eax, [ebp - 0x254]
push eax
or eax, 0xffffffff
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00403470
push 0
push 0
push edi
push 0x414c30
push 0
push 0
call fcn.0047bb36
mov esi, 8
add esp, 0x18
cmp dword [ebp - 0x240], esi
jb 0x404d6a
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.004790ec
add esp, 4
cmp dword [ebp - 0x224], esi
jb 0x404d81
mov edx, dword [ebp - 0x238]
push edx
call fcn.004790ec
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x405dd0
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b55b6
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x40
lea eax, [ebp - 0x584]
push 0
push eax
mov dword [ebp - 0x588], 0
call fcn.0047c5e0
xor eax, eax
lea ecx, [ebp - 0x530]
push ecx
mov dword [ebp - 0x540], 0
mov dword [ebp - 0x53c], eax
mov dword [ebp - 0x538], eax
mov dword [ebp - 0x534], eax
call fcn.00438814
add esp, 0x10
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00478277
mov ecx, str.updater.exe
mov edi, eax
lea ebx, [ebp - 0x4a8]
call fcn.00408db0
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 2
call fcn.0043d9a3
mov ecx, ebx
call fcn.00478277
push eax
lea edx, [ebp - 0x420]
push str.cmd.exe__C_ping_4.4.4.4__n_1__w_3000___Nul__del___s_
push edx
mov edx, 0x208
call fcn.00408ce0
add esp, 0xc
lea eax, [ebp - 0x540]
push eax
lea ecx, [ebp - 0x588]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0043d9a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x4065a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x20c], ax
call fcn.0047c5e0
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.Software3uToolsV3_]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x4065e0
mov eax, 0x4cfbc8
cmp byte [ebx], cl
jne 0x406605
mov eax, 0x4cfbd0
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406607
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x406620
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x210]
push edx
push 0xf003f
mov ecx, eax
push 0
lea eax, [ebp - 0x20c]
push eax
and ecx, 3
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406690
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x406690
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x18]
lea esi, [ebx + 4]
mov ebx, 8
cmp edx, ebx
jb 0x4066a3
mov eax, dword [esi]
jmp 0x4066a5
mov eax, esi
lea edi, [eax + 2]
jmp 0x4066b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4066b0
sub eax, edi
sar eax, 1
cmp edx, ebx
jb 0x4066c7
mov ecx, dword [esi]
jmp 0x4066c9
mov ecx, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
push ecx
mov ecx, dword [ebp - 0x210]
push 1
push 0
push str.AppPath
push ecx
call edi
cmp dword [esi + 0x14], ebx
jb 0x4066f0
mov eax, dword [esi]
jmp 0x4066f2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4066f5
mov ecx, dword [ebp - 0x214]
sub eax, edx
add ecx, 0x58
sar eax, 1
cmp dword [ecx + 0x14], ebx
jb 0x406714
mov ecx, dword [ecx]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x210]
push edx
push ecx
push 1
push 0
push str.Version
push eax
call edi
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x406b70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0047c5e0
add esp, 0xc
xor eax, eax
jmp 0x406bb0
movzx ecx, word [eax + str.Software3uTools]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x406bb0
lea edx, [ebp - 0x210]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406c1e
lea ecx, [ebp - 0x20c]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x406c11
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004790f7
mov esp, ebp
pop ebp
ret

Function at 0x406c30
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0047c5e0
add esp, 0xc
xor eax, eax
jmp 0x406c70
movzx ecx, word [eax + str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall3uTools]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x406c70
lea edx, [ebp - 0x210]
push edx
push 0xf023f
push 0
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406cde
lea ecx, [ebp - 0x20c]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x406cd1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x407f00
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], ecx
test eax, eax
je 0x408092
lea edx, [ebp - 0x418]
push edx
push 0x4b984c
push 1
push 0
push 0x4bb7cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x408092
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
lea edx, [ebp - 0x41c]
push edx
push 0x4bbcac
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x408084
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test esi, esi
jne 0x407f8c
mov edx, dword [0x4e336c]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x407f93
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.0047c5e0
push 0x5c
push esi
call fcn.0047aa5a
add esp, 0x14
test eax, eax
jne 0x407fd0
push 0x2f
push esi
call fcn.0047aa5a
add esp, 8
test eax, eax
jne 0x407fd0
mov eax, esi
jmp 0x407fd3
add eax, 2
sub eax, esi
push edi
sar eax, 1
mov edi, eax
push edi
lea edx, [ebp - 0x414]
push esi
push edx
call fcn.0047aa88
xor eax, eax
mov word [ebp + edi*2 - 0x414], ax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
pop edi
test ebx, ebx
je 0x40801e
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebx
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x40805a
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x20c]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4080f7
push 0x5c
test esi, esi
je 0x408063
push esi
jmp 0x40806a
mov edx, dword [0x4e336c]
push edx
call fcn.0047aa5a
add esp, 8
test eax, eax
jne 0x4080a3
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x20c]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
add esp, 0x10
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4080d0
sub eax, edx
sar eax, 1
mov edx, 0x6b
mov dword [ebp + eax*2 - 0x212], 0x6e006c
mov word [ebp + eax*2 - 0x20e], dx
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setns al
xor ecx, ebp
pop esi
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x408f00
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408f10
sub eax, edx
sar eax, 1
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
test eax, eax
jg 0x408f30
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
push esi
push edi
neg ecx
or ecx, eax
push ecx
call fcn.00478154
add esp, 4
mov esi, eax
cmp dword [ebp - 4], ebx
jle 0x408fa4
mov ecx, dword [ebp + 8]
sub eax, ecx
mov edi, ecx
mov dword [ebp - 8], eax
lea ecx, [ecx]
movzx eax, word [edi]
cmp eax, 0x5c
je 0x408f6d
cmp eax, 0x2f
jne 0x408f9b
push ebx
push ecx
push esi
call fcn.0047aa88
mov ecx, dword [ebp - 8]
add esp, 0xc
xor eax, eax
push esi
mov word [ecx + edi], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408f98
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408fb0
mov ecx, dword [ebp + 8]
inc ebx
add edi, 2
cmp ebx, dword [ebp - 4]
jl 0x408f60
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4095a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6e68
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x8000080
push 3
push ebx
push 1
push SysReAllocString
mov dword [ebp - 0x34], ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409614
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x4d2b87
mov ecx, esi
mov byte [esi], bl
call fcn.00403f80
jmp 0x4096dc
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x30], eax
call fcn.0047ab13
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x409650
mov edx, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x34]
push ecx
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409678
push ebx
call fcn.0047aba7
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x4d2b87
mov ecx, esi
mov byte [esi], 0
call fcn.00403f80
jmp 0x4096dc
mov eax, dword [ebp - 0x30]
push eax
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00403f80
push ebx
mov dword [ebp - 4], 0
call fcn.0047aba7
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
push ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
mov byte [esi], 0
call fcn.0040a1d0
cmp dword [ebp - 0x18], 0x10
jb 0x4096dc
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004790ec
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret

Function at 0x409700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x8000080
push 2
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409746
cmp dword [ebp + 0x20], 0x10
jb 0x40973e
mov eax, dword [ebp + 0xc]
push eax
call fcn.004790ec
add esp, 4
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x409752
lea eax, [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
push ebx
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409771
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x1c]
jne 0x409771
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x20], 0x10
jb 0x40978a
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004790ec
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a700
Capabilities:
Get http response content encoding

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.0047c5e0
mov ecx, dword [esi + 4]
add esp, 0xc
push 0
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x804]
push eax
push 0x1d
push ecx
mov dword [ebp - 0x808], 0x800
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40a786
lea edx, [ebp - 0x804]
push 0x4d0360
push edx
call fcn.0047ac94
add esp, 8
test eax, eax
je 0x40a786
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004790f7
mov esp, ebp
pop ebp
ret

Function at 0x40a7a0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6e38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
push str.InternetOpen
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00403f80
push 0
push 0
mov dword [ebp - 4], 0
mov eax, dword [0x4e40bc]
push 0
push eax
push str.xToolsUpdater
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
jne 0x40a818
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040b760
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov esi, eax
jb 0x40a82c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004790ec
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret
Function at 0x40cef0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b578b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e0214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004783b4
push 4
mov dword [ebp - 4], 0
call fcn.00479e99
mov edi, eax
add esp, 4
test edi, edi
je 0x40cf70
call fcn.004788f4
mov dword [edi], eax
call fcn.00478683
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004784f1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40cf66
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00478519
jmp 0x40cf72
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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