joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413d34
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4423fc
call fcn.0042d5d1
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x413d59
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x413d9f
lea ecx, [ebp - 0x10]
call fcn.00402883
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d769
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040285f
mov eax, esi
call fcn.0042d6a9
ret 8

Function at 0x416061
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x416085
cmp dword [edi + 0x54], 0
jne 0x416085
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00416b24
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00416022
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x418c5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x418ca3
call fcn.00416b24
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x418ca3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x418ce6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x418ccf
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x418ccf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x418ce3
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42b446
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459660]
jne 0x42b450
repz ret
jmp fcn.004324de

Function at 0x43c6a5
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.00431e42
and dword [ebp - 4], 0
cmp dword [0x45d808], 0
mov ebx, eax
jne 0x43c756
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43c807
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43c807
push eax
call fcn.00431dd0
mov dword [esp], 0x448fcc
push edi
mov dword [0x45d808], eax
call esi
push eax
call fcn.00431dd0
mov dword [esp], 0x448fb8
push edi
mov dword [0x45d80c], eax
call esi
push eax
call fcn.00431dd0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45d810], eax
call esi
push eax
call fcn.00431dd0
pop ecx
mov dword [0x45d818], eax
test eax, eax
je 0x43c756
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431dd0
pop ecx
mov dword [0x45d814], eax
mov eax, dword [0x45d814]
cmp eax, ebx
je 0x43c7ae
cmp dword [0x45d818], ebx
je 0x43c7ae
push eax
call fcn.00431e4b
push dword [0x45d818]
mov esi, eax
call fcn.00431e4b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43c7ae
test edi, edi
je 0x43c7ae
call esi
test eax, eax
je 0x43c7a5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43c7a5
test byte [ebp - 0xc], 1
jne 0x43c7ae
or dword [ebp + 0x10], 0x200000
jmp 0x43c7e7
mov eax, dword [0x45d80c]
cmp eax, ebx
je 0x43c7e7
push eax
call fcn.00431e4b
pop ecx
test eax, eax
je 0x43c7e7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43c7e7
mov eax, dword [0x45d810]
cmp eax, ebx
je 0x43c7e7
push eax
call fcn.00431e4b
pop ecx
test eax, eax
je 0x43c7e7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d808]
call fcn.00431e4b
pop ecx
test eax, eax
je 0x43c807
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43c809
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x444374
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x444390
cmp dword [esi + 4], 0
je 0x4443bd
test byte [ebx + 0x55], 1
jne 0x4443af
mov eax, ebx
call fcn.00442f14
test eax, eax
jne 0x4443af
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4f3608
mov edx, esi
mov eax, ebx
call fcn.00443e98
jmp 0x4444cd
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4444c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044621c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00440bb0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00444374
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044621c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4444cd
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4665c8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
test dl, dl
je 0x4665da
add esp, 0xfffffff0
call fcn.00404360
mov esi, ecx
mov ebx, edx
mov edi, eax
lea eax, [ebp + 0x1c]
call fcn.004057f8
xor eax, eax
push ebp
push 0x466685
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00403ff8
mov dword [edi + 0x38], esi
lea eax, [edi + 0xc]
mov edx, dword [ebp + 0x1c]
call fcn.004054d0
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov al, byte [ebp + 8]
mov byte [edi + 0x1c], al
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
push 0
lea eax, [edi + 0x40]
mov ecx, 1
mov edx, dword [0x4632ac]
call fcn.004061f8
add esp, 4
mov eax, edi
call fcn.0046641c
test al, al
jne 0x46666f
call fcn.0040f4ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46668c
jmp 0x4eee28
Function at 0x470cc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x470cee
mov eax, ebx
call fcn.00471774
cmp dword [ebx + 0x40], 0
je 0x470ce7
jmp loc.004e8898
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x470d5f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x470d51
cmp dword [ebx + 8], 0
je 0x470d10
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x470d22
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x470d51
cmp dword [ebx + 8], 0
je 0x470d03
cmp eax, 3
je 0x470d35
dec eax
jne 0x470d03
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x470d03
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x470d03
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x470d7d
cmp dword [ebx + 0x14], 0xcc
je 0x470d7d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00470d88
pop ebx
ret
Function at 0x4045d4
Capabilities:
Terminate process

Disassembly:
push ecx
push 0x420c88
call fcn.004082f5
add eax, 0x40
push eax
call fcn.00408686
add esp, 0xc
push 2
call fcn.0040ac47
int3

Function at 0x40b00f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x42ce60
call fcn.0040bf00
push 1
call fcn.004132db
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x40aeba
xor ebx, ebx
jmp 0x40aeed
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40aeb6
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40aeb6
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x40aeed
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0040f1c5
test eax, eax
jne 0x40af01
push 0x1c
call fcn.0040afe8
pop ecx
call fcn.0040e157
test eax, eax
jne 0x40af12
push 0x10
call fcn.0040afe8
pop ecx
call fcn.004117be
and dword [ebp - 4], 0
call fcn.0040d07b
test eax, eax
jns 0x40af2c
push 0x1b
call fcn.0040afe8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4fe4cc], eax
call fcn.004133c4
mov dword [0x42f7f4], eax
call fcn.00412fcb
test eax, eax
jns 0x40af52
push 8
call fcn.0040a9a4
pop ecx
call fcn.004131fa
test eax, eax
jns 0x40af63
push 9
call fcn.0040a9a4
pop ecx
push 1
call fcn.0040a9de
pop ecx
test eax, eax
je 0x40af76
push eax
call fcn.0040a9a4
pop ecx
mov eax, dword [0x42f7d0]
mov dword [0x42f7f0], eax
push eax
push dword [0x42f7c8]
push dword [0x42f7c4]
call main
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x40afa4
push esi
call fcn.0040ac47
call fcn.0040a9cf
jmp 0x40afd9
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.0040bf45
ret
call fcn.0058d000
jmp 0x40ae94
Function at 0x404a5b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x479084]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00404ccb
mov ebx, eax
cmp ebx, esi
je 0x404abd
cmp dword [esp + 0x10], esi
je 0x404ab9
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404b33
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404adb
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00404a5b
mov dword [esp + 0x24], eax
cmp eax, esi
jne 0x404b4a
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x100
call ebx
test eax, eax
je 0x404ac5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], esi
je 0x404b16
push dword [esp + 0x10]
call ebx
mov dword [esp + 0x10], esi
push dword [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.004049ed
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x404b31
push dword [esp + 0x10]
call ebx
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004106ae
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x10], esi
je 0x404b5a
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
jmp 0x404b33
Function at 0x407884
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4567e2
call fcn.00450080
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x4078dc
call fcn.0040664b
mov esi, eax
jmp 0x4079e6
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4078f5
call fcn.0040664b
jmp 0x4079d8
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x4078eb
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x407932
mov esi, 0x8007000e
jmp 0x4079da
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x407947
cmp eax, 0xffffffff
jbe 0x407951
push 0x80070216
call fcn.004052f7
cmp eax, 0x400
jbe 0x40797e
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00406aca
jmp 0x40798a
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x407928
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4078eb
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00407724
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4079ff
lea eax, [ebp - 0x418]
call fcn.00406ac1
mov eax, esi
call fcn.004500dc
ret 0xc
Function at 0x407be3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x47a108], 0
push ebx
push esi
push edi
mov esi, 0x47a108
je 0x407cdb
and dword [ebp - 0xc], 0
push 0x3324
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], 0x11
mov edi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, ecx
mov ecx, dword [ebp - 4]
imul eax, ecx
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x35
sub eax, ecx
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, ecx
push 0xffffffffffffffe5
pop ecx
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
add ecx, dword [ebp - 4]
push 5
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub eax, ecx
mov dword [ebp - 4], eax
add dword [ebp - 4], 0x2a
mov eax, dword [ebp - 4]
cdq
pop ecx
idiv ecx
mov edx, dword [ebp - 0xc]
sar edx, 2
and edx, 0x3f
lea edx, [edx + 0x47a0c8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub eax, ecx
mov ecx, dword [esi]
mov dword [ebp - 4], eax
mov al, byte [ecx]
xor al, byte [edx]
mov byte [edi], al
je 0x407cb4
mov ebx, edi
sub ebx, ecx
inc ecx
mov al, byte [ecx]
xor al, byte [edx]
mov byte [ebx + ecx], al
jne 0x407caa
fld qword [0x473890]
add dword [ebp - 0xc], 4
fstp qword [ebp - 8]
fld qword [ebp - 8]
mov dword [esi], edi
fadd qword [0x473888]
add esi, 4
cmp dword [esi], 0
fstp qword [ebp - 8]
jne 0x407c02
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x47a838], 0
push ebx
push esi
push edi
mov esi, 0x47a838
je 0x407de8
and dword [ebp - 0xc], 0
push 0x6648
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], 0x11
mov edi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, ecx
mov ecx, dword [ebp - 4]
imul eax, ecx
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x35
sub eax, ecx
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx - 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, ecx
push 0xffffffffffffffe5
pop ecx
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
add ecx, dword [ebp - 4]
push 5
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub eax, ecx
mov dword [ebp - 4], eax
add dword [ebp - 4], 0x2a
mov eax, dword [ebp - 4]
cdq
pop ecx
idiv ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub eax, ecx
mov ecx, dword [ebp - 0xc]
sar ecx, 2
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dl, byte [eax]
and ecx, 0x3f
lea ecx, [ecx + 0x47a0c8]
xor dl, byte [ecx]
movzx edx, dl
mov word [edi], dx
test dx, dx
je 0x407dc1
mov ebx, edi
sub ebx, eax
add eax, 2
mov dl, byte [eax]
xor dl, byte [ecx]
movzx edx, dl
mov word [ebx + eax], dx
test dx, dx
jne 0x407dae
fld qword [0x473890]
add dword [ebp - 0xc], 4
fstp qword [ebp - 8]
fld qword [ebp - 8]
mov dword [esi], edi
fadd qword [0x473888]
add esi, 4
cmp dword [esi], 0
fstp qword [ebp - 8]
jne 0x407cff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aa50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40aab4
cmp dword [ebp + 0xc], 1
je 0x40aa8c
cmp dword [ebp + 0xc], 2
je 0x40aa8c
push 0xd
pop eax
jmp 0x40aab4
mov eax, dword [ebp - 4]
test edi, edi
je 0x40aaae
test eax, eax
je 0x40aaa9
test al, 1
jne 0x40aa87
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40aaae
jmp 0x40aa87
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x410381
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x47b0e0], 0
push esi
push edi
jne 0x4102f7
call fcn.00410263
test eax, eax
je 0x41033c
mov eax, dword [0x47b0e0]
cmp eax, 1
jne 0x410318
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41033c
jmp 0x41037e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41037e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x410340
xor eax, eax
jmp 0x41037e
mov eax, dword [esi]
push dword [0x47b0e0]
call edi
mov edi, eax
test edi, edi
je 0x410362
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41037e
lea edi, [esi + 0xff0]
push esi
push dword [0x47b0e0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x410368
mov eax, esi
pop edi
pop esi
ret
jmp 0x4102e3

Function at 0x4106ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479084]
jne 0x4106b8
repz ret
jmp fcn.00413942

Function at 0x41b08c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
cmp esi, ecx
jne 0x41b0a1
xor eax, eax
pop esi
ret
cmp word [esi], cx
je 0x41b0b6
add eax, 2
jmp loc.004891f8
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call fcn.00413f82
mov edi, eax
pop ecx
test edi, edi
jne 0x41b0d7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
push ebx
push esi
push edi
call fcn.00411f70
add esp, 0xc
jmp 0x41b0ca
Function at 0x41e04b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416a4d
and dword [ebp - 0x14], 0
cmp dword [0x47bf24], 0
mov dword [ebp - 0x18], eax
jne 0x41e0fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41e1a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41e1a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47bf24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47bf28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47bf2c], eax
call edi
push eax
call esi
mov dword [0x47bf34], eax
test eax, eax
je 0x41e0fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47bf30], eax
mov eax, dword [0x47bf30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41e157
cmp dword [0x47bf34], ecx
je 0x41e157
push eax
call esi
push dword [0x47bf34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41e157
test ebx, ebx
je 0x41e157
call edi
test eax, eax
je 0x41e14e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41e14e
test byte [ebp - 8], 1
jne 0x41e157
or dword [ebp + 0x10], 0x200000
jmp 0x41e18a
mov eax, dword [0x47bf28]
cmp eax, dword [ebp - 0x18]
je 0x41e18a
push eax
call esi
test eax, eax
je 0x41e18a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41e18a
mov eax, dword [0x47bf2c]
cmp eax, dword [ebp - 0x18]
je 0x41e18a
push eax
call esi
test eax, eax
je 0x41e18a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47bf24]
call esi
test eax, eax
je 0x41e1a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41e1a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106ae
leave
ret