joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b0bb
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0xb40]
sub esp, 0xbc0
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0xb3c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xb48]
mov esi, 0x3e6
xor ebx, ebx
push esi
lea eax, [ebp + 0x36e]
push ebx
push eax
mov word [ebp + 0x36c], bx
call fcn.10076580
push esi
lea eax, [ebp - 0x7a]
push ebx
push eax
mov word [ebp - 0x7c], bx
call fcn.10076580
push esi
lea eax, [ebp + 0x756]
push ebx
push eax
mov word [ebp + 0x754], bx
call fcn.10076580
add esp, 0x24
call fcn.10004cf1
mov ecx, eax
call fcn.1001b43a
mov dword [ebp - 0x80], eax
call fcn.10004cf1
mov ecx, eax
call fcn.100484b2
push eax
lea eax, [ebp + 0x36c]
push 0x10175610
push eax
call fcn.100048d5
lea eax, [ebp + 0x36c]
push eax
call fcn.1001ea22
mov esi, str..znpf
push esi
push edi
push dword [ebp - 0x80]
lea eax, [ebp + 0x754]
push str._sSkin_s_s
push eax
call fcn.100048d5
add esp, 0x24
lea eax, [ebp + 0x754]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004b1ad
push esi
push edi
call fcn.10004cf1
mov ecx, eax
call fcn.1004a288
push eax
lea eax, [ebp + 0x754]
push str._sAllSkin_s_s
push eax
call fcn.100048d5
add esp, 0x14
lea eax, [ebp + 0x754]
push eax
push str.SCSkinInst.exe
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push str._s_s__untie__s
push eax
call fcn.100048d5
lea eax, [ebp - 0x7c]
push eax
call fcn.1001df9f
push 0x10183194
push edi
call fcn.10076c97
add esp, 0x20
test eax, eax
jne 0x1004b1ed
call fcn.1000f25b
push ebx
jmp 0x1004b1f4
call fcn.1000f25b
push 1
mov edx, dword [eax]
push 0x41
mov ecx, eax
call dword [edx + 0xc]
call fcn.1000f25b
mov edx, dword [eax]
push edi
push 0x82
mov ecx, eax
call dword [edx + 8]
call fcn.1000f25b
mov edx, dword [eax]
push 0x7d
mov ecx, eax
call dword [edx]
mov esi, eax
inc esi
call fcn.1000f25b
mov edx, dword [eax]
push esi
push 0x7d
mov ecx, eax
call dword [edx + 0xc]
call fcn.1000f25b
mov edx, dword [eax]
push esi
push 0x7d
mov ecx, eax
call dword [edx + 0x48]
call fcn.10004cf1
mov ecx, eax
call fcn.1001b46a
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
mov ebx, 0x1017432c
push ebx
push str.IsModifyUIStyle64
mov edi, str.SetModify
push edi
mov dword [ebp - 0x80], eax
call esi
push dword [ebp - 0x80]
push ebx
push str.IsModifyUIStyle
push edi
call esi
push dword [ebp - 0x80]
push ebx
push str.IsTempModifyUIStyle64
push edi
call esi
push dword [ebp - 0x80]
push ebx
push str.IsTempModifyUIStyle
push edi
call esi
mov ecx, dword [ebp + 0xb3c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
add ebp, 0xb40
leave
ret
Function at 0x1004b503
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x1016ea62
call fcn.10075e22
call fcn.10004cf1
mov ecx, eax
call fcn.1001b43a
push eax
lea ecx, [ebp - 0x28]
call fcn.100015f0
xor esi, esi
push str.SCHandInput.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.10003540
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x1004b55a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x206
test eax, eax
push esi
lea eax, [ebp + 2]
mov word [ebp], si
push eax
je 0x1004b5a4
call fcn.10076580
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 8
jae 0x1004b587
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push 0x10183c88
push eax
call fcn.100048d5
lea eax, [ebp]
push eax
call fcn.1001ee9d
add esp, 0x10
jmp 0x1004b5d8
call fcn.10076580
add esp, 0xc
push str.SCTool.exe
call fcn.10004cf1
mov ecx, eax
call fcn.1001b43a
push eax
lea eax, [ebp]
push str.__s_s__DownLoadHandInputByHand
push eax
call fcn.100048d5
lea eax, [ebp]
push eax
call fcn.1001ee9d
add esp, 0x14
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.100017f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10075e13
add ebp, 0x20c
leave
ret
Function at 0x1004ba29
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xcc
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
xor eax, eax
push eax
mov esi, ecx
push dword [esi + 0x530]
push eax
push eax
push ecx
mov eax, esp
lea ecx, [esi + 0x534]
mov dword [eax], 0x10183e20
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CDialogBuilder::Create_class_DuiLib::STRINGorID__wchar_t_const___class_DuiLib::IDialogBuilderCallback___class_DuiLib::CPaintManagerUI___class_DuiLib::CControlUI__]
lea ecx, [esi + 0x4b4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esi + 0x530]
mov edi, dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push str.question_title
call edi
mov ecx, dword [esi + 0x530]
push str.question_context
mov dword [esi + 0x680], eax
call edi
mov ecx, dword [esi + 0x530]
push str.contact_info
mov dword [esi + 0x67c], eax
call edi
mov ecx, dword [esi + 0x530]
push str.btn_question_feed
mov dword [esi + 0x684], eax
call edi
mov ecx, dword [esi + 0x530]
push str.btn_function_advice
mov dword [esi + 0x688], eax
call edi
mov ecx, dword [esi + 0x530]
push str.btn_add_img
mov dword [esi + 0x68c], eax
call edi
mov ecx, dword [esi + 0x530]
push str.btn_submit
mov dword [esi + 0x690], eax
lea ebx, [esi + 0x694]
call edi
mov ecx, dword [esi + 0x530]
push str.fjname
mov dword [ebx], eax
call edi
mov ebx, dword [ebx]
xor edi, edi
cmp ebx, edi
mov dword [esi + 0x698], eax
je 0x1004bb22
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0xd8]
mov ecx, dword [esi + 0x67c]
cmp ecx, edi
je 0x1004bb47
push 0x1f4
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CRichEditUI::SetLimitText_int_]
mov ecx, dword [esi + 0x67c]
mov eax, dword [ecx]
push 0x10183d28
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x530]
lea eax, [esi + 0x518]
push eax
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CPaintManagerUI::AddNotifier_class_DuiLib::INotifyUI__]
push 0xc6
lea eax, [ebp - 0x52]
push edi
push eax
mov word [ebp - 0x54], di
call fcn.10076580
add esp, 0xc
call fcn.10004cf1
mov ecx, eax
call fcn.1001b47e
push eax
push 0x64
lea eax, [ebp - 0x54]
push eax
push 0x101d87ec
push str.LoginType
push str.UserLogin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.1000f25b
mov edx, dword [eax]
push 0x9c
mov ecx, eax
call dword [edx]
mov ebx, eax
lea eax, [ebp - 0x54]
push str.guanfang
push eax
call fcn.10076c97
test eax, eax
pop ecx
pop ecx
jne 0x1004bbcc
cmp ebx, edi
jle 0x1004bbcc
mov dword [esi + 0x6c4], 1
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
add ebp, 0x78
leave
ret
Function at 0x1004f200
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1016f1b3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x101f1dd0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x10201db0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x10201db0
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x101d87c8
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.1004e4c0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x1004f390
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1016f208
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101f1dd0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x1004f3d2
push edi
push edi
push edi
push 2
call fcn.10050c90
xor al, al
jmp 0x1004f56f
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x1004f3f1
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x1004f3e0
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.1007d434
push ebp
call fcn.1007d33f
push 0
push 0
push ebp
mov edi, eax
call fcn.1007d434
add esp, 0x1c
test edi, edi
jne 0x1004f435
push edi
push edi
push edi
push 0xd
mov ecx, ebx
call fcn.10050c90
xor al, al
jmp 0x1004f56f
mov dword [esp + 0x14], 0x10201db0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.1004e420
lea eax, [edi + 1]
push eax
call fcn.10052ae7
push ebp
mov esi, eax
push 1
push edi
push esi
mov dword [esp + 0x3c], esi
mov byte [esi], 0
call fcn.1007d18c
add esp, 0x14
cmp eax, 1
je 0x1004f4a5
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.10050c90
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x10201db0
je 0x1004f49e
push eax
call fcn.10052b17
add esp, 4
xor al, al
jmp 0x1004f56f
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, esi
je 0x1004f517
mov cl, byte [esi]
cmp cl, 0xa
jne 0x1004f4d5
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.1004e5b0
add esi, 1
mov eax, esi
jmp 0x1004f512
cmp cl, 0xd
jne 0x1004f50f
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x1004f4ed
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.1004e5b0
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.1004e5b0
cmp byte [esi + 1], 0xa
jne 0x1004f4ce
add esi, 2
mov eax, esi
jmp 0x1004f512
add esi, 1
cmp byte [esi], 0
jne 0x1004f4b5
sub esi, eax
je 0x1004f526
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.1004e5b0
push ebp
call fcn.10052b17
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x1004f48e
cmp eax, 0x10201db0
je 0x1004f56d
push eax
call fcn.10052b17
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x1004f900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1016f289
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101f1dd0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x10201db0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea edi, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esp + 0x20], ebx
mov dword [edi], 0x10201db0
lea ebp, [esi + 0x30]
mov dword [ebp], 0x10201db0
mov dword [esi + 0x34], 0x10201db0
mov ecx, dword [esp + 0x28]
mov eax, ecx
lea edx, [eax + 1]
mov byte [esp + 0x20], 3
mov dword [esp + 0x28], edx
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1004f990
sub eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.1004e4c0
mov edi, dword [esp + 0x2c]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1004f9b0
sub eax, ecx
push eax
push edi
mov ecx, ebp
call fcn.1004e4c0
mov edx, dword [esp + 0x30]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1004f9d0
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.1004e4c0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x1005e45c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1005e495
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1005e41f
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1005d079
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x10060191
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x100601d4
call fcn.100533e7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100601d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100601ef
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1005fd4b
test ebx, ebx
mov esi, eax
je 0x100601ed
test edi, edi
je 0x100601ed
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x10065dc2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10170089
call fcn.10075e22
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x10065de7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10065e33
call fcn.1005382d
push eax
lea ecx, [ebp - 0x10]
call fcn.10035450
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10060bae
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1000f22a
mov eax, esi
call fcn.10075efa
ret 8
Function at 0x10068b0d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x10068b53
call fcn.100533e7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10068b53
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x10068b96
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x10068b7f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x10068b7f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x10068b93
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10069ac9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x10069b06
push 0x10187e60
push 4
push eax
call fcn.1007fb95
push eax
call fcn.1000fc91
add esp, 0x10
jmp 0x10069b18
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10069b83
push edi
call fcn.1007cd77
mov edi, dword [eax]
call fcn.1007cd77
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.1007d4fb
add esp, 0x18
mov ebx, eax
call fcn.1007cd77
cmp dword [eax], 0
je 0x10069b63
call fcn.1007cd77
push dword [eax]
call fcn.1005356d
pop ecx
jmp 0x10069b6a
call fcn.1007cd77
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x10069b83
cmp ebx, esi
jae 0x10069b83
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x10069b85
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
leave
ret
Function at 0x100719d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x10170a75
call fcn.10075e55
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.100533e7
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x10071a24
call fcn.100533e7
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x10071a35
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x10071a42
or eax, 0xffffffff
jmp 0x10071b9e
mov ecx, esi
call fcn.1007152b
mov dword [ebp - 0x14], eax
call fcn.1005d228
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x10071ac0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x10071ac0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10071ac0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.1004a9ac
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x10071ac0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x10071ac0
mov ecx, ebx
call fcn.100658ea
test eax, eax
je 0x10071ac0
push 0
mov ecx, ebx
call fcn.10065905
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.1005ef39
push dword [ebp - 0x14]
call fcn.1005d180
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.100717e1
xor edi, edi
cmp eax, edi
je 0x10071b1d
test byte [esi + 0x3c], 0x10
je 0x10071b07
push 4
pop edi
mov ecx, esi
call fcn.10065784
test ax, 0x100
je 0x10071afd
push 5
pop edi
push edi
mov ecx, esi
call fcn.1005ccf1
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x10071b1d
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.10065ab3
or dword [ebp - 4], 0xffffffff
jmp 0x10071b48
cmp dword [ebp - 0x28], edi
je 0x10071b56
push 1
mov ecx, ebx
call fcn.10065905
cmp dword [ebp - 0x2c], edi
je 0x10071b66
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x10071b7f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x10071b7f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.10071565
cmp dword [esi + 0x58], edi
je 0x10071b9b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.10075efa
ret
Function at 0x10071bcf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.100533e7
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10071c06
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.100717e1
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x10071c5e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x10071c7e
cmp dword [edi + 0x54], 0
jne 0x10071c7e
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.100533e7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10071c25
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x10075e13
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101f1dd0]
jne 0x10075e1d
repz ret
jmp fcn.1008234c
Function at 0x1007cef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x1007cf2d
cmp dword [ebp + 0x14], edi
je 0x1007cf2d
cmp ecx, edi
jne 0x1007cf34
call fcn.1007cd77
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.1007638c
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x1007cf48
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x1007cf69
cmp ebx, 0xffffffff
je 0x1007cf58
push ebx
push edi
push ecx
call fcn.10076580
add esp, 0xc
cmp esi, edi
je 0x1007cf15
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x1007cf15
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x1007cf85
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x1007cf8c
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x1007d07d
test word [esi + 0xc], 0x10c
je 0x1007cfe0
mov eax, dword [esi + 4]
test eax, eax
je 0x1007cfe0
jl 0x1007d0de
cmp ebx, eax
mov edi, ebx
jb 0x1007cfb1
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x1007d085
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10075976
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x1007d075
cmp ebx, dword [ebp - 0xc]
jb 0x1007d04d
cmp dword [ebp - 0xc], 0
je 0x1007d00a
mov ecx, accept
xor edx, edx
cmp ebx, ecx
jbe 0x1007cfff
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x1007d006
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x1007d015
mov eax, accept
cmp ebx, eax
ja 0x1007d015
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x1007d0b1
push eax
push dword [ebp - 8]
push esi
call fcn.10082e45
pop ecx
push eax
call fcn.1008ce7f
add esp, 0xc
test eax, eax
je 0x1007d0f0
cmp eax, 0xffffffff
je 0x1007d0de
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x1007d075
push esi
call fcn.1008c79e
cmp eax, 0xffffffff
pop ecx
je 0x1007d0e2
cmp dword [ebp - 4], 0
je 0x1007d0b1
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x1007cf94
mov eax, dword [ebp + 0x14]
jmp 0x1007cf2f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x1007d09c
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.10076580
add esp, 0xc
call fcn.1007cd77
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x1007cf25
cmp dword [ebp + 0xc], 0xffffffff
je 0x1007d0c7
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.10076580
add esp, 0xc
call fcn.1007cd77
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x1007cf25
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x1007cf2f
or dword [esi + 0xc], 0x10
jmp 0x1007d0e2