joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40738c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4331f0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 4
mov esi, ecx
mov edx, str.installerresult
pop ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
or edi, 0xffffffff
call fcn.00406b9b
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4073e8
cmp dword [ebp - 0x24], ebx
jne 0x4073e8
cmp dword [ebp - 0x28], ebx
cmove edi, dword [ebp - 0x2c]
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00405e0a
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412f2f
mov esp, ebp
pop ebp
ret

Function at 0x407407
Capabilities:
Enumerate processes

Disassembly:
push 0x254
mov eax, 0x424dd0
call fcn.00416b41
mov edi, ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4074a8
mov ecx, edi
call fcn.00403378
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x28]
call fcn.0040698e
and dword [ebp - 4], 0
movzx ecx, byte [0x43546a]
push ecx
push eax
push ecx
lea eax, [ebp - 0x260]
mov ecx, edi
push eax
call fcn.0040824b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00405a11
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x407448
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00416af0
ret
Function at 0x4074fe
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push 0x858
mov eax, 0x424e0e
call fcn.00416b41
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x85c], eax
mov edi, ebx
lea eax, [ebp - 0x850]
mov dword [ebp - 0x850], ebx
push eax
push edx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push ecx
mov dword [ebp - 0x858], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407649
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x81c]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x407623
lea eax, [ebp - 0x858]
inc edi
push eax
push 0x20119
push 0
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40760e
mov edx, dword [ebp - 0x858]
lea ecx, [ebp - 0x834]
push str.DisplayName
call fcn.0040710d
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x824], 0
jbe 0x4075ef
lea edx, [ebp - 0x834]
lea ecx, [ebp - 0x84c]
call fcn.004068bf
mov byte [ebp - 4], 1
movzx ecx, byte [0x43546a]
push ecx
push eax
push ecx
mov ecx, dword [ebp - 0x85c]
lea eax, [ebp - 0x864]
push eax
call fcn.0040824b
push 0
push 1
lea ecx, [ebp - 0x84c]
call fcn.00405a11
push dword [ebp - 0x858]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
push 0
push 1
call fcn.00405e0a
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x81c]
push eax
push edi
push dword [ebp - 0x850]
mov dword [ebp - 0x854], 0x400
call ebx
test eax, eax
je 0x407561
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00416af0
ret

Function at 0x4076fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4331f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0x104
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x105
ja 0x407745
test eax, eax
je 0x407745
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00405d76
inc bl
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00412f2f
mov esp, ebp
pop ebp
ret
Function at 0x407757
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push 0x4c
mov eax, 0x424e71
call fcn.00416b41
mov edi, edx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x40], al
mov dword [ebp - 4], eax
push 0x10000
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
call fcn.004164a6
mov ebx, eax
mov dword [ebp - 0x54], ebx
pop ecx
test ebx, ebx
je 0x4078fa
cmp dword [edi + 0x14], 8
jb 0x4077a8
mov edi, dword [edi]
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4078f3
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4077f1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4078fa
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40783c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4078fc
cmp dword [ebp - 0x50], 0
je 0x407874
push 0
push dword [ebp - 0x50]
push ebx
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x407853
push 0
lea eax, [ebp - 0x50]
push eax
push 0x10000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407823
xor ebx, ebx
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4078fc
test eax, eax
je 0x407853
push 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x14
push eax
lea eax, [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4078d8
xor ebx, ebx
cmp dword [ebp - 0x4c], ebx
jbe 0x4078d5
movzx eax, byte [ebp + ebx - 0x28]
lea ecx, [ebp - 0x40]
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef]
push eax
call fcn.0040521f
movzx eax, byte [ebp + ebx - 0x28]
lea ecx, [ebp - 0x40]
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
push eax
call fcn.0040521f
inc ebx
cmp ebx, dword [ebp - 0x4c]
jb 0x40789f
mov ebx, dword [ebp - 0x54]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00416538
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x40]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
push eax
mov byte [esi], bl
call fcn.00405675
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00405a11
mov eax, esi
call fcn.00416af0
ret
Function at 0x407926
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x28
mov eax, 0x424eaf
call fcn.00416b41
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
xor eax, eax
mov dword [ebp - 4], ebx
push 0xf0000000
inc eax
mov dword [ebp - 0x28], ebx
push eax
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x407a13
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x407a09
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x407996
mov esi, dword [esi]
push ebx
push eax
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x407a00
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x407a00
mov esi, ebx
cmp dword [ebp - 0x2c], esi
jbe 0x407a00
movzx eax, byte [ebp + esi - 0x20]
mov ecx, edi
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef]
push eax
call fcn.0040521f
movzx eax, byte [ebp + esi - 0x20]
mov ecx, edi
and eax, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
push eax
call fcn.0040521f
inc esi
cmp esi, dword [ebp - 0x2c]
jb 0x4079cc
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
call fcn.00416af0
ret
Function at 0x407b63
Capabilities:
Get common file path
Get file version info

Disassembly:
push 0x25c
mov eax, 0x424f60
call fcn.00416b41
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x258], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
push 0x104
lea eax, [ebp - 0x224]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x258], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x407daf
xor ecx, ecx
mov dword [ebp - 0x228], 7
push eax
lea eax, [ebp - 0x224]
mov word [ebp - 0x23c], cx
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], ebx
call fcn.00405d76
mov edi, str._ntoskrnl.exe
mov dword [ebp - 4], 1
push edi
call fcn.00413c34
pop ecx
push eax
push edi
lea ecx, [ebp - 0x23c]
call fcn.00402dc8
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x260]
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x407da0
push ebx
call fcn.004164a6
mov edi, eax
pop ecx
test edi, edi
je 0x407da0
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push edi
cmovae eax, dword [ebp - 0x23c]
push ebx
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407d99
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x25c]
push eax
push 0x42d714
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x407d99
mov ebx, dword [ebp - 0x25c]
cmp dword [ebx], 0xfeef04bd
jne 0x407d99
movzx edx, word [ebx + 0xa]
lea ecx, [ebp - 0x254]
call fcn.004052c3
push eax
mov ecx, esi
call fcn.00402b48
push 0
push 1
lea ecx, [ebp - 0x254]
call fcn.00405a11
push 0x42cde4
call fcn.00413e10
pop ecx
push eax
push 0x42cde4
mov ecx, esi
call fcn.0040532f
movzx edx, word [ebx + 8]
lea ecx, [ebp - 0x254]
call fcn.004052c3
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004053d1
push 0
push 1
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.00405a11
push 0x42cde4
call fcn.00413e10
pop ecx
push eax
push 0x42cde4
mov ecx, esi
call fcn.0040532f
movzx edx, word [ebx + 0xe]
lea ecx, [ebp - 0x254]
call fcn.004052c3
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004053d1
push 0
push 1
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.00405a11
push 0x42cde4
call fcn.00413e10
pop ecx
push eax
push 0x42cde4
mov ecx, esi
call fcn.0040532f
movzx edx, word [ebx + 0xc]
lea ecx, [ebp - 0x254]
call fcn.004052c3
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004053d1
push 0
push 1
lea ecx, [ebp - 0x254]
call fcn.00405a11
push edi
call fcn.00416538
pop ecx
push 0
push 1
lea ecx, [ebp - 0x23c]
call fcn.00405e0a
mov eax, esi
call fcn.00416af0
ret
Function at 0x40983c
Capabilities:
Check if file exists
Delete file

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0xffffffff
jne 0x4098a5
cmp byte [edi + 0xc], 2
jne 0x4098a5
lea esi, [edi + 0x20]
mov ecx, esi
call fcn.0040764f
cmp dword [esi + 0x14], 8
jb 0x409861
mov eax, dword [esi]
jmp 0x409863
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409881
cmp dword [esi + 0x14], 8
jb 0x409878
mov eax, dword [esi]
jmp 0x40987a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x409889
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
xor eax, eax
cmp dword [edi + 0x10], 0xffffffff
pop edi
setne al
pop esi
pop ecx
ret

Function at 0x4098b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov al, byte [edi + 0xc]
inc dword [edi + 0x1c]
cmp al, 2
jne 0x4098f9
call fcn.0040983c
test al, al
je 0x4098f3
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4098f3
mov eax, dword [ebp - 4]
add dword [edi + 0x14], eax
jmp 0x409918
mov byte [edi + 0x18], 1
jmp 0x40991a
cmp al, 1
jne 0x40991a
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ecx + esi]
push eax
push ecx
push dword [edi + 4]
mov ecx, edi
call fcn.00409925
add dword [edi + 0x14], esi
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40b08f
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x6c
mov eax, 0x42562b
call fcn.00416b41
mov eax, ecx
mov dword [ebp - 0x64], eax
xor bl, bl
lea esi, [eax + 0x80]
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x59], bl
jb 0x40b0b5
mov eax, dword [esi]
jmp 0x40b0b7
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b241
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x40b0e0
mov esi, dword [esi]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b164
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi - 1]
cmp eax, 0xffffe
ja 0x40b15d
cmp dword [ebp - 0x60], 0
jne 0x40b15d
push ecx
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406b4e
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x60]
push ebx
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b14d
cmp dword [ebp - 0x60], edi
je 0x40b15d
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
cmovae eax, dword [ebp - 0x28]
mov byte [eax], bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x64]
add ebx, 0x44
mov ecx, ebx
call fcn.004066d3
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x40]
call fcn.004016cb
pop ecx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x30], 0
jne 0x40b21e
cmp dword [ebp - 0x78], 5
jne 0x40b21e
lea ecx, [ebp - 0x78]
call fcn.004012eb
push str.allowed_origins
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00405646
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00402cf1
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00405a11
mov eax, dword [ebp - 0x64]
cmp eax, dword [esi]
je 0x40b20c
lea ecx, [eax + 0x28]
cmp dword [ecx], 4
jne 0x40b20c
call fcn.0040a36e
mov edi, eax
mov esi, dword [edi]
jmp 0x40b207
cmp dword [esi], 3
jne 0x40b204
mov ecx, esi
call fcn.004067e0
push eax
mov ecx, ebx
call fcn.0040664a
add esi, 0x10
cmp esi, dword [edi + 4]
jne 0x40b1f0
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
setne bl
jmp 0x40b221
mov bl, byte [ebp - 0x59]
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00405a11
lea ecx, [ebp - 0x78]
call fcn.004011af
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00405a11
mov al, bl
call fcn.00416af0
ret
Function at 0x40ba83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
push esi
xor esi, esi
cmp dword [ebx + 0x10], esi
jne 0x40bae7
push 0x42e794
push 0xa5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x40bae4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40bae4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 4]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [ebp - 8]
xor ecx, ecx
push edx
push ecx
push eax
push esi
mov dword [ebp - 8], ecx
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
mov esi, eax
mov dword [ebx + 0x10], esi
push 0x64
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadIconW]
pop esi
mov dword [ebx + 0xc], eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bafd
Capabilities:
Create thread

Disassembly:
push ebx
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
push ebx
push 0x40bc79
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push ebx
push 0x40bb73
push ebx
mov dword [edi + 0x20], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x1c], eax
pop edi
pop ebx
ret
Function at 0x410f80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edi
cmp eax, dword [edi + 0x428]
jle 0x41109a
dec eax
push ebx
push esi
dec eax
je 0x411047
dec eax
jne 0x41108f
mov eax, dword [edi + 0x430]
xor ecx, ecx
mov esi, dword [edi + 0x42c]
mov ebx, eax
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x410fe5
xor edi, edi
mov eax, dword [esi]
push 0
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
inc edi
lea esi, [esi + 4]
cmp edi, ebx
jne 0x410fcd
mov edi, dword [ebp - 4]
mov ecx, dword [edi + 0x168]
call fcn.0040bafd
push 0xc8
push 1
mov ecx, edi
call fcn.004110a1
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor ebx, ebx
push ebx
push dword [edi + 0x2a0]
call esi
push ebx
push dword [edi + 0x234]
call esi
push 1
push dword [edi + 0x3f0]
call esi
push 1
push dword [edi + 0x3a0]
call esi
push ebx
push dword [edi + 0x194]
call esi
push ebx
push dword [edi + 0x31c]
call esi
push ebx
push dword [edi + 0x1e4]
jmp 0x41108d
mov eax, dword [edi + 0x424]
xor ebx, ebx
test eax, eax
je 0x411063
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [edi + 0x424], ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x2a0]
call esi
push 1
push dword [edi + 0x234]
call esi
push ebx
push dword [edi + 0x3f0]
call esi
push ebx
push dword [edi + 0x3a0]
call esi
mov eax, dword [ebp + 8]
pop esi
mov dword [edi + 0x428], eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x412aa7
Capabilities:
Check os version

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
cmp ecx, 0xa
jb 0x412ae2
push str.GetDpiForWindow
push str.user32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412af5
push esi
call eax
jmp 0x412af3
cmp ecx, 6
jne 0x412af9
cmp eax, 3
jb 0x412af9
mov ecx, esi
call fcn.00407a41
mov edi, eax
test edi, edi
jne 0x412b17
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x42181a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4331f0]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00419102
mov dword [ebp - 0x14], eax
cmp dword [0x4352dc], esi
jne 0x42190d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42189a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4219ed
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4219ed
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4219ed
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4352dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4352e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4352e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4352ec], eax
test eax, eax
je 0x42190a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4352e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x421932
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421925
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x421947
push 4
pop eax
jmp 0x4219ef
cmp dword [ebp - 0x14], esi
je 0x421947
push dword [0x4352dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42192c
mov eax, dword [0x4352e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4219a5
cmp dword [0x4352ec], edi
je 0x4219a5
push eax
call ebx
push dword [0x4352ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4219a5
test eax, eax
je 0x4219a5
call ecx
test eax, eax
je 0x42199a
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 0x42199a
test byte [ebp - 8], 1
jne 0x4219a5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4219d5
mov eax, dword [0x4352e0]
cmp eax, edi
je 0x4219d2
push eax
call ebx
test eax, eax
je 0x4219d2
call eax
mov esi, eax
test esi, esi
je 0x4219d2
mov eax, dword [0x4352e4]
cmp eax, edi
je 0x4219d2
push eax
call ebx
test eax, eax
je 0x4219d2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4352dc]
call ebx
test eax, eax
je 0x4219ed
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4219ef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412f2f
mov esp, ebp
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408e54
nop
mov ecx, 0x1be50377
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x684c3708
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219