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

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
jne 0x4753e4
mov eax, 0x13a
jmp 0x475441
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4753f6
mov eax, 0x13b
jmp 0x475441
push dword [esi + 0x20]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
call fcn.00470210
pop ecx
test eax, eax
je 0x47540d
xor eax, eax
jmp 0x475441
push dword [esi + 0x20]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
call fcn.0046ff7f
pop ecx
test eax, eax
jne 0x475409
mov edx, dword [esi + 0x10]
push ecx
push dword [esi + 0x20]
mov ecx, dword [esi + 0xc]
push eax
call fcn.0046f66c
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffec7
add eax, 0x139
pop esi
pop ecx
ret 4

Function at 0x47551b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x60e50c
call fcn.0060cc48
sub esp, 0x18
push ebx
push esi
push edi
push ecx
xor esi, esi
mov dword [ebp - 0x20], str.driverupdate.exe
push ecx
mov edi, 0x69e360
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], edi
call fcn.00417bdc
pop ecx
pop ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
push edi
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0040aec1
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.00404ea9
add bl, 1
jne 0x47558e
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + eax*4 - 0x24]
test edi, edi
jne 0x475551
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x47a206
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x612a2f
call fcn.0060cc48
sub esp, 0x230
mov eax, dword [ecx + 0xb8]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
xor ebx, ebx
sub edi, dword [eax]
sar edi, 2
mov dword [ebp - 0x30], eax
test edi, edi
jle 0x47a3db
add ecx, 0xa4
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x47a250
mov eax, dword [ecx + ebx*4]
jmp 0x47a252
xor eax, eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, eax
call fcn.004910eb
and dword [ebp - 4], 0
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x24]
push eax
push esi
call fcn.00473a0d
test eax, eax
je 0x47a2a4
push str._ActionRunFile__condition_failed
push 0x6ca908
call fcn.0048e9c0
pop ecx
pop ecx
jmp 0x47a3b8
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.0049110b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
mov eax, dword [eax]
push 3
mov dword [ebp - 0x138], ecx
lea ecx, [ebp - 0x138]
push eax
call fcn.004066f6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
push dword [ebp - 0x138]
call fcn.00406173
lea eax, [ebp - 0x134]
cmp dword [ebp - 0x138], eax
je 0x47a2fc
push dword [ebp - 0x138]
call fcn.005f0fb3
pop ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0047403b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47a3ad
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
call fcn.0046d60a
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x238]
mov eax, dword [eax]
push 3
mov dword [ebp - 0x23c], ecx
lea ecx, [ebp - 0x23c]
push eax
call fcn.004066f6
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
push dword [ebp - 0x23c]
call fcn.00406173
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x23c], eax
je 0x47a380
push dword [ebp - 0x23c]
call fcn.005f0fb3
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00404ea9
mov edx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x10]
push 1
push 0
call fcn.0046f66c
mov ecx, dword [ebp - 0x20]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov eax, dword [ebp - 0x30]
inc ebx
cmp ebx, edi
jl 0x47a23d
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47bc10
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x47bc46
push 0x3e8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47bc39
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
xor eax, eax
inc eax
pop esi
ret 4
Function at 0x47c114
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi], esi
je 0x47c189
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x47c189
cmp dword [edi + 8], esi
je 0x47c14d
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47c148
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
cmp dword [edi + 8], esi
jne 0x47c189
mov eax, dword [edi]
push 0xc
mov dword [ebp + 8], eax
call fcn.00431ddf
pop ecx
test eax, eax
je 0x47c17d
mov ecx, dword [ebp + 8]
push esi
push esi
push eax
push 0x47cb85
push esi
push esi
mov dword [eax], ecx
mov dword [eax + 8], esi
mov dword [eax + 4], ebx
call fcn.005f4880
add esp, 0x18
mov esi, eax
xor eax, eax
mov dword [edi + 8], esi
test esi, esi
setne al
jmp 0x47c18b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x47cdae
Capabilities:
Delete file

Disassembly:
mov eax, 0x610f9d
call fcn.0060cc48
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x18]
call fcn.004065d8
push edi
push str.GetPacketData__d
push 0x6ca908
mov dword [ebp - 4], edi
mov ebx, edi
call fcn.0048e9c0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0047cec7
mov esi, eax
push esi
push str.GetPacketData_return:_d
push 0x6ca908
mov dword [ebp - 0x20], esi
call fcn.0048e9c0
add esp, 0xc
test esi, esi
mov esi, dword [ebp - 0x18]
jne 0x47ce28
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 1
jmp 0x47ce91
push 0x24
call fcn.00431ddf
pop ecx
test eax, eax
je 0x47ce3f
mov ecx, eax
call fcn.0042bfe3
mov ebx, eax
jmp 0x47ce41
mov ebx, edi
test ebx, ebx
je 0x47ce91
push str.Extract...
push 0x6ca908
call fcn.0048e9c0
mov eax, dword [ebx]
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push ebx
call dword [eax]
xor ecx, ecx
mov edi, eax
test edi, edi
sete cl
push ecx
push str.Extract_return:_d
push 0x6ca908
call fcn.0048e9c0
add esp, 0xc
test edi, edi
je 0x47ce88
xor edi, edi
jmp 0x47ceaa
mov dword [ebp - 0x14], 1
xor edi, edi
cmp dword [esi - 0xc], edi
je 0x47ce9d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x47cea7
mov eax, dword [ebx]
push ebx
call dword [eax + 0xc]
mov edi, dword [ebp - 0x14]
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47cfb2
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 0x208]
push ebx
push esi
push edi
push 0x208
xor esi, esi
mov ebx, ecx
push esi
push eax
call fcn.005e26d0
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47d034
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x6ca908
call fcn.0048e9c0
add esp, 0x10
jmp 0x47d0a8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push esi
push 2
push esi
push edi
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx], eax
test edi, edi
jne 0x47d067
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x47d08f
push dword [ebx + 8]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x47d09e
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x6ca908
call fcn.0048e9c0
add esp, 0x10
jmp 0x47d0a1
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47e5c0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x60e2d1
call fcn.0060cc48
push ecx
push esi
push edi
xor edi, edi
xor esi, esi
push str.DownLoadFileFromAdder
inc edi
push 0x6ca908
mov dword [ebp - 4], edi
call fcn.0048e9c0
push 0x12c
push esi
push esi
lea edx, [ebp + 0xc]
lea ecx, [ebp + 8]
call fcn.004744ff
add esp, 0x14
test eax, eax
jne 0x47e60b
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
cmovne esi, edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47ee0f
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x612f50
call fcn.0060cc48
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], 1
xor ebx, ebx
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
push edi
call fcn.004067cf
pop ecx
mov dword [ebp - 0x14], eax
lea edx, [eax + 0x10]
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040b0eb
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00404ea9
test esi, esi
je 0x47ee9f
push ecx
mov esi, esp
mov dword [ebp - 0x10], esp
push edi
mov dword [ebp - 0x1c], esi
call fcn.004067cf
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, esp
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esi
push eax
call fcn.004067cf
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [ebp - 4], 2
call fcn.0047e5c0
pop ecx
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x14]
call fcn.00404ea9
mov ecx, edi
call fcn.00404ea9
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f368
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x613014
call fcn.0060cc48
mov eax, dword [0x6ca8ac]
sub esp, 0x18
cmp dword [eax - 0xc], 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
je 0x47f397
cmp dword [0x6ca878], 4
je 0x47f397
xor eax, eax
jmp 0x47f54d
call fcn.00404f47
push eax
lea ecx, [ebp - 0x1c]
call fcn.004065d8
and dword [ebp - 4], 0
call fcn.00404f47
push eax
lea ecx, [ebp - 0x18]
call fcn.004065d8
mov byte [ebp - 4], 1
mov eax, dword [0x6ca878]
mov dword [ebp - 0x24], 1
test eax, eax
je 0x47f4b3
cmp eax, 5
je 0x47f4b3
cmp eax, 4
je 0x47f4b3
cmp eax, 3
je 0x47f4ca
push str.http:__dubacdn.cmcmcdn.com_sem_installer_ald__d.png
lea ecx, [ebp - 0x14]
call fcn.00406173
mov byte [ebp - 4], 2
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f485
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
mov byte [ebp - 4], 3
call fcn.00404f47
push eax
lea ecx, [ebp - 0x20]
call fcn.004065d8
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x10]
mov ecx, ebx
call fcn.0047eecc
pop ecx
lea ecx, [ebp - 0x20]
call fcn.0047e633
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push 0
push esi
call fcn.0040a98a
cmp eax, 0xffffffff
je 0x47f461
mov dword [0x6ca884], 1
jmp 0x47f46e
push str.http:__dubacdn.cmcmcdn.com_sem_installer_ald2__d.png
lea ecx, [ebp - 0x14]
call fcn.004060f8
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
call fcn.00406cc8
add esp, 0xc
lea ecx, [ebp - 0x18]
push str.110.png
call fcn.004060f8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
jmp 0x47f4ca
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.0047f2f8
push str.100.png
lea ecx, [ebp - 0x18]
call fcn.004060f8
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.004067cf
add eax, 0x10
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x18]
push dword [esi - 0xc]
push esi
call fcn.00406668
push ecx
mov edi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x24], eax
call fcn.004067cf
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 6
mov edi, esp
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp - 0x20]
add ebx, 0xfffffff0
push ebx
call fcn.004067cf
add eax, 0x10
mov dword [edi], eax
pop ecx
mov byte [ebp - 4], 5
call fcn.0047ee0f
pop ecx
pop ecx
mov ecx, ebx
mov edi, eax
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x24]
call fcn.00404ea9
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483589
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x612f0c
call fcn.0060cc48
sub esp, 0x224
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
jne 0x4835a9
xor eax, eax
jmp 0x483740
push esi
push edi
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push 0x208
push 0
push eax
call fcn.005e26d0
add esp, 0xc
lea eax, [ebp - 0x230]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x10]
call fcn.004060f8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004060f8
mov esi, dword [ebp - 0x10]
push 0x2e
push esi
call fcn.005e42e0
mov dword [ebp - 0x1c], 1
pop ecx
pop ecx
test eax, eax
je 0x483658
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x483658
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405d36
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406123
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x10]
call fcn.00404f47
push eax
lea ecx, [ebp - 0x14]
call fcn.004065d8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
movsd xmm0, qword [0x6a1ad8]
push eax
lea eax, [ebp - 0x14]
movsd qword [ebp - 0x28], xmm0
push eax
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.004833ab
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x483727
push 0x6a02ac
push edi
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x483727
push eax
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x483727
push dword [ebp - 0x18]
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x483727
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x483727
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
inc eax
push eax
mov dword [ebp - 0x20], eax
call fcn.00406a4b
test eax, eax
je 0x483703
push dword [ebp + 8]
push dword [ebp - 0x18]
push eax
call fcn.005e11d0
add esp, 0xc
push dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
call fcn.00413e9a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x48372b
movsd xmm0, qword [ebp - 0x28]
movsd qword [eax], xmm0
jmp 0x48372b
and dword [ebp - 0x1c], 0
lea ecx, [edi - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4858ca
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x613203
call fcn.0060cc48
push ecx
push ecx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], ecx
mov dword [ebp - 4], ecx
mov eax, vtable.CBkBitmap.0
movsd xmm0, qword [0x6a1ad8]
mov dword [edi], vtable.CBkPngSkin.0
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
movsd qword [edi + 0x10], xmm0
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ecx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], ecx
mov dword [edi + 0x48], ecx
mov dword [edi + 0x44], eax
mov dword [edi + 0x54], ecx
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x58], ecx
mov dword [edi + 0x60], ecx
mov dword [edi + 0x5c], eax
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x64], ecx
mov dword [edi + 0x68], ecx
mov byte [ebp - 4], 2
lea esi, [edi + 0x74]
mov dword [edi + 0x70], ecx
mov dword [ebp - 0x14], esi
mov dword [esi], ecx
mov dword [esi + 4], ecx
call fcn.004069f1
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x489880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x613387
call fcn.0060cc48
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x424], edi
push 0x60
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4898e2
push 2
push edi
push dword [ebp + 8]
call ebx
mov esi, eax
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x4898e2
call fcn.0046e4b9
mov edi, eax
jmp 0x4899c1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x4898ff
call fcn.0046e4b9
jmp 0x4899b4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4898f5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp + 8], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x48992c
mov edi, 0x8007000e
jmp 0x4899b6
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.00488b20
cmp eax, 0x400
jbe 0x48994d
push eax
lea ecx, [ebp - 0x424]
call fcn.00488624
jmp 0x489969
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x489969
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x489922
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp + 0x10]
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4898f5
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00489756
mov edi, eax
test esi, esi
je 0x4899c1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4899da
lea ecx, [ebp - 0x424]
call fcn.0048860f
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x48a05b
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 0x20c]
push esi
push 0x208
xor esi, esi
push esi
push eax
call fcn.005e26d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x48a09a
inc eax
jmp 0x48a0ff
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.jcqgxkg.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 4]
call fcn.00406173
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48a0ef
push dword [ebp - 4]
push 1
push str.switch
push str.updatecheck
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x48a0f2
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00404ea9
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48a23d
Capabilities:
Delete file

Disassembly:
mov eax, 0x6133d9
call fcn.0060cc48
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
and dword [ebp - 4], 0
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push esi
call fcn.004706c9
pop ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.DownloadNewVersion
push 0x6ca908
call fcn.0048e9c0
push 0x12c
push 0
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
mov edx, esi
call fcn.004744ff
mov ecx, dword [ebp + 8]
add esp, 0x14
xor ebx, ebx
test eax, eax
sete bl
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404ea9
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x48a2de
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x6133d9
call fcn.0060cc48
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
lea esi, [ebx + 0x30]
xor edi, edi
push esi
mov dword [ebp - 4], edi
call fcn.004706c9
pop ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48a35f
call fcn.00404f47
push eax
lea ecx, [ebp - 0x10]
call fcn.004065d8
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str._s__update:0
push eax
call fcn.00406cc8
mov esi, dword [ebp - 0x10]
mov edx, esi
pop ecx
pop ecx
mov ecx, dword [ebx + 0x30]
push edi
push 0xffffffffffffffff
call fcn.0046f66c
add esp, 0xc
lea ecx, [esi - 0x10]
neg eax
sbb edi, edi
neg edi
call fcn.00404ea9
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4