joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53e8b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov esi, ecx
push 0
lea ecx, [esi + 0x14]
push 0
call fcn.0053e530
mov edx, dword [0x752bcc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push str.nProxyMode
mov ebp, 4
push edx
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x53e8ff
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
jmp 0x53e9d4
mov eax, dword [0x752bcc]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.UseHttpProxy
push eax
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x53e92c
cmp dword [esp + 0x10], eax
je 0x53e92c
mov byte [esi + 8], 1
mov eax, dword [0x752bcc]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.UseHttpsProxy
push eax
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x53e959
cmp dword [esp + 0x10], eax
je 0x53e959
mov byte [esi + 0xa], 1
mov eax, dword [0x752bcc]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.UseFtpProxy
push eax
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x53e986
cmp dword [esp + 0x10], eax
je 0x53e986
mov byte [esi + 9], 1
mov eax, dword [0x752bcc]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.bUseSocks
push eax
mov dword [esp + 0x24], ebp
call edi
cmp byte [esi + 8], 0
jne 0x53e9bd
cmp byte [esi + 9], 0
jne 0x53e9bd
cmp byte [esi + 0xa], 0
jne 0x53e9bd
cmp byte [esi + 0xb], 0
je 0x53e9c4
mov dword [esi + 4], 0x10
cmp dword [0x7536f8], 0
je 0x53e9d4
mov dword [esi + 4], 8
mov eax, dword [0x752bcc]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.kbUPFBoErfCD
push eax
mov dword [esp + 0x24], ebp
call edi
test eax, eax
jne 0x53ea01
cmp dword [esp + 0x10], eax
setne cl
mov byte [esi + 0xd], cl
test byte [esi + 4], 8
je 0x53ea2d
mov edi, dword [0x7536f4]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53ea12
sub eax, edx
je 0x53ea2d
push edi
mov ecx, 0x7536e8
call fcn.004c5490
mov dword [0x7536f8], eax
cmp dword [esi + 4], 2
jne 0x53ea6b
push 0
push 0
lea ecx, [esi + 0x14]
call fcn.0053e530
test byte [esi + 0x18], 8
je 0x53ea6b
mov esi, dword [esi + 0x20]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53ea50
sub eax, edx
je 0x53ea6b
push esi
mov ecx, 0x7536e8
call fcn.004c5490
mov dword [0x7536f8], eax
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x53eba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x752bcc]
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push str.nProxyMode
push edx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53ec06
mov eax, dword [esi + 4]
cmp eax, dword [esp + 8]
je 0x53ec06
mov ecx, 0x7536e8
call fcn.004c5250
mov ecx, esi
call fcn.0053e8b0
cmp dword [esi + 4], 2
jne 0x53ec06
push 0
push 0
push 0
push 0
push 0
push 0x53d690
call fcn.005f5219
pop esi
add esp, 8
ret
Function at 0x53fea0
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x164]
sub esp, 0x164
push 0xffffffffffffffff
push 0x6534f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x160], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0x16c]
mov ebx, dword [ebp + 0x170]
mov esi, dword [ebp + 0x174]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x540052
push 0x160
push 0
lea eax, [ebp]
push eax
call fcn.00615eb0
add esp, 0xc
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
push ecx
push 0x69f040
push 2
mov ecx, dword [ebp - 0x14]
call fcn.0053fdb0
test eax, eax
je 0x53ff4d
push 0x410c
push 0x160
lea edx, [ebp]
push edx
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x18], eax
jmp 0x53ff64
push 0x400c
push 0x160
lea eax, [ebp]
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 1
mov ecx, dword [ebp + 4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
mov dword [ebp - 0x14], eax
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov eax, dword [esi + 4]
push eax
mov ecx, dword [esi]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x1c], eax
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea edx, [ebp - 0x40]
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
push 3
push 0
push 0
push 0x30
push 0x30
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [esi + 4]
sub eax, 0x30
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi]
sub eax, 0x30
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [esi + 4]
mov esi, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
push 0x10
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea ecx, [ebp - 0x30]
push ecx
push edi
call dword [sym.imp.USER32.dll_FrameRect]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x20]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebx
call esi
mov eax, dword [ebp - 0x1c]
jmp 0x540054
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x160]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x164
mov esp, ebp
pop ebp
ret 0x10
Function at 0x542330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x653950
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push 0x5421d0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x542394
lea esp, [esp]
mov eax, dword [0x753780]
cmp eax, esi
jne 0x54239b
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x542380
xor eax, eax
mov dword [0x753780], eax
mov dword [edi + 0x24], eax
mov dword [0x753780], esi
mov dword [ebp - 4], 0xffffffff
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 0x542820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x653a1b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov edx, dword [edi + 4]
cmp edx, 0xffffffff
je 0x5428aa
mov eax, esi
lea ebx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x542870
sub eax, ebx
push 0
lea ecx, [ebp - 0x228]
push ecx
push eax
push esi
push edx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea edx, [ebp - 0x228]
push edx
push 2
push 0x67029c
mov eax, dword [edi + 4]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006157d3
mov esp, ebp
pop ebp
ret 4

Function at 0x542910
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x408]
cmp eax, 0x3fe
jne 0x54296b
push edi
push 0x400
lea edi, [esi + 8]
push 0
push edi
call fcn.00615eb0
mov ecx, dword [esi + 4]
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
push 0x3ff
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
je 0x542964
cmp dword [esp + 4], 0
jbe 0x542964
mov dword [esi + 0x408], 0
jmp 0x542972
xor al, al
pop esi
pop ecx
ret 4
inc eax
mov dword [esi + 0x408], eax
mov edx, dword [esi + 0x408]
mov al, byte [esi + edx + 8]
mov ecx, dword [esp + 0xc]
mov byte [ecx], al
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x542f60
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x653b08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x210], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp + 0x21c]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ecx + 4], 0xffffffff
je 0x5430c6
push 0x69f6d0
lea ecx, [ebp - 0x14]
call fcn.004030b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 2
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x20]
call fcn.005886e0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040e310
cmp dword [esi + 0x38], ebx
je 0x543009
push str._r_nreferer:
lea ecx, [ebp - 0x14]
call fcn.00403070
mov edx, dword [esi + 0x38]
push edx
lea ecx, [ebp - 0x14]
call fcn.00403070
cmp dword [esi + 0x3c], ebx
je 0x543027
push str._r_ncookie:
lea ecx, [ebp - 0x14]
call fcn.00403070
mov eax, dword [esi + 0x3c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403070
lea edi, [esi + 0x1a8]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
je 0x54304a
push str._r_npd:
lea ecx, [ebp - 0x14]
call fcn.00403070
push edi
lea ecx, [ebp - 0x14]
call fcn.0040e310
add esi, 0x1ac
mov eax, dword [esi]
cmp eax, ebx
je 0x543081
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x543060
sub eax, edx
je 0x543081
push str._r_nUser_Agent:
lea ecx, [ebp - 0x14]
call fcn.00403070
push esi
lea ecx, [ebp - 0x14]
call fcn.0040e310
push str._r_n__r_n
lea ecx, [ebp - 0x14]
call fcn.00403070
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push ebx
lea edx, [ebp - 0x20]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x214
mov esp, ebp
pop ebp
ret 4
Function at 0x543c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5214]
mov eax, 0x5214
call fcn.00616f00
push 0xffffffffffffffff
push 0x653be8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x5210], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp + 0x521c]
mov dword [ebp - 4], 0
mov ebx, 0x2800
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x2a10]
push ecx
push 0
push 0
push str.Extensions
mov edx, dword [0x752bcc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x543dc1
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x543cb8
sub eax, edx
cmp eax, ebx
jae 0x543dc1
mov dword [ebp - 0x14], ebx
mov ecx, edi
lea edx, [ebp + 0x210]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x543cd4
push 0x30000000
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x210]
push ecx
mov edx, ecx
push edx
mov ebx, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
call ebx
lea eax, [ebp + 0x2a10]
push eax
lea ecx, [ebp + 0x210]
push ecx
mov ecx, esi
call fcn.00543ab0
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x543d89
push 0x3f
push edi
call fcn.00616db0
add esp, 8
test eax, eax
je 0x543d89
mov ecx, edi
lea edx, [ebp + 0x210]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x543d30
mov dword [ebp - 0x14], 0x2800
push 0x30000000
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp + 0x210]
push eax
mov ecx, eax
push ecx
call ebx
push 0x3f
lea edx, [ebp + 0x210]
push edx
call fcn.00616db0
add esp, 8
test eax, eax
je 0x543d89
mov byte [eax], 0
lea eax, [ebp + 0x2a10]
push eax
lea ecx, [ebp + 0x210]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00543ab0
mov esi, eax
mov dword [ebp - 0x18], esi
mov eax, esi
jmp 0x543dc3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5210]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x5214
mov esp, ebp
pop ebp
ret 4
Function at 0x543df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5004]
mov eax, 0x5004
call fcn.00616f00
push 0xffffffffffffffff
push 0x653c10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x5000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0x500c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x543e45
sub eax, edx
mov edi, 0x2800
cmp eax, edi
jae 0x543f89
push edi
push 0
lea eax, [ebp]
push eax
call fcn.00615eb0
add esp, 0xc
mov ecx, esi
lea edx, [ebp]
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x543e70
push 0x25
lea ecx, [ebp]
push ecx
call fcn.00616db0
add esp, 8
test eax, eax
je 0x543f02
lea edx, [ebp]
push edx
call fcn.00543a40
mov bl, al
push str.Shlwapi.dll
call fcn.00447330
add esp, 8
mov esi, eax
test esi, esi
je 0x543ed2
push str.UrlUnescapeA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x543ec9
push 0x2100000
push 0
push 0
lea ecx, [ebp]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x543eeb
mov dword [ebp - 0x1c], edi
push 0x30000000
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test bl, bl
je 0x543f02
mov edx, dword [ebp + 0x5010]
push edx
lea eax, [ebp]
push eax
call fcn.005ad670
add esp, 8
push 0x3f
lea ecx, [ebp]
push ecx
call fcn.00616db0
add esp, 8
test eax, eax
jne 0x543f89
cmp dword [0x752bcc], eax
jne 0x543f3f
push eax
push 0x752bcc
push eax
push 0xf003f
push eax
push eax
push eax
push str.SoftwareDownloadManager_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x543f89
mov dword [ebp - 0x18], edi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp + 0x2800]
push eax
push 0
push 0
push str.Extensions
mov ecx, dword [0x752bcc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x543f89
lea edx, [ebp + 0x2800]
push edx
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00543ab0
jmp 0x543f8b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5000]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x5004
mov esp, ebp
pop ebp
ret 8
Function at 0x545d00
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x653ef6
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x210], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [edi], vtable.CUrlHistory.0
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 4], 2
cmp dword [edi + 0x20], 0
je 0x545d64
mov eax, dword [edi + 0x20]
jmp 0x545d67
lea eax, [edi + 0x24]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x545d70
sub eax, edx
sar eax, 1
jne 0x545d92
lea ecx, [edi + 4]
call fcn.005f74e8
mov byte [ebp - 4], 1
jmp 0x545e79
cmp dword [edi + 0x20], 0
je 0x545d9d
mov eax, dword [edi + 0x20]
jmp 0x545da0
lea eax, [edi + 0x24]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x545d89
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 3
mov eax, dword [edi + 8]
mov dword [ebp - 0x1c], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1c], 0
je 0x545e16
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [edi + 4]
call fcn.00406c90
push eax
lea ecx, [ebp - 0x14]
call fcn.004058f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp - 0x20]
push edx
push ecx
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0x20]
push eax
push 1
push 0x673ff8
push esi
call ebx
jmp 0x545dd8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 4], 1
jmp 0x545e65
cmp esi, 0xffffffff
je 0x545e71
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 4]
call fcn.005f74e8
mov byte [ebp - 4], 0
lea ecx, [edi + 0x20]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 4]
call fcn.005f752a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x214
mov esp, ebp
pop ebp
ret
Function at 0x546390
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x653ff6
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x210], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [edi], vtable.CUrlHistory2.0
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 4], 2
cmp dword [edi + 0x20], 0
je 0x5463f4
mov eax, dword [edi + 0x20]
jmp 0x5463f7
lea eax, [edi + 0x24]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x546400
sub eax, edx
sar eax, 1
jne 0x546422
lea ecx, [edi + 4]
call fcn.005f74e8
mov byte [ebp - 4], 1
jmp 0x546509
cmp dword [edi + 0x20], 0
je 0x54642d
mov eax, dword [edi + 0x20]
jmp 0x546430
lea eax, [edi + 0x24]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x546419
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 3
mov eax, dword [edi + 8]
mov dword [ebp - 0x1c], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1c], 0
je 0x5464a6
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [edi + 4]
call fcn.00406c90
push eax
lea ecx, [ebp - 0x14]
call fcn.004058f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp - 0x20]
push edx
push ecx
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0x20]
push eax
push 1
push 0x673ff8
push esi
call ebx
jmp 0x546468
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 4], 1
jmp 0x5464f5
cmp esi, 0xffffffff
je 0x546501
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 4]
call fcn.005f74e8
mov byte [ebp - 4], 0
lea ecx, [edi + 0x20]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 4]
call fcn.005f752a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x214
mov esp, ebp
pop ebp
ret
Function at 0x546570
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x654059
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [edi], vtable.CUrlHistory2.0
push 0xa
lea ecx, [edi + 4]
call fcn.005f7439
xor ebx, ebx
mov dword [ebp - 4], ebx
lea esi, [edi + 0x20]
mov dword [esi], ebx
mov dword [esi + 8], ebx
xor eax, eax
mov word [esi + 4], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 4], 2
mov eax, dword [0x752c1c]
cmp eax, ebx
jne 0x5465f1
mov eax, 0x752c20
push ebx
push str.UrlHistory2.txt
push eax
push 0x66dde0
mov ecx, esi
call fcn.00402320
push 0x66e97c
lea ecx, [ebp - 0x14]
call fcn.004030b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 4
cmp dword [esi], ebx
je 0x546629
mov esi, dword [esi]
jmp 0x54662c
add esi, 4
push ebx
push ebx
push 4
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
jne 0x546670
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 1
mov dword [ebp - 4], esi
jmp 0x54678c
push 0x400
push ebx
lea ecx, [ebp]
push ecx
call fcn.00615eb0
add esp, 0xc
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x3ff
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x546717
cmp dword [ebp - 0x20], ebx
jbe 0x546717
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00403070
lea esp, [esp]
push ebx
push 0xa
lea ecx, [ebp - 0x14]
call fcn.004b31d0
mov esi, eax
cmp esi, 0xffffffff
jle 0x54670f
lea ecx, [ebp - 0x14]
cmp esi, ebx
jne 0x5466d3
push 1
push ebx
call fcn.00500f00
jmp 0x5466b0
push esi
lea edx, [ebp - 0x28]
push edx
call fcn.004f7ba0
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x18]
call fcn.004058f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00402570
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [edi + 4]
call fcn.005f775f
inc esi
push esi
push ebx
lea ecx, [ebp - 0x14]
call fcn.00500f00
jmp 0x5466b0
mov esi, dword [ebp - 0x1c]
jmp 0x546670
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 4], 1
jmp 0x54677b
or ebx, 0xffffffff
cmp esi, ebx
je 0x546789
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
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 + 0x400]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x404
mov esp, ebp
pop ebp
ret