joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d10
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x407deb
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x407d44
cmp dword [esi + 0x40], edi
jae 0x407d44
push eax
call fcn.00409823
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x407d5b
lea eax, [edi + edi]
push eax
call fcn.0040982e
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.00419a60
add esp, 0xc
cmp edi, ebp
jbe 0x407de7
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42bc38]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x42bc38]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x407d70
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x407e24
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x407e0c
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.00419a60
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x407e45
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x414058
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432c90]
jne 0x414062
repz ret
jmp fcn.004194fa

Function at 0x420f25
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00418f09
and dword [ebp - 4], 0
cmp dword [0x436b0c], 0
mov ebx, eax
jne 0x420fd6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421087
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x421087
push eax
call fcn.00418e97
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x436b0c], eax
call esi
push eax
call fcn.00418e97
mov dword [esp], 0x42a764
push edi
mov dword [0x436b10], eax
call esi
push eax
call fcn.00418e97
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x436b14], eax
call esi
push eax
call fcn.00418e97
pop ecx
mov dword [0x436b1c], eax
test eax, eax
je 0x420fd6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418e97
pop ecx
mov dword [0x436b18], eax
mov eax, dword [0x436b18]
cmp eax, ebx
je 0x42102e
cmp dword [0x436b1c], ebx
je 0x42102e
push eax
call fcn.00418f12
push dword [0x436b1c]
mov esi, eax
call fcn.00418f12
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42102e
test edi, edi
je 0x42102e
call esi
test eax, eax
je 0x421025
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421025
test byte [ebp - 0xc], 1
jne 0x42102e
or dword [ebp + 0x10], 0x200000
jmp 0x421067
mov eax, dword [0x436b10]
cmp eax, ebx
je 0x421067
push eax
call fcn.00418f12
pop ecx
test eax, eax
je 0x421067
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x421067
mov eax, dword [0x436b14]
cmp eax, ebx
je 0x421067
push eax
call fcn.00418f12
pop ecx
test eax, eax
je 0x421067
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436b0c]
call fcn.00418f12
pop ecx
test eax, eax
je 0x421087
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421089
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48e120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x48e142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48e149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48e138
mov eax, 1
add ebx, ebx
jne 0x48e15b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48e150
jne 0x48e16c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48e150
xor ecx, ecx
sub eax, 3
jb 0x48e180
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48e1f2
mov ebp, eax
add ebx, ebx
jne 0x48e18b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x48e198
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x48e1bc
inc ecx
add ebx, ebx
jne 0x48e1a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48e19d
jne 0x48e1b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48e19d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48e1dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48e1cd
jmp 0x48e13e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48e1dc
add edi, ecx
jmp 0x48e13e
pop esi
mov edi, esi
mov ecx, 0x8a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48e1fa
cmp byte [edi], 2
jne 0x48e1fa
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 al, bl
loop 0x48e1ff
lea edi, [esi + 0x8c000]
mov eax, dword [edi]
or eax, eax
je 0x48e277
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x94e64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x94ea0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48e22c
mov ecx, edi
jns 0x48e25b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x94ea8]
or eax, eax
je 0x48e271
mov dword [ebx], eax
add ebx, 4
jmp 0x48e249
call dword [esi + 0x94ea4]
mov ebp, dword [esi + 0x94eac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48e2ab
sub esp, 0xffffff80
jmp 0x401330

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100011c0
Capabilities:
Create pipe
Create thread

Disassembly:
cmp dword [esi], 0
je 0x100011c8
mov al, 1
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 4], eax
jne 0x100011e0
xor al, al
ret
cmp dword [esi + 0x24], 0x10
jb 0x100011eb
mov eax, dword [esi + 0x10]
jmp 0x100011ee
lea eax, [esi + 0x10]
push 0
push 0
push 0x400
push 0x400
push 1
push 0
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x100011dd
push 0
push 0
push esi
push 0x10001180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
setne al
ret

Function at 0x10001230
Capabilities:
Terminate thread

Disassembly:
push ebp
push edi
lea ebp, [esi + 0x28]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1000125f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10001270
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x10001288
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi], 0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov byte [esi + 0x40], 0
mov al, 1
pop ebp
ret
Function at 0x100012a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1000a1d6
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x1000e094]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push edi
mov eax, dword [0x1000e094]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x61]
push ebx
push eax
mov byte [esp + 0x68], bl
call fcn.10003be0
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x10]
push edx
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0x400
lea eax, [esp + 0x68]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi]
push eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call edi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x468], ebx
mov ecx, dword [esi]
push 1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x100013f7
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push ebx
push 0x400
lea eax, [esp + 0x68]
push eax
push ecx
call edi
cmp dword [esi + 0x4c], ebx
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x5c], bl
je 0x10001345
lea eax, [esp + 0x5c]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
lea edx, [eax + 1]
jmp 0x100013a0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100013a0
sub eax, edx
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x2c]
call fcn.10001710
mov byte [esp + 0x468], 1
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x4c]
push ecx
lea edx, [esp + 0x28]
push edx
call eax
add esp, 8
mov byte [esp + 0x468], bl
cmp dword [esp + 0x3c], 0x10
jb 0x10001345
mov ecx, dword [esp + 0x28]
push ecx
call fcn.100028c8
add esp, 4
jmp 0x10001345
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1000140d
cmp eax, 0xe9
jne 0x10001345
cmp dword [esp + 0x58], 0x10
jb 0x10001421
mov edx, dword [esp + 0x44]
push edx
call fcn.100028c8
add esp, 4
xor al, al
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.10002750
add esp, 0x460
ret

Function at 0x100014b0
Capabilities:
Connect pipe

Disassembly:
sub esp, 0x14
mov edx, dword [esi]
xor eax, eax
lea ecx, [esp]
mov dword [esp + 0x10], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
push ecx
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100014f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100014f3
xor al, al
add esp, 0x14
ret
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x100014ed
mov al, 1
mov byte [esi + 0x40], al
add esp, 0x14
ret

Function at 0x10002750
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e094]
jne 0x1000275a
repz ret
jmp fcn.10003519
Function at 0x10009a40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10004c16
xor ebx, ebx
cmp dword [0x1000f7d4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10009b15
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10009a80
xor eax, eax
jmp 0x10009bd9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10009a79
push eax
call fcn.10004bb3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000f7d4], eax
call esi
push eax
call fcn.10004bb3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000f7d8], eax
call esi
push eax
call fcn.10004bb3
mov dword [0x1000f7dc], eax
lea eax, [ebp - 8]
push eax
call fcn.100056ec
test eax, eax
pop ecx
pop ecx
je 0x10009ae3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002bda
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10009b15
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10004bb3
cmp eax, ebx
pop ecx
mov dword [0x1000f7e4], eax
je 0x10009b15
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10004bb3
pop ecx
mov dword [0x1000f7e0], eax
mov eax, dword [0x1000f7e0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10009b8e
cmp dword [0x1000f7e4], esi
je 0x10009b8e
push eax
call fcn.10004c1f
pop ecx
call eax
cmp eax, ebx
je 0x10009b5b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1000f7e4]
call fcn.10004c1f
pop ecx
call eax
test eax, eax
je 0x10009b5b
test byte [ebp - 0x18], 1
jne 0x10009b8e
lea eax, [ebp - 0xc]
push eax
call fcn.10005723
test eax, eax
pop ecx
je 0x10009b76
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002bda
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10009b85
or dword [ebp + 0x10], 0x200000
jmp 0x10009bbf
or dword [ebp + 0x10], 0x40000
jmp 0x10009bbf
mov eax, dword [0x1000f7d8]
cmp eax, esi
je 0x10009bbf
push eax
call fcn.10004c1f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10009bbf
mov eax, dword [0x1000f7dc]
cmp eax, esi
je 0x10009bbf
push dword [ebp - 4]
push eax
call fcn.10004c1f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1000f7d4]
call fcn.10004c1f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10006290
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
test ecx, ecx
jbe 0x100062c6
mov dl, byte [eax + esi]
mov bl, byte [ebp + 0x10]
sub dl, cl
add dl, al
xor dl, bl
mov byte [eax + esi], dl
ror dword [ebp + 0x10], 5
inc eax
cmp eax, ecx
jb 0x100062ae
push 0x1005dd28
jmp 0x1000108a

Function at 0x10007f99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000c788
cmp edx, dword [eax]
je 0x10007fbb
add eax, 8
inc ecx
cmp eax, 0x1000c818
jl 0x10007fac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000c788]
jne 0x100080e9
mov eax, dword [0x100171c4]
cmp eax, 1
je 0x100080c3
test eax, eax
jne 0x10007fec
cmp dword [0x100171c8], 1
je 0x100080c3
cmp edx, 0xfc
je 0x100080e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10008023
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10006e70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10009350
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10008066
lea eax, [ebp - 0x1a4]
push eax
call fcn.10009350
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000b4ac
push edi
call fcn.10009210
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10006e70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10006e80
lea eax, [ebp - 0xa0]
push 0x1000b48c
push eax
call fcn.10006e80
push dword [esi + 0x1000c78c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10006e80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10009f35
add esp, 0x2c
pop edi
jmp 0x100080e9
lea eax, [ebp + 8]
lea esi, [esi + 0x1000c78c]
push 0
push eax
push dword [esi]
call fcn.10009350
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403bef
Capabilities:
Encrypt data using tea

Disassembly:
sub esp, 0x30
and dword [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
mov eax, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x38], eax
call fcn.0040327a
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
add ebx, 0x23f
mov edi, dword [esi + 8]
push 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
pop esi
mov dword [esp + 0x24], 2
add dword [esp + 0x24], 3
mov edx, dword [esp + 0x20]
mov eax, edx
shl eax, 4
add eax, edi
mov dword [esp + 0x28], 0xedeb2e40
cmp dword [0x28dca44], 0xfa9
mov dword [esp + 0x10], eax
mov eax, dword [0x28dca88]
cmove eax, dword [esp + 0x28]
and dword [esp + 0x28], 0
cmp dword [0x28dca44], 0x3eb
mov dword [0x28dca88], eax
mov eax, dword [0x28dca90]
cmove eax, dword [esp + 0x28]
mov dword [0x28dca90], eax
lea eax, [ebx + edx]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x2c]
xor eax, dword [esp + 0x28]
xor eax, dword [esp + 0x10]
sub ebp, eax
mov dword [esp + 0x14], eax
mov eax, ebp
mov dword [0x28dca8c], 0xf4ea3dee
shl eax, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
and dword [esp + 0x1c], 0
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x24]
mov eax, ebp
shr eax, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x28]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x20], eax
mov edx, 0x9e3779b9
lea ecx, [esp + 0x18]
call fcn.00403be3
dec esi
je 0x403d3f
mov ebx, dword [esp + 0x18]
jmp 0x403c3d
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov dword [edi + 4], ebp
mov dword [edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x41248f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x451228]
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.004079c6
mov dword [ebp - 0x14], eax
cmp dword [0x28ddafc], esi
jne 0x412582
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41250f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x412662
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x412662
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412662
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x28ddafc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x28ddb00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x28ddb04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x28ddb0c], eax
test eax, eax
je 0x41257f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x28ddb08], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4125a7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41259a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4125bc
push 4
pop eax
jmp 0x412664
cmp dword [ebp - 0x14], esi
je 0x4125bc
push dword [0x28ddafc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4125a1
mov eax, dword [0x28ddb08]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41261a
cmp dword [0x28ddb0c], edi
je 0x41261a
push eax
call ebx
push dword [0x28ddb0c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41261a
test eax, eax
je 0x41261a
call ecx
test eax, eax
je 0x41260f
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 0x41260f
test byte [ebp - 8], 1
jne 0x41261a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41264a
mov eax, dword [0x28ddb00]
cmp eax, edi
je 0x412647
push eax
call ebx
test eax, eax
je 0x412647
call eax
mov esi, eax
test esi, esi
je 0x412647
mov eax, dword [0x28ddb04]
cmp eax, edi
je 0x412647
push eax
call ebx
test eax, eax
je 0x412647
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x28ddafc]
call ebx
test eax, eax
je 0x412662
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x412664
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c00
mov esp, ebp
pop ebp
ret
Function at 0x425853
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x425862
pop dword [ebp - 8]
mov eax, 0xdeeba99d
sub eax, 0xdea9513b
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x4ce55
push 0
mov eax, 0x13a8e159
sub eax, 0x13627981
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x1873d499
sub ecx, 0x18738fab
mov edx, eax
mov edi, 0xc687d073
add edi, 0x39c10f8d
add edi, dword [ebp - 8]
mov esi, 0xbf53fc2b
xor dword [ebp - 4], esi
mov ebx, dword [edi]
add dword [ebp - 4], 0xa249abbb
sub ebx, esi
sub dword [ebp - 4], 0xbf6fb287
mov dword [edx], ebx
add edx, 0xd97d377c
add edx, 0x2682c888
add edi, 4
loop 0x4258bb
add eax, 0x1068b
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4287df
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
cmp dword [0x45aa24], 0
je 0x428816
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call main
add esp, 4
jmp 0x42882f
call main
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call main
add esp, 4
jmp 0x42882f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44c8c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x44c8df
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x44c8f2
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret