joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b80
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4e4c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
call fcn.0040abf0
test al, al
je 0x407bc9
mov eax, 1
jmp 0x407c38
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x407c36
push 0x228
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004cc620
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x407c2f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ebx, [ebx]
call ebx
cmp dword [esp + 0x1c], eax
je 0x407c5e
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407c10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004c961b
add esp, 0x248
ret
mov eax, dword [0x5195ac]
mov edx, dword [eax + 0xc]
mov ebx, dword [esp + 0x2c]
mov ecx, 0x5195ac
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x250], 0
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
sub ecx, 0x104
or eax, ecx
jge 0x407caa
mov ecx, 0x104
lea eax, [esp + 0x10]
call fcn.00406d30
mov esi, dword [esp + 0x10]
push esi
call fcn.00407ae0
mov eax, dword [esi - 8]
add esp, 4
push eax
push esi
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x407ced
cmp eax, dword [esi - 8]
jg 0x407ced
xor edx, edx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], dx
call fcn.00470b50
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00406e40
mov eax, esi
jmp 0x407c38
push 0x80070057
call fcn.00406e60
int3
Function at 0x408780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
call fcn.004086e0
push 0x408770
call fcn.004ca348
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 4
push 1
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
call fcn.00407b80
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.0040a4c0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.0040a400
mov ecx, dword [ebp + 0x10]
call fcn.00407f50
mov edi, eax
call fcn.0040a360
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0xc]
push ecx
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0xc]
push edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409470
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push esi
push edi
push 0x4f6118
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0
call fcn.004cafad
add esp, 0xc
test eax, eax
jne 0x40950c
mov eax, dword [esp + 8]
test eax, eax
je 0x40950c
push 2
push 0
push eax
call fcn.004cac40
mov edx, dword [esp + 0x14]
push edx
call fcn.004cae62
push 0
mov edi, eax
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.004cac40
push edi
call fcn.004c94d1
push edi
mov esi, eax
push 0
push esi
call fcn.004cc620
mov ecx, dword [esp + 0x34]
push ecx
push edi
push 1
push esi
call fcn.004cab99
mov edx, dword [esp + 0x44]
push edx
call fcn.004ca87d
add esp, 0x40
push edi
mov ecx, esi
call fcn.00409420
add esp, 4
mov edi, eax
test esi, esi
je 0x409506
push esi
call fcn.004ca7dd
add esp, 4
mov eax, edi
pop edi
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x409ce0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x409cf6
mov eax, dword [ecx + 0x58]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
mov ecx, dword [ecx + 0x58]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4

Function at 0x40abf0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [0x51af9c]
test eax, eax
jne 0x40ac7b
push 0x208
push eax
lea eax, [esp + 8]
push eax
call fcn.004cc620
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..._SoftManager.exe
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 1
test eax, eax
je 0x40ac63
call fcn.004c99ad
add esp, 4
test eax, eax
je 0x40ac74
mov byte [eax], 1
jmp 0x40ac76
call fcn.004c99ad
add esp, 4
test eax, eax
je 0x40ac74
mov byte [eax], 0
jmp 0x40ac76
xor eax, eax
mov dword [0x51af9c], eax
mov ecx, dword [esp + 0x208]
mov al, byte [eax]
xor ecx, esp
call fcn.004c961b
add esp, 0x20c
ret
Function at 0x40be00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40be10
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40be20
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40c360
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40c3da
xor eax, eax
cmp ecx, ebp
je 0x40c3c2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40c3e8
cmp ecx, ebp
je 0x40c47b
push ecx
jmp 0x40c475
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40c44a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040c360
mov ebx, eax
cmp ebx, ebp
jne 0x40c498
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40c410
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40c45d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0040c510
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40c47b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c961b
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40c4a7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40c47d
Function at 0x40cf90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4e5260
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x512054]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40d00f
call fcn.0040b710
mov esi, eax
jmp 0x40d0f1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40d02b
call fcn.0040b710
jmp 0x40d0e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40d044
call fcn.0040b710
jmp 0x40d0e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40d078
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40d066
lea eax, [ebp]
call fcn.00459030
lea esi, [ebp - 0x1c]
call fcn.0040be50
mov eax, 0x8007000e
jmp 0x40d103
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040b6d0
mov dword [ebp - 4], 1
jmp 0x40d0a1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40d0af
mov esi, 0x8007000e
jmp 0x40d0ea
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40d0cd
call fcn.0040b710
jmp 0x40d0e8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040ce40
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40d101
lea eax, [ebp]
call fcn.00459030
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004c961b
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4112c0
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
sub esp, 0x70
push ebp
push esi
push edi
xor edi, edi
push ebx
mov dword [esp + 0x14], edi
call fcn.004114a0
test eax, eax
jne 0x411493
lea esi, [esp + 0xc]
call fcn.00411230
mov eax, dword [esp + 0xc]
push eax
mov dword [ebx + 0x34], 1
call fcn.00470b50
add esp, 4
test eax, eax
je 0x411456
push 0x38
lea ecx, [esp + 0x44]
push edi
push ecx
call fcn.004cc620
mov edx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x3c
mov dword [esp + 0x44], 0x440
mov dword [esp + 0x4c], 0x4f6260
mov dword [esp + 0x50], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x411456
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x7f02
push edi
mov dword [ebx + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebx + 0x30]
mov edx, dword [esp + 0x74]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call edi
push 0x4ff
push 0xbb8
mov dword [esp + 0x1c], eax
push 0
lea eax, [esp + 0x24]
push eax
push 2
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, eax
call edi
test esi, esi
je 0x411424
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
cmp esi, 1
je 0x411424
sub eax, dword [esp + 0x14]
cmp eax, 0xbb8
ja 0x41141c
cmp esi, 2
jne 0x4113f9
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call ebp
test eax, eax
je 0x4113f9
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call ebp
test eax, eax
jne 0x4113d0
push 0x4ff
push 0xbb8
push 0
lea edx, [esp + 0x24]
push edx
push 2
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, eax
call edi
test esi, esi
jne 0x4113a8
jmp 0x411424
mov dword [esp + 0x10], 2
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x74]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebx + 0x30]
push ecx
call esi
mov edi, dword [esp + 0x10]
mov dword [ebx + 0x30], 0
mov eax, dword [esp + 0xc]
xor edx, edx
cmp edi, 2
setne dl
add eax, 0xfffffff0
mov dword [ebx + 0x34], 0
lea ecx, [eax + 0xc]
dec edx
and edx, edi
mov esi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41148a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x70
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x70
ret
Function at 0x413030
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e8350
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 0x28]
xor ebx, ebx
cmp eax, ebx
jne 0x41317b
lea esi, [esp + 0x2c]
mov eax, ebp
call fcn.0041f980
push str.icon
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x30], ebx
call fcn.00413940
mov byte [esp + 0x24], 1
mov edi, dword [eax]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4130b8
mov ecx, 0x104
lea eax, [esp + 0x2c]
call fcn.00406d30
mov esi, dword [esp + 0x2c]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4130e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ca0b4
add esp, 8
cmp eax, ebx
jl 0x4131b9
cmp eax, dword [esi - 8]
jg 0x4131b9
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413191
push 0x1c
call fcn.004c99ad
add esp, 4
cmp eax, ebx
je 0x413146
mov edx, 1
mov dword [eax], vtable.CSomBitmap.0
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov word [eax + 0x14], dx
mov byte [eax + 0x16], bl
mov byte [eax + 0x17], 4
mov byte [eax + 0x18], 0xff
jmp 0x413148
xor eax, eax
mov edi, eax
mov dword [ebp + 0x28], eax
call fcn.00409590
mov ebp, dword [ebp + 0x28]
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413179
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4131b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41317b
push 0x80070057
call fcn.00406e60
int3
Function at 0x413590
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e72d0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov edi, ecx
push 0x4f634c
lea eax, [esp + 0x2c]
push eax
xor ebx, ebx
push edi
mov dword [esp + 0x34], ebx
call fcn.00413940
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jl 0x41364d
push str.http:__
push ecx
call fcn.004c9c9b
add esp, 8
cmp eax, ebx
je 0x41364d
mov ecx, dword [esp + 0x28]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x41364d
lea eax, [ecx - 0x10]
call fcn.004065a0
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413635
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
lea esi, [esp + 0x14]
mov eax, edi
call fcn.0041f980
mov ecx, 1
mov byte [esp + 0x20], cl
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
mov edi, dword [esp + 0x28]
sub eax, 0x104
or eax, ecx
jge 0x41368a
mov ecx, 0x104
lea eax, [esp + 0x14]
call fcn.00406d30
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ca0b4
add esp, 8
cmp eax, ebx
jl 0x413735
cmp eax, dword [esi - 8]
jg 0x413735
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4136fa
add esi, 0xfffffff0
mov eax, esi
call fcn.004065a0
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x20], bl
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41360d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x41360d
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.004065a0
add eax, 0x10
mov dword [ebp], eax
lea eax, [esi - 0x10]
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41360d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41360d
push 0x80070057
call fcn.00406e60
int3
Function at 0x413790
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e72a0
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
push str.bakurl
lea eax, [esp + 0x28]
push eax
xor esi, esi
push ebp
mov dword [esp + 0x30], esi
call fcn.00413940
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], esi
je 0x4138f0
lea edi, [esp + 0x24]
call fcn.00405f80
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
cmp eax, esi
jl 0x41381a
push str.http:__
push ecx
call fcn.004c9c9b
add esp, 8
cmp eax, esi
je 0x41381a
mov ecx, dword [esp + 0x24]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x41381a
lea eax, [ecx - 0x10]
jmp 0x4138f3
lea esi, [esp + 0x10]
mov eax, ebp
call fcn.0041f980
mov ecx, 1
mov byte [esp + 0x1c], cl
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
mov edi, dword [esp + 0x24]
sub eax, 0x104
or eax, ecx
jge 0x413857
mov ecx, 0x104
lea eax, [esp + 0x10]
call fcn.00406d30
mov esi, dword [esp + 0x10]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ca0b4
add esp, 8
test eax, eax
jl 0x4138e6
cmp eax, dword [esi - 8]
jg 0x4138e6
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4138b8
add esi, 0xfffffff0
mov eax, esi
call fcn.004065a0
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x1c], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4138fd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x4138fd
push ebx
mov ecx, 0x4f05c4
call fcn.00406bd0
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4138fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4138fd
push 0x80070057
call fcn.00406e60
add eax, 0xfffffff0
call fcn.004065a0
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413925
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x4144a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e80f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
push str.NaviEffect
lea eax, [esp + 0x18]
push eax
push esi
mov ebx, 0x4f63bc
call fcn.00413ab0
push str.SlideEffect
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x30], 0
call fcn.00413ab0
push str.TurningPageEffect
lea edx, [esp + 0x10]
push edx
push esi
mov byte [esp + 0x30], 1
call fcn.00413ab0
mov ebx, 0x4f64d8
lea eax, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.00405e60
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x414541
push 0x4f65d8
push ecx
call fcn.004c9c9b
add esp, 8
test eax, eax
je 0x414541
sub eax, dword [esp + 0x14]
sar eax, 1
jns 0x41458d
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jl 0x414565
push 0x4f65d8
push eax
call fcn.004c9c9b
add esp, 8
test eax, eax
je 0x414565
sub eax, dword [esp + 0x10]
sar eax, 1
jns 0x41458d
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x414589
push 0x4f65d8
push eax
call fcn.004c9c9b
add esp, 8
test eax, eax
je 0x414589
sub eax, dword [esp + 0xc]
sar eax, 1
jns 0x41458d
xor esi, esi
jmp 0x414592
mov esi, 1
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414604
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret