joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441940
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x441a73
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41a874]
call fcn.0041a944
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x441a49
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041a9e4
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.0040412c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x441a88
call fcn.004041c8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041aa48
lea ecx, [ebp - 4]
mov edx, 0x441ac4
mov eax, dword [ebp - 0xc]
call fcn.0041ac78
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040caa0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x441a2c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x441ad0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x452ea0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441a33
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x441b20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x441b67
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x441b4a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x441b5b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x441b67
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x44564c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4456a0]
test si, 4
je 0x445661
or bl, 1
test si, 8
je 0x44566b
or bl, 4
test si, 1
je 0x445675
or bl, 8
test si, 2
je 0x44567f
or bl, 0x10
test si, 0x10
je 0x445689
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445698
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4456a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4456e0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4456be
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4456cd
or bl, 4
test esi, 0x20000000
je 0x4456d8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44c754
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c766
add esp, 0xfffffff0
call fcn.0040345c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419424
mov eax, dword [0x453088]
mov dword [eax + 4], ebx
mov dword [eax], 0x44caf8
mov eax, dword [0x453094]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cb04
mov eax, ebx
call fcn.0044cb10
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4112f0]
call fcn.00403120
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4112f0]
call fcn.00403120
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4112f0]
call fcn.00403120
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4112f0]
call fcn.00403120
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4112f0]
call fcn.00403120
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4487e0
push eax
push 0
push 0
mov eax, dword [0x4531cc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b43c]
call fcn.0041c8b4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b43c]
call fcn.0041c8b4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b43c]
call fcn.0041c8b4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044cf4c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ce10
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ce10
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ce10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c8a3
call fcn.004034b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44cbf4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44cd9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44cd80
mov dl, 1
mov eax, dword [0x411714]
call fcn.00403120
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ebc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44cd6f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00439cac
test al, al
je 0x44cd62
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44cdb0
lea eax, [ebp - 0x254]
call fcn.004088cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44cd62
xor eax, eax
push ebp
push 0x44cd5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44cde8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44cd44
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040412c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44cd44
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040412c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cd62
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44cc65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415374
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cda6
lea eax, [ebp - 0x260]
call fcn.00403ebc
ret

Function at 0x44d724
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x454b40]
cmp byte [eax + 0xad], 0
jne 0x44d795
cmp dword [0x454b58], 0
jne 0x44d756
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d6e0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x454b58], eax
cmp dword [0x454b54], 0
jne 0x44d771
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x454b54], eax
cmp dword [0x454b5c], 0
jne 0x44d795
push esp
push 0
push 0
push 0x44d684
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x454b5c], eax
pop edx
ret
Function at 0x44d968
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44d97f
add esp, 0xfffffff0
call fcn.0040345c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419424
mov eax, dword [0x4531b8]
cmp word [eax + 2], 0
jne 0x44d9a7
mov eax, dword [0x4531b8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f3ec
mov eax, dword [0x453258]
cmp word [eax + 2], 0
jne 0x44d9c1
mov eax, dword [0x453258]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f5f8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4112f0]
call fcn.00403120
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4112f0]
call fcn.00403120
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4112f0]
call fcn.00403120
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41bc10]
call fcn.00421988
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x44db70
mov eax, dword [0x4530e8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421d5c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44fd1c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4530e8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bf30
test eax, eax
je 0x44dac8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408300
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bf64
test eax, eax
je 0x44dadc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040412c
push ebx
push 0x44ef34
call fcn.0041a58c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x452ff8]
cmp byte [eax], 0
jne 0x44db26
mov eax, ebx
call fcn.0044dcb4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0044fef8
mov eax, ebx
call fcn.00450a48
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44db66
call fcn.004034b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44df34
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x454b40]
cmp dword [eax + 0x30], 0
je 0x44dfde
cmp dword [ebx + 0x94], 0
jne 0x44dfd8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44dec4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44dfd8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44df9e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44dfd8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041366c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44dfad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ecf8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x44ed2d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fac
jmp 0x44ed3a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f10
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4500dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45014a
mov eax, esi
call fcn.00434e5c
test al, al
je 0x45014a
mov eax, dword [ebx + 0x84]
call fcn.00434b88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45014a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x45013e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00434b88
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0042dc04
jmp 0x45014a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0044ff18
pop esi
pop ebx
ret

Function at 0x450edc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, eax
call sub.kernel32.dll_GetTickCount
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x45323c]
mov eax, dword [eax]
call fcn.0044f0e4
sub ebx, esi
cmp edi, ebx
jg 0x450ee8
pop edi
pop esi
pop ebx
ret
Function at 0x408913
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.00408942
and ecx, ecx
xor dword [edi], esi
and ecx, edx
add edi, 1
sub edx, 0x5a026d63
mov ecx, ecx
cmp edi, ebx
jne fcn.00408913
add ecx, 1
sub ecx, 0x7b29a757
ret
Function at 0xcaec30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32a000]
push edi
or ebp, 0xffffffff
jmp 0xcaec52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xcaec59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcaec48
mov eax, 1
add ebx, ebx
jne 0xcaec6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xcaec60
jne 0xcaec7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcaec60
xor ecx, ecx
sub eax, 3
jb 0xcaec90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xcaed02
mov ebp, eax
add ebx, ebx
jne 0xcaec9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xcaeca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xcaeccc
inc ecx
add ebx, ebx
jne 0xcaecb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xcaecad
jne 0xcaecc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcaecad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xcaecec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xcaecdd
jmp 0xcaec4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xcaecec
add edi, ecx
jmp 0xcaec4e
pop esi
mov edi, esi
mov ecx, 0x70f4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xcaed0a
cmp byte [edi], 0x28
jne 0xcaed0a
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 0xcaed0f
lea edi, [esi + 0x8aa000]
mov eax, dword [edi]
or eax, eax
je 0xcaed87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8b0358]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8b0498]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xcaed3c
mov ecx, edi
jns 0xcaed6b
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 + 0x8b049c]
or eax, eax
je 0xcaed81
mov dword [ebx], eax
add ebx, 4
jmp 0xcaed59
call dword [esi + 0x8b04ac]
mov ebp, dword [esi + 0x8b04a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0xcaedbb
sub esp, 0xffffff80
jmp 0x4ea001

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4099c3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415460]
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.00405518
mov dword [ebp - 0x14], eax
cmp dword [0x4170f8], esi
jne 0x409ab6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x409a43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x409b96
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x409b96
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409b96
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4170f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4170fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x417100], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417108], eax
test eax, eax
je 0x409ab3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417104], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x409adb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x409ace
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x409af0
push 4
pop eax
jmp 0x409b98
cmp dword [ebp - 0x14], esi
je 0x409af0
push dword [0x4170f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x409ad5
mov eax, dword [0x417104]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x409b4e
cmp dword [0x417108], edi
je 0x409b4e
push eax
call ebx
push dword [0x417108]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x409b4e
test eax, eax
je 0x409b4e
call ecx
test eax, eax
je 0x409b43
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 0x409b43
test byte [ebp - 8], 1
jne 0x409b4e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x409b7e
mov eax, dword [0x4170fc]
cmp eax, edi
je 0x409b7b
push eax
call ebx
test eax, eax
je 0x409b7b
call eax
mov esi, eax
test esi, esi
je 0x409b7b
mov eax, dword [0x417100]
cmp eax, edi
je 0x409b7b
push eax
call ebx
test eax, eax
je 0x409b7b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4170f8]
call ebx
test eax, eax
je 0x409b96
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x409b98
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403008
mov esp, ebp
pop ebp
ret
Function at 0x41c440
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x17c], edx
xor edi, edi
mov edx, ecx
movzx esi, byte [edi + str.80_]
movzx ecx, byte [edi + 0x5b9c31]
mov eax, esi
shr eax, 3
and esi, 7
movzx eax, byte [eax + edx]
test byte [esi*2 + 0x5b9bf0], al
setne al
mov byte [ebp + edi - 0x3c], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x5b9bf0], al
movzx ecx, byte [edi + 0x5b9c32]
setne al
mov byte [ebp + edi - 0x3b], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x5b9bf0], al
movzx ecx, byte [edi + 0x5b9c33]
setne al
mov byte [ebp + edi - 0x3a], al
mov eax, ecx
shr eax, 3
and ecx, 7
movzx eax, byte [eax + edx]
test byte [ecx*2 + 0x5b9bf0], al
setne al
mov byte [ebp + edi - 0x39], al
add edi, 4
cmp edi, 0x38
jl 0x41c460
mov ecx, 0x1e
xor ebx, ebx
mov dword [ebp - 0x178], ecx
nop dword [eax]
cmp dword [ebp - 0x17c], 1
lea eax, [ebx + ebx]
lea edi, [ebp - 0xf4]
cmovne ecx, eax
xor eax, eax
lea esi, [ebp + ecx*4 - 0xf0]
lea edi, [edi + ecx*4]
mov dword [esi], 0
movzx ecx, byte [ebx + 0x5b9eb0]
mov dword [edi], 0
cmp ecx, 0x1c
jge 0x41c53d
mov dl, byte [ebp + ecx - 0x3c]
jmp 0x41c541
mov dl, byte [ebp + ecx - 0x58]
mov byte [ebp + eax - 0x74], dl
inc ecx
inc eax
cmp eax, 0x1c
jl 0x41c532
movzx eax, byte [ebx + 0x5b9eb0]
mov ecx, 0x1c
add eax, ecx
nop word [eax + eax]
cmp eax, 0x38
jge 0x41c56b
mov dl, byte [ebp + eax - 0x3c]
jmp 0x41c56f
mov dl, byte [ebp + eax - 0x58]
mov byte [ebp + ecx - 0x74], dl
inc eax
inc ecx
cmp ecx, 0x38
jl 0x41c560
xor eax, eax
nop dword [eax]
movzx ecx, byte [eax + 0x5b9c00]
cmp byte [ebp + ecx - 0x74], 0
je 0x41c597
mov ecx, dword [eax*4 + 0x5b9990]
or dword [edi], ecx
movzx ecx, byte [eax + 0x5b9c18]
cmp byte [ebp + ecx - 0x74], 0
je 0x41c5ae
mov ecx, dword [eax*4 + 0x5b9990]
or dword [esi], ecx
inc eax
cmp eax, 0x18
jl 0x41c580
mov ecx, dword [ebp - 0x178]
inc ebx
sub ecx, 2
mov dword [ebp - 0x178], ecx
cmp ecx, 0xfffffffe
jg 0x41c500
lea eax, [ebp - 0x174]
mov dword [ebp - 0x17c], 0x10
lea ebx, [ebp - 0xf4]
mov dword [ebp - 0x178], eax
nop dword [eax]
mov edi, dword [ebx + 4]
lea ebx, [ebx + 8]
mov esi, dword [ebx - 8]
mov edx, edi
shr edx, 4
mov eax, edi
and eax, 0xfc0
and edx, 0xfc000
or edx, eax
mov ecx, esi
and ecx, 0xfc0
shr edx, 6
shl ecx, 4
mov eax, esi
and eax, 0xfc0000
or ecx, eax
mov eax, dword [ebp - 0x178]
shl ecx, 6
or edx, ecx
mov ecx, esi
and ecx, 0x3f
and esi, 0x3f000
mov dword [eax], edx
mov edx, eax
shl ecx, 4
mov eax, edi
or ecx, esi
shr eax, 4
shl ecx, 0xc
and eax, 0x3f00
or ecx, eax
and edi, 0x3f
or ecx, edi
mov dword [edx + 4], ecx
add edx, 8
sub dword [ebp - 0x17c], 1
mov dword [ebp - 0x178], edx
jne 0x41c5f0
mov ecx, 0x20
lea esi, [ebp - 0x174]
mov edi, 0x5e4550
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x41d540
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x198], 6
jb 0x41d5f2
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x1d8], 0x3c
mov dword [ebp - 0x1d4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x1d8]
push eax
mov dword [ebp - 0x1cc], str.runas
mov dword [ebp - 0x1c4], str._softwarecad
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 1
mov dword [ebp - 0x1b8], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret