joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40848b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x94], 0
je 0x40851e
push 1
push ecx
push dword [esi + 0xac]
call fcn.00408523
cmp dword [esi + 4], 0
je 0x4084d3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4084d3
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x34], 0
je 0x4084fa
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4084fa
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 0
jne 0x40851e
cmp dword [esi + 0x64], 0
je 0x40851e
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40851e
push 0
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4087e7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41a008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x4089cb
push ebx
push esi
lea ecx, [ebp - 0x14]
push ecx
push dword [eax + 0x25c]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebp + 0x14], 0
push 0x20
pop ebx
jne 0x408878
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x25c]
call fcn.00409d16
push 0x30
pop esi
push 0x1a0
sub esi, eax
lea ecx, [edi + 0x50]
push ebx
push esi
mov edx, ebx
call fcn.00409e09
mov eax, dword [edi + 0x5c]
lea ecx, [edi + 0x80]
push 0x190
add eax, 0xc
add eax, esi
push 0x2c
push eax
call fcn.00409e09
mov edx, dword [ebp - 0xc]
lea ecx, [edi + 4]
mov eax, dword [ebp - 8]
push 0x47
add eax, 0xffffffc8
push ebx
push eax
lea edx, [edx - 0x67]
call fcn.00409e09
add esp, 0x24
mov esi, dword [ebp + 8]
test esi, esi
je 0x40889f
mov edx, dword [edi + 8]
lea ecx, [edi + 0xb0]
push 0x9b
push ebx
push dword [edi + 0xc]
sub edx, 0xaf
call fcn.00409e09
add esp, 0xc
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4088d0
test esi, esi
je 0x4088b2
mov edx, dword [edi + 0xb4]
jmp 0x4088b5
mov edx, dword [edi + 8]
push 0x71
push 0x20
push dword [edi + 0xc]
add edx, 0xffffff7b
lea ecx, [edi + 0xfc]
call fcn.00409e09
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x40890f
test ebx, ebx
je 0x4088e2
mov edx, dword [edi + 0x100]
jmp 0x4088f1
test esi, esi
je 0x4088ee
mov edx, dword [edi + 0xb4]
jmp 0x4088f1
mov edx, dword [edi + 8]
push 0xa9
push 0x20
push dword [edi + 0xc]
add edx, 0xffffff43
lea ecx, [edi + 0x148]
call fcn.00409e09
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x4089c9
test esi, esi
je 0x408945
push 1
push dword [edi + 0xbc]
push dword [edi + 0xc0]
push dword [edi + 0xb8]
push dword [edi + 0xb4]
push dword [edi + 0xb0]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x408953
push 0
push dword [edi + 0xb0]
call dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
je 0x40897f
push 1
push dword [edi + 0x108]
push dword [edi + 0x10c]
push dword [edi + 0x104]
push dword [edi + 0x100]
push dword [edi + 0xfc]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x40898d
push 0
push dword [edi + 0xfc]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x10], 0
je 0x4089bb
push 1
push dword [edi + 0x154]
push dword [edi + 0x158]
push dword [edi + 0x150]
push dword [edi + 0x14c]
push dword [edi + 0x148]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x4089c9
push 0
push dword [edi + 0x148]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040dbce
leave
ret 0x10
Function at 0x409bd0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
test edi, edi
je 0x409c94
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x409c94
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
jne 0x409c94
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x409c21
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x409c21
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push ebx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 3
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xfffffffffffffffe
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test esi, esi
je 0x409c84
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
pop esi
pop ebx
pop edi
leave
ret

Function at 0x40a989
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x40aa00
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40a99c
call fcn.0040a18e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40a9a8
call fcn.0040a18e
mov ecx, dword [esi]
test ecx, ecx
je 0x40a9b3
call fcn.0040a18e
cmp dword [esi + 0xc], 0xffffffff
je 0x40a9cb
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x20]
call fcn.0040756a
mov ecx, dword [esi + 0x24]
call fcn.0040756a
mov ecx, dword [esi + 0x2c]
cmp dword [ecx + 0x14], 0
je 0x40aa00
mov eax, dword [esi + 0x30]
cmp dword [eax + 4], 0
je 0x40aa00
mov ecx, dword [ecx + 0x18]
call fcn.00407608
test eax, eax
je 0x40aa00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
Function at 0x40af9d
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov ecx, dword [edi + 8]
mov edx, 0x20000013
inc ebx
call fcn.0040a524
mov ecx, 0x100
call fcn.00407474
mov esi, eax
mov edx, str._req_state_read_status_code__zHttpQueryInfo_complete__status:
push 0x3d
mov ecx, esi
call fcn.004076d4
mov edx, dword [ebp - 4]
add esp, 0x10
mov ecx, esi
call fcn.004077ef
mov ecx, esi
call fcn.0040bdf2
mov ecx, esi
call fcn.0040756a
cmp dword [ebp - 4], 0x197
je 0x40b012
cmp dword [ebp - 4], 0x191
jne 0x40b06c
test ebx, ebx
je 0x40b06c
push ecx
push ecx
push 0x2eee
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edx, dword [edi + 8]
mov ecx, eax
call fcn.0040a4be
add esp, 0xc
cmp eax, 0x4c7
jne 0x40b03b
xor ebx, ebx
jmp 0x40b000
push 0
push 0
push ecx
mov ecx, dword [edi + 8]
call fcn.0040a464
mov ecx, dword [edi + 8]
lea eax, [ebp - 8]
add esp, 8
mov dword [ebp - 8], 4
mov edx, 0x20000013
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040a524
add esp, 0xc
jmp 0x40b000
mov ecx, 0x100
call fcn.00407474
mov esi, eax
mov edx, str._req_state_read_status_code__zHttpQueryInfo_complete__status:
push 0x3d
mov ecx, esi
call fcn.004076d4
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.004077ef
push 8
mov edx, str._Error:
mov ecx, esi
call fcn.004076d4
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, esi
call fcn.004077ef
mov ecx, esi
call fcn.0040bdf2
mov ecx, esi
call fcn.0040756a
mov edx, dword [edi + 0x30]
xor eax, eax
mov ecx, dword [ebp - 4]
inc eax
pop edi
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x40bdf2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor ecx, ecx
call fcn.00407474
cmp dword [0x41ad90], 0
mov esi, eax
je 0x40be82
mov edx, edi
mov ecx, esi
call fcn.0040bc8e
test eax, eax
jne 0x40be32
push 0x33
mov edx, str._Fatal_Error____PrepareLogContent_failed__log_size:
mov ecx, esi
call fcn.004076d4
mov edx, dword [edi + 4]
pop ecx
mov ecx, esi
call fcn.004077ef
mov eax, dword [0x41ad94]
test eax, eax
je 0x40be44
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 2
xor edi, edi
push edi
push edi
push dword [0x41ad90]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
mov ecx, esi
push eax
push dword [esi + 4]
call fcn.00407608
push eax
push dword [0x41ad90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x41ad94]
test eax, eax
je 0x40be82
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, esi
call fcn.0040756a
pop edi
pop esi
leave
ret
Function at 0x40c440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 1
je 0x40c458
cmp edi, 9
jne 0x40c53c
test esi, esi
je 0x40c53c
mov ecx, esi
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c462
sub ecx, esi
sar ecx, 1
lea edx, [ecx - 1]
mov ecx, str.http:
nop dword [eax]
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c480
sub ecx, str.http:
sar ecx, 1
lea eax, [ecx - 1]
cmp edx, eax
jb 0x40c4d0
mov ecx, str.http:
nop
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c4a0
sub ecx, str.http:
sar ecx, 1
lea eax, [ecx - 1]
push eax
push str.http:
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
neg eax
sbb eax, eax
add eax, 1
jne 0x40c598
mov ecx, esi
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c4d2
sub ecx, esi
sar ecx, 1
lea edx, [ecx - 1]
mov ecx, str.https:
nop dword [eax]
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c4f0
sub ecx, str.https:
sar ecx, 1
lea eax, [ecx - 1]
cmp edx, eax
jb 0x40c53c
mov ecx, str.https:
nop
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c510
sub ecx, str.https:
sar ecx, 1
lea eax, [ecx - 1]
push eax
push str.https:
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
neg eax
sbb eax, eax
add eax, 1
jne 0x40c598
cmp edi, 3
je 0x40c56d
cmp edi, 2
jne 0x40c565
test esi, esi
je 0x40c659
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c659
test al, 0x10
jmp 0x40c653
cmp edi, 4
jne 0x40c5a2
mov esi, dword [ebp + 8]
test esi, esi
je 0x40c659
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x40c598
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c659
test al, 0x10
jne 0x40c659
mov eax, 1
pop edi
pop esi
pop ecx
pop ebp
ret
cmp edi, 5
jne 0x40c626
test esi, esi
je 0x40c659
mov ecx, esi
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5b1
sub ecx, esi
sar ecx, 1
lea edx, [ecx - 1]
mov ecx, str.mailto:
nop dword [eax + eax]
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5d0
sub ecx, str.mailto:
sar ecx, 1
lea eax, [ecx - 1]
cmp edx, eax
jb 0x40c659
mov ecx, str.mailto:
nop
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5f0
sub ecx, str.mailto:
sar ecx, 1
lea eax, [ecx - 1]
push eax
push str.mailto:
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
neg eax
sbb eax, eax
add eax, 1
je 0x40c659
mov eax, 1
pop edi
pop esi
pop ecx
pop ebp
ret
cmp edi, 6
je 0x40c635
cmp edi, 8
je 0x40c635
cmp edi, 7
jne 0x40c659
call fcn.0040c370
test eax, eax
jne 0x40c598
sub esp, 8
xor edx, edx
mov ecx, esi
call fcn.0040c0d0
add esp, 8
test eax, eax
jne 0x40c598
pop edi
xor eax, eax
pop esi
pop ecx
pop ebp
ret
Function at 0x40c660
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41a008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40c6e2
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
xor esi, esi
mov eax, 1
cmp dword [ebp - 0x10], esi
cmovne esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dbce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040dbce
mov esp, ebp
pop ebp
ret
Function at 0x40c8b0
Capabilities:
Create process on windows
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x41a008]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esp + 0x10], eax
mov edi, ecx
mov eax, dword [ebp + 0x18]
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
call fcn.0040c440
add esp, 4
test eax, eax
jne 0x40c90e
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040dbce
mov esp, ebp
pop ebp
ret
call fcn.0040c370
test eax, eax
jne 0x40caa6
call fcn.0040c660
test eax, eax
je 0x40caa6
cmp edi, 7
je 0x40c976
cmp edi, 1
je 0x40c93b
cmp edi, 9
jne 0x40caa6
push dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, ebx
push dword [esp + 0x14]
push esi
call fcn.0040d530
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40ca33
cmp edi, 1
jne 0x40ca33
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0x1c]
jmp 0x40caaf
test ebx, ebx
jne 0x40c982
test esi, esi
je 0x40ca31
call fcn.0040c660
test eax, eax
jne 0x40c9c7
push dword [esp + 0xc]
push dword [esp + 0x14]
push esi
push ebx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
neg esi
neg esi
sbb esi, esi
and esi, 0x21
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040dbce
mov esp, ebp
pop ebp
ret
push 0
push str.Shell_TrayWnd
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40ca31
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40ca31
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40ca31
lea eax, [esp + 0x18]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
test eax, eax
jne 0x40ca4e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
neg esi
sbb esi, esi
and esi, 0x21
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040dbce
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [esp + 0x18]
test eax, eax
je 0x40ca2b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x40ca31
mov edx, dword [esp + 0x14]
mov ecx, ebx
push edi
push dword [esp + 0x10]
push dword [esp + 0x18]
call fcn.0040c700
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ca33
push dword [esp + 0xc]
push dword [esp + 0x14]
push esi
push ebx
push dword [esp + 0x28]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040dbce
mov esp, ebp
pop ebp
ret
Function at 0x40cd00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x40cda5
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40cda5
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.00410e50
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40cd88
lea eax, [ebp - 0x230]
push ebx
push eax
call edi
add esp, 8
test eax, eax
jne 0x40cd88
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40cd65
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dbce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dbce
mov esp, ebp
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0xbb4910
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x49833b28
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x4ad04d07
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x407008], 0x8088405
inc edx
mov dword [ebx + 0x407008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x401ba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x318
mov eax, dword [0x48300c]
xor eax, esp
mov dword [esp + 0x314], eax
cmp dword [0x48413c], 0
push esi
push edi
jne 0x401cf6
push 0x208
lea eax, [esp + 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x110]
push eax
push 0
push 0
push 0x802e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x401c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SHGetFolderPathW___fail__ierr_d.
push str.InitDB
push dword [0x484188]
call fcn.00403170
add esp, 0x10
lea edi, [esp + 0x110]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401c26
mov ecx, 0xa
lea eax, [esp + 8]
mov esi, str.TCDatawatchfile.db
rep movsd dword es:[edi], dword [esi]
push 0x104
push 0
push eax
movsw word es:[edi], word [esi]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push 0
push 0
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x124]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 8]
push eax
push str.DBPath_s
push str.InitDB
push dword [0x484188]
call fcn.00403170
push 0
push 6
mov edx, 0x48413c
lea ecx, [esp + 0x20]
call fcn.00474e40
add esp, 0x18
test eax, eax
je 0x401cf1
push dword [0x48413c]
call fcn.00474410
add esp, 4
push eax
lea eax, [esp + 0x114]
push eax
push str.sqlite3_open__s__fail:__s_r_n
push str.InitDB
push dword [0x484188]
call fcn.00403170
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.00475bd4
mov esp, ebp
pop ebp
ret
call fcn.00401d80
mov ecx, dword [esp + 0x31c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00475bd4
mov esp, ebp
pop ebp
ret

Function at 0x4030d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x48300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.FileWatch_log.txt
lea eax, [ebp - 0x108]
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x108]
push 0x47bd94
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 0x14
mov dword [esi + 4], eax
test eax, eax
jne 0x40314f
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00475bd4
mov esp, ebp
pop ebp
ret 4
Function at 0x403810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403869
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403869
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403858
cmp esi, edx
jae 0x403869
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403846
cmp esi, edx
jae 0x403869
cmp word [esi], 0
je 0x403869
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x403b80
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x48300c]
xor eax, esp
mov dword [esp + 0x21c], eax
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403d0e
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c28
push 0x104
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.PrintWatch
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403c28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegSetValueEx_:__d
push str.SetAutoRun
push dword [0x484188]
call fcn.00403170
add esp, 0x10
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 4]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c8f
push 0x104
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.PrintWatch
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegSetValueEx_2:__d
push str.SetAutoRun
push dword [0x484188]
call fcn.00403170
add esp, 0x10
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [esp + 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea ecx, [esp + 0x110]
dec ecx
nop dword [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x403cd0
mov eax, dword [str.win.ini]
mov dword [ecx], eax
mov eax, dword [0x47bee8]
mov dword [ecx + 4], eax
mov al, byte [0x47beec]
mov byte [ecx + 8], al
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0xc]
push eax
push str.load
push str.windows
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00475bd4
mov esp, ebp
pop ebp
ret