joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5497b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54991b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x549836
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 8
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.004063ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x549861
xor eax, eax
push ebp
push 0x5498a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 4
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.004063ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5498ce
lea edx, [ebp - 0x224]
xor eax, eax
call fcn.00403428
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.0040db78
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.004061ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x549922
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.004061e4
ret

Function at 0x554094
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x554195
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x554157
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.00553ba0
pop ecx
test al, al
je 0x5540f5
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x5541a8
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_ShellExecuteW
mov dword [ebp - 0x10], eax
jmp 0x554115
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_ShellExecuteW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
jg 0x55414d
cmp dword [ebp - 0x10], 0x1d
je 0x55414d
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea eax, [ebp - 0x14]
call fcn.00553e88
pop ecx
mov eax, dword [ebp - 0x14]
call fcn.00406278
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55417f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55419c
lea eax, [ebp - 0x14]
call fcn.004061dc
ret
Function at 0x554d24
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x554d45
push 9
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 4]
je 0x554e6b
mov eax, dword [0x56941c]
cmp dword [eax], 2
jne 0x554d67
mov eax, dword [0x568d4c]
cmp dword [eax], 4
jg 0x554d9b
mov eax, dword [0x56941c]
cmp dword [eax], 1
jne 0x554e4b
mov eax, dword [0x568d4c]
cmp dword [eax], 4
jg 0x554d9b
mov eax, dword [0x568d4c]
cmp dword [eax], 4
jne 0x554e4b
mov eax, dword [0x569190]
cmp dword [eax], 0
jle 0x554e4b
mov byte [ebp - 5], 0
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x554dfd
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 4]
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x554e5d
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoW
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
jmp 0x554e5d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [ebp - 4]
sete byte [ebp - 5]
jmp 0x554e6f
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x556264
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.004061d4
mov eax, dword [ebp + 0xc]
call fcn.004061d4
xor eax, eax
push ebp
push 0x556312
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
jne 0x5562a6
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp + 0xc]
call fcn.00406398
mov eax, dword [ebp + 0xc]
push eax
push 0
mov edx, 0x556320
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.00555e78
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x5562e9
mov eax, dword [ebp + 0xc]
call fcn.00555db8
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
cmp eax, edx
jl 0x5562e9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
call fcn.00555e2c
jmp 0x5562f4
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.004061ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x556319
lea eax, [ebp - 0xc]
call fcn.004061dc
lea eax, [ebp + 0xc]
call fcn.004061dc
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x557bf1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x7530
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x11], 0
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jge 0x557bb9
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x18], eax
mov eax, 0x557c08
call fcn.004895d0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x557b7e
mov byte [ebp - 0x11], 1
jmp 0x557bb9
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x1c]
cmp eax, 0x493e0
jbe 0x557b9b
mov dl, 1
mov eax, 0x557c30
call fcn.00546824
jmp 0x557bb9
inc dword [ebp - 8]
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x5690c4]
mov eax, dword [eax]
call fcn.004847ec
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x557b5d
cmp byte [ebp - 0x11], 0
je 0x557bdb
push 0
push 1
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0055783c
mov dl, 1
mov eax, 0x557c54
call fcn.00546824
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x557bf8
lea eax, [ebp - 0x20]
call fcn.004061dc
ret
Function at 0x558d44
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x558dd6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 0x558df0
call fcn.00406240
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, 0x558e40
call fcn.004066c0
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, 0x558ef8
call fcn.004066c0
mov eax, dword [ebp - 0x14]
mov dl, 1
call fcn.00546824
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00406278
push eax
mov eax, dword [ebp - 8]
call fcn.00406278
push eax
push 0x558f10
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x558ddd
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004061e4
ret
Function at 0x55d820
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, 0x55ba70
call fcn.00408b70
xor eax, eax
push ebp
push 0x55d91f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x55d934
push 0xffffffffffffffff
push 0
call fcn.0040902c
test eax, eax
je 0x55d85f
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x55d879
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55d929
mov eax, 0x55d9bc
call fcn.00414e20
test al, al
jne 0x55d8d7
mov eax, 0x55d9d0
call fcn.00414e20
test al, al
jne 0x55d8d7
mov eax, 0x55d9e4
call fcn.00414e20
test al, al
jne 0x55d8d7
mov eax, 0x55d9f8
call fcn.00414e20
test al, al
jne 0x55d8d7
mov eax, 0x55da0c
call fcn.00414e20
test al, al
jne 0x55d8d7
mov eax, 0x55da20
call fcn.00414e20
test al, al
jne 0x55d8d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55d929
mov eax, dword [0x5690c4]
mov eax, dword [eax]
call fcn.00484908
mov eax, dword [0x5690c4]
mov eax, dword [eax]
xor edx, edx
call fcn.0048646c
mov ecx, dword [0x568bfc]
mov eax, dword [0x5690c4]
mov eax, dword [eax]
mov edx, dword [0x5571c4]
call fcn.00484920
mov eax, dword [0x5690c4]
mov eax, dword [eax]
call fcn.00484a70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55d929
pop edi
pop esi
pop ebx
call fcn.00405254
add byte [eax], al
add byte [ecx], ch
push esp
add byte [edi], ch
jo 0x55d93c
push esi
add byte [eax], dl
dec esi
add byte [edx], al
jb 0x55d946
outsd dx, dword [esi]
add byte [edi], dh
jae 0x55d94c
add byte gs:[edx], dh
pop edi
add byte [ebp], ch
popal
add byte [ecx], ch
outsb dx, byte [esi]
add byte [edi], bl
inc esp
add byte [ebx], dh
add byte [ebp], al
inc edx
add byte [edi], dh
add byte [edx], dh
add byte [ebx], al
inc edx
add byte [edi], bl
xor byte [eax], al
xor dword [eax], eax
inc esi
add byte [ebp], al
pop edi
add byte [eax + eax], dh
inc ebx
add byte [ebx], dh
add byte [eax + eax + 0x5f], al
add byte [eax], bh
add byte [esi], dh
add byte [edi], dh
add byte [ecx], al
pop edi
add byte [edx], dh
add byte [edx], al
xor eax, dword [eax]
xor dword [eax], eax
aaa
add byte [esi], dh
add byte [0x33004400], dh
add byte [edi], bl
add byte fs:[eax], dh
insd dword es:[edi], dx
add byte [eax + eax + 0x69], dh
add byte [eax], dh
jae 0x55d9ae
add byte [eax], al
mov al, 4
add al, byte [eax]
Function at 0x40b920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.rr02
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x40b942
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b949
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b938
mov eax, 1
add ebx, ebx
jne 0x40b95b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b950
jne 0x40b96c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b950
xor ecx, ecx
sub eax, 3
jb 0x40b980
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b9f2
mov ebp, eax
add ebx, ebx
jne 0x40b98b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b998
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b9bc
inc ecx
add ebx, ebx
jne 0x40b9a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b99d
jne 0x40b9b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b99d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b9dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b9cd
jmp 0x40b93e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b9dc
add edi, ecx
jmp 0x40b93e
pop esi
mov edi, esi
mov ecx, 0xd7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40b9fa
cmp byte [edi], 5
jne 0x40b9fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40b9ff
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40ba6e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb3ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb428]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ba2c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb42c]
or eax, eax
je 0x40ba68
mov dword [ebx], eax
add ebx, 4
jmp 0x40ba49
call dword [esi + 0xb430]
popal
jmp 0x401136
Function at 0x1007266
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x100b5e0
call fcn.010072a8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100d76c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1007021
cmp eax, esi
jne 0x1007014
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1007024
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006ffb
xor esi, esi
inc esi
mov eax, dword [0x100d768]
cmp eax, esi
jne 0x1007037
push 0x1f
call fcn.01149000
pop ecx
jmp 0x1007066
mov eax, dword [0x100d768]
test eax, eax
jne 0x1007060
mov dword [0x100d768], esi
push 0x1001228
push 0x100121c
call fcn.01006f5d
pop ecx
pop ecx
test eax, eax
je 0x1007066
jmp 0x100718a
mov dword [0x100d3a0], esi
mov eax, dword [0x100d768]
cmp eax, esi
jne 0x100708a
push 0x1001218
push 0x10011fc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100d768], 2
cmp dword [ebp - 0x20], ebx
jne 0x1007097
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100d778], ebx
je 0x10070b8
push 0x100d778
call fcn.010076a9
pop ecx
test eax, eax
je 0x10070b8
push ebx
push 2
push ebx
call dword [0x100d778]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100718a
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1007122
cmp cx, bx
je 0x10070dd
cmp dword [ebp - 0x1c], ebx
jne 0x1007122
movzx ecx, word [eax]
cmp cx, bx
je 0x10070f2
cmp cx, 0x20
ja 0x10070f2
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10070dd
test byte [ebp - 0x40], 1
je 0x10070fe
movzx ecx, word [ebp - 0x3c]
jmp 0x1007101
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100d39c], eax
cmp dword [0x100d390], ebx
jne 0x1007167
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1007133
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10070c7
cmp dword [0x100d3a0], ebx
jne 0x1007175
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100d39c]
jmp 0x1007196
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010072ed
ret
call fcn.010077ee
jmp 0x1006fbe
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x403040], eax
call sub.tcl81.dll_Tcl_CreateInterp
mov ecx, dword [0x403040]
push 1
push ecx
push eax
mov dword [0x403048], eax
call sub.tcl81.dll_RtiTcl_AppInit
add esp, 0xc
test eax, eax
je 0x401031
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push str.13:17:30
push str.Feb_27_2001
push str._s__s
push 0x403060
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x403060
call sub.tcl81.dll_SetApplExecVersion
add esp, 0x14
call sub.tcl81.dll_RtiTclConsole
ret 0x10
Function at 0x1006908
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x1006945
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1006922
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1006961
dec esi
je 0x100695a
dec esi
jne 0x1006966
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x438cb2
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
and edx, eax
mov edx, 0x43bb2cd1
call fcn.00438cf3
add eax, 0xfbe84f24
sub edx, 1
mov edx, eax
xor dword [ecx], esi
dec eax
dec eax
or edx, eax
inc ecx
add edx, 0xcd3be48f
sub eax, edx
cmp ecx, ebx
jne fcn.00438cb2
sub edx, 1
or edx, eax
mov eax, eax
ret
Function at 0x40f023
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409f8f
mov dword [ebp - 0x14], eax
cmp dword [0x816000], esi
jne 0x40f116
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f0a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f1f6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f1f6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f1f6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x816000], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x816004], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x816008], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x816010], eax
test eax, eax
je 0x40f113
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81600c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f13b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f12e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f150
push 4
pop eax
jmp 0x40f1f8
cmp dword [ebp - 0x14], esi
je 0x40f150
push dword [0x816000]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f135
mov eax, dword [0x81600c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f1ae
cmp dword [0x816010], edi
je 0x40f1ae
push eax
call ebx
push dword [0x816010]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f1ae
test eax, eax
je 0x40f1ae
call ecx
test eax, eax
je 0x40f1a3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f1a3
test byte [ebp - 8], 1
jne 0x40f1ae
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f1de
mov eax, dword [0x816004]
cmp eax, edi
je 0x40f1db
push eax
call ebx
test eax, eax
je 0x40f1db
call eax
mov esi, eax
test esi, esi
je 0x40f1db
mov eax, dword [0x816008]
cmp eax, edi
je 0x40f1db
push eax
call ebx
test eax, eax
je 0x40f1db
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x816000]
call ebx
test eax, eax
je 0x40f1f6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f1f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040433c
mov esp, ebp
pop ebp
ret