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

Disassembly:
push 0x120
mov eax, 0x422008
call fcn.004127a4
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x78], eax
mov eax, esi
call fcn.0040b4a8
mov edi, eax
test edi, edi
jne 0x40b57d
push 0x4270e0
lea ecx, [ebp - 0x30]
call fcn.0040219b
and dword [ebp - 4], edi
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.0040b3f3
mov edi, eax
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 1
call fcn.00403cbc
push 0x426388
mov byte [ebp - 4], 2
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push dword [sym.imp.kernel32.dll_FindResourceA]
mov ecx, esi
lea edi, [ebp - 0x90]
call fcn.00406994
mov byte [ebp - 4], 3
mov dword [ebp - 0x84], 0x427070
mov dword [ebp - 0x80], 0x42705c
mov dword [ebp - 0x7c], 0x41
lea ecx, [ebp - 0x58]
push ecx
lea esi, [ebp - 0x84]
mov ecx, eax
call fcn.00403827
lea eax, [ebp - 0x58]
mov dword [esp], 0x428d3c
push eax
call main
mov ebx, dword [sym.imp.kernel32.dll_LoadResource]
push edi
push dword [esi + 0x40]
call ebx
test eax, eax
jne 0x40b5ff
push 0x4270f8
lea ecx, [ebp - 0x30]
call fcn.0040219b
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x30]
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.0040b3f3
mov edi, eax
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], 5
call fcn.00403cbc
push 0x426388
mov byte [ebp - 4], 6
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push ebx
mov ecx, esi
lea edi, [ebp - 0x90]
call fcn.00406994
mov byte [ebp - 4], 7
mov dword [ebp - 0x84], 0x427070
mov dword [ebp - 0x80], 0x42705c
mov dword [ebp - 0x7c], 0x46
jmp 0x40b55c
push eax
call dword [sym.imp.kernel32.dll_LockResource]
cmp dword [esi + 0x3c], 6
mov ebx, eax
jne 0x40b62f
mov esi, dword [esi + 0x1c]
and esi, 0xf
jbe 0x40b620
dec esi
movzx ecx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x40b616
movzx ecx, word [eax]
mov edx, dword [ebp - 0x78]
add ecx, ecx
mov dword [edx], ecx
lea ebx, [eax + 2]
jmp 0x40b63e
push edi
push dword [esi + 0x40]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, ebx
call fcn.00412827
ret 4

Function at 0x40d6f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c648]
jne 0x40d6fe
repz ret
jmp fcn.00414f48
Function at 0x404811
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [0x4064bc], ebx
jne 0x404847
push 0x4064a0
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x4064bc], 1
push 0x4064a0
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4064b8]
mov edi, eax
cmp eax, ebx
je 0x4048ab
cmp dword [ebp - 8], ebx
jne 0x4049eb
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x40487e
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x40486f
jmp 0x40489c
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00404666
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x40485d
cmp dword [ebp - 8], ebx
jne 0x4049eb
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je 0x4049eb
mov edi, dword [0x4064b8]
jmp 0x4048eb
cmp dword [edi + 0xc], 0x3f
jl 0x404985
mov edi, dword [edi]
cmp edi, ebx
jne 0x4048df
push 0x310
push 8
push dword [0x406464]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x4049e2
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x4049d4
push ebx
push ebx
push edi
push 0x4046b7
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, ebx
je 0x4049cb
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404666
mov eax, dword [0x4064b8]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x40497d
mov dword [eax + 4], edi
mov dword [0x4064b8], edi
jmp 0x4049eb
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00404666
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
jmp 0x4049eb
push dword [edi + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push ebx
push dword [0x406464]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x4064a0
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.004215a0
test al, al
je 0x404960
mov ecx, esi
call fcn.004217b0
test al, al
jne 0x404960
cmp dword [esi + 0x14], 8
xorps xmm0, xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x540
mov dword [esp + 0x18], str.open
jb 0x404903
mov esi, dword [esi]
cmp dword [edi + 0x9c], 8
lea eax, [edi + 0x88]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], 0
jb 0x404920
mov eax, dword [eax]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404960
mov eax, dword [esp + 0x44]
test eax, eax
je 0x404960
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x44]
cmp eax, 0x102
jne 0x40496a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00409810
test al, al
je 0x404960
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b0d1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.004c67e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40b12d
cmp dword [ebp - 0x114], 5
ja 0x40b129
jne 0x40b12d
cmp dword [ebp - 0x110], 0
jbe 0x40b12d
mov al, 1
jmp 0x40b12f
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c4269
leave
ret

Function at 0x40b13b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.004c67e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40b183
xor al, al
jmp 0x40b18e
cmp dword [ebp - 0x114], 6
sbb al, al
inc al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c4269
leave
ret

Function at 0x40b19a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x110
xor ebx, ebx
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004c67e0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40b1e4
xor al, al
jmp 0x40b200
cmp dword [ebp - 0x114], 6
jbe 0x40b1f1
mov al, 1
jmp 0x40b200
jb 0x40b1fe
cmp dword [ebp - 0x110], 2
jb 0x40b1fe
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c4269
leave
ret
Function at 0x40f5cf
Capabilities:
Read .ini file

Disassembly:
push 0x2c4
mov eax, 0x4eb69e
call fcn.004e624d
mov esi, ecx
mov dword [ebp - 0x2d0], esi
and dword [ebp - 0x22c], 0
xor eax, eax
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x2cc]
call fcn.0040f578
push str.config.ini
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00407fc0
push eax
lea ecx, [ebp - 0x254]
call fcn.00402fe0
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 3
call fcn.004032d0
lea ecx, [ebp - 0x254]
call fcn.004216a0
mov ebx, 0x50e6c0
test al, al
je 0x40f79b
push 0x20a
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.004c67e0
add esp, 0xc
lea eax, [ebp - 0x254]
cmp dword [ebp - 0x240], 8
cmovae eax, dword [ebp - 0x254]
push eax
push 0x104
lea eax, [ebp - 0x224]
push eax
push ebx
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x224], 0
je 0x40f79b
lea ecx, [ebp - 0x26c]
call fcn.0040f521
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00407fc0
push eax
lea ecx, [ebp - 0x284]
call fcn.00402fe0
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00403de0
lea ecx, [ebp - 0x284]
call fcn.004032d0
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.004032d0
lea ecx, [ebp - 0x23c]
call fcn.004217b0
test al, al
je 0x40f79b
push str.HaoZip.dll
lea ecx, [ebp - 0x26c]
call fcn.00403020
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.004231f0
add esp, 0xc
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.004032d0
lea ecx, [ebp - 0x284]
call fcn.004216a0
test al, al
je 0x40f790
push 0x10
pop edx
lea ecx, [ebp - 0x23c]
call fcn.00422e50
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.00402fe0
lea ecx, [ebp - 0x284]
call fcn.004032d0
jmp 0x40f8a0
lea ecx, [ebp - 0x284]
call fcn.004032d0
lea ecx, [ebp - 0x29c]
call fcn.004451d0
push 0x50fb34
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 8
call fcn.00403020
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x29c]
call fcn.00445220
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 8
call fcn.004032d0
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00446e90
push eax
lea ecx, [ebp - 0x23c]
call fcn.00403de0
lea ecx, [ebp - 0x2cc]
call fcn.004032d0
lea ecx, [ebp - 0x23c]
call fcn.004217b0
test al, al
je 0x40f835
push 0x10
pop edx
lea ecx, [ebp - 0x23c]
call fcn.00422e50
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.00402fe0
jmp 0x40f895
lea ecx, [ebp - 0x2b4]
call fcn.0040ef6f
lea edx, [ebp - 0x23c]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2b4]
call fcn.00422370
lea ecx, [ebp - 0x23c]
call fcn.004217b0
test al, al
je 0x40f882
push 0x10
pop edx
lea ecx, [ebp - 0x23c]
call fcn.00422e50
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.00402fe0
jmp 0x40f88a
push ebx
mov ecx, esi
call fcn.00403020
lea ecx, [ebp - 0x2b4]
call fcn.004032d0
lea ecx, [ebp - 0x29c]
call fcn.00431760
lea ecx, [ebp - 0x254]
call fcn.004032d0
lea ecx, [ebp - 0x23c]
call fcn.004032d0
mov eax, esi
call fcn.004e6208
ret
Function at 0x4111ba
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, edx
push 0
push eax
call fcn.004c67e0
add esp, 0xc
mov esi, SysReAllocString
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41121f
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp + 8]
or eax, 0x20019
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x411230
cmp eax, 2
jne 0x4112d2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c4269
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
lea esi, [edi + eax*2]
pop eax
cmp word [esi - 2], ax
je 0x411277
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x411277
lea eax, [ebp - 0x20c]
mov edx, 0x208
push eax
mov ecx, esi
call fcn.00410e5c
push dword [ebp + 8]
mov edx, edi
mov ecx, SysReAllocString
call fcn.004111ba
pop ecx
test eax, eax
je 0x4112ac
xor ecx, ecx
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x21c]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x411250
xor eax, eax
mov word [esi - 2], ax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41121f
xor eax, eax
jmp 0x411222
Function at 0x4113c5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x4eb912
call fcn.004e6219
mov ecx, dword [ebp + 0x10]
call fcn.00402f60
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4113e7
xor al, al
jmp 0x4114eb
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x20]
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push ecx
push 0x200
call fcn.0041158d
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
and dword [ebp - 0x14], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10], eax
mov eax, edi
jb 0x411424
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
test esi, esi
jne 0x41144d
test eax, eax
jne 0x41144d
mov bl, 1
jmp 0x4114e1
cmp eax, 1
je 0x411461
cmp eax, 2
je 0x411461
test eax, eax
mov ecx, 0x490
cmovne esi, ecx
cmp esi, 0xea
jne 0x4114ad
mov ecx, dword [ebp - 0x10]
cmp ecx, 1
jbe 0x4114dc
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xb]
push eax
lea eax, [ecx + 8]
mov byte [ebp + 0xb], 0
push edx
push eax
mov ecx, edx
call fcn.0041158d
cmp dword [edi + 0x14], 8
jb 0x411496
mov edi, dword [edi]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4114de
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00411569
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.00411569
push dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
call fcn.00402f80
test esi, esi
sete bl
lea ecx, [ebp - 0x20]
call fcn.00405140
mov al, bl
call fcn.004e61f3
ret 0xc

Function at 0x4116f5
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and dword [esi], 0
cmp dword [0x53ab9c], 0
jne 0x411762
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004c67e0
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x53ab8c
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x210]
push eax
call fcn.00402f80
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004c4269
leave
ret
Function at 0x4117e1
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x53d100]
mov dword [ebp - 0x220], ecx
push ebx
push esi
push edi
test eax, eax
jle 0x411813
inc eax
mov dword [0x53d100], eax
mov al, 1
jmp 0x4118eb
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
xor bl, bl
call fcn.004117a5
test al, al
je 0x4118d8
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4118d8
push str.ImpersonateLoggedOnUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 0x21c]
push esi
call eax
test eax, eax
je 0x4118cf
mov ebx, dword [ebp - 0x220]
inc dword [0x53d100]
cmp dword [ebx], 0
je 0x411877
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], esi
xor esi, esi
mov bl, 1
cmp dword [0x53ab84], esi
jne 0x4118cf
push 0x20a
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004c67e0
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x53ab74
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00402f80
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4118de
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x4118e9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c4269
leave
ret
Function at 0x413ee8
Capabilities:
Check os version

Disassembly:
push 0x130
mov eax, 0x4ebdf9
call fcn.004e624d
push 0x110
lea eax, [ebp - 0x138]
mov dword [ebp - 0x13c], 0x114
push 0
push eax
call fcn.004c67e0
xor eax, eax
add esp, 0xc
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x413fa6
cmp dword [ebp - 0x138], 5
jne 0x413fa6
cmp dword [ebp - 0x134], 1
jne 0x413fa6
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403020
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov esi, 0x50f934
mov edx, esi
call fcn.0041f190
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0041f220
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x413f7f
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x413f8d
mov edx, 0x514d10
call fcn.0041f050
test al, al
jne 0x413fae
cmp dword [ebp - 0x18], 0
je 0x413fae
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 9
call fcn.004032d0
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.004e6208
ret
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.004032d0
or dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x413fa8
Function at 0x41507f
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x64
push 0x400000
mov ebx, ecx
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
push dword [ebx + 0x168]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 0x400000
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 0
push 0x80
push dword [ebx + 0x168]
call dword [sym.imp.USER32.dll_SendMessageW]
push ecx
mov ecx, ebx
call fcn.0041cb54
mov ecx, ebx
call fcn.0041515e
mov ecx, dword [ebx + 0x168]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.00433910
pop ecx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x415132
mov eax, dword [ebp - 8]
push 1
push 0x132
push 0x1de
add eax, 0xfffffec4
push eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffe18
push eax
push dword [ebx + 0x168]
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 0x3e8
push 1
push dword [ebx + 0x168]
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0040a804
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.004c4269
leave
ret 8

Function at 0x4167f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x5153b0
movzx eax, dx
mov ebx, 0x400000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41685a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41685a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41685a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41685a
push edi
call fcn.004c9dd0
mov dword [ebp - 4], eax
pop ecx
test eax, eax
jne 0x416861
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push edi
push esi
push eax
call fcn.004c6260
mov ecx, dword [ebp - 4]
mov edx, edi
push 1
call fcn.004165d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416884
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, esi
call fcn.00416595
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x41689e
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, edi
jmp 0x41685c
Function at 0x4168a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x5153b0
push 0xce
mov ebx, 0x400000
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x416911
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x416911
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x416911
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [ebp + 0xc]
push eax
push 2
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x416911
push dword [edi]
call fcn.004c4acc
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
jne 0x416918
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi]
push esi
push eax
call fcn.004c6260
add esp, 0xc
mov al, 1
jmp 0x416913

Function at 0x416b3e
Capabilities:
Inspect load icon resource

Disassembly:
push 0x2c
mov eax, 0x4ec260
call fcn.004e624d
mov ebx, ecx
push 0x64
push 0x400000
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x80
push dword [ebx + 0x168]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 0x400000
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 0
push 0x80
push dword [ebx + 0x168]
call dword [sym.imp.USER32.dll_SendMessageW]
push ecx
mov ecx, ebx
call fcn.0041cb54
mov ecx, ebx
call fcn.00416c20
mov ecx, dword [ebx + 0x168]
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.00433910
pop ecx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x416bec
mov eax, dword [ebp - 0x14]
push 1
push 0x104
push 0x19a
add eax, 0xfffffef2
push eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffe5c
push eax
push dword [ebx + 0x168]
call dword [sym.imp.USER32.dll_MoveWindow]
push str.aq_12
lea ecx, [ebp - 0x38]
call fcn.004031c0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.00408962
mov ecx, eax
call fcn.00408b62
lea ecx, [ebp - 0x38]
call fcn.00403170
xor eax, eax
inc eax
call fcn.004e6208
ret 8

Function at 0x41a6ae
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x30
pop edi
push edi
mov esi, ecx
push 0
push esi
call fcn.004c67e0
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.004c67e0
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a70f
cmp dword [ebp - 0x114], 6
jae 0x41a712
push 0x2c
pop edi
and dword [esi + 4], 0
push ebx
mov dword [esi], edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi + 0xc], ebx
mov ecx, dword [0x53c1a8]
and dword [esi + 0x28], 0
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c4269
leave
ret 0x18