joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424118
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push str..SMARTVSD
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4241d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x104
push esi
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push 8
mov dword [ebp - 8], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], ebx
je 0x4241be
cmp eax, ebx
je 0x4241b1
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.SMARTVSD.VXD
push dword [ebp - 8]
call esi
push str.IOSUBSYSSMARTVSD.VXD
push dword [ebp - 0xc]
call esi
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp - 8]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0xc], ebx
je 0x4241d0
push dword [ebp - 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x4242fb
push 0x21
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, 0x210
push edi
push 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp esi, ebx
je 0x4242d9
cmp eax, ebx
je 0x4242ca
mov dword [ebp - 0xc], ebx
cmp byte [ebp - 1], bl
jne 0x4242ca
push 0x21
push ebx
push esi
call fcn.004320e0
push edi
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
call fcn.004320e0
mov al, byte [ebp - 0xc]
add esp, 0x18
push ebx
mov byte [esi + 0xc], al
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 8]
mov dword [esi], 0x200
push 0x20
push esi
push 0x7c088
push dword [ebp - 0x10]
mov dword [esi + 4], 0x10100
mov word [esi + 8], 0xa000
mov byte [esi + 0xa], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4242bd
mov eax, dword [ebp - 8]
add eax, 0x24
call fcn.00424101
push 0x31
push ebx
push dword [ebp + 8]
call fcn.004320e0
mov eax, dword [ebp - 8]
push 0x14
add eax, 0x24
push eax
push dword [ebp + 8]
call fcn.00430da0
push dword [ebp + 8]
call fcn.004249fe
mov eax, dword [ebp + 8]
movsx ax, byte [eax]
movzx eax, ax
add esp, 0x1c
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x4242bd
mov byte [ebp - 1], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
jl 0x424215
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], ebx
je 0x4242ef
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4245e8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x424617
xor al, al
jmp 0x4246dd
mov eax, dword [0x479498]
xor edi, edi
cmp eax, edi
jne 0x42463f
push str.inetmib1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x479498], eax
cmp eax, 0x20
jae 0x42463f
mov dword [0x479498], edi
jmp 0x424610
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x47949c], edi
jne 0x42465e
push str.SnmpExtensionInit
push eax
call esi
mov dword [0x47949c], eax
cmp eax, edi
je 0x424610
push 0x4793ac
push 0x4793a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [0x47949c]
cmp dword [0x4794a0], edi
jne 0x424697
push str.SnmpExtensionInitEx
push dword [0x479498]
call esi
mov dword [0x4794a0], eax
cmp eax, edi
je 0x424610
cmp dword [0x4794a4], edi
jne 0x4246b9
push str.SnmpExtensionQuery
push dword [0x479498]
call esi
mov dword [0x4794a4], eax
cmp eax, edi
je 0x424610
cmp dword [0x4794a8], edi
jne 0x4246db
push str.SnmpExtensionTrap
push dword [0x479498]
call esi
mov dword [0x4794a8], eax
cmp eax, edi
je 0x424610
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004319f9
leave
ret

Function at 0x424b20
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x425621
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x70], ecx
mov byte [ebp - 0x5d], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
je 0x4256da
push ebx
push edi
lea eax, [ebp - 0x5c]
call fcn.00424b20
mov ebx, 0xa000
push ebx
call fcn.00430a14
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
push esi
lea ecx, [ebp - 0x64]
push ecx
push ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], esi
push eax
jmp 0x4256a9
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4256b4
push dword [ebp - 0x68]
lea esi, [ebp - 0x5c]
call fcn.00424b50
and dword [ebp - 0x64], 0
pop ecx
push 0
lea eax, [ebp - 0x64]
push eax
push ebx
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call edi
test eax, eax
jne 0x425688
jmp 0x4256b8
mov byte [ebp - 0x5d], 1
push dword [ebp - 0x68]
call fcn.004323d6
mov ebx, dword [ebp - 0x70]
push 0x10
lea ecx, [ebp - 0x5c]
call fcn.00424c00
pop ecx
pop ecx
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x5d]
xor ecx, ebp
pop esi
call fcn.004319f9
leave
ret
Function at 0x425acd
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0040513b
add esp, 0xc
push str.SogouMiniGame.exe
lea ecx, [ebp - 0x3c]
call fcn.00402e62
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040674a
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040318e
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
push 2
pop ebx
jae 0x425b29
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425c8a
push 0x38
lea eax, [ebp - 0x480]
push edi
push eax
call fcn.004320e0
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x484], 0x3c
mov dword [ebp - 0x480], 0x40
mov dword [ebp - 0x47c], edi
mov dword [ebp - 0x478], str.open
jae 0x425b7a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x444], 0x200
call fcn.0040658c
mov dword [esp], str._installsrcweb
lea eax, [ebp - 0x3c]
push eax
push str._starttime
lea eax, [ebp - 0x448]
push str._frominstall
push eax
call fcn.00402cfe
pop ecx
pop ecx
push eax
call fcn.00402cfe
pop ecx
pop ecx
push eax
call fcn.0040790b
pop ecx
pop ecx
push eax
call fcn.00402cfe
mov edx, dword [ebp - 0x448]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x440]
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x484]
push eax
mov dword [ebp - 0x46c], edi
mov dword [ebp - 0x468], 5
mov dword [ebp - 0x464], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x425c29
xor ebx, ebx
jmp 0x425c31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, str.Log_Debug
cmp dword [0x47955c], edi
jne 0x425c4b
push esi
push 0x47955c
call fcn.00405f6c
pop ecx
pop ecx
cmp dword [0x47955c], 2
jne 0x425c63
push ebx
push str.MiniGamePacker_start_minigame_result.__d
push esi
call fcn.004064b8
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040318e
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x440], eax
je 0x425cc8
push dword [ebp - 0x440]
call fcn.00431bdf
pop ecx
jmp 0x425cc8
mov esi, str.Log_Debug
cmp dword [0x47955c], edi
jne 0x425ca4
push esi
push 0x47955c
call fcn.00405f6c
pop ecx
pop ecx
cmp dword [0x47955c], 2
jne 0x425cc8
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x425cb9
lea eax, [ebp - 0x20]
push eax
push str.MiniGamePacker_start_minigame_failed._mini_game_not_exist.__s
push esi
call fcn.004064b8
add esp, 0xc
push ebx
call fcn.0042ea6a
pop ecx
push edi
push 1
lea ecx, [ebp - 0x20]
call fcn.0040318e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004319f9
leave
ret
Function at 0x426be4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 8], esi
cmp eax, esi
jne 0x426bfd
xor eax, eax
jmp 0x426cb8
push edi
mov dword [eax], esi
movzx eax, word [ebp + 0xc]
push 0x461f0c
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x426cb4
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, esi
je 0x426cb3
cmp eax, esi
je 0x426cb3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x426cb3
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x426cb3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
je 0x426cac
push ebx
push dword [ebp - 4]
push eax
call fcn.00430a30
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp - 4], esi
je 0x426ca5
push esi
push dword [ebp - 4]
call fcn.00404ac9
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
mov dword [ebp - 8], 1
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x42ab9b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004320e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42abfe
cmp dword [ebp - 0x114], 5
jae 0x42abfa
cmp dword [ebp - 0x114], 4
jne 0x42abfe
cmp dword [ebp - 0x110], 0x5a
jb 0x42abfe
xor eax, eax
jmp 0x42ac01
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004319f9
leave
ret

Function at 0x42af23
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
push 0
push dword [esi + 0x12c]
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x477268
call fcn.0042ae55
mov edi, eax
lea eax, [esi + 0x168]
push eax
mov ecx, edi
call fcn.0042a8c2
lea eax, [esi + 0x16c]
push eax
mov ecx, edi
call fcn.0042a8fd
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
ret
Function at 0x42cb94
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.0042c3d5
mov ebx, eax
cmp ebx, esi
je 0x42cc05
lea ecx, [ebp - 0x214]
call fcn.0042c35e
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004319f9
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x42cc23
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0042cb94
cmp eax, esi
jne 0x42cc6a
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], pe_nt_image_headers32
call ebx
test eax, eax
je 0x42cc0d
lea ecx, [ebp - 0x214]
call fcn.0042c35e
push dword [ebp - 0x218]
mov ecx, edi
call fcn.0042c32a
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0042c35e
mov eax, esi
jmp 0x42cbf4
Function at 0x42e24e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 2
push ebx
push eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x408], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x40c], eax
cmp eax, ebx
jne 0x42e2a1
call fcn.0042c0e1
mov esi, eax
jmp 0x42e33f
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x42e2b7
call fcn.0042c0e1
jmp 0x42e331
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x42e2b0
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x42e2e7
mov esi, 0x8007000e
jmp 0x42e333
push eax
lea ecx, [ebp - 0x408]
call fcn.0042d263
cmp dword [ebp - 0x408], ebx
je 0x42e2e0
push esi
push dword [ebp - 0x408]
push esi
push edi
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x42e2b0
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x408]
lea ecx, [ebp - 0x414]
call fcn.0042de9f
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x42e358
lea ecx, [ebp - 0x408]
call fcn.0042cacb
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004319f9
leave
ret 0x10

Function at 0x42e89f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push 0x15
mov dword [0x4772cc], eax
call fcn.0040664f
mov edi, eax
pop ecx
test edi, edi
je 0x42e97f
cmp dword [0x4754bc], 8
mov eax, dword [0x4754a8]
jae 0x42e8d6
mov eax, 0x4754a8
push eax
call fcn.00432c40
pop ecx
cdq
push edx
push eax
push 0x4626a4
mov ecx, edi
call fcn.004076db
call esi
sub eax, dword [0x4772c8]
push 0
push eax
push str.time
mov ecx, edi
call fcn.004076db
call esi
sub eax, dword [ebp + 0xc]
push 0
push eax
push str.extracttime
mov ecx, edi
call fcn.004076db
cmp dword [ebp + 8], 0
mov eax, 0x462708
je 0x42e927
mov eax, str.fail
push eax
push str.result
mov ecx, edi
call fcn.00407634
push 0
push dword [ebp + 8]
mov ecx, edi
push str.errcode
call fcn.004076db
push 0x4754c4
push 0x4626b8
mov ecx, edi
call fcn.0040768b
push 0x4754e0
push 0x4626c8
mov ecx, edi
call fcn.0040768b
push 0x4772dc
push 0x4626d4
mov ecx, edi
call fcn.0040768b
push edi
call fcn.00406658
pop ecx
pop edi
pop esi
pop ebp
ret
Function at 0x42e983
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push 0x16
mov dword [0x4772d0], eax
call fcn.0040664f
mov edi, eax
pop ecx
test edi, edi
je 0x42ea66
cmp dword [0x4754bc], 8
mov eax, dword [0x4754a8]
jae 0x42e9ba
mov eax, 0x4754a8
push eax
call fcn.00432c40
pop ecx
cdq
push edx
push eax
push 0x4626a4
mov ecx, edi
call fcn.004076db
call esi
sub eax, dword [0x4772c8]
push 0
push eax
push str.time
mov ecx, edi
call fcn.004076db
call esi
sub eax, dword [0x4772cc]
push 0
push eax
push str.extracttime
mov ecx, edi
call fcn.004076db
cmp dword [ebp + 8], 0
mov eax, 0x462708
je 0x42ea0e
mov eax, str.fail
push eax
push str.result
mov ecx, edi
call fcn.00407634
push 0
push dword [ebp + 8]
mov ecx, edi
push str.errcode
call fcn.004076db
push 0x4754c4
push 0x4626b8
mov ecx, edi
call fcn.0040768b
push 0x4754e0
push 0x4626c8
mov ecx, edi
call fcn.0040768b
push 0x4772dc
push 0x4626d4
mov ecx, edi
call fcn.0040768b
push edi
call fcn.00406658
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x42ea6a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x18
call fcn.0040664f
mov edi, eax
pop ecx
test edi, edi
je 0x42eb25
cmp dword [0x4754bc], 8
mov eax, dword [0x4754a8]
jae 0x42ea93
mov eax, 0x4754a8
push esi
push eax
call fcn.00432c40
pop ecx
cdq
push edx
push eax
push 0x4626a4
mov ecx, edi
call fcn.004076db
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4772c8]
push 0
push eax
push str.time
mov ecx, edi
call fcn.004076db
call esi
sub eax, dword [0x4772d4]
push 0
push eax
push str.extracttime
mov ecx, edi
call fcn.004076db
cmp dword [ebp + 8], 0
pop esi
mov eax, 0x462708
je 0x42eaef
mov eax, str.fail
push eax
push str.result
mov ecx, edi
call fcn.00407634
push 0
push dword [ebp + 8]
mov ecx, edi
push str.errcode
call fcn.004076db
push 0x4772dc
push 0x4626d4
mov ecx, edi
call fcn.0040768b
push edi
call fcn.00406658
pop ecx
pop edi
pop ebp
ret
Function at 0x42ed25
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push 0x17
mov dword [0x4772d4], eax
call fcn.0040664f
mov edi, eax
xor ebx, ebx
pop ecx
cmp edi, ebx
je 0x42ee45
cmp dword [0x4754bc], 8
mov eax, dword [0x4754a8]
jae 0x42ed6c
mov eax, 0x4754a8
push eax
call fcn.00432c40
pop ecx
cdq
push edx
push eax
push 0x4626a4
mov ecx, edi
call fcn.004076db
call esi
sub eax, dword [0x4772c8]
push ebx
push eax
push str.time
mov ecx, edi
call fcn.004076db
call esi
sub eax, dword [0x4772d0]
push ebx
push eax
push str.extracttime
mov ecx, edi
call fcn.004076db
push 0x462708
lea ecx, [ebp - 0x20]
call fcn.00402e62
cmp dword [ebp + 0xc], ebx
je 0x42ede0
mov esi, str.waitfail
cmp dword [ebp + 8], ebx
jne 0x42edcf
mov esi, str.fail
push esi
call fcn.0043146f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00402da3
lea eax, [ebp - 0x20]
push eax
push str.result
mov ecx, edi
call fcn.0040768b
push ebx
push dword [ebp + 0xc]
mov ecx, edi
push str.errcode
call fcn.004076db
push 0x4754c4
push 0x4626b8
mov ecx, edi
call fcn.0040768b
push 0x4754e0
push 0x4626c8
mov ecx, edi
call fcn.0040768b
push 0x4772dc
push 0x4626d4
mov ecx, edi
call fcn.0040768b
push edi
call fcn.00406658
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.0040318e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004319f9
leave
ret
Function at 0x42f1e9
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x828], eax
mov eax, dword [eax + 0x68]
push esi
mov esi, dword [eax]
cmp esi, eax
je 0x42f348
push ebx
push edi
mov edi, 0x40e
mov ebx, 0x208
xor eax, eax
push edi
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.004320e0
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push edi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004320e0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0
push 0
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x42f293
push str..jpg
jmp 0x42f29d
cmp eax, 1
jne 0x42f2aa
push str..png
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [esi + 0x218]
push ecx
push eax
call sub.urlmon.dll_URLDownloadToFileW
mov dword [ebp - 0x82c], eax
test eax, eax
jns 0x42f318
push ebx
lea eax, [esi + 0x10]
push 0
push eax
call fcn.004320e0
add esp, 0xc
cmp dword [0x47955c], 0
jne 0x42f2f5
push str.Log_Debug
push 0x47955c
call fcn.00405f6c
pop ecx
pop ecx
cmp dword [0x47955c], 2
jne 0x42f335
push dword [ebp - 0x82c]
push str.MiniGamePacker_Resource_Download_failed:__x
push str.Log_Debug
call fcn.004064b8
add esp, 0xc
jmp 0x42f335
push 0x103
lea eax, [ebp - 0x414]
push eax
lea eax, [esi + 0x10]
push 0x104
push eax
call fcn.00431b12
add esp, 0x10
mov esi, dword [esi]
mov eax, dword [ebp - 0x828]
cmp esi, dword [eax + 0x68]
jne 0x42f21e
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004319f9
leave
ret

Function at 0x42f4c2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x68]
mov esi, dword [eax]
cmp esi, eax
je 0x42f4fa
mov eax, dword [esi + 8]
cmp eax, dword [ebp + 0xc]
jne 0x42f4f3
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f518
mov esi, dword [esi]
cmp esi, dword [edi + 0x68]
jne 0x42f4dd
push 0x466a0c
mov ecx, dword [ebp + 8]
call fcn.00402e62
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
add esi, 0x10
push esi
jmp 0x42f4ff
Function at 0x430465
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4773dc], 0
push esi
push edi
jne 0x4303d6
call fcn.00430330
test eax, eax
je 0x43041b
mov eax, dword [0x4773dc]
cmp eax, 1
jne 0x4303f7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43041b
jmp 0x43045d
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x43045d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43041f
xor eax, eax
jmp 0x43045d
mov eax, dword [esi]
push dword [0x4773dc]
call edi
mov edi, eax
test edi, edi
je 0x430441
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x43045d
lea edi, [esi + 0xff0]
push esi
push dword [0x4773dc]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x430447
mov eax, esi
pop edi
pop esi
ret
jmp 0x4303c2

Function at 0x4319f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x475668]
jne 0x431a03
repz ret
jmp fcn.00439c7c