joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401860
Capabilities:
Set registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
mov ebp, dword [esp + 0x124]
xor eax, eax
push edi
push 0x103
push eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov byte [esp + 0x21], al
mov byte [esp + 0x24], al
lea eax, [esp + 0x25]
xor edi, edi
push eax
mov dword [esp + 0x14], edi
mov byte [esp + 0x1c], 0
call fcn.004082c0
mov ecx, dword [esp + 0x138]
push ecx
lea edx, [esp + 0x20]
push 0x418f3c
push edx
call sub.ntdll.dll_sprintf
push esi
lea eax, [esp + 0x38]
push str.SOFTWARE_s
push eax
call sub.ntdll.dll_sprintf
add esp, 0x24
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [esp + 0x38]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40191a
mov edx, dword [esp + 8]
push 0x38
push ebp
push 3
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40191a
mov edi, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x401929
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop ebp
xor ecx, esp
call fcn.00405196
add esp, 0x11c
ret

Function at 0x401950
Capabilities:
Get routing table

Disassembly:
sub esp, 0x10
push ebx
push edi
xor edi, edi
push edi
lea eax, [esp + 0xc]
push eax
push edi
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x401a24
mov ecx, dword [esp + 8]
push esi
push ecx
call fcn.004054b0
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x401a23
push edi
lea edx, [esp + 0x10]
push edx
push esi
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
jne 0x401a1a
cmp dword [esi], edi
mov dword [esp + 0x10], edi
jbe 0x401a1a
push ebp
lea ebp, [esi + 4]
mov edi, edi
cmp dword [ebp], 0
jne 0x401a07
test ebx, ebx
jne 0x401a07
push 0x38
call fcn.004054b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401a07
mov ecx, 0xe
mov esi, ebp
mov edi, ebx
push ebp
rep movsd dword es:[edi], dword [esi]
call sub.iphlpapi.dll_DeleteIpForwardEntry
test eax, eax
jne 0x4019e7
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
push eax
push ebx
call fcn.00401860
push ebx
call fcn.004053d3
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x14]
add eax, 1
add ebp, 0x38
cmp eax, dword [esi]
mov dword [esp + 0x14], eax
jb 0x4019b0
pop ebp
push esi
call fcn.004053d3
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x401d80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40fcc6
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c028]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x15d]
push ebx
push eax
mov byte [esp + 0x164], bl
call fcn.004082c0
add esp, 0xc
push ebx
push 0x418f4c
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.004030b0
lea ecx, [esp + 0x14]
push ecx
push 0x101
push ebx
push str.SoftwareMicrosoftCryptography
mov dword [esp + 0x278], ebx
push 0x80000002
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e55
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x15c]
push eax
push ebx
push ebx
push str.MachineGuid
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x15c]
call fcn.00403ce0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x274], 1
call fcn.00402e20
mov ebp, 0x10
mov byte [esp + 0x268], bl
cmp dword [esp + 0x34], ebp
jb 0x401e9d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004056ad
add esp, 4
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x401eab
lea eax, [esp + 0x3c]
push eax
call fcn.00401950
push 0x103
lea edx, [esp + 0x5d]
push ebx
push edx
mov byte [esp + 0x64], bl
call fcn.004082c0
add esp, 0x10
push 0x104
lea eax, [esp + 0x58]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call fcn.00403c10
add esp, 4
cmp dword [esp + 0x50], ebp
mov ebx, eax
mov eax, dword [esp + 0x3c]
jae 0x401efd
lea eax, [esp + 0x3c]
push eax
call fcn.00403c10
add esp, 4
lea edx, [esp + 0x54]
push edx
mov edi, eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x54]
push eax
call fcn.00403c10
mov esi, eax
add esp, 4
mov edx, esi
mov ecx, edi
call fcn.00404f00
test ebx, ebx
je 0x401f38
push ebx
call fcn.004053d3
add esp, 4
test esi, esi
je 0x401f45
push esi
call fcn.004053d3
add esp, 4
test edi, edi
je 0x401f52
push edi
call fcn.004053d3
add esp, 4
cmp dword [esp + 0x50], ebp
jb 0x401f65
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004056ad
add esp, 4
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00405196
add esp, 0x258
ret
Function at 0x403c70
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push esi
push 1
lea eax, [esp + 0x14]
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.Global_signature_netcheck
push esi
lea eax, [esp + 0xc]
lea edx, [esp + 0x18]
push eax
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x403cd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x403cd3
mov eax, esi
pop esi
add esp, 0x20
ret
Function at 0x403fd0
Capabilities:
Create process on windows
Self delete

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.004082c0
push 0x103
lea ecx, [esp + 0x115]
push 0
push ecx
mov byte [esp + 0x11c], 0
call fcn.004082c0
add esp, 0x18
push 0x104
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
push eax
lea ecx, [esp + 0x108]
push str.cmd__c_ping_127.0.0.1__n_3__del___s_
push ecx
call sub.ntdll.dll_sprintf
add esp, 0xc
push 0
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00405196
add esp, 0x20c
ret

Function at 0x404070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4040d5
test esi, esi
jbe 0x4040d5
mov eax, dword [esp + 0x18]
lea edi, [esi + 1]
push edi
mov dword [eax], esi
call fcn.004054b0
push edi
push 0
push eax
mov dword [ebp], eax
call fcn.004082c0
add esp, 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp]
push eax
push ecx
call fcn.00408870
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x4040e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40fb92
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov eax, dword [0x41c028]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 8], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x418f4c
mov ecx, esi
mov dword [esp + 0x14], esi
mov byte [esi + 4], bl
call fcn.004030b0
push 0x104
lea eax, [esp + 0x14]
push ebx
mov dword [esp + 0x128], ebx
push eax
mov dword [esp + 0x14], 1
call fcn.004082c0
add esp, 0xc
push ebx
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.Microsoftindex.html
lea edx, [esp + 0x14]
push 0x104
push edx
call fcn.0040572d
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404192
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.00402d30
mov eax, esi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00405196
add esp, 0x11c
ret
Function at 0x4041e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40fb92
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov eax, dword [0x41c028]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 8], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x418f4c
mov ecx, esi
mov dword [esp + 0x14], esi
mov byte [esi + 4], bl
call fcn.004030b0
push 0x104
lea eax, [esp + 0x14]
push ebx
mov dword [esp + 0x128], ebx
push eax
mov dword [esp + 0x14], 1
call fcn.004082c0
add esp, 0xc
push ebx
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.Microsoftlogo.png
lea edx, [esp + 0x14]
push 0x104
push edx
call fcn.0040572d
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404292
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.00402d30
mov eax, esi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00405196
add esp, 0x11c
ret

Function at 0x4042e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40fb92
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov eax, dword [0x41c028]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 8], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x418f4c
mov ecx, esi
mov dword [esp + 0x14], esi
mov byte [esi + 4], bl
call fcn.004030b0
push 0x104
lea eax, [esp + 0x14]
push ebx
mov dword [esp + 0x128], ebx
push eax
mov dword [esp + 0x14], 1
call fcn.004082c0
add esp, 0xc
push ebx
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.Microsoftqrcode.png
lea edx, [esp + 0x14]
push 0x104
push edx
call fcn.0040572d
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404392
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.00402d30
mov eax, esi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00405196
add esp, 0x11c
ret
Function at 0x4043e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x2c]
push ebx
push esi
mov esi, dword [0x41db50]
push edi
push eax
movzx eax, word [esp + 0x38]
push eax
xor ebx, ebx
xor edi, edi
push esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40442e
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00404070
mov edi, dword [esp + 0x14]
add esp, 8
cmp eax, ebx
jne 0x40442e
cmp edi, ebx
jne 0x40447d
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x40443d
lea eax, [esp + 0x1c]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x10]
push ebx
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004053d3
add esp, 4
mov ebx, 1
cmp dword [esp + 0x30], 0x10
jb 0x404491
mov edx, dword [esp + 0x1c]
push edx
call fcn.004056ad
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret

Function at 0x404d10
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 8]
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404d46
sub eax, esi
je 0x404d83
jmp 0x404d60
movsx dx, byte [esp + ecx + 8]
lea eax, [esp + 8]
mov word [edi + ecx*2], dx
add ecx, 1
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404d74
sub eax, esi
cmp ecx, eax
jb 0x404d60
lea eax, [esp + 8]
lea edx, [eax + 1]
pop esi
jmp 0x404d90
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404d90
mov ecx, dword [esp + 0x104]
sub eax, edx
xor ecx, esp
mov word [edi + eax*2], 0
call fcn.00405196
add esp, 0x108
ret

Function at 0x404dc0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebp
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x404e5b
push esi
push 0x34
push str.RpcSs
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x404e53
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
je 0x404e4b
cmp dword [esp + 0x10], 1
jne 0x404e4b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x404e4b
lea ecx, [esp + 0xc]
push ecx
push esi
call edi
test eax, eax
je 0x404e4b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
mov edx, dword [esp + 0x28]
push edx
call ebx
cmp dword [esp + 0x14], 4
je 0x404e4a
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x404e30
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x404e60
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebp
call fcn.00404dc0
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x404efb
push esi
push 0x34
push str.Schedule
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x404ef3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0xc]
push eax
push esi
call edi
test eax, eax
je 0x404eeb
cmp dword [esp + 0x10], 1
jne 0x404eeb
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x404eeb
lea ecx, [esp + 0xc]
push ecx
push esi
call edi
test eax, eax
je 0x404eeb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov edx, dword [esp + 0x28]
push edx
call ebx
cmp dword [esp + 0x14], 4
je 0x404eea
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x404ed0
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x405196
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c028]
jne 0x4051a0
repz ret
jmp fcn.00405bc9

Function at 0x40b97d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040839d
xor ebx, ebx
cmp dword [0x41da34], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40ba52
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b9bd
xor eax, eax
jmp 0x40bb16
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b9b6
push eax
call fcn.0040833a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41da34], eax
call esi
push eax
call fcn.0040833a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41da38], eax
call esi
push eax
call fcn.0040833a
mov dword [0x41da3c], eax
lea eax, [ebp - 8]
push eax
call fcn.00407e4f
test eax, eax
pop ecx
pop ecx
je 0x40ba20
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040557d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40ba52
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040833a
cmp eax, ebx
pop ecx
mov dword [0x41da44], eax
je 0x40ba52
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040833a
pop ecx
mov dword [0x41da40], eax
mov eax, dword [0x41da40]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40bacb
cmp dword [0x41da44], esi
je 0x40bacb
push eax
call fcn.004083a6
pop ecx
call eax
cmp eax, ebx
je 0x40ba98
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41da44]
call fcn.004083a6
pop ecx
call eax
test eax, eax
je 0x40ba98
test byte [ebp - 0x18], 1
jne 0x40bacb
lea eax, [ebp - 0xc]
push eax
call fcn.00407e86
test eax, eax
pop ecx
je 0x40bab3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040557d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40bac2
or dword [ebp + 0x10], 0x200000
jmp 0x40bafc
or dword [ebp + 0x10], 0x40000
jmp 0x40bafc
mov eax, dword [0x41da38]
cmp eax, esi
je 0x40bafc
push eax
call fcn.004083a6
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40bafc
mov eax, dword [0x41da3c]
cmp eax, esi
je 0x40bafc
push dword [ebp - 4]
push eax
call fcn.004083a6
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41da34]
call fcn.004083a6
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003c58
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
jne 0x1003c96
push 3
push 1
push 0x10
push eax
push 0xffffffffffffffff
push dword [0x1005304]
call fcn.01003b2f
add esp, 0x18
push 0x10053c0
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop ebp
ret 4

Function at 0x4b8e70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76000]
push edi
jmp 0x4b8e8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b8e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8e80
mov eax, 1
add ebx, ebx
jne 0x4b8ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b8eb4
jne 0x4b8ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ed3
dec eax
add ebx, ebx
jne 0x4b8ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b8e98
add ebx, ebx
jne 0x4b8ecf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b8f25
xor ecx, ecx
sub eax, 3
jb 0x4b8eeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b8f5a
sar eax, 1
mov ebp, eax
jmp 0x4b8ef6
add ebx, ebx
jne 0x4b8ef6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ec4
inc ecx
add ebx, ebx
jne 0x4b8f04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b8ec4
add ebx, ebx
jne 0x4b8f11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b8f06
jne 0x4b8f22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b8f06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b8f44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b8f36
jmp 0x4b8e86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b8f44
add edi, ecx
jmp 0x4b8e86
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b8f62
cmp byte [edi], 0x13
jne 0x4b8f62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b8f67
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b8fdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc0038]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc018c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b8f94
mov ecx, edi
jns 0x4b8fc3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc0190]
or eax, eax
je 0x4b8fd9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b8fb1
call dword [esi + 0xc01a0]
mov ebp, dword [esi + 0xc0194]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b9013
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x10001000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000100a
repz ret
jmp fcn.100017ee

Function at 0x10006c98
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000236e
and dword [ebp - 4], 0
cmp dword [0x100108b8], 0
mov ebx, eax
jne 0x10006d49
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10006dfa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10006dfa
push eax
call fcn.100022fc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100108b8], eax
call esi
push eax
call fcn.100022fc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100108bc], eax
call esi
push eax
call fcn.100022fc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100108c0], eax
call esi
push eax
call fcn.100022fc
pop ecx
mov dword [0x100108c8], eax
test eax, eax
je 0x10006d49
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100022fc
pop ecx
mov dword [0x100108c4], eax
mov eax, dword [0x100108c4]
cmp eax, ebx
je 0x10006da1
cmp dword [0x100108c8], ebx
je 0x10006da1
push eax
call fcn.10002377
push dword [0x100108c8]
mov esi, eax
call fcn.10002377
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10006da1
test edi, edi
je 0x10006da1
call esi
test eax, eax
je 0x10006d98
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10006d98
test byte [ebp - 0xc], 1
jne 0x10006da1
or dword [ebp + 0x10], 0x200000
jmp 0x10006dda
mov eax, dword [0x100108bc]
cmp eax, ebx
je 0x10006dda
push eax
call fcn.10002377
pop ecx
test eax, eax
je 0x10006dda
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10006dda
mov eax, dword [0x100108c0]
cmp eax, ebx
je 0x10006dda
push eax
call fcn.10002377
pop ecx
test eax, eax
je 0x10006dda
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100108b8]
call fcn.10002377
pop ecx
test eax, eax
je 0x10006dfa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10006dfc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret