joyce8/EMBER2024-capa huggingface dataset:
Function at 0x541f8b
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x541f9f
xor eax, eax
jmp 0x54208e
push esi
mov esi, dword [ebp + 8]
push 0x50
call fcn.0053b24f
mov esi, eax
pop ecx
test esi, esi
je 0x54208d
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.0053e2c0
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.00541e61
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.00544707
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.0053e2c0
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.00544707
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.0053e2c0
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.00541f8b
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.00544707
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.00544707
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x2c
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x54e365
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebx + 0x3c]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ecx], edi
jne 0x54e398
mov eax, dword [ebx + 0x78]
push edi
push ecx
mov ecx, dword [ebx]
or eax, 0x1e
push edi
call fcn.0053397e
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x54e472
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x54e3ce
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.00578e90
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
push esi
jmp 0x54e3d3
xor edi, edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x54e471
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x54e461
test byte [esi + 0x14], 0x20
jne 0x54e461
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.00578e90
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
cmp edi, 1
jne 0x54e413
call fcn.005365ce
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x3c]
call fcn.0053390f
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x54e44b
mov esi, dword [ebp - 8]
add esi, 0x18
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp edi, dword [ebx + 0x20]
jbe 0x54e453
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.0054b03e
mov esi, dword [ebp + 8]
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
je 0x54e3d1
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x57372c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6b06f8]
jne 0x573736
repz ret
jmp fcn.005825e9

Function at 0x57d0ff
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x57d130
call fcn.00578d84
mov dword [eax], esi
call fcn.00578d71
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005744f4
add esp, 0x14
or eax, 0xffffffff
jmp 0x57d16b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x57d14d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00578d97
pop ecx
jmp 0x57d12b
test byte [ebp + 0xc], 0x80
je 0x57d158
and eax, 0xfffffffe
jmp 0x57d15b
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x57d13e
xor eax, eax
pop esi
pop ebp
ret

Function at 0x57d16e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x57d19f
call fcn.00578d84
mov dword [eax], esi
call fcn.00578d71
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005744f4
add esp, 0x14
push 0x16
pop eax
jmp 0x57d1f4
test dword [ebp + 0xc], 0xfffffff9
jne 0x57d17b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x57d1cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00578d97
pop ecx
call fcn.00578d71
mov eax, dword [eax]
jmp 0x57d1f4
test al, 0x10
jne 0x57d1f2
test al, 1
je 0x57d1f2
test byte [ebp + 0xc], 2
je 0x57d1f2
call fcn.00578d84
mov dword [eax], 5
call fcn.00578d71
mov dword [eax], 0xd
jmp 0x57d1c3
xor eax, eax
pop esi
pop ebp
ret
Function at 0x592cb0
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.00582f74
and dword [ebp - 4], 0
cmp dword [0x6c82e0], 0
mov ebx, eax
jne 0x592d61
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x592e12
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x592e12
push eax
call fcn.00582f02
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6c82e0], eax
call esi
push eax
call fcn.00582f02
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6c82e4], eax
call esi
push eax
call fcn.00582f02
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6c82e8], eax
call esi
push eax
call fcn.00582f02
pop ecx
mov dword [0x6c82f0], eax
test eax, eax
je 0x592d61
push 0x66e620
push edi
call esi
push eax
call fcn.00582f02
pop ecx
mov dword [0x6c82ec], eax
mov eax, dword [0x6c82ec]
cmp eax, ebx
je 0x592db9
cmp dword [0x6c82f0], ebx
je 0x592db9
push eax
call fcn.00582f7d
push dword [0x6c82f0]
mov esi, eax
call fcn.00582f7d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x592db9
test edi, edi
je 0x592db9
call esi
test eax, eax
je 0x592db0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x592db0
test byte [ebp - 0xc], 1
jne 0x592db9
or dword [ebp + 0x10], 0x200000
jmp 0x592df2
mov eax, dword [0x6c82e4]
cmp eax, ebx
je 0x592df2
push eax
call fcn.00582f7d
pop ecx
test eax, eax
je 0x592df2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x592df2
mov eax, dword [0x6c82e8]
cmp eax, ebx
je 0x592df2
push eax
call fcn.00582f7d
pop ecx
test eax, eax
je 0x592df2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6c82e0]
call fcn.00582f7d
pop ecx
test eax, eax
je 0x592e12
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x592e14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401050
Capabilities:
Check os version

Disassembly:
jmp 0x403361
mov eax, 0x4104e7
call fcn.00408370
sub esp, 0xa8
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x20], ebx
mov al, byte [ebp + 0xc]
push 1
pop edi
lea ecx, [ebp - 0x1c]
push ebx
mov dword [ebp - 4], edi
mov byte [ebp - 0x1c], al
call fcn.00401023
push dword [0x4120c4]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.0040115e
mov esi, 0x94
lea eax, [ebp - 0xb4]
push esi
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.00407d80
add esp, 0xc
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 2
jne 0x403409
cmp dword [ebp - 0xb0], 5
jne 0x403409
mov esi, str.Global_
push esi
call fcn.00408480
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401082
push dword [0x4120c4]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.00401145
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x1c]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00401023
push dword [0x4120c4]
lea eax, [ebp - 0x1c]
mov ecx, esi
push ebx
push eax
call fcn.0040115e
mov dword [ebp - 0x20], edi
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401023
push edi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00401023
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4010b9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x40295a
mov eax, 0x4104a4
call fcn.00408370
sub esp, 0x130
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x13c]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
call fcn.00407d80
mov al, byte [ebp + 0xb]
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 0xd], 1
push ebx
mov byte [ebp - 0x38], al
call fcn.00401023
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 4], ebx
push eax
push ebx
push dword [ebp + 8]
call edi
cmp eax, ebx
jne 0x402a57
cmp byte [ebp - 0xd], bl
je 0x4029f8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00408480
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401082
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x402a34
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00408480
pop ecx
push eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401082
lea eax, [ebp - 0x20]
inc dword [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x18], esi
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
jmp 0x4029bd
mov eax, dword [ebp - 0x14]
cmp dword [0x417f4c], eax
jne 0x402a78
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x402a6e
mov eax, 0x4120c0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
call fcn.00401023
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40114f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x405b3b
mov eax, 0x4105ac
call fcn.00408370
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.004011c7
mov edi, eax
cmp edi, esi
je 0x405b85
cmp dword [ebp - 0x10], esi
je 0x405b7e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x405c22
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x405bf6
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040114f
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x405be3
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x405ba8
cmp dword [ebp - 0x10], esi
je 0x405bf1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x405c22
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x405c09
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x405c20
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x401163
Capabilities:
Set registry value

Disassembly:
jmp 0x402cc9
push ecx
and byte [esp + 3], 0
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
test ebp, ebp
je 0x402de5
mov edi, dword [esp + 0x1c]
push 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ebx
lea eax, [edi + 8]
push ebx
push eax
push ebx
push 0
push str.OperatingMode
push ebp
call esi
test eax, eax
jne 0x402de5
push ebx
push edi
push ebx
push eax
push str.PrimaryDevice
push ebp
call esi
lea eax, [edi + 4]
push ebx
push eax
push ebx
push 0
push str.SecondaryDevice
push ebp
call esi
lea eax, [edi + 0xc]
push ebx
push eax
push ebx
push 0
push str.PrimaryXX
push ebp
call esi
lea eax, [edi + 0x10]
push ebx
push eax
push ebx
push 0
push str.PrimaryYY
push ebp
call esi
lea eax, [edi + 0x14]
push ebx
push eax
push ebx
push 0
push str.PrimaryRR
push ebp
call esi
lea eax, [edi + 0x18]
push ebx
push eax
push ebx
push 0
push str.PrimaryBPP
push ebp
call esi
lea eax, [edi + 0x24]
push ebx
push eax
push ebx
push 0
push str.SecondaryXX
push ebp
call esi
lea eax, [edi + 0x28]
push ebx
push eax
push ebx
push 0
push str.SecondaryYY
push ebp
call esi
lea eax, [edi + 0x2c]
push ebx
push eax
push ebx
push 0
push str.SecondaryRR
push ebp
call esi
lea eax, [edi + 0x30]
push ebx
push eax
push ebx
push 0
push str.SecondaryBPP
push ebp
call esi
push ebx
lea eax, [edi + 0x1c]
push eax
push ebx
push 0
push str.PrimaryAspectScaling
push ebp
call esi
lea eax, [edi + 0x34]
push ebx
push eax
push ebx
push 0
push str.SecondaryAspectScaling
push ebp
call esi
lea eax, [edi + 0x20]
push ebx
push eax
push ebx
push 0
push str.PrimaryDisplayOrientation
push ebp
call esi
add edi, 0x38
push ebx
push edi
push ebx
push 0
push str.SecondaryDisplayOrientation
push ebp
call esi
mov byte [esp + 0x13], 1
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x8e1148
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e114e
pop ebp
sub ebp, 6
sub ebp, 0x4e1148
jmp 0x8e11ac
add byte [edi + 0x67], cl
adc byte [edx + esi*4], bh
movsd dword es:[edi], dword [esi]
inc esi
pop ebp
loopne 0x8e1184
sbb byte [eax], ch
jg 0x8e11a4
in al, dx
jbe 0x8e114e
leave
mov al, 0x7a
or eax, dword [ecx]
add byte [eax], al
add byte [edx + 0x6b], dh
sub ah, byte [edx + 0x200f4e81]
fist dword [ebp + 0x6a56d85a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
push 0xb8bc8261
dec eax
adc dword [esi], ecx
mov dword [0x7e8877e2], eax
invalid
jmp 0x8e11b5
mov eax, 0x4e1148
add eax, ebp
add eax, 0x93
mov ecx, 0x631
mov edx, 0x32696f46
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e11cc
jmp 0x8e11df
sub al, 6
inc esi
push esi
inc esi
inc esi
inc esi
mov ch, byte [edx + 0x46]
jne 0x8e1173
push ss
mov ecx, 0x2177ad3
inc esi
push ss
int 0x8b
int 0xcf
jp 0x8e1241
inc esi
inc esi
mov dword [edi + 0x464646be], 0x40fe8b45
inc esi
inc esi
inc esi
cld
outsb dx, byte [esi]
inc esi
inc esi
inc esi
mov cl, 0xa4
inc ebp
mov cs, ebp
invalid
int 0xd3
dec edx
inc esi
inc esi
inc esi
int 0xcb
push esi
inc esi
inc esi
inc esi
xchg dword [edi - 0x3abb88bc], ebp
test byte [edx + 0xf], al
dec ecx
ret
Function at 0x40a4c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x412250], 0
push esi
push edi
jne 0x40a436
call fcn.0040a3a2
test eax, eax
je 0x40a47b
mov eax, dword [0x412250]
cmp eax, 1
jne 0x40a457
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a47b
jmp 0x40a4bd
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40a4bd
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 0x40a47f
xor eax, eax
jmp 0x40a4bd
mov eax, dword [esi]
push dword [0x412250]
call edi
mov edi, eax
test edi, edi
je 0x40a4a1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40a4bd
lea edi, [esi + 0xff0]
push esi
push dword [0x412250]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40a4a7
mov eax, esi
pop edi
pop esi
ret
jmp 0x40a422

Function at 0x40a788
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412120]
jne 0x40a792
repz ret
jmp fcn.0040adba

Function at 0x401cd7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0x14], edx
call fcn.0040b934
mov ebx, eax
call fcn.0040b934
imul ebx, eax
mov dword [ebp - 8], ebx
call fcn.0040b934
and eax, 7
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp ebx, dword [ebp + 0x14]
jge 0x401fcc
mov edx, dword [ebp + 0x10]
movzx edi, byte [edx + ebx]
mov edx, edi
mov ecx, eax
and cl, 0xff
xor dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [ecx + ebx], dl
mov ecx, dword [ebp - 4]
mov edx, eax
shl edx, cl
and edx, 0xffffffff
mov dword [ebp - 0xc], edx
mov ecx, 0x20
sub ecx, dword [ebp - 4]
shr eax, cl
and eax, 0xffffffff
or eax, dword [ebp - 0xc]
add eax, edi
sar edi, 1
jns 0x401d55
adc edi, 0
lea edx, [edi + edi*2]
add eax, edx
inc ebx
cmp ebx, dword [ebp + 0x14]
jl 0x401d19
jmp 0x401fcc
mov eax, dword [ebp - 0x14]
cmp eax, 0x15
ja 0x401fad
jmp dword [eax*4 + 0x401378]
inc dword [ebp - 0x14]
call fcn.0040b934
mov ebx, eax
and ebx, 3
test ebx, ebx
je 0x401fcc
push esi
call fcn.00401bcd
pop ecx
mov esi, eax
dec ebx
test ebx, ebx
jne 0x401fbe
cmp dword [ebp - 0x10], 0
je 0x401d65
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fd1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c520]
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.00416e92
and dword [ebp - 0x14], 0
cmp dword [0x45b068], 0
mov dword [ebp - 0x18], eax
jne 0x41fdcf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fe77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fe77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45b068], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45b06c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45b070], eax
call edi
push eax
call esi
mov dword [0x45b078], eax
test eax, eax
je 0x41fdcf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45b074], eax
mov eax, dword [0x45b074]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fe28
cmp dword [0x45b078], ecx
je 0x41fe28
push eax
call esi
push dword [0x45b078]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fe28
test ebx, ebx
je 0x41fe28
call edi
test eax, eax
je 0x41fe1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fe1f
test byte [ebp - 8], 1
jne 0x41fe28
or dword [ebp + 0x10], 0x200000
jmp 0x41fe5b
mov eax, dword [0x45b06c]
cmp eax, dword [ebp - 0x18]
je 0x41fe5b
push eax
call esi
test eax, eax
je 0x41fe5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fe5b
mov eax, dword [0x45b070]
cmp eax, dword [ebp - 0x18]
je 0x41fe5b
push eax
call esi
test eax, eax
je 0x41fe5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45b068]
call esi
test eax, eax
je 0x41fe77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fe79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113eb
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
sub ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x401984
Capabilities:
Hide graphical window

Disassembly:
push ebp
sub esp, 0x40
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
add esp, 0x40
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
loop 0x40199b
push esp
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4040b0], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x4016e2
mov dword [ebp - 4], str.risiliency
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040b0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.ebsement
push str.risiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040b8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a36
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a1d
pop ebp
ret 0x10