joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404157
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
lea eax, [ebp - 0x21c]
push eax
call fcn.004044e5
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x4041b4
mov eax, dword [ebp - 0x118]
mov byte [eax], 0
push str.SoftwareWilson_WindowWareSettings_
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x412874
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xc]
push eax
push 1
push 0
lea eax, [ebp - 0x110]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40425f
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404255
mov dword [ebp - 0x114], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x114]
jmp 0x40426a
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x404a98
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x54], str.WBShutdownWaiter
mov dword [ebp - 0x50], 3
mov dword [ebp - 0x4c], 0x404c67
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0x1e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
push str.MYICON
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x3c], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x38], eax
cmp dword [0x41248c], 0
jne 0x404b05
mov dword [ebp - 0x34], 6
jmp 0x404b0c
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x404b38
mov eax, 0xffffffff
jmp 0x404c60
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov word [ebp - 0x24], ax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov word [ebp - 0x28], ax
push str.WbtShutdownRun__
push 0x416ce0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx eax, byte [0x416bc0]
test eax, eax
je 0x404b84
push 0x416bc0
push 0x416ce0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x404b94
push str.DEFAULT.WBT
push 0x416ce0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x28]
and eax, 0xffff
shr eax, 2
push eax
mov eax, dword [ebp - 0x24]
and eax, 0xffff
shr eax, 1
push eax
mov eax, dword [ebp - 0x28]
and eax, 0xffff
lea eax, [eax + eax*2]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
mov eax, dword [ebp - 0x24]
and eax, 0xffff
shr eax, 2
push eax
push 0x6cf0000
push 0x416ce0
mov eax, dword [ebp - 0x54]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x404c04
mov eax, 0xffffffff
jmp 0x404c60
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x404c41
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x404c10
cmp dword [0x4124c8], 0
je 0x404c58
mov eax, dword [0x4124c8]
jmp 0x404c60
mov eax, dword [ebp - 0x14]
jmp 0x404c60
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a230
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0
jne 0x40a24d
xor eax, eax
jmp 0x40a451
cmp dword [ebp + 0x10], 0x320
je 0x40a261
xor eax, eax
jmp 0x40a451
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40a28e
xor eax, eax
jmp 0x40a451
push 0
lea eax, [ebp - 0x5c]
push eax
push 0x40
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a2d8
cmp dword [ebp - 0x5c], 0x40
jne 0x40a2d8
mov eax, dword [ebp - 0x54]
and eax, 0xffff
cmp eax, 0x5a4d
jne 0x40a2d8
cmp dword [ebp - 0x18], 0
jne 0x40a2e9
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40a451
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x5c]
push eax
push 0xf8
lea eax, [ebp - 0x474]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a341
cmp dword [ebp - 0x5c], 0xf8
jne 0x40a341
cmp dword [ebp - 0x474], 0x4550
je 0x40a352
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40a451
mov dword [ebp - 8], 0
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 8]
push eax
push 0xa
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040af65
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a394
cmp dword [ebp - 8], 0
je 0x40a394
cmp dword [ebp - 0x58], 0
jne 0x40a3a5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40a451
cmp dword [ebp - 0x58], 0x320
je 0x40a3c3
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40a451
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x37c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a409
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x58], eax
je 0x40a41a
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40a451
lea eax, [ebp - 0x37c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040c4b0
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40a451
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40af65
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40af96
xor eax, eax
jmp 0x40b094
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40afc6
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b094
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.0040b09b
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40b00f
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b094
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040b187
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x40b075
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x40b07c
xor eax, eax
jmp 0x40b094
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
mov eax, 1
jmp 0x40b094
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40c7f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4102b8
push 0x40dc18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x415778], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x415774], ecx
shl ecx, 8
add ecx, edx
mov dword [0x415770], ecx
shr eax, 0x10
mov dword [0x41576c], eax
call fcn.0040dae0
test eax, eax
jne 0x40c85a
push 0x1c
call fcn.0040c9a0
add esp, 4
call fcn.0040d9e0
test eax, eax
jne 0x40c86d
push 0x10
call fcn.0040c9a0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040d7d0
call fcn.0040d7c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x417f30], eax
call fcn.0040d360
mov dword [0x41575c], eax
test eax, eax
je 0x40c8a0
mov eax, dword [0x417f30]
test eax, eax
jne 0x40c8aa
push 0xffffffffffffffff
call fcn.0040cbd0
add esp, 4
call fcn.0040d0b0
call fcn.0040cfc0
call fcn.0040cba0
mov esi, dword [0x417f30]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40c989
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40c8f1
test al, al
je 0x40c8f1
and eax, 0xff
push eax
call fcn.0040cf60
add esp, 4
test eax, eax
je 0x40c8cb
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40c8cb
cmp byte [esi], 0x22
jne 0x40c8fa
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40c90a
cmp al, 0x20
ja 0x40c90a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40c8fa
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40c92b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40c930
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040cbd0
jmp 0x40c96e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40c8fa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40c989

Function at 0x40cc10
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.0040ccd0
mov eax, dword [0x4157a8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x40cc34
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4157a4], 1
mov byte [0x4157a0], bl
jne 0x40cc8e
mov ecx, dword [0x417f28]
test ecx, ecx
je 0x40cc7c
mov esi, dword [0x417f24]
sub esi, 4
cmp esi, ecx
jb 0x40cc7c
mov eax, dword [esi]
test eax, eax
je 0x40cc75
call eax
mov ecx, dword [0x417f28]
sub esi, 4
cmp esi, ecx
jae 0x40cc67
push 0x41201c
push 0x412014
call fcn.0040ccf0
add esp, 8
push 0x412024
push 0x412020
call fcn.0040ccf0
add esp, 8
test ebx, ebx
je 0x40ccad
call fcn.0040cce0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x4157a8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d360
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4158b8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40d3a2
call edi
mov esi, eax
test esi, esi
je 0x40d38c
mov eax, 1
jmp 0x40d39d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40d4af
mov eax, 2
mov dword [0x4158b8], eax
cmp eax, 1
jne 0x40d442
test esi, esi
jne 0x40d3bb
call edi
mov esi, eax
test esi, esi
je 0x40d4af
cmp word [esi], 0
mov eax, esi
je 0x40d3d5
add eax, 2
cmp word [eax], 0
jne 0x40d3c3
add eax, 2
cmp word [eax], 0
jne 0x40d3c3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40d434
push edi
call fcn.0040e260
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d434
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40d426
push ebx
call fcn.0040e1f0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40d4af
test ebx, ebx
jne 0x40d453
call ebp
mov ebx, eax
test ebx, ebx
je 0x40d4af
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40d46b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d45b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d45b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040e260
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40d48d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40d9e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.0040e040
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x412ec4], eax
je 0x40da38
push 0x74
push 1
call fcn.0040e330
mov esi, eax
add esp, 8
test esi, esi
je 0x40da38
mov eax, dword [0x412ec4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40da38
push esi
call fcn.0040da40
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40da60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x412ec4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40dace
push 0x74
push 1
call fcn.0040e330
mov esi, eax
add esp, 8
test esi, esi
je 0x40dac4
mov ecx, dword [0x412ec4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40dac4
push esi
call fcn.0040da40
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.0040c9a0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x40dd30
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x412ee0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40dd54
add eax, 8
inc ebp
cmp eax, 0x412f70
jb 0x40dd45
cmp ecx, dword [ebp*8 + 0x412ee0]
jne 0x40defb
mov eax, dword [0x415764]
cmp eax, 1
je 0x40debd
test eax, eax
jne 0x40dd80
cmp dword [0x412b04], 1
je 0x40debd
cmp ecx, 0xfc
je 0x40defb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ddbb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40de04
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x410598
add ebx, ecx
push ebx
call fcn.0040eb90
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x410578
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x412ee4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040eb00
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x417e20]
test eax, eax
je 0x40dece
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x40ded8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x412ee4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x7ffe5414
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
push eax
pop eax
add al, 4
sub al, 4
and al, 0xff
pushf
popf
and al, 0xff
push bx
inc esp
inc esp
push es
pop ds
add al, 4
sub al, 4
push eax
pop eax
push bx
inc esp
inc esp
push es
pop ds
add al, 4
sub al, 4
call 0x7ffe5443
pop edx
and al, 0xff
clc
add al, 0
xor dx, dx
add al, 4
sub al, 4
clc
add edx, 0xd5e0
push eax
pop eax
xor ecx, ecx
add al, 0
nop
mov cl, 0x1e
inc esi
dec esi
push eax
pop eax
stc
xor byte [ecx + edx], 0xa1
loop 0x7ffe5465
push dword fs:[0x24]
xor eax, ecx
xor eax, ecx
push eax
pop eax
pop dword [edx + 0xa]
pushal
inc eax
popal
mov cl, 0xff
push eax
pop eax
pushf
popf
push edx
loop 0x7ffe5486
inc esi
dec esi
add al, 4
sub al, 4
mov dword [edx + 0x11], 0xffffacbb
mov ecx, dword [eax + 0x2c]
cld
mov dword [edx + 0x1b], ecx
pushf
popf
inc esi
dec esi
mov dword [edx + 0x100], ecx
pushf
popf
nop
mov dword [eax + 0x2c], esp
add al, 4
sub al, 4
push es
pop ds
push 0
pushf
popf
push 0
push es
pop ds
add al, 0
push 0
push eax
pop eax
push 0
inc esi
dec esi
push 0x30
nop
push 0x20
stc
push 0
add eax, 0
push 0
not eax
not eax
stc
add edx, 0xffff7f33
pushf
popf
add al, 0
push edx
xor eax, ecx
xor eax, ecx
inc esi
dec esi
push edx
push 0
and al, 0xff
call dword [edx + 0x8210]
cld
add esp, 0x3f8
inc esi
dec esi
xor eax, eax
push es
pop ds
inc eax
inc esi
dec esi
ret 0xc
Function at 0x10001719
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov edx, dword [0x10057f08]
mov edx, dword [ebp - 8]
sub eax, eax
mov ecx, dword [ebp - 8]
mov eax, 0x97
cmp dword [ebp + 0xce], edx
jbe 0x1000175f
mov dword [ebp - 0x10], eax
mov edx, dword [0x10057b48]
mov ecx, dword [ebp - 8]
add esi, edx
mov eax, dword [ebp - 0xc]
mov eax, dword [0x10057c8c]
sub eax, edx
mov dword [ebp - 0xc], ecx
mov dword [0x10057d78], eax
mov eax, dword [0x10057c6c]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov ecx, dword [0x10057b78]
mov edx, dword [ebp - 0x10]
sub edx, eax
mov si, 0x20
cmp edi, 0
ja 0x100017a3
mov ecx, dword [0x10057ce0]
mov dword [0x10057d40], edi
mov eax, dword [0x10057e54]
sbb eax, dword [ebp - 0x10]
mov eax, 0x42
mov dword [ebp - 0x10], eax
mov dword [0x10057eac], eax
and dword [0x10057e9c], eax
mov dword [ebp - 0xc], eax
sbb edx, dword [ebp - 0x14]
push dword [0x10057e98]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_DeleteFileA
mov edi, dword [0x10057e90]
mov esi, dword [ebp - 0x14]
mov cx, 2
mov eax, dword [ebp - 0xc]
sub edx, edi
cmp edx, eax
jg 0x100017f5
mov eax, dword [ebp - 8]
mov edx, dword [0x10057e88]
mov edx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [0x10057d84]
mov eax, 0x95
mov dword [ebp - 0x10], esi
mov dword [0x10057c74], esi
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 8]
mov eax, dword [0x10057b3c]
leave
ret 8
Function at 0x100017fe
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov edi, dword [0x10057d5c]
mov eax, dword [ebp - 0x10]
mov edx, 0x9f
cmp dword [0x10057f20], eax
je 0x1000183d
mov edi, dword [ebp - 0x10]
mov eax, dword [0x10057cf0]
mov eax, dword [ebp - 0xc]
sub edi, edi
mov eax, dword [0x10057e4c]
mov dword [ebp - 8], esi
mov dword [0x10057ed8], eax
mov dword [0x10057d50], edx
mov ecx, dword [ebp - 0x10]
mov dword [0x10057ee4], eax
mov edx, dword [0x10057e88]
mov edx, dword [ebp - 0xc]
and esi, esi
mov edi, 0x82
cmp dword [0x10057c28], 0x80
jg 0x1000188c
mov eax, dword [0x10057b38]
mov eax, dword [0x10057f08]
mov eax, dword [ebp - 0xc]
add edi, eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [0x10057c34]
mov di, 0x10
mov dword [ebp - 0xc], eax
mov dword [0x10057c88], edi
mov dword [0x10057c54], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [0x10057c84]
mov edx, dword [ebp - 0x10]
push edx
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [0x10057eb4]
push eax
mov dword [ebp - 0xc], eax
and dword [0x10057c70], eax
push 0x87
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x10057b68]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov ecx, dword [0x10057cec]
sub edi, edx
cmp esi, dword [ebp + 0x10]
jl 0x100018f2
mov dword [ebp - 0x10], eax
and eax, dword [ebp - 0xc]
mov esi, dword [0x10057b2c]
mov edi, dword [ebp - 8]
mov si, 0x89
mov eax, 0x56
mov dword [ebp - 8], esi
mov dword [0x10057eb4], edx
mov dword [0x10057d84], eax
mov edx, dword [0x10057dcc]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], eax
push eax
mov ecx, dword [0x10057eac]
push ecx
mov dword [0x10057cbc], edi
push dword [0x10057c40]
call sub.USER32.dll_EnumChildWindows
mov eax, dword [0x10057b2c]
mov edx, dword [ebp - 0xc]
mov edx, 0x36
mov ecx, dword [ebp - 0xc]
cmp esi, dword [ebp + 0x10]
jbe 0x10001959
mov eax, dword [ebp - 0xc]
mov eax, dword [0x10057bec]
mov eax, dword [ebp - 0x10]
mov eax, 0xb0
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x10057efc]
mov dword [ebp - 0x10], edi
mov dword [0x10057b54], eax
mov dword [ebp - 0xc], eax
mov dword [0x10057e08], eax
mov dword [ebp - 8], esi
mov eax, dword [0x10057c94]
leave
ret 8