joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008f5d5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100dbd2c
push 0x100dbd24
push str.FlsAlloc
push 0x1f
call fcn.1008f400
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008f609
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a52cc]
call esi
jmp 0x1008f60f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1008f653
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100dbd3c
push 0x100dbd34
push str.FlsGetValue
push 0x21
call fcn.1008f400
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008f68a
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a52cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1008f692
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100dbd44
push 0x100dbd3c
push str.FlsSetValue
push 0x22
call fcn.1008f400
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008f6cc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100a52cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10094fc1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1009505e
push ebx
push esi
call fcn.10094f8a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10093d53
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009500b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009505d
push edi
push eax
call fcn.10090baa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1009502b
call fcn.1008f121
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009505c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10093d53
add esp, 0x20
test eax, eax
jne 0x1009504a
push edi
call fcn.1008f121
jmp 0x10095052
push ebx
call fcn.1008f121
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10097a99
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1008c21b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10097b08
cmp esi, dword [ebp - 4]
je 0x10097b03
cmp dword [ebp + 0xc], 0
je 0x10097b03
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10097ae0
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100975eb
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10097b0a
xor eax, eax
inc eax
jmp 0x10097b0a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10097b6f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100f3900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1008c21b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1008c21b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10097be6
cmp word [ecx], dx
je 0x10097be6
mov eax, dword [0x100e0ba4]
push edi
dec eax
push eax
push 0x100e0a90
call fcn.10097b0e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10097c59
cmp word [eax], dx
je 0x10097c59
mov eax, dword [edi]
test eax, eax
je 0x10097c0a
cmp word [eax], dx
je 0x10097c0a
lea eax, [ebp - 0x10]
push eax
call fcn.100974f1
jmp 0x10097c13
lea eax, [ebp - 0x10]
push eax
call fcn.1009758c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10097c83
mov eax, dword [0x100e0a8c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100e0780
call fcn.10097b0e
add esp, 0xc
test al, al
je 0x10097c83
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10097c4e
cmp word [eax], di
je 0x10097c4e
lea eax, [ebp - 0x10]
push eax
call fcn.100974f1
pop ecx
jmp 0x10097c85
lea eax, [ebp - 0x10]
push eax
call fcn.1009758c
jmp 0x10097c4b
mov eax, dword [edi]
test eax, eax
je 0x10097c70
cmp word [eax], dx
je 0x10097c70
lea eax, [ebp - 0x10]
push eax
call fcn.100974a6
pop ecx
jmp 0x10097c83
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10097d4e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10097993
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10097d4e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10097d4e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10097d4e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10097cdb
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1008f7d2
test ebx, ebx
je 0x10097d49
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1008f7d2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10097d4e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10097d4e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1009d09c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10097d50
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075417
leave
ret
Function at 0x1009d2b1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1009d22d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1009d420
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1009d420
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1009d3d5
jg 0x1009d30d
test eax, eax
je 0x1009d3cb
push 1
push 0x1000
call fcn.1008e995
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1009d330
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1009d3c2
push 0x8000
push ebx
call fcn.1009d15e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1009d359
jg 0x1009d354
cmp ecx, 0x1000
jb 0x1009d359
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10090488
add esp, 0x10
cmp eax, 0xffffffff
je 0x1009d39e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1009d354
jl 0x1009d385
test ecx, ecx
jne 0x1009d346
push dword [ebp - 0xc]
push ebx
call fcn.1009d15e
push esi
call fcn.1008f121
add esp, 0xc
xor ebx, ebx
jmp 0x1009d42e
cmp byte [edi + 0x24], 0
je 0x1009d3b5
cmp dword [edi + 0x20], 5
jne 0x1009d3b5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1009d3c0
mov ebx, dword [edi + 0x18]
jmp 0x1009d3c2
xor ebx, ebx
push esi
call fcn.1008f121
pop ecx
jmp 0x1009d42e
test ecx, ecx
jg 0x1009d397
jl 0x1009d3d5
test eax, eax
jae 0x1009d397
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1008be53
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1009d3f5
cmp byte [edi + 0x1c], 0
je 0x1009d397
jmp 0x1009d426
push ebx
call fcn.10095938
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1009d397
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1009d42e
cmp byte [edi + 0x1c], 0
je 0x1009d42b
mov ebx, dword [edi + 0x18]
jmp 0x1009d42e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1008be53
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1009e240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009e26d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009e26d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]
Function at 0x55a2a0
Capabilities:
Check for trap flag exception
Encode data using xor

Disassembly:
pushal
call 0x55a2a6
pop ebp
sub ebp, 0x44c54c
lea edi, [ebp + 0x44e155]
mov esi, edi
mov ecx, 0x92
xor ebx, ebx
lodsb al, byte [esi]
xor al, 0x44
sub al, bl
rol al, 2
stosb byte es:[edi], al
inc ebx
loop 0x55a2bc
mov eax, dword [esp + 0x20]
inc eax
js 0x55a2d9
mov dword [ebp + 0x44e159], 1
cmp dword [ebp + 0x44e159], 0
jne 0x55a2e4
jmp 0x55a2fa
push ebp
lea eax, [ebp + 0x44c5c2]
push eax
mov eax, 0x30
push eax
call fcn.0055a389
pop ebp
jmp 0x55a30e
push ebp
lea eax, [ebp + 0x44c5c2]
push eax
mov eax, 0x30
push eax
call fcn.0055a616
pop ebp
mov ecx, 0x17a7
lea edi, [ebp + 0x44c9ae]
mov esi, edi
lodsb al, byte [esi]
clc
test ah, bl
invalid
Function at 0x55a389
Capabilities:
Check for trap flag exception

Disassembly:
mov ebp, esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add ecx, dword [ebx + 0x33020875]
fild dword [esi]
mov edx, 0x8b030001
dec ebp
add al, 3
mov edi, dword [ebp + 0xc]
push es
lea edi, [edi + 0x44e155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add cl, byte [edx + 0x7d8b0306]
or al, 6
lea edi, [edi + 0x44e155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
push ebx
push ecx
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add dh, byte [ecx + 0x7d8b0300]
or al, 6
lea edi, [edi + 0x44e155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add dh, byte [ebx]
fild dword [ebx]
mov bx, dx
add al, 0x66
and ebx, 1
add dl, dl
jecxz 0x55a4d1
xor al, bl
add esp, dword [esi - 0x2f]
loop 0x55a4d9
mov bx, dx
add eax, 0xe38166
add byte [edx], 0xb5
add byte [ebx], 0x8b
jge 0x55a4f2
push es
lea edi, [edi + 0x44e155]
push es
mov dword [edi], 0
add byte [eax], al
pop dword fs:[0]
add esp, 4
cmp bh, ch
jne 0x55a556
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add eax, 0x3f28166
add byte [ebx], 0x8b
jge 0x55a54a
push es
lea edi, [edi + 0x44e155]
push es
mov dword [edi], 0
add byte [eax], al
pop dword fs:[0]
add esp, 4
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add bh, dh
rol dword [edx], 0xb5
or byte [ebx], al
mov edi, dword [ebp + 0xc]
push es
lea edi, [edi + 0x44e155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
cmp cl, ch
jne 0x55a48d
pop ecx
pop ebx
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e15d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add cl, byte [eax + 0x1460106]
inc ebx
add ecx, dword [ebx - 0x72f9f383]
mov edi, 0x44e155
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
cmp ecx, ebx
jne 0x55a3e9
mov esp, ebp
ret 8
Function at 0x55a616
Capabilities:
Check for trap flag exception

Disassembly:
mov ebp, esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e1aa]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add ecx, dword [ebx + 0x33020875]
fild dword [esi]
mov edx, 0x8b030001
jge 0x55a666
push es
lea edi, [edi + 0x44e155]
push es
mov dword [edi], 0
add byte [eax], al
pop dword fs:[0]
add esp, 4
mov ecx, dword [ebp + 4]
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e1aa]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x44e155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add cl, byte [edx + 0x7d8b0306]
or al, 6
lea edi, [edi + 0x44e155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
push ebx
push ecx
mov cl, 0
xor ebx, ebx
mov bx, dx
and bx, 1
shl bl, cl
xor al, bl
shl dx, 1
mov bx, dx
and bx, 0x8000
mov ch, 0x80
cmp bh, ch
jne 0x55a6ed
xor dx, 0x8003
inc cl
mov ch, 8
cmp cl, ch
jne 0x55a6ca
pop ecx
pop ebx
mov byte [esi], al
inc esi
inc ebx
cmp ecx, ebx
jne 0x55a675
mov esp, ebp
ret 8
Function at 0x401000
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x810]
push edi
push eax
push 0x20119
push 0
push str.SOFTWAREDennis_Enhanced_Edition
push 0x80000002
mov dword [ebp - 0x80c], 0x400
call esi
test eax, eax
jne 0x4011e4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push 0x402118
push dword [ebp - 0x810]
call edi
test eax, eax
jne 0x4011e4
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x810], 0x400
push eax
push 0x20119
push 0
push str.SOFTWAREDennis_Enhanced_Edition
push 0x80000002
call esi
test eax, eax
jne 0x4011d0
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push str.DennisExe
push dword [ebp - 0x80c]
call edi
test eax, eax
jne 0x4011d0
lea eax, [ebp - 0x404]
push 0x40223c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
test eax, eax
jne 0x4010f2
push 0x10
push str.Dennis_Watcher_Error
push str.Unable_to_open_Dennis_Executable__exe_missing_._Please_reinstall_Dennis.
jmp 0x4011f6
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
add esp, 4
movlpd qword [ebp - 0x860], xmm0
movlpd qword [ebp - 0x858], xmm0
movlpd qword [ebp - 0x850], xmm0
movlpd qword [ebp - 0x848], xmm0
movlpd qword [ebp - 0x840], xmm0
movlpd qword [ebp - 0x838], xmm0
movlpd qword [ebp - 0x830], xmm0
movlpd qword [ebp - 0x828], xmm0
mov dword [ebp - 0x864], 0x44
movups xmmword [ebp - 0x820], xmm0
xor bl, bl
nop
push 0x64
call edi
test bl, bl
jne 0x4011b3
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea eax, [ebp - 0x808]
push eax
push dword [ebp - 0x820]
call esi
cmp dword [ebp - 0x808], 0x103
jne 0x401160
mov bl, 1
lea eax, [ebp - 0x808]
push eax
push dword [ebp - 0x820]
call esi
cmp dword [ebp - 0x808], 0x103
je 0x401160
jmp 0x40115c
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x10
push str.Dennis_Watcher_Error
push str.Unable_to_find_Dennis_executable__registry_key_missing_._Please_reinstall_Dennis.
jmp 0x4011f6
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x10
push str.Dennis_Watcher_Error
push str.Unable_to_find_Dennis_directory__registry_key_missing_._Please_reinstall_Dennis.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401216
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401a46
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a85
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a85
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a85
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a85
cmp dword [ecx + 0x74], 0xe
jbe 0x401a85
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4010b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4010d9
or eax, 0xffffffff
jmp 0x4010ec
mov edx, dword [ebp - 4]
and edx, 1
je 0x4010ea
mov eax, 1
jmp 0x4010ec
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40110e
or eax, 0xffffffff
jmp 0x401121
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x40111f
mov eax, 1
jmp 0x401121
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401250
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0xfffffc19
mov dword [ebp - 0xc], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40129b
mov dword [ebp - 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x4012d7
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea edx, [ebp - 8]
push edx
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4012d7
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x4012f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0xfffffc19
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0xc], 0
jle 0x4013d9
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402860
add esp, 0xc
push 0
push 0x8000080
push 3
push 0
push 3
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40137b
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x4013d9
push 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4013bb
mov dword [ebp - 0x14], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x4013d9
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
je 0x4013cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
jmp 0x4013d9
cmp dword [ebp - 0x18], 0xffffffff
je 0x4013e9
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret