joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fca8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x46fcf4
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x10c]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x46fcf4
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x1f0]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x2f0], 0
je 0x46fd6c
lea ebx, [esi + 0x300]
cmp dword [ebx], 0
je 0x46fd11
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x2f0], edi
jne 0x46fd65
push edi
call fcn.004222f4
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.00422535
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x10]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x2f0], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x470032
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x300]
cmp dword [edi], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
je 0x470060
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ebx, eax
test ebx, ebx
jne 0x4700a4
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x10c]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ebx, eax
test ebx, ebx
jne 0x4700a4
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x1f0]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ebx, eax
mov eax, dword [esi + 0x2ec]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x470200
push eax
call fcn.004222f4
mov edi, eax
test edi, edi
pop ecx
je 0x47017f
mov eax, dword [edi + 0x10]
push 2
mov dword [ebp - 4], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x4700eb
push 1
push edi
push esi
call fcn.0046ee49
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00422535
cmp dword [esi + 0x2ec], ebx
jne 0x47013f
mov ecx, dword [edi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x470131
cmp word [ecx], ax
je 0x470131
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x47017f
cmp dword [edi + 0x10], eax
je 0x47017f
mov dword [ebp - 8], 1
jmp 0x47017f
mov eax, dword [edi]
xor ebx, ebx
inc ebx
push ebx
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x47015f
push ebx
push edi
push esi
call fcn.0046ee49
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.00422535
mov dword [ebp - 0xc], ebx
xor eax, eax
cmp dword [ebp - 8], eax
mov dword [esi + 0x2ec], eax
je 0x4701c1
mov eax, dword [esi + 4]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x1c], 1
call dword [eax + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x470200
cmp dword [ebp - 0xc], eax
je 0x470200
mov ecx, dword [ebp - 4]
cmp ecx, eax
je 0x470200
mov eax, dword [esi + 4]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x10]
lea eax, [esi + 0x2e8]
cmp ecx, dword [eax]
jne 0x470200
and dword [eax], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x4708cb
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x470912
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x47090b
cmp dword [esp + 4], 0x1b
jne 0x4708f2
push 0
push 2
jmp 0x4708fd
cmp dword [esp + 4], 0xd
jne 0x47090b
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x3b0], 0
ret 4

Function at 0x477df5
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x477e67
push edi
xor eax, eax
mov dword [ebp - 8], esi
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
pop edi
je 0x477e67
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 4], eax
and dword [ebp - 4], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
fild qword [ebp - 0x10]
fild qword [ebp - 8]
fchs
faddp st(1)
fcomp qword [0x4ecff8]
fnstsw ax
test ah, 1
jne 0x477e67
inc esi
mov eax, esi
pop esi
leave
ret
Function at 0x477ea0
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
xor edx, edx
cmp dword [ebp + 0x18], edx
push edi
mov edi, eax
je 0x477f05
cmp dword [ebp + 0x18], 0x12d
jne 0x478091
cmp dword [ebp + 0xc], 0x100
jne 0x478091
movzx esi, word [ebp + 0x10]
push 0x11
mov dword [edi + 0x3cc], edx
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, 0x61
movzx eax, ax
je 0x477ee7
cmp esi, 0x41
jne 0x477ef6
test al, al
jns 0x477ef6
lea esi, [edi + 0x3d4]
call fcn.0046ce0e
and dword [ebx], 0
cmp dword [edi + 0x3cc], 0
jmp 0x47808b
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x4e
jne 0x477f58
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0xffffffff
jne 0x478073
xor esi, esi
inc esi
mov dword [edi + 0x3cc], esi
cmp dword [eax + 8], esi
jne 0x477f3a
cmp dword [eax + 0xc], 0x12e
jne 0x477f3a
call fcn.004781a6
mov eax, esi
jmp 0x477f42
mov dword [edi + 0x3cc], edx
xor eax, eax
mov dword [ebx], eax
cmp dword [edi + 0x3cc], 0
je 0x478073
mov eax, esi
jmp 0x478093
cmp ecx, 0x110
jne 0x477f91
lea esi, [edi + 0x3cc]
push edi
mov dword [esi], 1
call fcn.00478331
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
cmp dword [esi], 0
je 0x478073
xor eax, eax
inc eax
jmp 0x478093
cmp ecx, 0x465
jne 0x477fb8
mov eax, dword [ebp + 0x10]
mov esi, edi
mov dword [edi + 0x3cc], 1
call fcn.00478105
mov dword [ebx], eax
cmp dword [edi + 0x3cc], 0
jmp 0x477f83
cmp ecx, 0x466
jne 0x477fd5
lea esi, [edi + 0x3cc]
mov dword [esi], 1
call fcn.00478150
mov dword [ebx], eax
jmp 0x477f80
mov eax, 0x46c
cmp ecx, eax
jne 0x477ff1
mov esi, edi
mov dword [edi + 0x3cc], 1
call fcn.004785e2
jmp 0x477fad
cmp ecx, 0x46f
jne 0x47801c
push dword [edi + 0x3fc]
lea esi, [edi + 0x3cc]
push dword [edi + 0x3d4]
mov dword [esi], 1
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x477f7d
cmp ecx, 0x10
jne 0x478044
push 0
push 2
push 0x111
push dword [edi + 4]
lea esi, [edi + 0x3cc]
mov dword [esi], 1
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x477f7d
cmp ecx, 0x111
jne 0x478073
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
cmp cx, 0x300
mov dword [edi + 0x3cc], edx
jne 0x47806b
push edx
push edx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
and dword [ebx], 0
jmp 0x477faf
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046d0fe
test eax, eax
jne 0x477f89
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x4781a6
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4d1c90
call fcn.004ce9f0
sub esp, 0x43c
mov eax, dword [0x5096c0]
push ebx
xor ebx, ebx
push esi
mov ecx, 0x5096c0
mov dword [ebp - 0x18], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, 0x206
push esi
lea eax, [ebp - 0x23e]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x240], bx
call fcn.00489db0
push esi
lea eax, [ebp - 0x446]
push ebx
push eax
mov word [ebp - 0x448], bx
call fcn.00489db0
add esp, 0x18
lea eax, [ebp - 0x448]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x18]
push eax
push 0x11
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x4eb89c
lea eax, [ebp - 0x10]
push eax
call fcn.00422bdc
mov eax, dword [edi + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
push 0x105
lea esi, [ebp - 0x10]
mov dword [ebp - 0x34], eax
call fcn.004228e8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x2c], 0x4eb8a8
mov dword [ebp - 0x28], 0x8041
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp dword [ebp - 0x10], ebx
mov esi, eax
jne 0x47827c
xor eax, eax
jmp 0x478285
push dword [ebp - 0x10]
call fcn.00489b50
pop ecx
lea edx, [ebp - 0x10]
call fcn.0040e1f4
cmp esi, ebx
je 0x47830b
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x240]
push eax
call fcn.00489b50
lea eax, [ebp - 0x240]
push eax
lea esi, [ebp - 0x14]
call fcn.0045fcdb
pop ecx
pop ecx
push 0x4ec52c
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.0040c5e6
push dword [ebp - 0x14]
push dword [edi + 0x3d4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push edi
mov eax, esi
call fcn.004784ef
push eax
push 0x46c
push dword [edi + 0x3d0]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405c8d
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x478331
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x4d3e38
call fcn.004ce9f0
sub esp, 0x20c
push ebx
push esi
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [eax], 0x12d
push ecx
mov eax, esp
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], esp
push dword [eax + 4]
lea ebx, [eax + 0x3d4]
call fcn.0046d404
push str.Arial
push 0x20
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x64
push esi
push esi
push esi
push 0x12
call dword [sym.imp.GDI32.dll_CreateFontW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push dword [ebx]
call edi
push esi
push 0x96
push 0xc5
push dword [ebx]
call edi
push 5
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5096c0]
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x206
lea eax, [ebp - 0x216]
push esi
mov dword [ebp - 4], esi
push eax
mov word [ebp - 0x218], si
call fcn.00489db0
add esp, 0xc
push esi
push 0x26
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x47840e
push str.c:program_files
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00489f88
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push str._skingsoftkingsoft_antivirus_
lea eax, [ebp - 0x10]
call fcn.004229e7
mov esi, dword [ebp - 0x10]
pop ecx
pop ecx
push esi
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [ebp + 8]
add edi, 0x3fc
lea eax, [ebp - 0x10]
call fcn.00422ab0
lea eax, [esi - 0x10]
call fcn.00405c8d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4784ef
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, eax
push dword [edi]
lea esi, [ebp - 8]
call fcn.0045fcdb
mov eax, dword [ebp - 8]
pop ecx
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [edi]
xor ebx, ebx
push 3
pop esi
inc ebx
cmp dword [eax - 0xc], esi
jl 0x4785c6
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47853f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x4785c6
mov ecx, esi
lea edx, [ebp - 8]
mov eax, edi
call fcn.00422893
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
mov eax, dword [ebp - 8]
setne bl
add eax, 0xfffffff0
call fcn.00405c8d
test bl, bl
je 0x478570
mov dword [ebp - 4], 2
jmp 0x4785c9
call fcn.0047845a
test eax, eax
je 0x47857e
mov dword [ebp - 4], esi
jmp 0x4785c9
mov ecx, esi
lea edx, [ebp - 8]
mov eax, edi
call fcn.00422893
push dword [eax]
call fcn.00477df5
mov ebx, eax
mov eax, dword [ebp - 8]
neg ebx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.00405c8d
test bl, bl
je 0x4785b2
mov dword [ebp - 4], 4
jmp 0x4785c9
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x96
jle 0x4785c9
mov dword [ebp - 4], 5
jmp 0x4785c9
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x3d0]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00489db0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x478e20
xor eax, eax
inc eax
leave
ret
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4ec618
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00422646
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x478e69
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405c8d
jmp 0x478e1b
push esi
push dword [ebp - 4]
xor esi, esi
inc esi
push esi
push 0x4e54a8
push str.updatecheck
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, esi
jne 0x478e95
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, esi
pop esi
leave
ret
xor esi, esi
jmp 0x478e85
Function at 0x478fe8
Capabilities:
Delete file

Disassembly:
mov eax, 0x4d6190
call fcn.004ce9f0
sub esp, 0xc
push ebx
push edi
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
and dword [ebp - 4], 0
mov eax, dword [0x5096c0]
mov ecx, 0x5096c0
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
lea edi, [esi + 0x30]
push edi
mov byte [ebp - 4], 1
call fcn.0045fd68
pop ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x12c
push 0
push dword [ebp + 0xc]
lea eax, [esi + 0x28]
push eax
call fcn.00461906
mov ecx, dword [ebp + 8]
add esp, 0x10
xor edi, edi
test eax, eax
mov dword [ecx], eax
je 0x479074
lea eax, [ebx - 0x10]
call fcn.00405c8d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
inc edi
jmp 0x479053

Function at 0x4790b8
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d6190
call fcn.004ce9f0
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
and dword [ebp - 4], 0
lea esi, [edi + 0x30]
push esi
call fcn.0045fd68
pop ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x479108
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov eax, dword [0x5096c0]
mov ecx, 0x5096c0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s__update:0
mov byte [ebp - 4], 1
call fcn.004229e7
mov ebx, dword [ebp - 0x10]
mov esi, dword [esi]
push 0
push ebx
push esi
xor ecx, ecx
call fcn.0045eb6c
add esp, 0x14
xor esi, esi
test eax, eax
jne 0x47915b
lea eax, [ebx - 0x10]
call fcn.00405c8d
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4790f8
inc esi
jmp 0x479148
Function at 0x47915e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4d5460
call fcn.004ce9f0
sub esp, 0x214
mov eax, dword [0x5096c0]
push ebx
push esi
mov esi, 0x5096c0
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x5096c0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x206
lea eax, [ebp - 0x21e]
push edi
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x220], di
call fcn.00489db0
add esp, 0xc
push edi
call fcn.0048bac6
pop ecx
push edx
push eax
push str.http:__2398.35go.net_defend_o1_jcqgx.ini
lea eax, [ebp - 0x14]
call fcn.004047ad
mov esi, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0045cbe4
test eax, eax
mov ebx, dword [ebp - 0x10]
pop ecx
pop ecx
jne 0x479256
cmp dword [ebx - 0xc], edi
je 0x479256
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x479256
push str.jcqgx.ini
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
add edi, 0x24
push edi
call fcn.00422bdc
push dword [edi]
lea eax, [ebp - 0x10]
call fcn.0045e769
test eax, eax
mov eax, dword [ebp - 0x10]
pop ecx
jne 0x479241
add eax, 0xfffffff0
jmp 0x479259
add eax, 0xfffffff0
call fcn.00405c8d
lea eax, [esi - 0x10]
call fcn.00405c8d
xor eax, eax
inc eax
jmp 0x479268
lea eax, [ebx - 0x10]
call fcn.00405c8d
lea eax, [esi - 0x10]
call fcn.00405c8d
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x47a9e5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
xor eax, eax
cmp ecx, ebx
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], bl
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
je 0x47aac1
cmp word [ecx], bx
je 0x47aac1
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x47aac1
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x47aab7
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x47aab7
lea ecx, [ebp - 0x14]
call fcn.0047aafd
test eax, eax
je 0x47aab7
add esi, 0xfffffffc
lea eax, [esi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47aab7
mov eax, dword [ebp + 8]
push ebx
push ebx
push 4
push dword [ebp - 8]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call edi
test eax, eax
je 0x47aab7
mov edx, dword [ebp - 4]
call fcn.0047aac8
test eax, eax
jge 0x47aab7
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x47aac8
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x47aaf7
test esi, esi
jbe 0x47aaf7
mov ecx, esi
shr ecx, 2
push 0
pop eax
je 0x47aae6
xor dword [edx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, ecx
jb 0x47aada
shl eax, 2
jmp 0x47aaf0
xor byte [eax + edx], 0xd8
inc eax
cmp eax, esi
jb 0x47aaeb
xor eax, eax
ret
mov eax, 0x80004005
ret
Function at 0x47bfeb
Capabilities:
Delete file

Disassembly:
mov eax, 0x4d5a10
call fcn.004ce9f0
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x48]
push esi
lea ebx, [edi + 0x24]
push edi
mov dword [ebx], 2
call fcn.0047ac3b
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
sub eax, 0x10
call fcn.00422b5e
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004332a3
lea eax, [ebp - 0x10]
mov dword [esp], 0x4ec8e8
push eax
call fcn.0040c5e6
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
call fcn.00405c8d
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47c0ad
dec eax
je 0x47c087
dec eax
je 0x47c080
dec eax
je 0x47c079
dec eax
je 0x47c072
dec eax
jne 0x47c095
push str.NoRcmdItem
jmp 0x47c08c
push str.SwithIsOff
jmp 0x47c08c
push str.CfgVerNotMatch
jmp 0x47c08c
push str.XmlParseFailed
jmp 0x47c08c
push str.BadSceneId
lea eax, [edi + 0x4c]
push eax
call fcn.00422bdc
push dword [edi + 0x4c]
mov esi, 0x50bd68
push str.ParseCfgFile_Failed:__s
call fcn.0046353e
pop ecx
pop ecx
xor eax, eax
jmp 0x47c0f2
push ebx
push edi
call fcn.0047b0fe
mov ebx, eax
push ebx
push str.GetRcmdItem_return__d
mov esi, 0x50bd68
call fcn.0046353e
test ebx, ebx
pop ecx
pop ecx
jne 0x47c0f0
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0047beff
add edi, 0x4c
mov dword [ebp - 4], 1
call fcn.00422ab0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x480920
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x50331c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0x80004005
mov word [ebp - 0x210], 0
push 0x1fe
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00489db0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
push 0xffffffffffffffff
mov edx, dword [0x4e17bc]
push edx
push 0x100
lea eax, [ebp - 0x210]
push eax
call fcn.004898fa
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push 0xa
lea edx, [ebp - 0x210]
push edx
call fcn.004c4d00
push eax
call fcn.004c4d10
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x4809ac
jmp 0x480a54
mov eax, dword [ebp + 8]
add eax, 4
push eax
lea ecx, [ebp - 0x218]
call fcn.00485180
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x1c
push ecx
push 0xc8
mov edx, dword [ebp + 0xc]
push edx
call fcn.004898fa
add esp, 0x10
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
add eax, 0x1ac
push eax
push 0xc8
mov ecx, dword [ebp + 0xc]
add ecx, 0x190
push ecx
call fcn.004898fa
add esp, 0x10
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
add edx, 0x33c
push edx
push 0xc8
mov eax, dword [ebp + 0xc]
add eax, 0x320
push eax
call fcn.004898fa
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x4cc
push ecx
push 0xc8
mov edx, dword [ebp + 0xc]
add edx, 0x4b0
push edx
call fcn.004898fa
add esp, 0x10
lea ecx, [ebp - 0x218]
call fcn.004851b0
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491d9b
mov esp, ebp
pop ebp
ret 8