joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4114ec
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp], 0x47f204
call sym._pthread_mutex_lock
mov eax, esi
call sym.___pthread_get_pointer
test eax, eax
je 0x41152e
cmp dword [eax + 0xb4], esi
jne 0x41152e
test byte [eax + 0x20], 0xc
jne 0x41152e
cmp dword [eax + 0x68], 0
jne 0x41152e
mov eax, dword [eax + 0x14]
dec eax
cmp eax, 0xfffffffd
jbe 0x411541
mov dword [esp], 0x47f204
mov ebx, 3
call sym._pthread_mutex_unlock
jmp 0x41156c
mov dword [esp], 0x47f204
call sym._pthread_mutex_unlock
test ebx, ebx
je 0x41156c
sub ebx, 2
cmp ebx, 0x15
ja 0x411567
mov dword [ebp + 8], esi
add esp, 0x10
pop ebx
pop esi
pop ebp
jmp sym._pthread_cancel
mov ebx, 0x16
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x4173cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push ebx
sub esp, 0x10
mov eax, dword [ecx + 0x20]
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._fread
or edx, 0xffffffff
test eax, eax
jle 0x417403
movzx edx, byte [ebx + eax - 1]
mov dword [esi + 0x24], edx
add esp, 0x10
pop ebx
pop esi
pop ebp
ret 8

Function at 0x417410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx + 0x20]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fwrite
leave
ret 8

Function at 0x451c3c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push ebx
sub esp, 0x10
mov ecx, esi
call fcn.00451a84
mov edx, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
call sym._read
mov ebx, eax
cmp eax, 0xffffffff
jne 0x451c75
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x451c46
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x460584
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ecx + 4]
test eax, eax
je 0x46059f
mov edx, dword [ecx]
mov dword [esp], edx
call eax
jmp 0x4605eb
mov ebx, 4
lea esi, [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [edi + 8]
mov dword [esp], eax
call sym._read
test eax, eax
jle 0x4605c9
add esi, eax
sub ebx, eax
jne 0x4605a7
mov eax, dword [ebp - 0x1c]
jmp 0x4605eb
inc eax
je 0x4605de
call dword [sym.imp.msvcrt.dll__errno]
mov edx, str.random_device_could_not_be_read
mov eax, dword [eax]
call method.std._anonymous_namespace_::__throw_syserr_int__char_const_
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4605a7
jmp 0x4605cc
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x47b540
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x7c]
push ebx
sub esp, 0x8c
mov dword [ebp - 0x64], sym.___gxx_personality_sj0
mov dword [ebp - 0x60], 0x47c86c
mov dword [esp], esi
call dbg._Unwind_SjLj_Register
xor eax, eax
mov dword [esp], 0x47f4ac
mov dword [esp + 4], eax
xor eax, eax
mov dword [ebp - 0x78], eax
call sym._pthread_mutex_init
xor edx, edx
mov dword [0x47f4b0], edx
mov dword [0x47f4b4], edx
mov dword [0x47f4b8], edx
mov dword [esp], str.GLIBCXX_TUNABLES
call sym._getenv
xor ecx, ecx
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x34], str.glibcxx.eh_pool
mov ebx, eax
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x2c], str.obj_size
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 9
mov dword [ebp - 0x20], str.obj_count
mov dword [ebp - 0x1c], 0x40
test ebx, ebx
je 0x47b69a
cmp byte [ebx], 0x3a
jne 0x47b5e2
inc ebx
xor eax, eax
mov dword [esp + 8], ebx
lea ecx, [ebp - 0x38]
mov dword [esp + 0xc], 0xf
mov dword [esp + 4], 0xf
mov dword [esp], eax
mov dword [ebp - 0x78], eax
call method.std::basic_string_view_char__std::char_traits_char___.compare_unsigned_int__unsigned_int__char_const__unsigned_int__const
sub esp, 0x10
test eax, eax
jne 0x47b683
cmp byte [ebx + 0xf], 0x2e
jne 0x47b683
add ebx, 0x10
lea edi, [ebp - 0x30]
mov edx, dword [edi]
xor eax, eax
mov dword [esp + 8], ebx
mov ecx, edi
mov dword [esp + 0xc], edx
mov dword [esp + 4], edx
mov dword [ebp - 0x80], edx
mov dword [esp], eax
mov dword [ebp - 0x78], eax
call method.std::basic_string_view_char__std::char_traits_char___.compare_unsigned_int__unsigned_int__char_const__unsigned_int__const
sub esp, 0x10
test eax, eax
jne 0x47b649
mov edx, dword [ebp - 0x80]
cmp byte [ebx + edx], 0x3d
je 0x47b655
add edi, 0xc
lea eax, [ebp - 0x18]
cmp edi, eax
je 0x47b683
jmp 0x47b619
xor eax, eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
lea eax, [ebx + edx + 1]
mov dword [esp], eax
call sym._strtoul
mov ebx, dword [ebp - 0x3c]
mov dl, byte [ebx]
cmp dl, 0x3a
je 0x47b67c
test dl, dl
jne 0x47b683
test eax, eax
js 0x47b683
mov dword [edi + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0x3a
call sym._strchr
mov ebx, eax
jmp 0x47b5d4
mov eax, dword [ebp - 0x1c]
mov edx, 0x100
mov ebx, dword [ebp - 0x28]
cmp eax, edx
cmovg eax, edx
test ebx, ebx
jne 0x47b6b3
mov ebx, 6
add ebx, 0x2c
imul ebx, eax
shl ebx, 2
mov dword [0x47f4b8], ebx
je 0x47b6eb
mov dword [esp], ebx
call sym._malloc
mov dword [0x47f4b4], eax
test eax, eax
jne 0x47b6df
xor ecx, ecx
mov dword [0x47f4b8], ecx
jmp 0x47b6eb
xor edx, edx
mov dword [0x47f4b0], eax
mov dword [eax], ebx
mov dword [eax + 4], edx
mov dword [esp], sym.___tcf_0_1
call sym._atexit
mov dword [esp], esi
call dbg._Unwind_SjLj_Unregister
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401ab0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x444ba6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esi], fcn.0041d180
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 8], 0x44b270
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x1c], 0x44b2c4
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0x11
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0xa
mov dword [esi + 4], edi
mov eax, dword [esi + 0x20]
cmp eax, edi
mov byte [esp + 0x14], 1
je 0x401b29
push eax
call sub.MFC71U.DLL_operator_new
add esp, 4
mov dword [esi + 0x20], edi
push 0x2c
call sub.MFC71U.DLL_SerializeElements
mov edi, eax
add esp, 4
mov dword [esi + 0x20], edi
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], 0xb
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x407920
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x624
mov eax, dword [0x462260]
push ebx
mov dword [esp + 0x624], eax
cmp dword [ecx + 0xb8], 0xffffffff
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40795f
xor al, al
mov ecx, dword [esp + 0x62c]
call fcn.00444429
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
xor esi, esi
mov word [esp + 0x218], si
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x218]
push 0x104
push eax
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
mov ebx, dword [sym.imp.MSVCR71.dll__snwprintf]
mov word [esp + 0x18], si
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x220]
push ecx
push str._sDownLoad
lea edx, [esp + 0x20]
push 0x104
push edx
stosw word es:[edi], ax
call ebx
mov esi, dword [ebp + 8]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
test edx, edx
jbe 0x4079de
cmp word [esi + edx*2], 0x2f
je 0x4079de
dec edx
jne 0x4079d4
xor eax, eax
mov word [esp + 0x420], 0
mov ecx, 0x81
lea edi, [esp + 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + edx*2 + 2]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x44ccb0
lea edx, [esp + 0x42c]
push 0x104
push edx
call ebx
add esp, 0x14
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xb4]
push 0
add ecx, 0xb4
push 0x1001
lea eax, [esp + 0x428]
push eax
call dword [edx + 0x28]
mov ecx, dword [esp + 0x62c]
test eax, eax
setne al
call fcn.00444429
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407d90
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4451cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
mov eax, dword [0x462260]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x484], eax
xor eax, eax
xor esi, esi
mov word [esp + 0x70], si
mov ecx, 0x81
lea edi, [esp + 0x72]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebx
add ebx, 0xb4
stosw word es:[edi], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str..WHD
mov dword [esp + 0x498], esi
call edi
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
sub eax, esi
shl eax, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov word [esp + eax + 0x70], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
mov esi, eax
mov eax, dword [ebx]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call dword [eax + 0x54]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
xor ebx, ebx
push ebx
push ebx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
test eax, eax
je 0x407ee0
lea eax, [esp + 0x70]
push eax
push str._s__VERYSILENT
lea ecx, [esp + 0x280]
push 0x104
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
mov esi, dword [esp + 0x24]
add esp, 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea edx, [esi + 0xa74]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea ecx, [esp + 0x298]
push ecx
push ebx
mov dword [esp + 0x50], 0x44
mov word [esp + 0x80], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407eee
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor al, al
jmp 0x407f3e
cmp dword [esi + 0x20], ebx
jne 0x407f20
mov eax, dword [esi + 0xa70]
mov edx, dword [esi]
push ebx
push 0x64
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x40000000
push ebx
push ebx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [edx + 0x5c]
mov edx, dword [esi + 0x20]
push ebx
push 0x64
push 0xc8
push edx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, 1
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x484]
call fcn.00444429
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4255b0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4255c4
push 0x64
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x425699
mov eax, dword [esi + 0x70]
test eax, eax
je 0x42561e
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42561e
mov ecx, dword [esi + 0x2ac]
test ecx, ecx
je 0x425600
mov eax, dword [esi + 0x70]
test eax, eax
je 0x425600
mov edx, dword [ecx]
push 0
push 0
push 0x64
push 2
push eax
call dword [edx + 0x20]
mov eax, dword [esi + 0x5c]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42563d
mov ecx, dword [esi + 0x5c]
push 0
push ecx
jmp 0x425637
mov edx, dword [esi + 0x5c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42563d
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi + 0x5c]
push edi
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esi + 0x60]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x425665
push eax
call edi
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x42566f
push eax
call edi
xor eax, eax
mov dword [esi + 0x70], 0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
cmp byte [esp + 0x10], 1
pop edi
jne 0x425699
mov ecx, dword [esi + 0x6c]
mov eax, dword [esp + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0xc]
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x4256a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x462260]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x264], eax
mov eax, dword [esi + 0x6c]
xor ebp, ebp
cmp eax, ebp
jne 0x4256d8
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x25c]
call fcn.00444429
add esp, 0x260
ret 4
cmp dword [esi + 0x20], ebp
jne 0x425718
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call sub.MFC71U.DLL_AfxGetStringManager
cmp eax, ebp
je 0x4256ff
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x425701
xor eax, eax
mov edx, dword [esi]
push ebp
push 0x64
push eax
lea eax, [esp + 0x14]
push eax
push 0x40000000
push ebp
push ebp
mov ecx, esi
call dword [edx + 0x5c]
cmp dword [esi + 0x2ac], ebp
push ebx
push edi
jne 0x42576e
lea ecx, [esi + 0x74]
call fcn.004248f0
test al, al
je 0x425840
mov edi, dword [esi + 0x2ac]
mov edx, dword [esi + 0x54]
mov ebx, dword [edi]
lea ecx, [esi + 0x54]
push 0x6010100
push 0x452cec
call dword [edx + 4]
push eax
mov ecx, edi
call dword [ebx + 0xc]
test al, al
je 0x425840
mov ecx, dword [esi + 0x2ac]
mov eax, dword [ecx]
call dword [eax + 0x10]
test al, al
je 0x425840
mov eax, dword [esi + 0x5c]
cmp eax, ebp
lea ebx, [esi + 0x5c]
je 0x4257bb
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4257bb
mov eax, dword [esi + 0x70]
cmp eax, ebp
je 0x42586d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42586d
mov ecx, dword [esi + 0x6c]
mov edx, dword [ecx]
push 1
call dword [edx + 0x10]
push 0x65
push 2
mov ecx, esi
call fcn.00424da0
jmp 0x42586d
mov ecx, dword [esi + 0x2ac]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, eax
call dword [sym.imp.PlatformData.dll_public:_static_class_CParameterGlobal____cdecl_CParameterGlobal::GetInstance_void_]
mov ebp, dword [esp + 0x274]
mov eax, edi
cdq
push edx
push eax
push ebp
push 0x452ee8
lea ecx, [esp + 0x74]
push 0x104
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x18
push ebx
xor eax, eax
lea edx, [esp + 0x24]
push edx
push eax
push eax
push 0x4000000
push eax
push eax
push eax
mov ecx, 0x11
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x84]
push eax
push 0
mov dword [esp + 0x48], 0x44
mov word [esp + 0x78], 3
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x425844
xor ecx, ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
xor al, al
jmp 0x42586f
movzx edx, word [ebp]
sub edx, 0x46
push 0
jne 0x42585c
mov eax, dword [esi + 0x20]
push 0xea60
push 0x64
push eax
jmp 0x425867
mov ecx, dword [esi + 0x20]
push 0x4e20
push 0x64
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov al, 1
mov ecx, dword [esp + 0x26c]
pop edi
pop ebx
pop esi
pop ebp
call fcn.00444429
add esp, 0x260
ret 4
Function at 0x4279e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x447c99
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x28]
push esi
push edi
push ebx
mov edi, ecx
call sub.MFC71U.DLL_CListCtrl::GetItemData
test eax, eax
mov esi, dword [esp + 0x1c]
je 0x427a59
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x427a44
cmp ecx, 5
jne 0x427a59
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x427a24
lea eax, [edi + 0x68]
jmp 0x427a32
call dword [sym.imp.SkinControl.dll_public:_static_class_CSkinResourceManager____cdecl_CSkinResourceManager::GetInstance_void_]
mov ecx, eax
call dword [sym.imp.SkinControl.dll_public:_class_CFont____thiscall_CSkinResourceManager::GetDefaultFont_void_]
test eax, eax
je 0x427a7d
mov eax, dword [eax + 4]
test eax, eax
je 0x427a7d
mov ecx, dword [esi + 4]
push eax
push ecx
jmp 0x427a77
lea eax, [edi + 0x68]
test eax, eax
je 0x427a7d
mov eax, dword [eax + 4]
test eax, eax
je 0x427a7d
mov edx, dword [esi + 4]
push eax
push edx
jmp 0x427a77
call dword [sym.imp.SkinControl.dll_public:_static_class_CSkinResourceManager____cdecl_CSkinResourceManager::GetInstance_void_]
mov ecx, eax
call dword [sym.imp.SkinControl.dll_public:_class_CFont____thiscall_CSkinResourceManager::GetDefaultFont_void_]
test eax, eax
je 0x427a7d
mov eax, dword [eax + 4]
test eax, eax
je 0x427a7d
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
mov ecx, esi
call sub.MFC71U.DLL_CListCtrl::SetBkImage
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x38]
add dword [esp + 0x28], 5
push ebx
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call sub.MFC71U.DLL_CListCtrl::GetItemText
mov edi, dword [esi]
push 0x24
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 0
call dword [sym.imp.MFC71U.DLL_CHtmlView::GetLeft]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
mov ecx, esi
call dword [edi + 0x70]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x428540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447cdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
mov eax, dword [0x462260]
push ebx
push esi
push edi
mov dword [esp + 0x43c], eax
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov word [esp + 0x28], bx
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x28]
push 0x104
push eax
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
mov word [esp + 0x238], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x23a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
push str._sConstantlyPlayGame.wh
lea edx, [esp + 0x240]
push 0x104
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x18
lea ecx, [esp + 0xc]
call sub.MFC71U.DLL_CFile::CFile
push ebx
push 0x1001
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x458], ebx
call sub.MFC71U.DLL_CDataPathProperty::Open
test eax, eax
je 0x428654
mov eax, dword [esi + 0x2ac]
xor ecx, ecx
mov dword [esp + 0x1e], ecx
mov dword [esp + 0x22], ecx
mov word [esp + 0x26], cx
mov word [esp + 0x1c], bx
xor cl, cl
lea esp, [esp]
cmp eax, ebx
je 0x42863b
mov edx, eax
mov dx, word [edx + 8]
mov eax, dword [eax]
movzx esi, cl
inc cl
cmp cl, 6
mov word [esp + esi*2 + 0x1c], dx
jb 0x428620
push 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call sub.MFC71U.DLL_CArchiveStream::Write
lea ecx, [esp + 0xc]
call sub.MFC71U.DLL_CDatabase::Close
lea ecx, [esp + 0xc]
mov dword [esp + 0x44c], 0xffffffff
call sub.MFC71U.DLL_CEvent::CEvent
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x43c]
call fcn.00444429
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
cmp word [ebp + 0xc], 0x14a
mov eax, dword [0x462260]
push ebx
push esi
mov dword [esp + 0x160], eax
push edi
mov esi, ecx
je 0x42b53c
xor al, al
mov ecx, dword [esp + 0x164]
call fcn.00444429
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x12
jne 0x42b560
mov edx, dword [ebx + 6]
mov eax, dword [esi + 0x89e4]
push edx
lea edx, [ebx + 0x4a]
push edx
lea ecx, [esi + 0x89e4]
lea edx, [ebx + 0xa]
push edx
call dword [eax + 0x44]
cmp word [ebx], 0x13
jne 0x42b581
mov edx, dword [ebx + 6]
mov eax, dword [esi + 0x89e4]
push edx
lea edx, [ebx + 0x4a]
push edx
lea ecx, [esi + 0x89e4]
lea edx, [ebx + 0xa]
push edx
call dword [eax + 0x48]
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp dword [ebx + 2], eax
jne 0x42b5bf
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp word [ebx], 0x12
jne 0x42b5a5
dec word [eax]
cmp word [ebx], 0x13
jne 0x42b5af
dec word [eax + 2]
mov ecx, dword [esi + 0x1ee8]
test ecx, ecx
je 0x42b5bf
call dword [sym.imp.GameProperty.dll_public:_void___thiscall_CDlgTrumpetItem::UpdateControlSurface_void_]
lea ecx, [esi + 0x1adc]
mov dword [esp + 0xc], ecx
call fcn.004248d0
test al, al
je 0x42b61b
mov eax, dword [ebx + 2]
mov cx, word [ebx]
mov edx, dword [ebx + 6]
mov word [esp + 0x10], cx
mov dword [esp + 0x14], eax
push 0x14c
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x14]
lea esi, [ebx + 0xa]
mov ecx, 0x10
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push eax
lea esi, [ebx + 0x4a]
mov ecx, 0x40
lea edi, [esp + 0x64]
push 0x68
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
push 5
call fcn.00424dd0
call dword [sym.imp.PlatformData.dll_public:_static_class_CParameterGlobal____cdecl_CParameterGlobal::GetInstance_void_]
mov cl, byte [eax + 0x1a]
test cl, cl
je 0x42b6a6
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov esi, dword [eax + 8]
call dword [sym.imp.GameEngine.dll_public:_static_class_CD3DSound____cdecl_CD3DSound::GetInstance_void_]
test eax, eax
je 0x42b65f
cmp word [ebx], 0x12
mov ecx, str.BUGLE
je 0x42b64a
mov ecx, 0x453acc
push 0
push 0x4519f8
push ecx
push esi
mov ecx, eax
call dword [sym.imp.GameEngine.dll_public:_bool___thiscall_CD3DSound::PlaySoundW_struct_HINSTANCE_____wchar_t_const___wchar_t_const___bool_]
test al, al
jne 0x42b6a6
cmp word [ebx], 0x12
mov eax, str.BUGLE
je 0x42b66f
mov eax, 0x453acc
push 0x4519f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42b6a6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42b69f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 7
push esi
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x164]
mov al, 1
call fcn.00444429
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8