joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431bd0
Capabilities:
Hide graphical window

Disassembly:
push 0x100
mov eax, 0x495572
call fcn.00474ec1
push dword [ebp + 8]
mov ebx, ecx
mov edi, ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x4d], 1
call fcn.004319bb
mov ecx, dword [ebx + 0xc1c]
test ecx, ecx
je 0x431c78
mov eax, dword [0x4c05b8]
test eax, eax
jne 0x431c15
mov eax, ecx
call fcn.0044a7b7
mov dword [0x4c05b8], eax
test eax, eax
je 0x431c23
mov ecx, dword [ebx + 0xc1c]
cmp eax, dword [ecx + 0x464]
jne 0x431c3e
mov edi, dword [ebx + 0xc1c]
mov esi, 0x2ec
add edi, esi
push str.NoAttempt
call fcn.00410e89
test eax, eax
jne 0x431c56
mov eax, dword [0x4c05b4]
push 0x5a
pop ecx
test eax, eax
js 0x431c4e
cmp eax, ecx
jl 0x431c7c
mov dword [0x4c05b4], ecx
jmp 0x431c7c
mov edi, dword [ebx + 0xc1c]
add edi, esi
push str.Success
call fcn.00410e89
test eax, eax
jne 0x431c78
mov dword [0x4c05b4], 0x64
jmp 0x431c7c
mov byte [ebp - 0x4d], 0
mov eax, dword [0x4c05b4]
cmp eax, dword [0x4bdd50]
je 0x431cb8
cmp byte [ebp + 8], 0
jne 0x431ca3
push 0
push eax
push 0x402
push dword [ebx + 0x234]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x4c05b4]
mov dword [0x4bdd50], eax
cmp eax, 0x63
jge 0x431cb8
inc eax
mov dword [0x4c05b4], eax
mov ecx, dword [ebx + 0xc18]
mov edx, dword [ecx + 0x440]
xor ecx, ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x58], ecx
cmp edx, ecx
jle 0x431dea
mov dword [ebp - 0x54], ecx
mov eax, dword [ebx + 0xc18]
test ecx, ecx
js 0x431e1d
cmp ecx, dword [eax + 0x440]
jge 0x431e1d
mov eax, dword [eax + 0x43c]
add eax, dword [ebp - 0x54]
je 0x431dce
mov esi, dword [eax + 0x1f4]
test esi, esi
je 0x431dce
cmp dword [eax + 0x1f0], 1
jne 0x431d26
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x431dce
add esi, 0xfffffffc
je 0x431dce
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00412e33
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x54]
call fcn.0040ba5a
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.0040bba0
cmp dword [esi + 0x64], 0
je 0x431dce
mov eax, dword [0x4c05b4]
cdq
push edx
push eax
lea ebx, [esi + 0x54]
call fcn.0041e8e4
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
call fcn.00438b03
xor ebx, ebx
lea eax, [ebp - 0xfc]
inc ebx
push eax
lea ecx, [esi + 0x54]
mov dword [ebp - 4], ebx
call fcn.004192d7
pop ecx
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x10c]
call fcn.00438b71
mov byte [ebp - 4], 2
call fcn.00412e06
push 0
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040bba0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10c]
call fcn.00409aad
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
add dword [ebp - 0x54], 0x1f8
inc ecx
mov dword [ebp - 0x58], ecx
cmp ecx, dword [ebp - 0x60]
jl 0x431cd7
mov eax, dword [0x4c05b4]
cmp byte [ebp - 0x4d], 0
je 0x431df5
cmp eax, 0x64
jne 0x431e15
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0xd2
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00474f44
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x43230e
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0047e160
mov eax, dword [0x4b9e20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0xffe
mov word [ebp - 0x1004], ax
xor edi, edi
lea eax, [ebp - 0x1002]
push edi
push eax
mov esi, ecx
call fcn.0046fc60
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 0x20019
push edi
push 0x4a0558
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1008], edi
mov dword [ebp - 0x100c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4323ac
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1010]
push eax
push edi
push str.InstallerLocation
push dword [ebp - 0x1008]
mov dword [ebp - 0x1010], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1004]
cmp word [ebp - 0x1004], di
jne 0x4323ff
mov edi, 0x800
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4323e1
push str._system32_
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.00471866
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
call fcn.0046faa4
pop ecx
push eax
lea eax, [ebp - 0x1004]
push eax
mov ecx, esi
call fcn.0040cee2
jmp 0x43243c
push eax
call fcn.0046faa4
pop ecx
push eax
lea eax, [ebp - 0x1004]
push eax
mov ecx, esi
call fcn.0040cee2
mov ecx, dword [esi + 0x10]
lea ecx, [ecx - 1]
mov eax, esi
call fcn.0040a536
cmp word [eax], 0x5c
je 0x43243c
mov edi, 0x49c6b8
push edi
call fcn.0046faa4
pop ecx
push edi
mov ebx, eax
call fcn.0040ce4a
mov edi, str.msiexec.exe
push edi
call fcn.0046faa4
pop ecx
push edi
mov ebx, eax
call fcn.0040ce4a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d5b3
leave
ret
Function at 0x4399cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4b9e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x4be88c]
push pe_nt_image_headers32
push 0x6a
push esi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x439b53
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x439b53
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x439b53
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x439b51
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x114], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x439ac5
lea eax, [ebp - 0x104]
push 3
mov dword [ebp - 0x108], eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0043c59a
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x110]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x439aa5
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x439b3e
push dword [ebp - 0x108]
call fcn.0046de11
pop ecx
jmp 0x439b3e
mov ecx, 0x1234
cmp cx, ax
jne 0x439b3e
or dword [ebp - 0x134], 0xffffffff
lea eax, [ebp - 0x104]
push 3
mov dword [ebp - 0x108], eax
push esi
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x138], 1
call fcn.0043c59a
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x439b18
push eax
call fcn.0046de11
pop ecx
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x110]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x439b3e
and dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x439a3b
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop esi
call fcn.0046d5b3
leave
ret 4
Function at 0x43ae6f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x43aeb9
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x43aee0
shr eax, 2
test al, 1
je 0x43aee9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x43af1c
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x43af1b
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x443557
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0x24
mov eax, 0x49180a
call fcn.00474ec1
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.APNInstaller
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x4435a7
cmp dword [0x4bfb94], ebx
je 0x44364a
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.InternetOpen_Failed
call fcn.00409f78
mov ecx, esi
call fcn.004437f6
jmp 0x44364a
cmp dword [esi + 0x60], ebx
jne 0x4435d8
mov edi, str.pipoffers.apnpartners.com
push edi
call fcn.0046faa4
pop ecx
push eax
lea ecx, [esi + 0x50]
push edi
call fcn.0040cee2
mov edi, str._PIP2.5_OfferAccept.jhtml
push edi
call fcn.0046faa4
pop ecx
push eax
push edi
lea ecx, [esi + 0x6c]
call fcn.0040cee2
cmp dword [esi + 0x64], 8
jb 0x4435e3
mov ecx, dword [esi + 0x50]
jmp 0x4435e6
lea ecx, [esi + 0x50]
push ebx
push ebx
push 3
mov eax, 0x49c8ac
push eax
push eax
push 0x50
push ecx
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x20], eax
cmp eax, ebx
jne 0x44364a
cmp dword [0x4bfb94], ebx
je 0x44364a
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00456c01
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
push str.Logger::Initialize__..._InternetConnect___failed._Error_code:
push ecx
mov dword [ebp - 4], ebx
call fcn.0040fae8
add esp, 0xc
mov ecx, esi
call fcn.004437f6
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401524
call fcn.00474f44
ret
Function at 0x444025
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
push 0x54
mov eax, 0x48c965
call fcn.00474ec1
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x60], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x50]
push eax
sub esp, 0x1c
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
lea edi, [ebp - 0x54]
call fcn.0040a49c
sub esp, 0x1c
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x58], esp
push ebx
call fcn.0040a4c4
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004441f8
mov dword [ebp - 0x4c], eax
cmp eax, esi
jne 0x4441cc
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp + 0x2c]
push eax
push 2
push dword [ebp - 0x50]
call edi
test eax, eax
jne 0x4440fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x54]
mov edi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040bba0
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040bba0
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040bba0
mov eax, edi
jmp 0x4441f0
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cda7
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x444116
lea eax, [ebp - 0x2c]
push esi
push 0x4000000
push esi
push esi
push esi
push eax
push esi
push dword [ebp - 0x50]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [ebp - 0x58], ebx
cmp ebx, esi
je 0x4441a2
push 4
lea eax, [ebp + 0x2c]
push eax
push 5
push ebx
call edi
push 4
lea eax, [ebp + 0x2c]
push eax
push 6
push ebx
call edi
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4441a2
cmp dword [ebp + 0x28], esi
je 0x4441ab
push esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x20000013
push ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x5c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4441a2
cmp dword [ebp - 0x4c], 0xc8
je 0x444192
cmp dword [ebp - 0x4c], 0xc9
jne 0x4441a2
push dword [ebp - 0x60]
lea edi, [ebp - 0x58]
call fcn.00444420
mov ebx, dword [ebp - 0x58]
jmp 0x4441a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp ebx, esi
je 0x4441b8
push ebx
call edi
cmp dword [ebp - 0x50], esi
je 0x4441c2
push dword [ebp - 0x50]
call edi
cmp dword [ebp - 0x54], esi
je 0x4441cc
push dword [ebp - 0x54]
call edi
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040bba0
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040bba0
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040bba0
mov eax, dword [ebp - 0x4c]
call fcn.00474f44
ret 0x28
Function at 0x4441f8
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c91d
mov eax, dword fs:[0]
push eax
mov eax, 0x44dc
call fcn.0047e160
mov eax, dword [0x4b9e20]
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
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x44ac], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x44a8], eax
mov eax, dword [ebp + 0x48]
mov edi, ecx
mov dword [ebp - 0x44a4], eax
xor esi, esi
mov dword [ebp - 4], 1
cmp dword [ebp + 0x34], esi
jne 0x44428e
mov edi, 0xc357
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040bba0
push esi
push 1
lea ecx, [ebp + 0x24]
call fcn.0040bba0
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.0046d5b3
leave
ret 0x44
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x44429a
lea eax, [ebp + 8]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi], eax
cmp eax, esi
jne 0x4442b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x44425a
xor eax, eax
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push esi
push eax
call fcn.0046fc60
xor eax, eax
push 0x1ffe
mov word [ebp - 0x44a0], ax
lea eax, [ebp - 0x449e]
push esi
push eax
call fcn.0046fc60
xor eax, eax
push 0x208e
mov word [ebp - 0x24a0], ax
lea eax, [ebp - 0x249e]
push esi
push eax
call fcn.0046fc60
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x44e8]
push esi
push eax
call fcn.0046fc60
lea eax, [ebp - 0x410]
mov dword [ebp - 0x44d8], eax
lea eax, [ebp - 0x44a0]
mov dword [ebp - 0x44bc], eax
lea eax, [ebp - 0x24a0]
add esp, 0x30
cmp dword [ebp + 0x38], 8
mov dword [ebp - 0x44b4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44e8], ebx
mov dword [ebp - 0x44d4], 0x200
mov dword [ebp - 0x44b8], 0x1000
mov dword [ebp - 0x44b0], 0x1048
jae 0x44436e
lea eax, [ebp + 0x24]
lea ecx, [ebp - 0x44e8]
push ecx
push 0x90000000
push dword [ebp + 0x34]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x44439f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi]
mov ebx, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, ebx
jmp 0x44425a
push esi
push esi
push 3
push esi
push esi
push 0x50
lea eax, [ebp - 0x410]
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 0x44ac]
mov dword [ecx], eax
cmp eax, esi
jne 0x4443d9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [edi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
jmp 0x4442b1
lea eax, [ebp - 0x44a0]
push eax
call fcn.0046faa4
pop ecx
mov ecx, dword [ebp - 0x44a8]
push eax
lea eax, [ebp - 0x44a0]
push eax
call fcn.0040cee2
lea eax, [ebp - 0x24a0]
push eax
call fcn.0046faa4
pop ecx
mov ecx, dword [ebp - 0x44a4]
push eax
lea eax, [ebp - 0x24a0]
push eax
call fcn.0040cee2
xor edi, edi
jmp 0x44425a
Function at 0x444420
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c8e5
mov eax, dword fs:[0]
push eax
mov eax, 0x1fcc
call fcn.0047e160
mov eax, dword [0x4b9e20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1fd4], eax
xor ebx, ebx
mov esi, 0xfde9
push 0x1f9f
lea eax, [ebp - 0x1faf]
push ebx
push eax
mov dword [ebp - 0x1fd0], ebx
mov byte [ebp - 0x1fb0], bl
call fcn.0046fc60
push 0x1fa0
lea eax, [ebp - 0x1fb0]
push ebx
push eax
call fcn.0046fc60
add esp, 0x18
lea eax, [ebp - 0x1fd0]
push eax
push 0x1f9e
lea eax, [ebp - 0x1fb0]
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x444512
cmp dword [ebp - 0x1fd0], ebx
je 0x444512
push dword [ebp - 0x1fd0]
lea eax, [ebp - 0x1fb0]
push esi
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1fd8], esp
push eax
call fcn.00409f78
lea eax, [ebp - 0x1fcc]
push eax
call fcn.00456b26
add esp, 0x2c
mov ecx, dword [ebp - 0x1fd4]
push 0xffffffffffffffff
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040cda7
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x1fcc]
call fcn.0040bba0
jmp 0x444461
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d5b3
leave
ret 4

Function at 0x444dbf
Capabilities:
Check if file exists

Disassembly:
push 0xbc
mov eax, 0x4902b2
call fcn.00474e58
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x444de4
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x444e8d
lea eax, [ebp - 0xc8]
push eax
call fcn.00417d1d
lea eax, [ebp + 0xc]
lea esi, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.00417d78
push 0
call fcn.004453e9
push 2
call fcn.0045c4ea
pop ecx
push 0
mov edi, eax
push 2
push edi
mov eax, esi
push eax
call fcn.00445310
call fcn.00417e05
mov al, byte [edi]
mov cl, byte [edi + 1]
cmp al, 0xff
jne 0x444e42
cmp cl, 0xfe
jmp 0x444e5d
cmp al, 0xfe
jne 0x444e56
cmp cl, 0xff
jne 0x444e6a
mov eax, dword [ebp - 0x10]
mov dword [eax], 2
jmp 0x444e70
cmp al, 0xef
jne 0x444e6a
cmp cl, 0xbb
jne 0x444e6a
mov eax, dword [ebp - 0x10]
mov dword [eax], 1
jmp 0x444e70
mov eax, dword [ebp - 0x10]
and dword [eax], 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00417dcd
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.0045c16f
pop ecx
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.0040bba0
call fcn.00474f30
ret 0x20
Function at 0x444ea1
Capabilities:
Check if file exists

Disassembly:
push 0xe4
mov eax, 0x48f515
call fcn.00474ec1
mov ebx, ecx
lea esi, [ebx + 4]
cmp dword [esi + 0x14], 8
jb 0x444ebf
mov eax, dword [esi]
jmp 0x444ec1
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4450b8
push esi
lea eax, [ebp - 0xf0]
push eax
call fcn.00445459
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0046e0a6
mov esi, eax
pop ecx
mov dword [ebp - 0x38], esi
cmp esi, edi
je 0x444f28
mov dword [esi + 4], edi
mov byte [ebp - 4], 2
push 0x4a1f70
lea ecx, [ebp - 0x34]
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.00404462
call fcn.0045bf7c
lea ecx, [ebp - 0x34]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
call fcn.004044dc
mov dword [esi], vtable.gel::stdx::utf8cvt_1_.0
jmp 0x444f2a
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.0040460e
push esi
push eax
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00446399
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00404628
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xf0]
mov edx, dword [eax + 4]
lea edx, [ebp + edx - 0xf0]
mov ecx, esi
call fcn.00437602
lea ecx, [ebp - 0x38]
call fcn.00404628
cmp dword [ebp - 0x8c], edi
je 0x44504c
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
push 0xa
lea ecx, [ebp + ecx - 0xf0]
call fcn.0040eca3
movzx eax, ax
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0043df45
add esp, 0xc
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2c]
lea esi, [ebx + 0x20]
push eax
mov ecx, esi
call fcn.0040cda7
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xe4], edi
jne 0x44503d
mov edi, 0x4a1f74
push 0xa
lea ecx, [ebp + eax - 0xf0]
call fcn.0040eca3
movzx eax, ax
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0043df45
add esp, 0xc
push edi
call fcn.0046faa4
pop ecx
push edi
mov ebx, eax
call fcn.0040ce4a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0040cda7
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xe4], 0
je 0x444fe5
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040bba0
lea eax, [ebp - 0xe0]
call fcn.0044621f
test eax, eax
jne 0x44508a
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0xf0]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], edi
jne 0x445079
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x44508a
push edi
call fcn.00404a8e
lea ecx, [ebp - 0x3c]
call fcn.00404628
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00445510
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.0045c16f
pop ecx
call fcn.00474f44
ret
Function at 0x445595
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x48b8ae
call fcn.00474ec1
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x4455b7
xor eax, eax
jmp 0x445735
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x4455e5
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4455e5
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x445735
cmp dword [esi + 0x54], ebx
je 0x445730
mov eax, esi
call fcn.00446367
cmp dword [esi + 0x44], ebx
jne 0x44561d
push dword [esi + 0x54]
push edi
call fcn.00471f47
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
movzx eax, di
jne 0x445735
mov eax, ecx
jmp 0x445735
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0040ec56
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4456da
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x445725
cmp eax, ebx
jg 0x4456e2
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x44568c
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x4456b1
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x44569f
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.00471378
add esp, 0x10
cmp edi, eax
jne 0x445725
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x445714
test edi, edi
jne 0x44563e
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x44572a
push 8
call fcn.0040e1fe
jmp 0x44563e
mov edx, dword [ebp - 0x2c]
jmp 0x445650
cmp eax, 3
jne 0x445725
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.00471f47
movzx esi, word [ebp + 8]
pop ecx
pop ecx
mov ecx, 0xffff
cmp ax, cx
jne 0x445704
mov esi, ecx
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401524
mov ax, si
jmp 0x445735
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00401524
mov ax, word [ebp + 8]
jmp 0x445735
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00401524
mov eax, 0xffff
call fcn.00474f44
ret 4