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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40283c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40281c
xor eax, eax
push ebp
push 0x402815
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402858
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40281c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404754
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40490c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4047b5
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404928
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404822
xor eax, eax
push ebp
push 0x40481b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404804
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404948
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404822
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404903
cmp byte [ebp - 0xd], 0
jne 0x404864
cmp byte [ebp - 0x12], 0
je 0x404903
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40487d
dec ebx
cmp byte [ebx], 0x2e
je 0x40488c
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40487c
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404903
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4048b9
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404903
cmp byte [ebp - 0xd], 0
je 0x404903
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404903
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d68
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406e72
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x406dbb
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004032cc
jmp 0x406e59
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00406d1c
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00406d3c
mov ebx, eax
test esi, esi
je 0x406de3
dec esi
test esi, esi
jl 0x406de3
cmp edi, ebx
jne 0x406dc2
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.0040339c
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403608
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403404
cmp eax, 2
jl 0x406e59
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x406e59
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403404
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x406e59
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403404
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e79
lea eax, [ebp - 0x110]
call fcn.004031e8
ret

Function at 0x406e80
Capabilities:
Get file attributes

Disassembly:
call fcn.00405ab0
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x406e94
dec eax
and al, 0x10
sete al
ret

Function at 0x407058
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4070f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x4070a5
mov eax, dword [ebx + 0x19]
call fcn.004035c8
push eax
push esi
mov eax, edi
call fcn.004035c8
push eax
mov eax, dword [ebx + 0x1d]
call fcn.004035c8
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x4070da
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.004035c8
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00406bdc
mov eax, dword [ebp - 8]
call fcn.004035c8
push eax
mov eax, edi
call fcn.004035c8
push eax
mov eax, dword [ebx + 0x1d]
call fcn.004035c8
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4070f7
lea eax, [ebp - 8]
call fcn.004031e8
ret
Function at 0x408c10
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
call fcn.0040a828
test eax, eax
je 0x408c2c
cmp dword [eax + 0x155], ebx
jne 0x408c2c
xor edx, edx
mov dword [eax + 0x155], edx
mov ecx, dword [ebx + 0x18]
jecxz 0x408c39
push 0
push ecx
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.00405c7c
mov eax, ebx
call fcn.0040a3d0
xor ecx, ecx
cmp byte [ebx + 0x8a], cl
jne 0x408da7
xchg byte [ebx + 0xfb], cl
jecxz 0x408c68
mov eax, dword [ebx + 0xf6]
call fcn.00402534
inc byte [ebx + 0x8a]
mov eax, dword [ebx + 0x10a]
call fcn.00405c60
mov eax, dword [ebx + 0x112]
call fcn.00405c60
mov eax, dword [ebx + 0x40]
call fcn.00405c60
xor ecx, ecx
mov dword [ebx + 0x10a], ecx
mov dword [ebx + 0x112], ecx
mov dword [ebx + 0x40], ecx
xchg dword [ebx + 0x52b], ecx
jecxz 0x408cab
xchg ecx, eax
call fcn.00402534
mov eax, dword [ebx + 0x52f]
call fcn.00405c60
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x408d28
xor ecx, ecx
xchg dword [ebx + 0x93], ecx
jecxz 0x408ccd
push ecx
call sub.user32.dll_DestroyAcceleratorTable
mov eax, dword [ebx + 0x8f]
call fcn.00405c60
mov eax, dword [ebx + 0x97]
test eax, eax
je 0x408ce9
call fcn.00405c60
jmp 0x408cd8
push dword [ebx + 0x18]
call sub.user32.dll_IsWindow
test eax, eax
je 0x408d23
push eax
push 1
push 0x80
push dword [ebx + 0x18]
call sub.user32.dll_SendMessageA
test eax, eax
je 0x408d15
cmp byte [ebx + 0x35], 0
jne 0x408d15
push eax
call sub.user32.dll_DestroyIcon
cmp byte [ebx + 0x48], 0
jne 0x408d23
push dword [ebx + 0x18]
call sub.user32.dll_DestroyWindow
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x36]
test eax, eax
je 0x408d34
call fcn.00402534
mov eax, dword [ebx + 0x26d]
test eax, eax
je 0x408d43
call fcn.00402534
mov ecx, dword [ebx + 0x49]
jecxz 0x408d62
cmp dword [ecx + 0x155], ebx
jne 0x408d58
xor eax, eax
mov dword [ecx + 0x155], eax
mov eax, dword [ecx + 0x60]
mov edx, ebx
call fcn.00405df4
mov ecx, dword [ebx + 0x79]
jecxz 0x408d6d
push ecx
call sub.gdi32.dll_DeleteObject
push ebx
push dword [ebx + 0x60]
push dword [ebx + 0x568]
push dword [ebx + 0x56c]
push dword [ebx + 0x2f5]
push dword [ebx + 0xcb]
mov bl, 5
pop eax
call fcn.00405c60
dec bl
jne 0x408d8b
pop ebx
lea eax, [ebx + 0x4fb]
call fcn.004031e8
xchg ebx, eax
call fcn.00405c6c
pop ebx
ret
Function at 0x409e04
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x409e13
mov edx, dword [edx + 0x36]
jmp fcn.0040339c
mov ecx, dword [edx + 0x18]
jecxz 0x409e0b
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.004036d8
pop edx
mov ecx, dword [ebx]
jecxz 0x409e3b
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40c6f0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
cmp byte [0x41c328], 0xff
je 0x40c706
mov al, byte [0x41c328]
jmp 0x40c766
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40c73f
mov al, 3
mov edx, dword [esp + 4]
cmp edx, 6
jb 0x40c72b
mov al, 6
jmp 0x40c761
cmp edx, 5
jb 0x40c761
cmp dword [esp + 8], 1
jb 0x40c73b
mov al, 5
jmp 0x40c761
mov al, 4
jmp 0x40c761
cmp eax, 1
jne 0x40c75f
mov al, 1
cmp dword [esp + 4], 4
ja 0x40c75b
cmp dword [esp + 4], 4
jne 0x40c761
cmp dword [esp + 8], 0xa
jb 0x40c761
mov al, 2
jmp 0x40c761
xor eax, eax
mov byte [0x41c328], al
add esp, 0x94
ret
Function at 0x4068c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068e5
xor eax, eax
test eax, eax
je 0x4068f8
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068f8
xor ecx, ecx
jmp 0x4068fb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a1e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406a55
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a2f
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a2a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a86
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a68
pop edi
not eax
pop esi
ret 0xc

Function at 0x451000
Capabilities:
Accept command line arguments
Check os version
Copy file
Delete file
Get common file path
Get file system object information
Packed with generic packer
Set current directory
Set environment variable
Shutdown system
Terminate process

Disassembly:
pushal
push 0x451031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x45103a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x451047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.004035d8

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40103b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401072
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40106e
jmp 0x401060
cmp esi, eax
jae 0x401072
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x401079
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4033e0
Capabilities:
Check mutex on windows

Disassembly:
push str.b1c2974a_b0cc_495f_9bee_90b329d32b27
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x5a7c48], eax
test eax, eax
je 0x403417
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40340d
cmp eax, 5
je 0x40340d
mov al, 1
ret
mov dword [0x5a7c48], 0
xor al, al
ret

Function at 0x403420
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi + 0x208]
push eax
call edi
add esi, 0x104
push esi
call edi
pop edi
pop esi
ret

Function at 0x403490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x554814
lea ecx, [ebp - 0x108]
push ecx
call edi
push esi
lea edx, [ebp - 0x108]
push edx
call edi
push 5
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
cmp eax, 0x20
jae 0x403578
cmp eax, 0xb
ja case.0x4034fd.1
movzx ecx, byte [eax + 0x40359c]
jmp dword [ecx*4 + 0x403588]
push 0
push str.Memory_is_insufficient.___d__
lea edx, [ebp - 0x508]
push edx
jmp 0x40354a
push 0xb
push str.Wrong_Excutable_file.___d__
jmp 0x403543
push 2
push str.Cant_find_file.___d__
lea ecx, [ebp - 0x508]
push ecx
jmp 0x40354a
push 3
push str.Path_is_wrong.___d__
lea edx, [ebp - 0x508]
push edx
jmp 0x40354a
push eax
push str.Cant_excute_file.___d__
lea eax, [ebp - 0x508]
push eax
call fcn.00525601
add esp, 0xc
push 0x30
push str.PangyaUpdate
lea ecx, [ebp - 0x508]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00525092
mov esp, ebp
pop ebp
ret
Function at 0x4035d0
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
push str.projectg.nop
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp eax, 0xffffffff
je 0x40366b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x118]
push ecx
call esi
test al, 1
je 0x40362f
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x118]
push edx
call edi
lea eax, [ebp - 0x118]
push eax
call ebx
mov edx, dword [ebp - 0x148]
lea ecx, [ebp - 0x144]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403615
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
cmp eax, 0x12
jne 0x40366b
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret

Function at 0x4036a0
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov edi, ecx
lea esi, [edi + 0x30c]
push esi
lea eax, [ebp - 0x20c]
push 0x5548d8
push eax
call fcn.00525601
lea ebx, [edi + 0x208]
push ebx
push esi
lea ecx, [ebp - 0x108]
push 0x5548d8
push ecx
call fcn.00525601
add esp, 0x20
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
xor esi, esi
cmp esi, 0xa
jae 0x403741
test eax, eax
jne 0x40373c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
inc esi
test eax, eax
je 0x403712
test esi, esi
jne 0x40376d
push 0x40
push str.PangyaUpdate
push 0x554890
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525092
mov esp, ebp
pop ebp
ret 4
add edi, 0x410
push edi
push ebx
call fcn.00403490
mov ecx, dword [ebp - 4]
add esp, 8
test al, al
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.00525092
mov esp, ebp
pop ebp
ret 4
Function at 0x403ca0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542958
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a674c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00432d0e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403ce0
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x5a7c50
lea ecx, [ebp - 0x10]
push str._supdatelist
push ecx
mov dword [ebp - 4], 0
call fcn.00401700
mov ebx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and eax, 0xfffffffe
push eax
push ebx
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call ebx
push 0x5a7c50
lea edx, [ebp - 0x10]
push str._s_temp.zip
push edx
call fcn.00401700
mov eax, dword [ebp - 0x10]
add esp, 0xc
push eax
call esi
mov ecx, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
push ecx
call edi
mov edx, dword [ebp - 0x10]
push edx
call ebx
push 0x5a7c50
lea eax, [ebp - 0x10]
push str._sQuickPatch_Lv1.exe
push eax
call fcn.00401700
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push ecx
call esi
mov edx, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
push edx
call edi
mov eax, dword [ebp - 0x10]
push eax
call ebx
push 0x5a7c50
lea ecx, [ebp - 0x10]
push str._sQuickPatch.ini
push ecx
call fcn.00401700
mov edx, dword [ebp - 0x10]
add esp, 0xc
push edx
call esi
mov esi, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
push esi
call edi
push esi
call ebx
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4050a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x5a674c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a7c48]
push esi
mov esi, ecx
test eax, eax
je 0x4050dc
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x5a7c48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5a7c48], 0
push 0x44
lea ecx, [ebp - 0x148]
push 0
push ecx
call fcn.00525ee0
mov eax, dword [0x5a8024]
mov edx, 5
add esp, 0xc
mov dword [ebp - 0x148], 0x44
mov dword [ebp - 0x11c], 1
mov word [ebp - 0x118], dx
cmp dword [eax - 4], 1
jle 0x40512d
mov eax, dword [eax - 0xc]
push eax
mov ecx, 0x5a8024
call fcn.00401320
mov eax, dword [0x5a8024]
lea ecx, [esi + 0xe9c]
push ecx
push eax
lea edx, [ebp - 0x104]
push str._s__s
push edx
call fcn.00525601
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x148]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esi]
mov edx, dword [eax + 0x180]
mov ecx, esi
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00525092
mov esp, ebp
pop ebp
ret
Function at 0x408260
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542da2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a674c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x40829e
add eax, 0xfffffffc
mov dword [0x5a7c44], eax
jmp 0x4082a4
mov dword [0x5a7c44], ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.ShareDoc.0
call fcn.00432d0e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4082c7
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
call fcn.00432d0e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4082f4
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 2
call fcn.00432d0e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408321
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 3
call fcn.00432d0e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40834e
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 4
call fcn.00432d0e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40837b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18], eax
push pe_nt_image_headers32
mov byte [esi + 0x1e], bl
lea ecx, [esi + 0x30]
push ebx
push ecx
mov byte [ebp - 4], 5
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00525ee0
push pe_nt_image_headers32
lea edx, [esi + 0x130]
push ebx
push edx
call fcn.00525ee0
add esp, 0x18
push 3
push 0x5562b8
lea ecx, [esi + 0x18]
call fcn.00401530
push 0x400
lea eax, [esi + 0x230]
push ebx
push eax
mov word [esi + 0x1c], bx
call fcn.00525ee0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408cd0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
test esi, esi
je 0x408ced
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret