joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408960
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xa0
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x40
lea eax, [esp + 0x64]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x10], vtable.MD5_CTX.0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0xb4]
add esp, 0xc
push esi
lea ecx, [esp + 8]
push ecx
mov byte [esp + 0x68], 0x80
call fcn.00408a50
mov ecx, edi
lea esi, [esp + 4]
call fcn.00408b30
xor ecx, ecx
pop esi
cmp byte [edi + ecx], 0
jne 0x4089ee
mov byte [edi + ecx], cl
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
sub eax, edx
jne 0x408a09
xor byte [edi + ecx], 0x11
add ecx, 1
cmp ecx, 0x10
jl 0x4089e5
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0040ba0c
add esp, 0xa0
ret

Function at 0x408b30
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xc
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 8], eax
push ebp
push edi
mov edi, ecx
xor ecx, ecx
lea eax, [esi + 0x16]
jmp 0x408b50
movzx edx, byte [eax - 2]
mov byte [esp + ecx + 8], dl
movzx edx, byte [eax - 1]
mov byte [esp + ecx + 9], dl
movzx edx, byte [eax]
mov byte [esp + ecx + 0xa], dl
movzx edx, byte [eax + 1]
mov byte [esp + ecx + 0xb], dl
add ecx, 4
add eax, 4
cmp ecx, 8
jb 0x408b50
mov ecx, dword [esi + 0x14]
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
mov eax, 0x38
jb 0x408b92
mov eax, 0x78
lea ebp, [esi + 0x5c]
push ebp
sub eax, ecx
push esi
call fcn.00408a50
lea eax, [esp + 8]
push eax
push esi
mov eax, 8
call fcn.00408a50
lea ecx, [edi + 1]
lea eax, [esi + 6]
mov edi, 4
lea esp, [esp]
movzx edx, byte [eax - 2]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
sub edi, 1
jne 0x408bc0
push 0x9c
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x40
push 0
push ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
mov byte [ebp], 0x80
pop ebp
xor ecx, esp
call fcn.0040ba0c
add esp, 0xc
ret
Function at 0x40951c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40955b
push edi
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_GetParent]
push esi
push str.CWINBUTTON
push dword [esi + 8]
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_SetPropA]
test eax, eax
jne 0x409560
push str.SetProp_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push ebx
je 0x4095ba
push 0xfffffffffffffff0
push eax
call edi
test eax, 0xc00000
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x40958a
push 4
call ebx
mov dword [esi + 0x2fc], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x800000
je 0x4095a2
push 5
call ebx
mov dword [esi + 0x300], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x40000
je 0x4095ba
push 0x2d
call ebx
mov dword [esi + 0x304], eax
push 0xfffffffffffffff0
push dword [esi + 8]
call edi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push dword [esi + 8]
call edi
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 5
push 5
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push 1
mov ebx, eax
push ebx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x4099a5
push 0xfffffffffffffffc
push dword [esi + 8]
call edi
mov dword [esi + 0x10], eax
xor eax, eax
inc eax
pop ebx
jmp 0x40955d
Function at 0x409d7a
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
push ebp
xor ebp, ebp
cmp dword [esi + 0x50], ebp
jne 0x409d8c
xor eax, eax
jmp 0x409ef7
push ebx
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
mov ebx, eax
push 1
push ebx
mov dword [esp + 0x24], ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esp + 0x20], eax
call edi
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.GDI32.dll_CreateRectRgn]
cmp eax, ebp
mov dword [esp + 0xc], eax
jne 0x409dd5
push str.CreateRectRgn_wndRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
cmp dword [esi + 0x5c], ebp
jle 0x409ec2
jmp 0x409de4
xor ebp, ebp
lea eax, [ebx + 1]
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
jg 0x409e21
lea ebp, [esi + 0x4c]
push ebx
push edi
mov eax, ebp
call fcn.0040a411
cmp eax, 0xff00ff
jne 0x409e21
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
inc edi
sar eax, 2
cmp edi, eax
jle 0x409e00
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
mov dword [esp + 0x14], edi
jg 0x409e59
lea ebp, [esi + 0x4c]
push ebx
push edi
mov eax, ebp
call fcn.0040a411
cmp eax, 0xff00ff
je 0x409e59
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
inc edi
sar eax, 2
cmp edi, eax
jle 0x409e38
push dword [esp + 0x10]
push edi
push ebx
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebp, eax
test ebp, ebp
jne 0x409e7a
push str.CreateRectRgn_temp_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
push ebp
push dword [esp + 0x14]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
jne 0x409e9a
push str.CombineRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
jle 0x409ded
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x5c]
jl 0x409de2
push 1
push dword [esp + 0x10]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push dword [esp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x1c]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
pop edi
inc eax
pop ebx
pop ebp
add esp, 0x14
ret
Function at 0x40a439
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 4
pop edx
cmp ecx, edx
jge 0x40a45c
mov dword [eax], edx
jmp 0x40a48d
push ecx
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 3
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ba0c
leave
ret

Function at 0x40a499
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push edi
lea eax, [ebp - 0x80]
push 0x40d844
push eax
mov edi, ecx
call esi
lea eax, [ebp - 0x7c]
push 0x40de80
push eax
call esi
push edi
lea eax, [ebp + 0x90]
push 0x40de84
push eax
call esi
mov ebx, dword [sym.imp.MSVCR80.dll_strchr]
lea esi, [ebp + 0x90]
mov dword [ebp - 0x78], 1
mov eax, esi
add esp, 0x1c
sub dword [ebp - 0x78], eax
movsx eax, byte [ebp - 0x80]
push eax
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x40a51b
movsx eax, byte [ebp - 0x7c]
push eax
push esi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x40a55c
mov al, byte [esi]
cmp al, byte [ebp - 0x80]
je 0x40a527
cmp al, byte [ebp - 0x7c]
jne 0x40a559
mov ecx, dword [ebp - 0x78]
lea edi, [ecx + esi]
xor eax, eax
test edi, edi
jle 0x40a549
push edi
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, edi
mov byte [ebp + eax - 0x74], 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR80.dll__mkdir]
pop ecx
inc esi
jmp 0x40a4ff
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040ba0c
add ebp, 0x198
leave
ret
Function at 0x40a576
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp + 0x4b0], eax
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x40a5bb
xor al, al
mov ecx, dword [ebp + 0x4b0]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ba0c
add ebp, 0x4b4
leave
ret
cmp dword [ebp + 0x4bc], 1
push 0x10
pop eax
jne 0x40a5ca
push 2
pop eax
lea ecx, [ebp - 0x80]
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40a5ee
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40a5f8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
jmp 0x40a5a4
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp + 0x3a8]
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp + 0x3a8]
push 0x40d844
push eax
call sub.MSVCR80.dll_strcat
lea eax, [ebp + 0x3a8]
push edi
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x18
cmp byte [ebp + 0x4c0], bl
je 0x40a643
lea ecx, [ebp + 0x3a8]
call fcn.0040a499
mov bl, 1
jmp 0x40a5ee
lea eax, [ebp + 0x3a8]
push str..lnk
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
push 0x40d4bc
push 1
push ebx
push 0x40d4cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40a5ee
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
lea eax, [ebp + 0x2a0]
push esi
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp + 0x2a0]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
push 2
mov esi, eax
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov al, byte [ebp + 0x2a0]
mov byte [ebp - 0x74], al
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR80.dll__strupr]
mov al, byte [ebp - 0x74]
mov byte [ebp + 0x2a0], al
add esp, 0x20
mov byte [esi], bl
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp + 0x2a0]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x40d4dc
push eax
call dword [ecx]
test eax, eax
jl 0x40a734
push 0x104
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x3a8]
push eax
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40a734
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a63f
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a5ee
Function at 0x40a74b
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40a81c
cmp dword [ebp + 8], 1
push 0x10
pop eax
jne 0x40a77b
push 2
jmp 0x40a783
cmp dword [ebp + 8], 2
jne 0x40a784
push 0x17
pop eax
lea ecx, [ebp - 0x21c]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40a816
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40a816
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp - 0x110]
push 0x40d844
push eax
call sub.MSVCR80.dll_strcat
lea eax, [ebp - 0x110]
push esi
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x18
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x110]
je 0x40a7fa
push eax
call fcn.0040aa05
pop ecx
mov al, 1
jmp 0x40a81e
push str..lnk
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40a81c
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ba0c
leave
ret
Function at 0x40a82a
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3b4]
push esi
mov esi, dword [ebp + 0x3b0]
push edi
mov edi, dword [ebp + 0x3a8]
mov dword [ebp - 0x7c], ebx
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x6c], esi
je 0x40a9ed
cmp eax, ebx
je 0x40a9ed
cmp ecx, ebx
je 0x40a9ed
cmp edx, ebx
je 0x40a9ed
cmp esi, ebx
je 0x40a9ed
push 0x400
lea eax, [ebp - 0x64]
push ebx
mov esi, 0x80000002
push eax
mov dword [ebp - 0x68], esi
call sub.MSVCR80.dll_memset
push edi
mov edi, dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [ebp - 0x64]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a8ed
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push dword [ebp - 0x80]
call sub.MSVCR80.dll_strlen
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ecx
inc eax
push eax
push dword [ebp - 0x80]
push 2
push ebx
push str.DisplayName
push dword [ebp - 0x68]
call esi
push 4
lea eax, [ebp - 0x70]
push eax
push 4
push ebx
push str.NoModify
push dword [ebp - 0x68]
mov dword [ebp - 0x70], 1
call esi
push 4
lea eax, [ebp - 0x70]
push eax
push 4
push ebx
push str.NoRepair
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x7c], ebx
lea eax, [ebp - 0x64]
jne 0x40a953
push dword [ebp - 0x6c]
push str.__s_
push eax
call edi
add esp, 0xc
jmp 0x40a964
push dword [ebp - 0x7c]
push dword [ebp - 0x6c]
push str.__s____U:_s_
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x64]
push eax
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x64]
push eax
push 2
push ebx
push str.UninstallString
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x74]
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp - 0x74]
push 2
push ebx
push str.Publisher
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x78]
call sub.MSVCR80.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp - 0x78]
push 2
push ebx
push str.Contact
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
push str.__s_
push eax
call edi
lea eax, [ebp - 0x64]
push eax
call sub.MSVCR80.dll_strlen
add esp, 0x10
inc eax
push eax
lea eax, [ebp - 0x64]
push eax
push 2
push ebx
push str.DisplayIcon
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x39c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ba0c
add ebp, 0x3a0
leave
ret
Function at 0x40aa05
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x290
mov eax, 0x40c4f0
call fcn.0040c33e
mov esi, dword [ebp + 8]
test esi, esi
je 0x40aba8
lea eax, [ebp - 0x118]
push esi
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp - 0x118]
push 0x40df20
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x27c], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebp - 4], 0
cmp dword [ebp - 0x27c], 0xffffffff
je 0x40ab84
push 0x40df24
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40ab69
push 0x40df28
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40ab69
push esi
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x134]
call dword [0x40d198]
test byte [ebp - 0x278], 0x10
je 0x40ab4d
push 0x40d844
lea ecx, [ebp - 0x134]
call dword [0x40d198]
push 0x1e
lea eax, [ebp - 0x29c]
push 0
push eax
call sub.MSVCR80.dll_memset
and dword [ebp - 0x29c], 0
mov eax, dword [ebp - 0x130]
add esp, 0xc
cmp dword [ebp - 0x11c], 0x10
mov dword [ebp - 0x298], 3
mov word [ebp - 0x28c], 0x44
jb 0x40ab29
mov dword [ebp - 0x294], eax
jmp 0x40ab35
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x294], ecx
cmp dword [ebp - 0x11c], 0x10
jae 0x40ab44
lea eax, [ebp - 0x130]
push eax
call fcn.0040aa05
pop ecx
jmp 0x40ab69
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x40ab62
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40aa77
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.MSVCR80.dll__rmdir]
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call fcn.0040c388
ret
Function at 0x40abae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40ac23
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40ac23
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0040b060
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b7fe
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x411020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040b793
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40b84d
cmp dword [ebp - 0x1c], 5
jb 0x40b865
jmp 0x40b861
cmp dword [ebp - 0x10], 1
jne 0x40b865
cmp dword [ebp - 0x1c], 4
ja 0x40b861
jne 0x40b865
cmp dword [ebp - 0x18], 0
jbe 0x40b865
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40d49c
call fcn.0040b667
test eax, eax
jge 0x40b886
mov byte [0x4151b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040ba0c
add ebp, 0x78
leave
ret

Function at 0x40ba0c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411020]
jne 0x40ba16
repz ret
jmp fcn.0040bfa0
Function at 0x416e04
Capabilities:
Encode data using xor

Disassembly:
ret 0x548a
loopne 0x416e2d
adc al, 0x95
mov ah, 0xf7
mov ecx, 0x369fa8b1
idiv dword [ecx + 0x369fa8b1]
sbb al, 0xb2
xor al, 0x2f
push ds
or bh, byte [edx]
mov esi, 0xec8eacbe
mov esi, 0x30dd1e73
mov edx, 0xe547b98e
sbb cl, bl
invalid
inc esi
lea esp, [0x2bb88251]
push esp
dec ebx
xchg esp, eax
fadd dword [ecx]
sbb byte [0xeb2820a1], ah
sbb ch, byte [eax]
bnd jg 0x416e0a
or esi, dword [0x70ddb1ef]
or bl, byte [eax - 0x5c]
inc eax
mov al, 0x85
inc ebp
dec ebp
push esp
jns 0x416ddc
not dword [edi + 0x1bceb417]
jle 0x416eae
push 0xffffffffffffff8b
sub dword [edx - 0x39], esp
push 0x2e752f4
inc edi
sub cl, byte [edi - 0x4e18c10b]
inc edx
movsb byte es:[edi], byte [esi]
test dword [ebx - 0x18], 0x78469887
aam 0xf4
xlatb
dec dword [0x90c058cd]
invalid
adc byte [ebx + 0x215ac308], dh

Function at 0x44b610
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov al, byte [0x66004e]
mov cl, byte [0x660043]
xor cl, al
mov byte [0x660043], cl
mov cl, byte [0x660041]
or cl, 0xc
shr cl, 2
and ecx, 0xff
mov dword [esp], ecx
fild dword [esp]
fdivr qword [0x6639b0]
fadd qword [0x663950]
fstp qword [0x6639b0]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov dl, byte [0x660042]
mov al, byte [0x660049]
mov ecx, dword [0x660030]
xor al, dl
mov byte [0x660049], al
mov eax, dword [0x660034]
mov edx, dword [0x660048]
and eax, 4
add ecx, eax
and edx, 0xff
mov dword [0x660030], ecx
mov ecx, dword [0x66003c]
and ecx, 0xc
mov eax, dword [esp + 8]
imul ecx, edx
mov edx, dword [0x660038]
push eax
xor edx, ecx
mov dword [0x660038], edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [0x663bb4], eax
mov eax, dword [0x663bb0]
test eax, eax
jne 0x44b6fd
mov ecx, dword [0x663a9c]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jne 0x44b6ed
mov eax, dword [esp + 8]
mov ecx, dword [0x663bb4]
cmp eax, ecx
je 0x44b6ed
mov dword [0x663bb4], eax
xor eax, eax
mov dword [0x663bb0], 1
pop ecx
ret 4
mov eax, dword [esp + 8]
pop ecx
ret 4
Function at 0x46ba44
Capabilities:
Encode data using xor

Disassembly:
sub dword [eax + 0x4864117], esi
call 0xd0672519
invalid
push edx
wait
loop 0x46b9f9
inc edi
mov word [eax + 0x40], gs
xlatb
sbb edi, dword [0x713a6005]
pop es
mov ecx, 0xa9abb3eb
mov dl, 0xa5
and al, byte [edi + 0x9ead610]
pop esp
dec esi
mov ch, 0x77
sal dword [esi], cl
lea esp, [eax]
pop sp
sub eax, 0x624969fc
loope 0x46ba55
xchg dword [eax], edx
salc
ljmp 0xd377
cwde
je 0x46ba3b
mov dword [0xdd1d5851], eax
mov dl, 0x88
fstp xword [esi - 0x3c]
and eax, 0xcd6f02c
in al, dx
inc ecx
das
and ebx, ecx
test dl, bh
aas
xor eax, ebx
add eax, 0x649e6b90
sbb dword [ecx + 0x19608262], eax
das
mov dh, 0xf2
shl dword [eax + 0x4047d039], 0xd5
or byte [ecx + 0x2ceb689a], ah
mov word [ecx], es
push edx
sbb edx, eax
sbb edi, eax
outsd dx, dword [esi]
xor byte [ecx], dh
jns 0x46baa4
push edx
or al, 0x8e
iretd