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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4371f8], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040fcd0
call fcn.00407f40
push 3
call fcn.00407fb0
add esp, 4
mov dword [0x437220], eax
push 0x28
call fcn.00407fb0
add esp, 4
mov dword [0x43721c], eax
push 2
call fcn.00407fb0
add esp, 4
mov dword [0x437218], eax
push 5
call fcn.00407fb0
add esp, 4
mov dword [0x437214], eax
push 0x15
call fcn.00407fb0
add esp, 4
mov dword [0x437210], eax
push 0x16
call fcn.00407fb0
add esp, 4
mov dword [0x43720c], eax
push 0x17
call fcn.00407fb0
add esp, 4
mov dword [0x437208], eax
mov dword [0x437200], 0
mov eax, dword [0x437200]
mov dword [0x437204], eax
mov dword [ebp - 0x274], 0
jmp 0x408b47
mov ecx, dword [ebp - 0x274]
add ecx, 1
mov dword [ebp - 0x274], ecx
cmp dword [ebp - 0x274], 0x40
jge 0x408c07
push 0
mov edx, dword [ebp - 0x274]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408c02
mov ecx, dword [ebp - 0x274]
push ecx
push str.SfxFolder_02d
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.00405000
add esp, 0xc
mov dword [ebp - 0x278], 0
jmp 0x408bc3
mov edx, dword [ebp - 0x278]
add edx, 1
mov dword [ebp - 0x278], edx
cmp dword [ebp - 0x278], 5
jae 0x408c02
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax*8 + 0x4363c4]
cmp ecx, dword [ebp - 0x274]
jne 0x408c00
push 0
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax*8 + 0x4363c8]
push ecx
call fcn.00405000
add esp, 0xc
jmp 0x408bb4
jmp 0x408b38
mov esp, ebp
pop ebp
ret

Function at 0x408c90
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x408ca8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, 0x43735c
call fcn.0041a9e0
cmp dword [ebp - 4], eax
jge 0x408d0c
mov ecx, dword [ebp - 4]
push ecx
mov ecx, 0x43735c
call fcn.00418e90
add eax, 0xc
push eax
lea ecx, [ebp - 0x10]
call fcn.00403eb0
lea edx, [ebp - 0x10]
push edx
call fcn.00408c60
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.00412200
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x43735c
call fcn.00418e90
mov ecx, eax
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x10]
call fcn.00401240
jmp 0x408c9f
mov esp, ebp
pop ebp
ret
Function at 0x40b540
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea ecx, [ebp + 8]
call fcn.00412200
movzx eax, word [eax + 2]
cmp eax, 0x3a
jne 0x40b5be
lea ecx, [ebp + 8]
call fcn.00412200
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x40b579
lea ecx, [ebp + 8]
call fcn.00412200
movzx edx, word [eax + 4]
cmp edx, 0x2f
jne 0x40b5be
lea ecx, [ebp + 8]
call fcn.00412200
mov ax, word [eax]
mov word [ebp - 8], ax
mov ecx, 0x3a
mov word [ebp - 6], cx
mov edx, 0x5c
mov word [ebp - 4], dx
xor eax, eax
mov word [ebp - 2], ax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40b5bc
lea ecx, [ebp + 8]
call fcn.00401240
jmp 0x40b75c
jmp 0x40b5cb
lea ecx, [ebp + 8]
call fcn.00401240
jmp 0x40b75c
push str.7ZSfx_03x.cmd
lea edx, [ebp - 0x18]
push edx
call fcn.00405080
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x18]
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40b74c
lea ecx, [ebp - 0x24]
call fcn.00401140
push str.:Repeat_r_n
lea ecx, [ebp - 0x24]
call fcn.00401280
push str.del__
lea ecx, [ebp - 0x24]
call fcn.0041e010
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041e070
push 0x430c58
lea ecx, [ebp - 0x24]
call fcn.0041e010
push str.if_exist__
lea ecx, [ebp - 0x24]
call fcn.0041e010
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0041e070
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x24]
call fcn.0041e010
push str.del__
lea ecx, [ebp - 0x24]
call fcn.0041e010
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x24]
call fcn.0041e070
push 0x430c58
lea ecx, [ebp - 0x24]
call fcn.0041e010
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
call fcn.00412210
push eax
push 1
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00405340
add esp, 0xc
mov ecx, eax
call fcn.00405300
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x38]
call fcn.00401240
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x40b6ec
lea ecx, [ebp - 0x24]
call fcn.00412210
cmp dword [ebp - 0x28], eax
je 0x40b717
lea ecx, [ebp - 0x18]
call fcn.00412200
push eax
call fcn.00406a80
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.00401240
lea ecx, [ebp - 0x18]
call fcn.00401240
lea ecx, [ebp + 8]
call fcn.00401240
jmp 0x40b75c
push 0
lea ecx, [ebp + 8]
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.00412200
push eax
push 0x430c14
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x24]
call fcn.00401240
lea ecx, [ebp - 0x18]
call fcn.00401240
lea ecx, [ebp + 8]
call fcn.00401240
mov esp, ebp
pop ebp
ret
Function at 0x40ba10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.00427a17
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040b960
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x40bf50
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, 0x43725c
call fcn.00412200
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00405320
movzx eax, al
test eax, eax
jne 0x40bfa9
push 0x43725c
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call fcn.0040bfc0
add esp, 8
movzx edx, al
test edx, edx
je 0x40bfa9
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00412200
push eax
call fcn.00406a80
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00402a30
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40de60
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
mov dword [ebp - 0x4e0], ecx
lea eax, [ebp - 0x220]
push eax
push 0x4b6
mov ecx, dword [ebp - 0x4e0]
call fcn.0040d390
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x21c]
add ecx, 2
mov edx, dword [ebp - 0x4e0]
mov dword [edx + 0x58], ecx
push 1
push 0x4b6
mov ecx, dword [ebp - 0x4e0]
call fcn.0040d460
push 1
push 0x4b7
mov ecx, dword [ebp - 0x4e0]
call fcn.0040d460
mov dword [ebp - 0x4d8], 0
push 0x2b0
push 0
lea eax, [ebp - 0x4d4]
push eax
call fcn.00426ce0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea edx, [ebp - 0x4d8]
push edx
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [ebp - 0x4d8]
mov dword [ecx + 0x50], edx
push 0x40e0b0
push 0xfffffffffffffffc
push 0x4b7
mov ecx, dword [ebp - 0x4e0]
call fcn.0040c590
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 0x4e0]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebp - 0x4e0]
call fcn.0040cf20
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4e0]
call fcn.0040e1d0
mov eax, dword [ebp - 0x4dc]
mov esp, ebp
pop ebp
ret

Function at 0x40f6d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0040f730
test eax, eax
jne 0x40f6fc
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x40f670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x40f72c
mov ecx, dword [0x437218]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00412210
push eax
mov ecx, dword [ebp - 4]
call fcn.0040d360
push 0x2d
call fcn.00407fb0
add esp, 4
push eax
push 0x4b2
mov ecx, dword [ebp - 4]
call fcn.0040c560
mov esp, ebp
pop ebp
ret
Function at 0x40fcd0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x40fce8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x40fd3b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x40fd09
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x40fd2c
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x40fd00
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x43a300], eax
jmp 0x40fcdf
jmp 0x40fd46
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x40fd7e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x439f00]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x43a300]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x43a300], edx
jmp 0x40fd3d
mov dword [0x43a2fc], 0x42d850
mov dword [0x43c300], 0x42d850
mov dword [0x43a2f8], 0x42d770
call fcn.0041ace0
test eax, eax
jne 0x40fdaf
mov dword [0x43c300], 0x42d770
mov esp, ebp
pop ebp
ret

Function at 0x41ae40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41ae68
xor eax, eax
jmp 0x41ae74
cmp dword [ebp - 0x114], 5
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x41b160
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41b191
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41b191
xor al, al
jmp 0x41b1b0
mov eax, dword [ebp - 8]
xor edx, edx
mov cl, 0x20
call fcn.00427fd0
mov ecx, dword [ebp - 4]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41b300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call fcn.0041b5d0
add esp, 4
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x436604]
jbe 0x41b4ad
mov ecx, dword [0x436604]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.0041b5d0
add esp, 4
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41b560
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push eax
call fcn.0041b5d0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x420fb0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
add eax, 0x1c
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
shr ecx, 2
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
shr edx, 1
add edx, 3
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jmp 0x420fff
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x421017
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
mov dword [eax + edx*4], ecx
jmp 0x420fed
jmp 0x421022
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x42113a
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4 - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x4210b7
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 8]
movzx edx, byte [eax + 0x431388]
xor ecx, edx
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
movzx edx, byte [eax + str.cw]
shl edx, 8
or ecx, edx
mov eax, dword [ebp - 0x10]
shr eax, 0x18
and eax, 0xff
movzx edx, byte [eax + str.cw]
shl edx, 0x10
or ecx, edx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [eax + str.cw]
shl edx, 0x18
or ecx, edx
mov dword [ebp - 0x10], ecx
jmp 0x42111d
cmp dword [ebp + 8], 6
jbe 0x42111d
cmp dword [ebp - 0xc], 4
jne 0x42111d
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx ecx, byte [eax + str.cw]
mov edx, dword [ebp - 0x10]
shr edx, 8
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp - 0x10]
shr edx, 0x18
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl eax, 0x18
or ecx, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx*4], eax
jmp 0x421019
mov esp, ebp
pop ebp
ret 4
Function at 0x421dd0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x6a09e667
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xbb67ae85
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x3c6ef372
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xa54ff53a
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x510e527f
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x9b05688c
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x1f83d9ab
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0x5be0cd19
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
pop ebp
ret

Function at 0x42b51d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4370b0]
jne 0x42b527
repz ret
jmp fcn.0042d3e8

Function at 0x42c126
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4370b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00429d65
and dword [ebp - 0x14], 0
cmp dword [0x439f74], 0
mov dword [ebp - 0x18], eax
jne 0x42c1d9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42c281
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42c281
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x439f74], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439f78], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439f7c], eax
call edi
push eax
call esi
mov dword [0x439f84], eax
test eax, eax
je 0x42c1d9
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439f80], eax
mov eax, dword [0x439f80]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42c232
cmp dword [0x439f84], ecx
je 0x42c232
push eax
call esi
push dword [0x439f84]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42c232
test ebx, ebx
je 0x42c232
call edi
test eax, eax
je 0x42c229
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42c229
test byte [ebp - 8], 1
jne 0x42c232
or dword [ebp + 0x10], 0x200000
jmp 0x42c265
mov eax, dword [0x439f78]
cmp eax, dword [ebp - 0x18]
je 0x42c265
push eax
call esi
test eax, eax
je 0x42c265
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42c265
mov eax, dword [0x439f7c]
cmp eax, dword [ebp - 0x18]
je 0x42c265
push eax
call esi
test eax, eax
je 0x42c265
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439f74]
call esi
test eax, eax
je 0x42c281
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42c283
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b51d
leave
ret
Function at 0x6cfc1cd9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.6cfe2f40
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x6cfc1d7b
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.6cfe2f10
nop
leave
ret

Function at 0x6cfc1d7e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.6cfe2f40
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
cmp dword [ebp - 0xc], 0
je 0x6cfc1e2a
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x6cfc1e3b
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.6cfe2f10
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x6cfc1e40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xd], 0xe8
mov byte [ebp - 9], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub edx, eax
lea eax, [edx - 5]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xd]
add eax, 1
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 5
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xd]
mov dword [eax], edx
movzx edx, byte [ebp - 9]
mov byte [eax + 4], dl
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 5
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
nop
leave
ret

Function at 0x6cfcb814
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.6cfd5c20
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], 0x6d168b1c
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.6cfd5c20
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x6cfcc18c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x6cfcc1ab
mov eax, 0
jmp 0x6cfcc1ef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x6cfcc1ce
mov eax, 0
jmp 0x6cfcc1ef
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x6cfcc1ea
mov eax, 0
jmp 0x6cfcc1ef
mov eax, 1
leave
ret

Function at 0x6cfcc1f1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x6cfcc250
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x6cfcc248
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x6cfcc248
mov eax, dword [ebp - 4]
jmp 0x6cfcc264
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x6cfcc225
mov eax, 0
leave
ret