joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401510
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push ecx
push esi
call fcn.00401000
lea edi, [eax*4]
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0xc], eax
test edi, edi
jle 0x401585
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
push ebp
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [edx - 8], ebp
mov ebp, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp ebx, edi
jl 0x401544
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 1
jle 0x401740
lea edx, [eax - 1]
mov ecx, dword [esi + 0x10]
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x413618]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x413e18]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x413a18]
movzx ebx, byte [esi + 5]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x414218]
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x413618]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x413e18]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x413a18]
movzx ebx, byte [esi + 9]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x414218]
mov ecx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x413618]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x413e18]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x413a18]
movzx ebx, byte [esi + 0xd]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x414218]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x413618]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x413e18]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x413a18]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x414218]
sub edx, 1
mov dword [esi + 0xc], edi
jne 0x401591
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x403ce0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x417024]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [section..data], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
je 0x403e39
cmp dword [ecx + 0xf0], 0
lea ebp, [ecx + 0xf4]
jne 0x403d51
mov edx, dword [edi]
mov dword [ebp], edx
mov edx, dword [edi + 4]
mov dword [ebp + 4], edx
mov edx, dword [edi + 8]
mov dword [ebp + 8], edx
mov edx, dword [edi + 0xc]
add edi, 0x10
sub eax, 0x10
mov dword [ebp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [ecx + 0xf0], 1
cmp eax, 0x10
jl 0x403ddb
mov edx, eax
shr edx, 4
mov dword [esp + 0x1c], edx
neg edx
mov ebx, edi
shl edx, 4
sub ebx, ebp
add eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
push ebp
push ebp
push eax
push ecx
call fcn.00401750
add esp, 0x10
lea ecx, [edi + 2]
mov eax, ebp
mov dword [esp + 0x18], 4
nop
movzx edx, byte [ebx + eax]
xor dl, byte [eax]
add eax, 4
mov byte [esi], dl
movzx edx, byte [eax - 3]
xor dl, byte [ecx - 1]
add ecx, 4
mov byte [esi + 1], dl
movzx edx, byte [eax - 2]
xor dl, byte [ecx - 4]
add esi, 4
mov byte [esi - 2], dl
movzx edx, byte [eax - 1]
xor dl, byte [ecx - 3]
sub dword [esp + 0x18], 1
mov byte [esi - 1], dl
jne 0x403d90
mov ecx, dword [esp + 0x14]
add edi, 0x10
add ebx, 0x10
sub dword [esp + 0x1c], 1
jne 0x403d72
mov eax, dword [esp + 0x40]
test eax, eax
je 0x403eca
mov eax, dword [esp + 0x3c]
push ebp
push ebp
push eax
push ecx
call fcn.00401750
add esp, 0x10
lea ecx, [edi + 2]
mov eax, ebp
sub edi, ebp
mov ebp, 4
nop
movzx edx, byte [eax + edi]
xor dl, byte [eax]
add eax, 4
mov byte [esi], dl
movzx edx, byte [eax - 3]
xor dl, byte [ecx - 1]
add ecx, 4
mov byte [esi + 1], dl
movzx edx, byte [eax - 2]
xor dl, byte [ecx - 4]
add esi, 4
mov byte [esi - 2], dl
movzx edx, byte [eax - 1]
xor dl, byte [ecx - 3]
sub ebp, 1
mov byte [esi - 1], dl
jne 0x403e00
jmp 0x403eca
cmp eax, 0x10
mov ebp, dword [esp + 0x3c]
jl 0x403e94
mov ebx, eax
shr ebx, 4
mov edx, ebx
neg edx
shl edx, 4
add eax, edx
mov dword [esp + 0x40], eax
jmp 0x403e5a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push edi
push ebp
push ecx
call fcn.00402840
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
add esp, 0x10
add edi, 0x10
add esi, 0x10
sub ebx, 1
jne 0x403e56
mov eax, dword [esp + 0x40]
test eax, eax
je 0x403eca
push eax
xor ecx, ecx
lea edx, [esp + 0x24]
push edi
push edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
call fcn.004061a0
mov ecx, dword [esp + 0x20]
push esi
lea eax, [esp + 0x30]
push eax
push ebp
push ecx
call fcn.00402840
add esp, 0x1c
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405fbc
add esp, 0x24
ret
Function at 0x404460
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0x10]
add eax, 0xc
cdq
push esi
push edi
mov edi, dword [esp + 0x14]
and edx, 0xf
add eax, edx
sar eax, 4
lea ecx, [edi + 3]
push ecx
shl eax, 4
push ecx
lea esi, [eax + 3]
push eax
mov word [edi + 1], si
mov eax, dword [0x418ac0]
push eax
push 0x418ae0
call fcn.00403a80
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
add esp, 0x14
push ecx
push esi
push edi
push edx
call sub.WSOCK32.dll_send
pop edi
pop esi
ret
Function at 0x404aa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x20
mov eax, dword [0x418a4c]
mov byte [eax], 2
mov ecx, dword [0x418a4c]
mov byte [ecx + 3], 0
mov edx, dword [0x418a4c]
mov byte [edx + 4], 0x26
mov eax, dword [0x418a4c]
mov dword [eax + 5], 0x3e
mov ecx, dword [0x418a4c]
mov dword [ecx + 9], 0
mov edx, dword [0x418a4c]
mov ecx, dword [esp + 0x24]
mov dword [edx + 0xd], 1
mov eax, dword [0x418a4c]
push esi
lea esi, [eax + 0x11]
mov byte [esi], 1
push edi
mov edi, esi
inc esi
sub edi, eax
mov eax, dword [0x418a38]
mov dword [esi], eax
add esi, 4
mov byte [esi], 1
inc esi
lea edx, [esp + 0x18]
mov dword [esi], ecx
push edx
add esi, 4
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x22]
mov ax, word [esp + 0x1e]
mov word [esp + 0xe], cx
movzx ecx, word [esp + 0x1a]
mov word [esp + 0x10], dx
movzx edx, word [esp + 0x24]
mov word [esp + 0xa], cx
movzx ecx, word [esp + 0x18]
inc esi
mov word [esp + 0xc], ax
movzx eax, word [esp + 0x26]
mov byte [esi - 1], 3
mov word [esp + 0x12], dx
mov word [esp + 8], cx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
add esi, 0x10
mov byte [esi], 0
add edi, 0x1b
inc esi
cmp dword [esp + 0x34], 0
je 0x404b9c
mov eax, 1
mov word [esi], ax
mov cl, byte [0x414b2c]
add esi, 2
mov byte [esi], cl
jmp 0x404bae
mov edx, 1
mov word [esi], dx
mov al, byte [0x414b28]
add esi, 2
mov byte [esi], al
mov edx, dword [esp + 0x30]
mov eax, edx
inc esi
push ebp
add edi, 4
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404bc0
sub eax, ebp
mov byte [esi], cl
mov ebp, eax
inc esi
push ebp
mov word [esi], bp
push edx
add esi, 2
push esi
call fcn.004061a0
mov ecx, dword [0x418a4c]
lea eax, [edi + ebp + 3]
push 0
push eax
mov word [ecx + 1], ax
mov edx, dword [0x418a4c]
mov eax, dword [0x418a48]
push edx
push eax
push 0
call fcn.00404460
add esp, 0x20
xor esi, esi
pop ebp
jmp 0x404c10
mov edx, dword [0x418c28]
mov eax, dword [0x418a48]
push 0
mov ecx, 0x8000
sub ecx, esi
push ecx
add edx, esi
push edx
push eax
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x404c39
add esi, eax
cmp esi, 0xa
jb 0x404c10
mov ecx, dword [esp + 0x2c]
push ecx
push 2
call fcn.00404a40
add esp, 8
pop edi
pop esi
add esp, 0x20
ret
Function at 0x405fbc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417024]
jne 0x405fc6
repz ret
jmp fcn.00407145

Function at 0x40cbab
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.004072bd
and dword [ebp - 4], 0
cmp dword [0x418a08], 0
mov ebx, eax
jne 0x40cc5c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cd0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4155d0
push edi
call esi
test eax, eax
je 0x40cd0d
push eax
call fcn.0040724b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418a08], eax
call esi
push eax
call fcn.0040724b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418a0c], eax
call esi
push eax
call fcn.0040724b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418a10], eax
call esi
push eax
call fcn.0040724b
pop ecx
mov dword [0x418a18], eax
test eax, eax
je 0x40cc5c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040724b
pop ecx
mov dword [0x418a14], eax
mov eax, dword [0x418a14]
cmp eax, ebx
je 0x40ccb4
cmp dword [0x418a18], ebx
je 0x40ccb4
push eax
call fcn.004072c6
push dword [0x418a18]
mov esi, eax
call fcn.004072c6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ccb4
test edi, edi
je 0x40ccb4
call esi
test eax, eax
je 0x40ccab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ccab
test byte [ebp - 0xc], 1
jne 0x40ccb4
or dword [ebp + 0x10], 0x200000
jmp 0x40cced
mov eax, dword [0x418a0c]
cmp eax, ebx
je 0x40cced
push eax
call fcn.004072c6
pop ecx
test eax, eax
je 0x40cced
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cced
mov eax, dword [0x418a10]
cmp eax, ebx
je 0x40cced
push eax
call fcn.004072c6
pop ecx
test eax, eax
je 0x40cced
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418a08]
call fcn.004072c6
pop ecx
test eax, eax
je 0x40cd0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cd0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401bc0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x465e58]
sub esp, 0x100
cmp eax, 1
jne 0x401bef
mov eax, dword [0x55b370]
push 0
push 0
push 0x804
push eax
call dword [sym.imp.winmm.dll_mciSendCommandA]
mov dword [0x465e58], 0
push ebx
push ebp
mov ebp, dword [0x45f038]
push esi
mov esi, dword [sym.imp.kernel32.dll_GetDriveTypeA]
push edi
xor edi, edi
xor ebx, ebx
mov cl, bl
lea edx, [esp + 0x10]
add cl, 0x41
push edx
mov byte [esp + 0x14], cl
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x16], 0x5c
mov byte [esp + 0x17], 0
call esi
cmp eax, 5
jne 0x401c39
push ebx
call fcn.004015b0
add esp, 4
call fcn.00401960
test eax, eax
je 0x401c5c
inc ebx
cmp ebx, 0x1a
jl 0x401c03
inc edi
cmp edi, 3
jl 0x401c01
push ebp
call fcn.004015b0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x100
ret
push ebp
call fcn.004015b0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x100
ret
Function at 0x403c80
Capabilities:
Copy file

Disassembly:
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, 0xa
mov dword [0x55b208], eax
mov dword [0x55b0d8], eax
mov eax, dword [esp + 0x10]
mov dword [0x55b0cc], eax
mov eax, dword [esp + 0x1c]
mov dword [0x55b0d4], ecx
mov ecx, dword [esp + 0x20]
mov dword [0x55b0c4], edx
mov edx, dword [esp + 0x24]
mov dword [0x55b0dc], eax
mov eax, dword [esp + 0x28]
mov dword [0x55afa8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [0x55b204], edx
mov dword [0x55b0c8], eax
mov dword [0x55b0d0], ecx
call fcn.00403540
push 0x45f1b4
push 0x45f1a4
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
push 0
je 0x403d20
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push 0x55afa4
push 0
push 0x403c50
push edx
push ecx
call eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.kernel32.dll_CopyFileA]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
ret
Function at 0x4082b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x465eb4]
sub esp, 8
test eax, eax
je 0x4082d8
push eax
call dword [sym.imp.user32.dll_DestroyWindow]
push 0
push 0
call fcn.00419d10
add esp, 8
mov eax, 1
add esp, 8
ret
push 1
push 0
call fcn.00419d10
push 1
call fcn.00419d00
add esp, 0xc
cmp eax, 0x186a0
mov dword [esp + 4], eax
jne 0x4082fe
mov dword [esp + 4], 0x80000000
push 2
call fcn.00419d00
add esp, 4
cmp eax, 0x186a0
mov dword [esp], eax
jne 0x40831b
mov dword [esp], 0x80000000
push esi
push edi
push 3
call fcn.00419d00
mov edi, eax
add esp, 4
cmp edi, 0x186a0
jne 0x408336
mov edi, 0x80000000
push 4
call fcn.00419d00
mov esi, eax
add esp, 4
cmp esi, 0x186a0
jne 0x40834f
mov esi, 0x80000000
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00419d20
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add esp, 8
push 0
push edx
push 0
push 0
push esi
push edi
push eax
push ecx
push 0xff0000
push 0x45f2d0
push 0x45f2d0
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
push 5
push eax
mov dword [0x465eb4], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov edx, dword [0x465eb4]
push edx
call dword [sym.imp.user32.dll_UpdateWindow]
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x408960
Capabilities:
Create process on windows
Create process suspended
Get common file path
Resume thread
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x750
push ebx
push esi
push edi
lea eax, [esp + 0x168]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea ecx, [esp + 0x168]
push 0x45f330
push ecx
call fcn.00451dc0
add esp, 8
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x180]
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408b08
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x4dc240
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x64]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [esp + 0x270]
push 0x5c
push eax
call fcn.00451d80
add esp, 8
push 0x80
lea ecx, [esp + 0x68]
push ecx
mov byte [eax], 0
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
lea edx, [esp + 0x168]
push edx
lea eax, [esp + 0x274]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x384]
push 0x45f2e8
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x18
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x37c]
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
lea eax, [esp + 0x380]
push eax
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call esi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x45f2e4
push eax
push 0x44
push eax
push eax
push eax
mov word [esp + 0x70], ax
lea eax, [esp + 0x188]
push eax
push 0
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x408b08
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.kernel32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push ecx
call edi
push 0xf
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call edi
push 0x80
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_SetPriorityClass]
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebx
add esp, 0x750
ret
Function at 0x408b20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x140
push ebx
push ebp
mov ebp, dword [esp + 0x14c]
push esi
push edi
push ebp
push 0x105
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
mov edi, dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.kernel32.dll_FindClose]
je 0x408b76
push ebp
call fcn.0042d950
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
call edi
mov esi, eax
push esi
call ebx
cmp esi, 0xffffffff
je 0x408b76
test byte [esp + 0x10], 0x10
je 0x408b76
mov edi, 0x45f2e4
jmp 0x408bb2
push 0x105
push ebp
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x408bad
push ebp
call fcn.0042d950
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
call edi
mov esi, eax
push esi
call ebx
cmp esi, 0xffffffff
je 0x408bad
test byte [esp + 0x10], 0x10
mov edi, 0x45f2e4
jne 0x408bb2
mov edi, 0x45f33c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, ebp
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x408bf0
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
lea eax, [esp - 0x314]
sub esp, 0x368
push eax
call fcn.00408b20
add esp, 4
lea ecx, [esp + 0x54]
push ecx
push 0
push 0x45f35c
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
push 0
lea eax, [esp + 0x58]
push eax
push 0x4dc240
call dword [sym.imp.kernel32.dll_CopyFileA]
test eax, eax
je 0x408ce5
push ebx
push esi
push edi
push 0
push 0x4000000
push 3
push 0
push 1
push 0
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
push 0x482100
mov esi, eax
call fcn.0042d950
add esp, 4
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.kernel32.dll_OpenProcess]
push esi
push 0x482100
push 0x4dc240
mov ebx, eax
push ebx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x17c]
push 0x45f340
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x1c
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
lea eax, [esp + 0x188]
push eax
push 0
mov dword [esp + 0x44], 0x44
call dword [sym.imp.kernel32.dll_CreateProcessA]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x368
ret
Function at 0x40f6a0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi*4 + 0x466b90]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x14]
lea ebp, [esi*4 + 0x466b90]
push edx
push eax
call dword [ecx + 0x24]
test byte [esp + 0x14], 1
je 0x40f6ea
mov eax, dword [0x466bbc]
xor ebx, ebx
cmp eax, ebx
jbe 0x40f6df
mov eax, dword [ebp]
push eax
call fcn.0040f590
add esp, 4
mov eax, dword [ebp]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
jmp 0x40f6ec
xor ebx, ebx
mov eax, dword [esi*4 + 0x466ae0]
cmp eax, ebx
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
je 0x40f730
push 0x1388
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40f71f
mov edx, dword [esi*4 + 0x466ae0]
push ebx
push edx
call dword [sym.imp.kernel32.dll_TerminateThread]
mov eax, dword [esi*4 + 0x466ae0]
push eax
call edi
mov dword [esi*4 + 0x466ae0], ebx
mov eax, dword [esi*8 + 0x466a1c]
cmp eax, ebx
je 0x40f745
push eax
call edi
mov dword [esi*8 + 0x466a1c], ebx
mov eax, dword [esi*8 + 0x466a20]
cmp eax, ebx
je 0x40f75a
push eax
call edi
mov dword [esi*8 + 0x466a20], ebx
mov eax, dword [esi*4 + 0x4669dc]
cmp eax, ebx
je 0x40f772
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi*4 + 0x4669dc], ebx
mov eax, dword [esi*4 + 0x4669fc]
cmp eax, ebx
je 0x40f787
push eax
call edi
mov dword [esi*4 + 0x4669fc], ebx
mov eax, dword [esi*4 + 0x466a68]
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
cmp eax, ebx
mov ebx, dword [sym.imp.kernel32.dll_GetProcessHeap]
je 0x40f7b1
push eax
push 0
call ebx
push eax
call edi
mov dword [esi*4 + 0x466a68], 0
mov eax, dword [esi*4 + 0x466a78]
test eax, eax
lea esi, [esi*4 + 0x466a78]
je 0x40f7d1
push eax
push 0
call ebx
push eax
call edi
mov dword [esi], 0
mov eax, dword [ebp]
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop edi
pop esi
mov dword [ebp], 0
pop ebp
pop ebx
ret