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

Disassembly:
mov eax, 0x4c4706
call fcn.004c2540
sub esp, 0x220
mov eax, dword [0x4e7384]
push ebx
xor ebx, ebx
cmp dword [esi + 0xf4], ebx
mov dword [ebp - 0x10], eax
je 0x484bad
push edi
mov dword [ebp - 0x224], ebx
xor edi, edi
lea eax, [ebp - 0x22c]
push eax
push dword [edi*4 + 0x4ea65c]
mov dword [ebp - 0x22c], ebx
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x484a00
cmp edi, ebx
mov edx, dword [ebp - 0x22c]
jne 0x4849f0
mov dword [ebp - 0x224], edx
mov eax, dword [esi + 0xf4]
push edx
push eax
push esi
xor ecx, ecx
call fcn.00484897
inc edi
cmp edi, 5
jb 0x4849bf
cmp dword [ebp - 0x224], ebx
je 0x484bac
mov dword [ebp - 0x21c], ebx
lea edx, [ebp - 0x21c]
push edx
push 0x4cbb0c
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0xf4]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x224]
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x484b98
mov dword [ebp - 0x228], ebx
lea edx, [ebp - 0x228]
push edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push 0x40
push dword [esi + 4]
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x484b85
mov dword [ebp - 0x220], ebx
jmp 0x484b17
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x22c]
push edx
lea edx, [ebp - 0x220]
push edx
push 1
mov dword [ebp - 0x22c], 0x62000000
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test byte [ebp - 0x229], 2
jne 0x484b0b
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call fcn.0049058c
test eax, eax
je 0x484b0b
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call dword [0x4eaef8]
cmp eax, ebx
je 0x484b0b
mov edx, dword [ebp - 0x220]
push eax
push dword [ebp - 0x21c]
xor ecx, ecx
push esi
call fcn.00484897
push dword [ebp - 0x220]
call dword [0x4eaf48]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x220]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x484a77
push 0x814b
lea eax, [ebp - 0x224]
call fcn.00409034
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0xf4]
mov eax, dword [eax]
push ebx
push ecx
push esi
mov ecx, eax
xor edx, edx
call fcn.00484897
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x484b75
push eax
call fcn.004013aa
push ebx
push ebx
push 0x14e
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x228]
cmp eax, ebx
je 0x484b98
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x484bac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004c2215
leave
ret
Function at 0x485f8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
test ebx, ebx
push edi
jne 0x485fb3
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
jmp 0x485ffe
push 0x4d3120
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x485fee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x485fee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x485fee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x485ff3
or eax, 0xffffffff
jmp 0x486000
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop ebp
ret 4
Function at 0x487c45
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4c31c5
call fcn.004c2540
sub esp, 0x44c
mov eax, dword [0x4e7384]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push esi
push edi
xor edi, edi
cmp dword [eax - 8], edi
jne 0x487c73
xor eax, eax
jmp 0x487e25
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x424], edi
push eax
or eax, 0xffffffff
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], edi
call fcn.004014d0
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [eax]
lea ecx, [ebp - 0x42c]
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call fcn.00485b93
mov ebx, eax
mov eax, dword [ebp + 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff4
inc bl
cmp eax, dword [0x4e9154]
je 0x487cca
push eax
call fcn.004013aa
test bl, bl
jne 0x487e18
cmp dword [ebp - 0x42c], edi
je 0x487e18
cmp dword [ebp - 0x424], edi
je 0x487e18
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push edi
push 0x4d2d8c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x487e18
or dword [ebp - 0x458], 0xffffffff
push 0x80
push 2
push 1
lea eax, [ebp - 0x218]
push eax
mov eax, 0xc0000000
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x448], 0x1000
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], edi
call fcn.0040d9ce
test eax, eax
lea eax, [ebp - 0x458]
jne 0x487d87
call fcn.0040da24
jmp 0x487e18
push dword [ebp - 0x424]
mov ecx, dword [ebp - 0x42c]
push eax
call fcn.0041d6cf
lea eax, [ebp - 0x458]
call fcn.0040da24
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
push 0xc
call esi
push eax
push 0xb
call esi
mov ebx, dword [ebp + 0xc]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x430], esp
lea ecx, [ebp - 0x218]
push ebx
mov dword [eax], ecx
call fcn.00487e3e
push 0x10
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x430], esp
push dword [ebp + 0x10]
lea ecx, [ebp - 0x218]
mov dword [eax], ecx
call fcn.00487e3e
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
cmp dword [ebx], edi
setne al
mov esi, eax
lea eax, [ebp - 0x458]
call fcn.0040da24
mov edi, esi
lea esi, [ebp - 0x42c]
call fcn.00485988
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004c2215
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x489fa6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xe0], eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x489e5f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xd0], eax
je 0x48a010
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [esi + 0xe0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0xd4]
neg edi
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
jmp 0x48a015
mov edi, 0x80004005
push dword [esi + 0xe0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 0xe0], ebx
pop ebx
leave
ret
Function at 0x48b9c1
Capabilities:
Get file size

Disassembly:
push esi
mov esi, eax
push esi
call fcn.0040e159
test eax, eax
je 0x48b9d2
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x34]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48b9fa
xor eax, eax
jmp 0x48ba22
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x48b9f6
cmp edi, 0x400
jae 0x48ba1d
xor eax, eax
inc eax
jmp 0x48ba22
mov eax, edi
shr eax, 0xa
pop edi
pop esi
ret
Function at 0x48cf24
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
call fcn.00404408
mov ecx, eax
lea esi, [ebp - 4]
call fcn.00402de7
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x48cf54
push eax
call fcn.004013aa
push dword [ebp + 8]
call fcn.0040e159
test eax, eax
mov esi, dword [ebp - 4]
jne 0x48cf97
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48cf97
test al, 1
je 0x48cf97
push edi
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x48cf92
push eax
call fcn.004013aa
mov eax, edi
pop edi
jmp 0x48cfab
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x48cfa8
push eax
call fcn.004013aa
xor eax, eax
inc eax
pop esi
leave
ret 4

Function at 0x48cfb0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, eax
push edi
lea eax, [ebp - 0x18]
call fcn.00404408
mov ecx, eax
lea esi, [ebp - 4]
call fcn.00402de7
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x48cfe2
push eax
call fcn.004013aa
push edi
lea eax, [ebp - 0x14]
call fcn.0048b7bb
mov esi, eax
push edi
lea eax, [ebp - 0x10]
call fcn.0048b76b
push dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040302d
push 0x4cc33c
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040302d
push esi
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.00402fdd
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x48d032
push eax
call fcn.004013aa
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x48d046
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x48d05a
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x48d06e
push eax
call fcn.004013aa
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x48d0a6
add ebx, 0xfffffff4
cmp ebx, dword [0x4e9154]
je 0x48d091
push ebx
call fcn.004013aa
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x48d0a2
push eax
call fcn.004013aa
xor eax, eax
jmp 0x48d0ec
mov esi, 0x4eae48
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x34]
lea edi, [ebp + 8]
call fcn.00402e80
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e9154]
je 0x48d0d5
push eax
call fcn.004013aa
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x48d0e9
push eax
call fcn.004013aa
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4905f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x4e7384]
or dword [ebp - 0x2b4], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 4], eax
push edi
mov ebx, ecx
mov eax, ebx
or eax, 0x4008
push eax
mov edi, 0x2b4
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ebp + 8]
call esi
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2bc], eax
je 0x490669
or dword [ebp - 0x2b4], 0xffffffff
or ebx, 0x400a
push ebx
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2bc]
pop edi
pop esi
pop ebx
call fcn.004c2215
leave
ret 8

Function at 0x490e34
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x490e52
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x490e5a
mov eax, dword [esp + 0xc]
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x49118f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4c3827
call fcn.004c2540
sub esp, 0x420
mov eax, dword [0x4e7384]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
call dword [0x4e91a8]
xor edi, edi
mov dword [ebp - 0x41c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x420], ebx
jne 0x4911fb
call fcn.0041a7b9
mov edi, eax
jmp 0x4912b7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x491284
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x424], eax
je 0x491284
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + ebx + 2]
push eax
lea esi, [ebp - 0x418]
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 2
call fcn.0049afaa
jmp 0x49124e
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], edi
jne 0x491264
mov edi, 0x8007000e
jmp 0x4912ab
call dword [0x4e91a8]
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x49128b
call fcn.0041a7b9
jmp 0x4912a9
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x18]
mov word [eax + ebx*2], di
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00491bde
mov edi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4912d0
lea eax, [ebp - 0x418]
call fcn.004883fc
lea esi, [ebp - 0x41c]
call fcn.004308a4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, edi
call fcn.004c2215
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x499c28
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 8], ebp
jne 0x499c56
xor eax, eax
jmp 0x499cb4
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x499ca8
cmp esi, 0x40
jbe 0x499ca8
push edi
push esi
push edi
push 2
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
cmp ebp, edi
je 0x499ca8
push edi
push edi
push edi
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x499ca5
cmp word [edi], 0x5a4d
je 0x499cb8
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
xor esi, esi
push dword [esp + 0x10]
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
add esi, 0xffffffc0
push esi
lea edx, [edi + 0x40]
call fcn.00499be7
mov esi, eax
movzx eax, word [edi + 0x26]
pop ecx
movzx ecx, word [edi + 0x24]
shl eax, 0x10
or eax, ecx
sub esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
jmp 0x499caa
Function at 0x49a543
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov esi, eax
push ebx
push esi
xor edx, edx
call fcn.0049268e
call fcn.00429030
lea eax, [esi + 0x4c]
push eax
lea edi, [ebp - 4]
call fcn.00402e10
push str.ttpres.dll
mov eax, edi
push eax
call fcn.00402ee8
push dword [ebp - 4]
call fcn.00499c28
test eax, eax
pop ecx
je 0x49a613
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x3c], eax
je 0x49a613
push eax
push 0x4ea818
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x3c]
mov ecx, dword [0x4e9150]
push 0x80
push eax
mov dword [0x4eaf68], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ecx
call fcn.004035cf
xor eax, eax
not word [eax + 0x4ea6b0]
not word [eax + 0x4ea6a4]
inc eax
inc eax
cmp eax, 8
jl 0x49a5c8
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
push 0x4ea6b0
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x49a62e
push 0x4ea6a4
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x49a62e
push 0x4ea690
push dword [ebp + 8]
call edi
test eax, eax
pop ecx
pop ecx
je 0x49a62e
push 0x10
push 0x4d0fa8
push str.Load_resource__ttpres.dll__failed__please_resetup_this_program_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ebx, [esi + 0x44]
lea edi, [ebp + 8]
mov eax, ebx
call fcn.00402e80
push 0x8292
lea eax, [ebp - 8]
call fcn.00409034
push dword [eax]
add esi, 0x48
push dword [ebx]
push str._s__s
push esi
call fcn.00405c38
mov eax, dword [ebp - 8]
add esp, 0x14
pop edi
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
pop esi
pop ebx
je 0x49a674
push eax
call fcn.004013aa
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x49a688
push eax
call fcn.004013aa
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x49a69c
push eax
call fcn.004013aa
xor eax, eax
leave
ret 4
Function at 0x49aa1c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [0x4eaf7c]
test esi, esi
je 0x49aae0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49aae0
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0xc]
push ebx
push edi
push dword [eax]
lea edi, [ebp - 4]
call fcn.00402e10
mov ebx, edi
call fcn.0049a1f3
mov edi, dword [ebp - 4]
cmp dword [edi - 8], 0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
je 0x49aaa9
mov eax, dword [ebp + 8]
push 0x4d3988
call fcn.004929b9
test eax, eax
jne 0x49aa8c
mov eax, dword [ebp + 8]
push 0x4d3988
call fcn.004929b9
test eax, eax
je 0x49aa8f
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [edi - 8]
lea eax, [eax + eax + 2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x4a
push esi
mov dword [ebp - 8], edi
call ebx
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xf120
push 0x112
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add edi, 0xfffffff4
cmp edi, dword [0x4e9154]
je 0x49aad9
push edi
call fcn.004013aa
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x49aae2
xor eax, eax
pop esi
leave
ret
Function at 0x49aae5
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x4c8587
call fcn.004c2540
sub esp, 0x14
push ebx
call sub.ttpcomm.dll_Ordinal_1
mov ecx, 0x50201
cmp eax, ecx
je 0x49ab1d
push 0x10
push 0x4d0fa8
push str.Error_in_ttpcomm.dll__please_resetup_this_program_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x49acd0
push esi
push edi
xor edi, edi
cmp dword [0x4eaf70], edi
je 0x49ac84
mov ebx, dword [0x4eaf7c]
cmp ebx, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
je 0x49ab5f
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ecx
push ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebx + 4]
push eax
call edi
call esi
push eax
add ebx, 8
push ebx
call edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push str.wWinMain
mov dword [0x4e7b0c], eax
call esi
push eax
call fcn.00403ee4
pop ecx
pop ecx
push edi
call sub.ole32.dll_OleInitialize
mov eax, 0x781
call fcn.00433caf
push dword [ebp + 8]
mov ebx, 0x4eb398
mov eax, ebx
call fcn.0049a543
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.ttpcomm.dll_Ordinal_3
lea edi, [ebp - 0x10]
mov dword [esp], 0x4eb3e4
call fcn.00402e10
and dword [ebp - 4], 0
push str.AddIn
mov eax, edi
push eax
call fcn.00402ee8
mov edi, dword [ebp - 0x10]
push 0
push edi
push 0x4ebc90
call fcn.004a3ce1
test eax, eax
mov dword [ebp + 8], eax
jge 0x49ac0f
mov esi, ebx
call fcn.0049a6a2
call sub.ole32.dll_OleUninitialize
push 0x10
push dword [0x4eb3dc]
push str.Sound_Library_init_failed__the_player_can_not_run_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x49ac7f
push eax
call fcn.004013aa
jmp 0x49ac7f
or dword [ebp - 4], 0xffffffff
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x49ac24
push eax
call fcn.004013aa
mov edi, 0x4ebc20
mov esi, edi
call fcn.00492efb
call sub.ttpcomm.dll_Ordinal_200
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.0049a6c5
mov esi, 0x4eaf70
mov dword [ebp + 8], eax
call fcn.00492c6f
call sub.ttpcomm.dll_Ordinal_201
mov esi, edi
call fcn.00492f48
mov eax, 0x4ebc90
call fcn.004a4084
mov esi, ebx
call fcn.0049a6a2
call sub.ole32.dll_OleUninitialize
mov eax, dword [0x4e7b0c]
cmp eax, 0xffffffff
je 0x49ac7f
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [ebp + 8]
jmp 0x49acce
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00492881
push 0x1388
push dword [0x4eaf74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x49acbb
lea eax, [ebp - 0x20]
push eax
call fcn.0049aa1c
pop ecx
lea eax, [ebp - 0x20]
call fcn.0049283f
lea esi, [ebp - 0x1c]
call fcn.00407c87
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10