joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45aba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45abcb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x45abef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x45ac0a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x45f3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45f402
call fcn.004655aa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45f402
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45f3f9
xor eax, eax
jmp 0x45f40a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045f410
pop edi
pop esi
pop ebx
ret 4

Function at 0x465fcc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x465ffa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x466018
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465f32
jmp 0x466018
mov eax, dword [esi + 0x14]
test eax, eax
je 0x466018
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465f32
test edi, edi
mov eax, edi
jne 0x466002
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401f70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ecx
push str.C:WINDOWS_system32drivers_vmmouse.sys
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x401f91
mov al, 1
jmp 0x401fdf
push str.C:WINDOWS_system32drivers_vmhgfs.sys
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x401fb0
mov al, 1
jmp 0x401fdf
push str.C:WINDOWS_system32driversVBoxMouse.sys
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], str.Oj8epH9wKEgV1bbyqdgcrXSsO09nEriLo1yIW4qLGyeERKVIU8fklGx2fKa2aNgw24VKROyQALBSJM8MePSNlfFOA6sHcSjygtalQS0qIPYXeFBfFkOdlmQ0Cg58gC7AFD7cqjTFRapvfrmzETEU1UmgEnzidCxnXlBOYi9ir7mo4LEjCkU3TV9QFtTsd7GITNqsHajxOlrBfhbnAnrDyNmQpC16MGqefSjCQQXbzwpSj1wDLUxrJRHa6WudYpE3HAtsj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vSk8mDOtbymy4JiFSPhEQcOHz7CkyDowsa7eNRJoEH9hDdrPiPoKWU4lmMScpcPEmxpOlJTE2IBr8y8KigiiSahtwdiqBHrBYhYUvh12oBe2hKhtAR05BFs7eKv2xFqNrFQ746UlJMn5GXkqOrqo6e5nyLL5RnxNYHuAgiuYikCg2wc84r6MmKXmosrnOEoC5K0In32g56EUwjHAJBaYqdm9lR4k4XwJvs77FCdrPLj9SMzgs1sTiDSHOPk7A96CHeBCOIPP4AuqYUWCoMH4JDqKDeDQkiPxePn4Slsc0uh3rdQ28Uc1mA4taO8JsYsT9lD0xwYgJOzSIb3trSzU1h4JTS3SMdlAdwFGuFKLmVxLh1NVC2PuMYo8d50lUN4aJJDRIwNFXiMslHr6ueOX3oCts836criVxVCHr8M7IofFT4tnlWiXorXL2Qy7JAPSVCfuen9T2El2dfP1LDz1D5YAKPNGkJHLXc0oMrpCVrsH9YtM2GAbo8F1Re90qrPtILgojjrH3VLXxnwI1XiFohcA90LJkzO2YkEotcCNRhzi7YXJIaAWiK7SWI2JxsB9lIUUsRaX62QnBodIRPybjmQWTmY0ytxmbEUeXFdIK1a4Ni4uWlnf8vKiP9hMT6ngBFFkbxM34p
cmp dword [ebp - 4], 0xffffffff
je 0x401fdd
mov al, 1
jmp 0x401fdf
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x401ff0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48a870]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], str.NRwV7IjjSjp6T5bYG14Rp4L5liw6mwVGD8U2LQL113ufeNL1OrnyDSL9Ssc1ajF7rws0yw3JlpNhLhxRwK2hScYiSjWgj8sRtF3DqK7uOwUpmYMkQvEwdSr3RHPpw3q32yuy6EyMYpP574YhTEMtxSRsSmjjRLVKxzB4czKHU021yhQzSuX7DkI3ASm3JBx7tt8i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2YunRxCndVwMmYMbNOC3w6jPSHT0vJ7Doql9isfAYPy12gOYjCqEXaYv6bVyVE2sz4XVoWrrBuf70VcbhrgtR5SR9Hmyd76FWGKxGrMCX4MYjptqHRKLnVdmcVlHmBWiFFbsIKVSz5dtRnQ7J9pty2kVz3De6QIuHmYHmtmNOqeOyhS21ELLVo9pa1MV929DXxHkAGAPSO0Bpvt5SHnDmI9BUU5EC4FlkTMT9lqgXtv17065dT3KVKVHKCEmkok66q1DXtIIaoxm6bOHi60mUg7kuIsdLXGg5mto84ogyjH4s1hvSqIoRnV4H6WpattMCuIerlERE8jD969yU9TVtDnyd0XvGP00UVbP9XDULCu7e6OrjSwlWxnqnpm3zk4F7zAzPVwK3lDP8MzmO7vNq5LdPPGk3xhwCYwOedb77HMbsrRWA2EuJLXlF6Sgz1rEQrq6Jm5D1pf7YqfhKAxLoDXarhanKnly73x2vmeRhqEfH5iLmuz6EdkU7G7SK6TaW5BqMz585eW2C8ciplvYTrctjLTs0dpFYchSLKeu7YsNzpiTLSQIHdEHIqj3WrKr2NH4Kpa0Uqk5m67xYS8pubVrKCKFjFcbr3n0A8KnclomjpyWtFQUy0fcR5MszUF59WiUq95qGUqUEEajbrXpsY3wBWUj8lTSDqSmMmqUfIbLnleoEkTh85XVCIBT9edO2g16
mov dword [ebp - 8], 0
rdtsc
mov dword [ebp - 0xc], eax
rdtsc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
cmp eax, 0x64
jbe 0x402036
mov dword [ebp - 0x10], 1
jmp 0x40203d
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413725
mov esp, ebp
pop ebp
ret
Function at 0x402290
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4022f1
push str.wine_get_unix_file_name
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4022c9
mov dword [ebp - 8], 1
jmp 0x4022d0
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
jmp 0x4022f3
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x402410
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x48a870]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax]
test ecx, ecx
jne 0x402484
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40244f
mov eax, dword [ebp - 0x18]
jmp 0x40257b
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40247e
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
jmp 0x40257b
mov edx, dword [ebp - 0x1c]
mov byte [edx], 1
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00404800
add esp, 4
push eax
push 0x4864c8
push 0x17
push 0
push 0x42e4f4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4024bd
mov eax, dword [ebp - 0x18]
jmp 0x40257b
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x80
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x402505
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 8]
call ecx
mov eax, dword [ebp - 0x18]
jmp 0x40257b
mov dword [ebp - 0x20], str.JW3M1YSO2FXtJC6xXrjSMS5JDYIBtaCq7HmPG2PWJNVKdqB4LR4OURARPykN9mIrEMOH8gluBakqrKREzH0htm1FHRCh9XDilWpls6YdQKubdwJv
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0x20
mov eax, dword [ebp + 0xc]
push eax
push 0x441a8c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 0x50]
call ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x40255c
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x18]
jmp 0x40257b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413725
mov esp, ebp
pop ebp
ret 8
Function at 0x40a940
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b8f8
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x48a870]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push 0x434207
lea eax, [ebp + 8]
push eax
call fcn.0040fd80
add esp, 8
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x40a9b1
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407d50
mov al, byte [ebp - 0x12]
jmp 0x40aa69
mov dword [ebp - 0x28], str.3QfMqFQPElPm3xVVC6SFfA88ed9hY2GDELDUkFkR5aJ2RjvI7b8kxQtTttwoKKaj1GamMjSx29cHzdNqY4O0IVkyomiORt9Y70GGoLgYWVt3pEFJwx1k0n0duJG5VEO85uXawmTOT7iXRDbk6RIKqLywPmn0UpCa2lJSnxYbs9NGOSAW9ETuTULD5TvF4uaze6IE2UlKQmCFtGnkdUuu6J6ftTGp0hhRXJx6kdzHQ1PCk0dbT2lvAgGuOMXQDOYwFzMz0jTIMfWyfrYiSOi0HIp8uSPRgKu4Mn2dxej3B3WInfLrVr7hFqOlupeBrqg2RfLTk8snOlhDeiQoRtxltReSlsAs6LVYyHsjxjKXuWM7E7H0DRfY0FzYa4K6tnjsyEvScceyjxPdMQ23
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp + 8]
push edx
call fcn.0040b360
mov dword [ebp - 0x30], eax
push str.Name
push 0x434399
push str.SELECT__FROM_Win32_Process
push str.ROOTcimv2
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 2
jl 0x40aa16
mov byte [ebp - 0x13], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407d50
mov al, byte [ebp - 0x13]
jmp 0x40aa69
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407d50
mov al, byte [ebp - 0x14]
jmp 0x40aa69
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40d4b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bae8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x48a870]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x40], 0
je 0x40d4f0
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x40d4fc
mov al, 1
jmp 0x40d69f
mov dword [ebp - 0x54], 8
call fcn.004071c0
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.004071c0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00407180
add esp, 8
movzx eax, al
test eax, eax
je 0x40d53f
xor al, al
jmp 0x40d69f
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00411bf0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.00407ca0
mov ecx, eax
call fcn.00404c80
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.004028c0
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407ca0
mov ecx, eax
call fcn.00404c80
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x40]
call fcn.0040f690
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40d5ba
cmp dword [ebp - 0x3c], 1
je 0x40d5c1
cmp dword [ebp - 0x3c], 3
je 0x40d65b
jmp 0x40d673
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407ca0
mov ecx, eax
call fcn.00404c80
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40d624
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407ca0
mov ecx, eax
call fcn.00404c80
push eax
call fcn.0041669f
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40d624
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407d50
mov al, byte [ebp - 0x34]
jmp 0x40d69f
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x40d647
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407d50
mov al, byte [ebp - 0x31]
jmp 0x40d69f
cmp dword [ebp - 0x38], 0
jne 0x40d659
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0040ca80
jmp 0x40d68b
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407d50
mov al, byte [ebp - 0x33]
jmp 0x40d69f
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407d50
mov al, byte [ebp - 0x32]
jmp 0x40d69f
jmp 0x40d552
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413725
mov esp, ebp
pop ebp
ret
Function at 0x410bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x410c14
xor eax, eax
jmp 0x410c94
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410c2b
xor eax, eax
jmp 0x410c94
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x410c77
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x410c77
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x410c4e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x410c83
xor eax, eax
jmp 0x410c94
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x410c91
xor eax, eax
jmp 0x410c94
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x422648
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48a870]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00419600
mov dword [ebp - 0x14], eax
cmp dword [0x48ce18], edi
jne 0x422739
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4226c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x422819
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x422819
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x422819
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x48ce18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x48ce1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x48ce20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48ce28], eax
test eax, eax
je 0x422736
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48ce24], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42275e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x422751
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x422773
push 4
pop eax
jmp 0x42281b
cmp dword [ebp - 0x14], edi
je 0x422773
push dword [0x48ce18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x422758
mov eax, dword [0x48ce24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4227d1
cmp dword [0x48ce28], esi
je 0x4227d1
push eax
call ebx
push dword [0x48ce28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4227d1
test eax, eax
je 0x4227d1
call ecx
test eax, eax
je 0x4227c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4227c6
test byte [ebp - 8], 1
jne 0x4227d1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x422801
mov eax, dword [0x48ce1c]
cmp eax, esi
je 0x4227fe
push eax
call ebx
test eax, eax
je 0x4227fe
call eax
mov edi, eax
test edi, edi
je 0x4227fe
mov eax, dword [0x48ce20]
cmp eax, esi
je 0x4227fe
push eax
call ebx
test eax, eax
je 0x4227fe
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x48ce18]
call ebx
test eax, eax
je 0x422819
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42281b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413725
leave
ret
Function at 0x4267d5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041a326
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42680d
xor eax, eax
jmp 0x426839
cmp esi, dword [ebp - 4]
je 0x426836
cmp dword [ebp + 0xc], 0
je 0x426836
push dword [edi + 0x9c]
call fcn.004263e3
push dword [edi + 0x9c]
mov esi, eax
call fcn.0041452e
pop ecx
pop ecx
cmp esi, eax
je 0x426809
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x1000eb82
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, str.system.ini
mov esi, 0xffff
push edi
push esi
push str.TemporalQuality
mov ebx, 0x10013890
push ebx
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntA]
movzx eax, ax
mov ecx, 0x2710
mov word [0x10013c50], ax
cmp ax, si
je 0x1000ebc7
imul eax, eax, 0x3ff
xor edx, edx
div ecx
mov word [0x10013c50], ax
push edi
push esi
push str.SpatialQuality
push ebx
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntA]
movzx eax, ax
mov word [0x10013c4e], ax
cmp ax, si
je 0x1000ebf8
imul eax, eax, 0x3ff
xor edx, edx
mov ecx, 0x2710
div ecx
mov word [0x10013c4e], ax
push edi
push 1
push str.FractionInterCodeBook
push ebx
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntA]
xor ecx, ecx
mov edx, 0xfffe
test eax, eax
mov ax, word [0x10013c4a]
push edi
setne cl
and ax, dx
push 0
push str.LogRequested
or cx, ax
push ebx
mov word [0x10013c4a], cx
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntA]
mov cx, word [0x10013c4a]
neg eax
push edi
push 0x15
pop esi
sbb eax, eax
mov edx, 0xfffd
push esi
and eax, 2
and cx, dx
push 0x10003bc8
or cx, ax
push ebx
mov word [0x10013c4a], cx
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntA]
movzx eax, ax
mov ecx, 0x7fff
cmp ax, cx
ja 0x1000ec7e
test ax, ax
jne 0x1000ec7b
xor eax, eax
inc eax
movzx esi, ax
push edi
push 0xa
mov word [0x10013c4c], si
pop esi
push esi
push 0x10003be0
push ebx
call dword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntA]
movzx eax, ax
mov ecx, 0x7fff
cmp ax, cx
ja 0x1000ecae
test ax, ax
jne 0x1000ecab
xor eax, eax
inc eax
movzx esi, ax
pop edi
mov word [0x10013c48], si
xor eax, eax
pop esi
inc eax
pop ebx
ret