joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e5f0
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1280
call fcn.0041da20
cmp dword [0x8e4004], 0x37
push esi
jne 0x41e6f1
push 0
lea eax, [esp + 0x284]
push eax
push 0x403ed4
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
call esi
xor eax, eax
lea edx, [esp + 8]
push edx
push eax
push eax
push eax
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
push 0
lea eax, [esp + 0x684]
push eax
push 0x403ee0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0xa84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x60]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
call esi
push 0x403f08
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x38], 0
call fcn.004102c0
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov edx, dword [0x8e6768]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + ebx]
mov edx, dword [0x8e27f0]
mov byte [edx + ebx], cl
pop esi
add esp, 0x1280
ret
Function at 0x41e990
Capabilities:
Accept command line arguments
Get geographical location
Query environment variable

Disassembly:
mov eax, dword [0x8e4004]
mov ecx, dword [0x8e27f0]
sub esp, 0x984
push ebx
push ebp
shr eax, 3
xor ebp, ebp
push esi
push edi
cmp eax, ebp
jbe 0x41eb8b
mov dword [esp + 0x3c], 0x9e3779b9
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [0x437800]
mov edx, dword [0x437804]
mov dword [esp + 0x1c], eax
mov eax, dword [0x437808]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x43780c]
mov dword [esp + 0x18], 0xc6ef3720
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], 0x20
mov ebx, dword [esp + 0x18]
mov eax, edi
shl eax, 4
add eax, dword [esp + 0x34]
mov esi, edi
add ebx, edi
shr esi, 5
cmp dword [0x8e4004], 0x1b
mov dword [esp + 0x14], eax
jne 0x41ea46
push ebp
call dword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
add esi, dword [esp + 0x44]
xor eax, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], eax
mov dword [0x8e27f4], ebp
mov eax, dword [esp + 0x24]
add dword [0x8e27f4], eax
mov ecx, dword [0x8e27f4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x40]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
sub dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x48]
add esi, ecx
cmp dword [0x8e4004], 0x1be
mov dword [esp + 0x14], eax
jne 0x41eadb
push ebp
lea eax, [esp + 0x194]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
shr ecx, 5
add ecx, dword [esp + 0x38]
cmp dword [0x8e4004], 0x979
mov dword [0x8e27f8], 0xff6b3619
mov dword [0x8e27fc], 0xffffffff
mov dword [esp + 0x24], ecx
jne 0x41eb16
lea ecx, [esp + 0x50]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x14]
xor eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
xor dword [esp + 0x14], eax
sub edi, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x3c]
add dword [esp + 0x20], eax
sub dword [esp + 0x18], eax
dec dword [esp + 0x2c]
jne 0x41ea02
cmp dword [0x8e4004], 0x8d4
jne 0x41eb54
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [eax], edi
mov dword [eax + 4], edx
cmp dword [0x8e4004], 0x17
jne 0x41eb76
lea eax, [esp + 0x50]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ecx, dword [esp + 0x28]
add ecx, 8
dec dword [esp + 0x30]
mov dword [esp + 0x28], ecx
jne 0x41e9c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x984
ret
Function at 0x401bf0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x407004]
mov dword [section..bss], 0
test eax, eax
je 0x401ce0
lea esi, [ebp - 0xc]
mov dword [esp + 0xc], 0x20019
mov ebx, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov dword [esp], 0x80000002
call ebx
sub esp, 0x14
test eax, eax
je 0x401ca0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov dword [esp], 0x80000001
call ebx
sub esp, 0x14
test eax, eax
je 0x401cc0
mov eax, dword [section..bss]
mov dword [esp + 0xc], dbg.cmp_by_name
mov dword [esp + 8], 0x14
mov dword [esp + 4], eax
mov eax, dword [0x407004]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_qsort]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
call sym._FetchFromRootKey.isra.0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x401c44
mov eax, dword [ebp - 0xc]
call sym._FetchFromRootKey.isra.0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x401c70
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [0x407004], eax
sub esp, 0xc
jmp 0x401c0f
Function at 0x402520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40257b
cmp byte [esi + ebx - 1], 0xa
je 0x40254f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402fb0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x401042
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x403054], eax
call sub.KERNEL32.dll_GetCommandLineA
mov dword [0x403058], eax
push 0
call sub.ole32.dll_OleInitialize
push 0xa
push dword [0x403058]
push 0
push dword [0x403054]
call 0x401042
call sub.ole32.dll_OleUninitialize
push eax
call sub.KERNEL32.dll_ExitProcess
call sub.COMCTL32.dll_InitCommonControls
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x401140
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x403054]
pop dword [ebp - 0x1c]
push 0x1f4
push dword [ebp + 8]
call sub.USER32.dll_LoadIconA
mov dword [0x403060], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.Drag_n_DropClass
lea eax, [ebp - 0x30]
push eax
call sub.USER32.dll_RegisterClassExA
push 0
lea eax, [ebp - 0x5c]
push eax
push 0
push 0x30
call sub.USER32.dll_SystemParametersInfoA
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x5c]
shr eax, 1
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x58]
shr edx, 1
push 0
push dword [0x403054]
push 0
push 0
push edx
push eax
push 0
push 0
push 0x10cf0000
push str.Drag_n_Drop
push str.Drag_n_DropClass
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x40305c], eax
push 1
push dword [0x40305c]
call sub.USER32.dll_ShowWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_GetMessageA
or eax, eax
je 0x401139
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_DispatchMessageA
jmp 0x401112
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x10883058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.108831a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1088307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1088306a
add dl, dl
jne 0x10883089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108830dc
xor eax, eax
add dl, dl
jne 0x10883096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1088317d
add dl, dl
jne 0x108830a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108830b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108830bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108830c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108830d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10883075
mov eax, 1
add dl, dl
jne 0x108830ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108830f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108830e1
sub eax, ebx
mov ebx, 1
jne 0x10883128
mov ecx, 1
add dl, dl
jne 0x1088310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10883119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10883105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10883075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1088313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1088314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10883136
cmp eax, 0x7d00
jae 0x1088316d
cmp eax, 0x500
jb 0x10883168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10883075
cmp eax, 0x7f
ja 0x10883170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10883075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1088319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10883075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4015d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get hostname

Disassembly:
push ecx
push 0x80c000
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x805608
push eax
mov dword fs:[0], esp
sub esp, 0x504
cmp dword [0xc2a228], 0x5b1
push ebx
push esi
push edi
jne 0x401694
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea esi, [ebp - 0x34]
call fcn.00401bf0
push 0
mov dword [ebp - 4], 0
call fcn.00403966
add esp, 4
jmp 0x4015c0
mov eax, dword [0xc2a228]
add eax, 0x1134b
push eax
push 0
mov dword [0xc2a228], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [0xc2a228]
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push edx
push eax
mov dword [0xc2917c], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
xor esi, esi
lea ecx, [ecx]
cmp esi, 0x2710
jge 0x4016e3
lea eax, [ebp - 0x510]
push eax
push 0
call edi
inc esi
cmp esi, 0x1ff49ccc
jl 0x4016d0
mov ecx, dword [0xc2a228]
xor esi, esi
test ecx, ecx
jbe 0x401759
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
jmp 0x401710
mov ecx, dword [0xc2a22c]
mov dl, byte [ecx + esi + 0x1134b]
mov eax, dword [0xc2917c]
mov byte [eax + esi], dl
mov ecx, dword [0xc2a228]
cmp ecx, 0xa8
jne 0x401754
push 0
lea ecx, [ebp - 0x10]
push ecx
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [ebp - 0x110]
push edx
call ebx
mov ecx, dword [0xc2a228]
inc esi
cmp esi, ecx
jb 0x401710
xor eax, eax
jmp 0x401760
lea edx, [ecx + eax]
cmp edx, 0xe
je 0x4017fc
inc eax
cmp eax, 0x39621
jl 0x401760
call fcn.004014c0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x26
jne 0x40178d
call fcn.004015a0
inc esi
cmp esi, 0x6753f
jl 0x401781
mov esi, dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov ebx, dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov dword [ebp - 0x10], 0x7b
nop
cmp dword [0xc2a228], 0x86
jne 0x4017e0
push 0
push 0
call esi
push 0
push 0x807d48
push str.erixiguxokudepe_vih_nukaxakutepisoxekuposu_nujuf
call edi
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
sub dword [ebp - 0x10], 1
jne 0x4017b0
call fcn.00401260
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x401810
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [0xc2a228], 0x400
push esi
push edi
jne 0x401847
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea esi, [ebp - 0x24]
call fcn.00401930
mov ecx, esi
call fcn.00401950
mov edi, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetClipboardViewer]
xor esi, esi
cmp esi, 0xa5a
jge 0x40185f
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x2afe5b
jle 0x401875
cmp edi, 0x78e8e445
jne 0x40187e
inc esi
cmp esi, 0x1bf9
jl 0x401853
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
lea esp, [esp]
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp esi, 0x206d47
jg 0x4018ad
inc esi
cmp esi, 0x4f6a4
jl 0x401890
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x4018cc
cmp ebx, 0x785074d5
jne 0x4018d5
inc esi
cmp esi, 0x11915
jl 0x4018b8
mov eax, dword [0x80b09c]
mov ecx, dword [0x80b070]
mov dword [0xc2a228], eax
mov dword [0xc2a22c], ecx
call fcn.004015d0
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
lea esp, [esp]
cmp dword [0xc2a228], 0x51f
jne 0x401912
lea edx, [ebp - 0x2c]
push edx
call esi
sub edi, 1
jne 0x401900
mov eax, dword [0xc2917c]
mov dword [0xc297bc], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4042cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80a218]
jne 0x4042d5
repz ret
jmp fcn.00407c2c
Function at 0x409a7f
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.00406522
and dword [ebp - 4], 0
cmp dword [0x80beec], 0
mov ebx, eax
jne 0x409b30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409be1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409be1
push eax
call fcn.004064b0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x80beec], eax
call esi
push eax
call fcn.004064b0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x80bef0], eax
call esi
push eax
call fcn.004064b0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x80bef4], eax
call esi
push eax
call fcn.004064b0
pop ecx
mov dword [0x80befc], eax
test eax, eax
je 0x409b30
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004064b0
pop ecx
mov dword [0x80bef8], eax
mov eax, dword [0x80bef8]
cmp eax, ebx
je 0x409b88
cmp dword [0x80befc], ebx
je 0x409b88
push eax
call fcn.0040652b
push dword [0x80befc]
mov esi, eax
call fcn.0040652b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409b88
test edi, edi
je 0x409b88
call esi
test eax, eax
je 0x409b7f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409b7f
test byte [ebp - 0xc], 1
jne 0x409b88
or dword [ebp + 0x10], 0x200000
jmp 0x409bc1
mov eax, dword [0x80bef0]
cmp eax, ebx
je 0x409bc1
push eax
call fcn.0040652b
pop ecx
test eax, eax
je 0x409bc1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409bc1
mov eax, dword [0x80bef4]
cmp eax, ebx
je 0x409bc1
push eax
call fcn.0040652b
pop ecx
test eax, eax
je 0x409bc1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80beec]
call fcn.0040652b
pop ecx
test eax, eax
je 0x409be1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409be3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406a88
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409320
test esi, esi
jne 0x406abe
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004094a8
jmp 0x406adc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004069cc
mov edi, eax
test esi, esi
je 0x406adc
cmp dword [ebx], 0
je 0x406adc
dec esi
jmp 0x406ac5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408434
mov byte [esp], al
cmp byte [esp], 0
jne 0x4081da
test edi, edi
je 0x4081da
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4080f5
cmp edi, 0xffffffff
je 0x4080b5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4080b5
mov byte [esp], 0
jmp 0x4081da
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4080f5
test ebx, ebx
jne 0x4080e7
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4080e7
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4081da
lea eax, [esp + 0xc]
call fcn.00407d30
dec ebp
test ebp, ebp
jg 0x40809a
cmp edi, 0xffffffff
je 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408118
mov byte [esp], 0
jmp 0x4081da
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40805e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408248
mov edx, eax
mov ebx, dword [0x5e48fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40817e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40817c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40817e
xor edi, edi
cmp byte [esp], 0
je 0x4081a4
mov ebx, dword [esi]
test bl, 1
jne 0x4081ba
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408184
mov byte [esp + 1], 1
jmp 0x4081ba
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081a4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408131
cmp byte [esp], 0
je 0x4081da
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408f80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5e405c], 0
je 0x408fe7
cmp word [0x5e4348], 0xd7b2
jne 0x408fa9
cmp dword [0x5e4350], 0
jbe 0x408fa9
mov eax, 0x5e4344
call dword [0x5e4360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409014
call fcn.00409b64
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5de032], 0
jne 0x409003
push 0
push 0x5de9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4091e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5de034], 0
je 0x40920b
mov edx, edi
mov eax, esi
call dword [0x5de034]
mov ebx, eax
jmp 0x40921c
mov eax, 8
call fcn.00406708
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5e405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4091a8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40924c
mov eax, ebx
call fcn.00406724
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc