joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40125d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40126d
xor eax, eax
jmp 0x401421
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4013de
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ecx*4 + 0x40a198]
xor ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ecx*4 + 0x40a198]
xor ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ecx*4 + 0x40a198]
xor ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ecx*4 + 0x40a198]
xor ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ecx*4 + 0x40a198]
xor ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ecx*4 + 0x40a198]
xor ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ecx*4 + 0x40a198]
xor ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ecx*4 + 0x40a198]
xor ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x401276
cmp dword [ebp + 0x10], 0
je 0x40141b
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
mov ecx, dword [ecx*4 + 0x40a198]
xor ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x4013e4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x40501f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
je 0x405050
movzx eax, byte [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x40505d
cmp dword [ebp - 8], 0
jne 0x40505b
or eax, 0xffffffff
jmp 0x40505d
xor eax, eax
leave
ret

Function at 0x405163
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x14], 0xffff
and dword [ebp - 0x10], 0
push 2
push 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x405194
xor eax, eax
jmp 0x4052ea
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jbe 0x4051ab
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
push 4
push 0x1000
push 0x404
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4051cf
xor eax, eax
jmp 0x4052ea
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jae 0x4052d1
mov eax, dword [ebp - 0xc]
add eax, 0x400
cmp eax, dword [ebp - 0x14]
jbe 0x4051f7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x405202
mov eax, dword [ebp - 0xc]
add eax, 0x400
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x24]
cmp eax, 0x404
jbe 0x405221
mov dword [ebp - 0x28], 0x404
jmp 0x40522a
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
push 0
push 0
push dword [ebp - 0x24]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40524a
jmp 0x4052d1
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x405265
jmp 0x4052d1
mov eax, dword [ebp - 0x1c]
sub eax, 3
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
dec ecx
mov dword [ebp - 0x20], ecx
test eax, eax
jle 0x4052c4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
movzx eax, byte [eax]
cmp eax, 0x50
jne 0x4052c2
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
movzx eax, byte [eax + 1]
cmp eax, 0x4b
jne 0x4052c2
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
movzx eax, byte [eax + 2]
cmp eax, 5
jne 0x4052c2
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
movzx eax, byte [eax + 3]
cmp eax, 6
jne 0x4052c2
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
jmp 0x4052c4
jmp 0x40526e
cmp dword [ebp - 0x10], 0
je 0x4052cc
jmp 0x4052d1
jmp 0x4051d6
cmp dword [ebp - 8], 0
je 0x4052e7
push 0x8000
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x406410
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx eax, byte [eax]
cmp eax, 0x22
jne 0x40645c
mov eax, dword [ebp - 0x4c]
movsx eax, byte [eax]
test eax, eax
je 0x406448
mov eax, dword [ebp - 0x4c]
movsx eax, byte [eax]
cmp eax, 0x22
je 0x406448
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
jmp 0x40642a
mov eax, dword [ebp - 0x4c]
movsx eax, byte [eax]
cmp eax, 0x22
jne 0x40645a
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
jmp 0x406470
mov eax, dword [ebp - 0x4c]
movsx eax, byte [eax]
cmp eax, 0x20
jle 0x406470
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
jmp 0x40645c
mov eax, dword [ebp - 0x4c]
movsx eax, byte [eax]
test eax, eax
je 0x40648e
mov eax, dword [ebp - 0x4c]
movsx eax, byte [eax]
cmp eax, 0x20
jg 0x40648e
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
jmp 0x406470
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, dword [ebp - 0x18]
and eax, 1
test eax, eax
je 0x4064af
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x4064b6
mov dword [ebp - 0x50], 0xa
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

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

Disassembly:
push ebp
mov ebp, esp
push 0x104
push 0x410f90
push 0x40d278
push dword [ebp + 8]
call fcn.00406718
add esp, 0x10
push 0x104
push 0x410f90
push 0x40d278
push dword [ebp + 8]
call fcn.00406718
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406a0a
xor eax, eax
jmp 0x406a0d
push 1
pop eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x406a2d
xor eax, eax
jmp 0x406a3e
mov eax, dword [ebp - 4]
and eax, 0x10
test eax, eax
je 0x406a3c
push 1
pop eax
jmp 0x406a3e
xor eax, eax
leave
ret

Function at 0x406aaf
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406b04
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 8], 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x4070e6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
mov al, byte [0x410f90]
mov byte [ebp - 0x10c], al
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [0x410f90]
mov byte [ebp - 0x214], al
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
push 0x40d27c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 1
pop eax
test eax, eax
je 0x407238
push dword [ebp - 4]
push 0x40d27c
lea eax, [ebp - 0x10c]
push eax
call fcn.004068aa
add esp, 0xc
mov dword [ebp - 0x218], eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jne 0x40718e
jmp 0x407238
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jne 0x4071c6
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x40d27c
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
jmp 0x4071eb
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x40d27c
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
lea eax, [ebp - 0x214]
push eax
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
lea eax, [ebp - 0x214]
push eax
call fcn.00406a0f
pop ecx
test eax, eax
jne 0x40722c
push 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
jmp 0x407151
mov eax, dword [ebp - 0x21c]
pop edi
leave
ret
Function at 0x407303
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x407334
xor eax, eax
jmp 0x4073da
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40735d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x4073da
push 0
push 0
push 0
push 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40738d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x4073da
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x4073d8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
push 0xf8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
jne 0x4073cf
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
je 0x4073d3
xor eax, eax
jmp 0x4073da
push 1
pop eax
jmp 0x4073da
xor eax, eax
leave
ret

Function at 0x4073dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4119dc], eax
push 0x411b08
call fcn.00409d55
pop ecx
push 0x4119e8
call fcn.00409d55
pop ecx
push 0
call fcn.00408d47
pop ecx
cmp dword [0x410e64], 0
je 0x407477
push 0x411a00
call fcn.00406a0f
pop ecx
test eax, eax
jne 0x40743f
push 0x411a00
call fcn.004070e6
pop ecx
test eax, eax
jne 0x40743f
push str.Couldnt_create_output_directory.
call fcn.00406228
pop ecx
push 1
pop eax
jmp 0x4074d6
push 0
call fcn.004081b4
pop ecx
call fcn.0040968d
cmp dword [0x410e5c], 0
je 0x40746d
push 5
push 0
push 0
push 0x411a00
push str.explore
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.004061dc
push 1
pop eax
jmp 0x4074d6
push str.Tahoma
call fcn.00406b06
pop ecx
test eax, eax
je 0x4074a2
push str.Tahoma
push 0x410e70
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [0x4119d4], 0xd
jmp 0x4074bc
push 0x40d414
push 0x410e70
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [0x4119d4], 0xd
push 0
push 0x40776e
push 0
push 0x66
push dword [0x4119dc]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 1
pop eax
pop ebp
ret 0x10
Function at 0x409c8e
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x40a7e0
push 1
push 0
push 0x40a7d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x409d4d
lea eax, [ebp - 0xc]
push eax
push 0x40a7f0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 4]
call dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x409d42
push 0x104
lea eax, [ebp - 0x214]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 4]
call dword [eax + 0x50]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 4]
call dword [eax + 0x24]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x409d37
push 1
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [ebp - 0xc]
call dword [eax + 0x18]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push dword [ebp - 0xc]
call dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [ebp - 4]
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
leave
ret
Function at 0x406451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e9c3
call fcn.0040d3d4
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166f0]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4065c3
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4065c3
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4065c3
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4065c3
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40653b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4065b1
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4065b1
mov ecx, 0x1234
cmp cx, ax
jne 0x4065b1
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x40658e
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x4065c1
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4064a9
jmp 0x4065c3
xor edi, edi
mov eax, edi
call fcn.0040d38f
ret 4

Function at 0x40d37a
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x40d380
pop dword [ebp - 0x1c]
mov eax, 0x40d380
invalid
test esp, esp
invalid
Function at 0x10009e47
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001d160]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10004e1a
mov dword [ebp - 0x14], eax
cmp dword [0x1001eff4], edi
jne 0x10009f38
push 0x800
push edi
push 0x1001828c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10009ec5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000a018
push 0x1001828c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000a018
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000a018
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1001eff4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1001eff8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1001effc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1001f004], eax
test eax, eax
je 0x10009f35
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1001f000], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10009f5d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10009f50
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10009f72
push 4
pop eax
jmp 0x1000a01a
cmp dword [ebp - 0x14], edi
je 0x10009f72
push dword [0x1001eff4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10009f57
mov eax, dword [0x1001f000]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10009fd0
cmp dword [0x1001f004], esi
je 0x10009fd0
push eax
call ebx
push dword [0x1001f004]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10009fd0
test eax, eax
je 0x10009fd0
call ecx
test eax, eax
je 0x10009fc5
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 0x10009fc5
test byte [ebp - 8], 1
jne 0x10009fd0
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1000a000
mov eax, dword [0x1001eff8]
cmp eax, esi
je 0x10009ffd
push eax
call ebx
test eax, eax
je 0x10009ffd
call eax
mov edi, eax
test edi, edi
je 0x10009ffd
mov eax, dword [0x1001effc]
cmp eax, esi
je 0x10009ffd
push eax
call ebx
test eax, eax
je 0x10009ffd
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1001eff4]
call ebx
test eax, eax
je 0x1000a018
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1000a01a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001e2b
leave
ret
Function at 0x1000c8e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov eax, dword [0x1001d160]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
mov dword [esp + 0xc], 0x74616e69
mov word [esp + 9], 0x7265
mov word [esp + 0x11], 0x7250
mov word [esp + 0x14], 0x6563
mov byte [esp + 0xb], 0x6d
mov byte [esp + 0x13], 0x6f
mov byte [esp + 8], 0x54
mov word [esp + 0x17], 0x73
mov byte [esp + 0x10], 0x65
mov byte [esp + 0x16], 0x73
call fcn.10011ac0
mov ecx, eax
call fcn.10011a50
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000c95f
push 0
push esi
call eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10001e2b
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
xor eax, eax
call fcn.10001e2b
add esp, 0x18
ret

Function at 0x1000c980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x1001d160]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.10011ac0
mov ecx, eax
call fcn.10011930
test eax, eax
je 0x1000ca00
lea ecx, [esp + 8]
push ecx
push eax
mov word [esp + 0x10], 0x6553
mov dword [esp + 0x19], 0x736f50
mov dword [esp + 0x15], 0x776f646e
mov word [esp + 0x13], 0x6957
mov byte [esp + 0x12], 0x74
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000ca00
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push edi
push esi
call eax
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10001e2b
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.10001e2b
add esp, 0x14
ret

Function at 0x1000ca80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x1001d160]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
call fcn.10011ac0
mov ecx, eax
call fcn.10011930
test eax, eax
je 0x1000caf7
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x15], 0x6f646e69
mov word [esp + 0x10], 0x6946
mov dword [esp + 0x1a], 0x417845
mov word [esp + 0x13], 0x5764
mov byte [esp + 0x19], 0x77
mov byte [esp + 0x12], 0x6e
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000caf7
push 0
push edi
push 0
push esi
call eax
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10001e2b
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.10001e2b
add esp, 0x14
ret