joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d6b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43bd18]
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.00407106
and dword [ebp - 0x14], 0
cmp dword [0x4b8940], 0
mov dword [ebp - 0x18], eax
jne 0x407e1e
push 0x402020
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407ec6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402014
push ebx
call edi
test eax, eax
je 0x407ec6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402004
push ebx
mov dword [0x4b8940], eax
call edi
push eax
call esi
push 0x401ff0
push ebx
mov dword [0x4b8944], eax
call edi
push eax
call esi
push 0x401fd4
push ebx
mov dword [0x4b8948], eax
call edi
push eax
call esi
mov dword [0x4b8950], eax
test eax, eax
je 0x407e1e
push 0x401fbc
push ebx
call edi
push eax
call esi
mov dword [0x4b894c], eax
mov eax, dword [0x4b894c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407e77
cmp dword [0x4b8950], ecx
je 0x407e77
push eax
call esi
push dword [0x4b8950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407e77
test ebx, ebx
je 0x407e77
call edi
test eax, eax
je 0x407e6e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407e6e
test byte [ebp - 8], 1
jne 0x407e77
or dword [ebp + 0x10], 0x200000
jmp 0x407eaa
mov eax, dword [0x4b8944]
cmp eax, dword [ebp - 0x18]
je 0x407eaa
push eax
call esi
test eax, eax
je 0x407eaa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407eaa
mov eax, dword [0x4b8948]
cmp eax, dword [ebp - 0x18]
je 0x407eaa
push eax
call esi
test eax, eax
je 0x407eaa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b8940]
call esi
test eax, eax
je 0x407ec6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407ec8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004080d6
leave
ret

Function at 0x4080d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43bd18]
jne 0x4080e0
repz ret
jmp fcn.00409dde
Function at 0x4026c5
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 0xc
mov dword [esp], 0x530664
call fcn.00504ce0
mov dword [esp], 0x402628
call fcn.00519cac
mov dword [esp], 0x530665
call fcn.005064bc
mov dword [esp], 0x40263b
call fcn.00519cac
mov dword [0x5319ec], 0xffffffff
mov dword [0x53066c], 0x1571
mov ecx, 0x1571
mov eax, 0xfffffd91
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
lea ecx, [eax + ecx + 0x270]
mov dword [eax*4 + 0x53102c], ecx
inc eax
jne 0x402716
mov dword [0x530668], 0x270
cmp byte [0x531a04], 0
jne 0x402771
mov dword [0x5319fc], 0x404578
mov dword [esp], 0x4026c4
call fcn.00519cac
mov dword [0x531a08], 0
mov dword [0x531a04], 1
mov dword [0x5319f0], 0x5319fc
mov dword [esp], 0x40264e
call fcn.00519cac
add esp, 0xc
ret
Function at 0x404ac8
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
xor ecx, ecx
lea edx, [esp + 0x1c]
mov esi, 4
xor ebp, ebp
mov bl, byte [eax + ebp*4]
mov byte [edx + ebp], bl
inc ebp
cmp ebp, 4
jne 0x404ae4
inc ecx
inc eax
add edx, 4
cmp ecx, esi
jne 0x404ae2
mov eax, dword [esp + 0x40]
mov esi, dword [eax + 4]
mov eax, esi
shl eax, 4
mov dword [esp + 0x14], eax
lea ecx, [edi + eax]
xor ebp, ebp
lea ebx, [esp + 0x1c]
xor eax, eax
mov dl, byte [ecx + eax*4]
xor byte [ebx + eax], dl
inc eax
cmp eax, 4
jne 0x404b14
inc ebp
inc ecx
add ebx, 4
mov eax, 4
cmp ebp, eax
jne 0x404b12
mov eax, dword [esp + 0x14]
lea eax, [edi + eax - 0x10]
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x1c]
mov ebp, 4
jmp 0x404b7e
mov dword [esp + 0x18], esi
xor esi, esi
mov ecx, ebx
mov edx, dword [esp + 0x14]
xor ebx, ebx
mov al, byte [edx + ebx*4]
xor byte [ecx + ebx], al
inc ebx
cmp ebx, 4
jne 0x404b53
inc esi
inc edx
add ecx, 4
cmp esi, ebp
jne 0x404b51
lea ebx, [esp + 0x1c]
mov dword [esp + 4], ebx
call fcn.00404d80
add dword [esp + 0x14], 0xfffffff0
mov esi, dword [esp + 0x18]
dec esi
xor eax, eax
mov ecx, ebx
xor edx, edx
movzx ebx, byte [ecx + edx]
mov bl, byte [ebx + 0x524577]
mov byte [ecx + edx], bl
inc edx
cmp edx, 4
jne 0x404b85
inc eax
add ecx, 4
cmp eax, ebp
jne 0x404b83
lea ebx, [esp + 0x1c]
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00404d18
test esi, esi
jne 0x404b45
xor eax, eax
lea ecx, [esp + 0x1c]
mov esi, 4
mov ebp, dword [esp + 0x48]
xor ebx, ebx
mov dl, byte [edi + ebx*4]
xor byte [ecx + ebx], dl
inc ebx
cmp ebx, 4
jne 0x404bc9
inc eax
inc edi
add ecx, 4
cmp eax, esi
jne 0x404bc7
xor eax, eax
lea ecx, [esp + 0x1c]
mov edx, 4
xor edi, edi
mov bl, byte [ecx + edi]
mov byte [ebp + edi*4], bl
inc edi
cmp edi, 4
jne 0x404beb
inc eax
inc ebp
add ecx, 4
cmp eax, edx
jne 0x404be9
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404c0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x50]
mov dword [esp + 4], ebp
call fcn.00404750
mov dword [esp], ebp
call fcn.0050601c
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
shl eax, 4
add eax, 0x10
mov dword [esp], eax
call fcn.0050601c
mov edi, eax
mov dword [esp + 8], edi
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00404910
mov eax, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x404cdd
xor ebx, ebx
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
lea ebp, [eax + ebx]
mov eax, dword [esp + 0x18]
lea eax, [eax + ebx]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00404ac8
xor eax, eax
mov cl, byte [esp + eax + 0x1c]
xor byte [esi + eax], cl
inc eax
cmp eax, 0x10
jne 0x404ca8
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
add ebx, 0x10
add esi, 0x10
cmp ebx, dword [esp + 0x48]
jb 0x404c80
test edi, edi
je 0x404ce9
mov dword [esp], edi
call fcn.005040ec
mov eax, dword [esp + 0x18]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
xor eax, eax
lea edi, [esp + 8]
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [esp], 0
mov dword [edi], eax
xor ecx, ecx
mov ebx, dword [esp + 0x30]
mov eax, dword [esp]
mov dword [esp + 4], ecx
movzx ecx, byte [ecx + eax*4 + 0x524677]
xor eax, eax
movzx esi, byte [ebx + eax]
mov ebp, ecx
shl ebp, 8
mov dl, byte [ebp + esi + 0x523677]
xor byte [edi + eax], dl
inc eax
cmp eax, 4
jne 0x404db6
mov ecx, dword [esp + 4]
inc ecx
add ebx, 4
mov eax, 4
cmp ecx, eax
jne 0x404da5
mov eax, dword [esp]
mov ecx, eax
inc ecx
add edi, 4
mov eax, ecx
mov dword [esp], eax
mov eax, 4
cmp ecx, eax
jne 0x404d9f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov edx, ecx
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 8], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [edx + 4], ecx
mov dword [edx], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x413c58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28c
mov edi, dword [ebp + 0xc]
sub esp, 4
xor ebx, ebx
lea eax, [ebp - 0x294]
push 0x208
push ebx
push eax
call fcn.0050df9b
add esp, 0x10
sub esp, 0xc
push 2
push 0x525e77
push dword [edi + 0x14]
push ebx
push edi
call fcn.0040d114
add esp, 0x20
mov esi, eax
lea eax, [ebp - 0x54]
mov dword [eax + 0x1c], 0x51dfc0
mov dword [eax + 0x20], 0x526144
mov dword [eax + 0x24], ebp
mov dword [eax + 0x2c], esp
mov dword [eax + 0x24], 0x413e68
call fcn.0051ec29
test esi, esi
je 0x413d16
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x4c], 0xffffffff
sub esp, 0xc
push 2
push 0x525e7a
push eax
push 0
push edi
call fcn.0040d114
add esp, 0x20
test eax, eax
je 0x413d1d
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], 0xf
xor eax, eax
mov dword [esi + 0x14], eax
mov byte [esi + 4], 0
mov dword [ebp - 0x4c], 0xffffffff
sub esp, 4
push eax
push 0x525e7d
push esi
call fcn.00403518
add esp, 0x10
jmp 0x413e4c
mov eax, 0x1a
jmp 0x413d1f
xor eax, eax
mov dword [ebp - 0x4c], 0xffffffff
push ebx
push eax
lea esi, [ebp - 0x294]
push esi
push ebx
call sub.SHELL32.DLL_SHGetSpecialFolderPathW
test eax, eax
je 0x413e37
mov ebx, esi
mov esi, 7
lea eax, [ebp - 0x8c]
mov dword [eax + 0x18], esi
xor edi, edi
mov dword [eax + 0x14], edi
mov word [eax + 4], di
mov dword [ebp - 0x4c], 0xffffffff
sub esp, 8
push ebx
push eax
call fcn.00414a88
add esp, 0x10
lea eax, [ebp - 0x70]
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], edi
mov word [eax + 4], di
mov dword [ebp - 0x4c], 1
sub esp, 8
push ebx
push eax
call fcn.00414a88
add esp, 0x10
mov dword [ebp - 0x4c], 2
sub esp, 8
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x70]
push ecx
push eax
call fcn.004126dc
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0xf
mov dword [edx + 0x14], 0
mov byte [edx + 4], 0
lea ecx, [eax - 1]
cmp byte [ecx + 1], 0
lea ecx, [ecx + 1]
jne 0x413dc0
sub ecx, eax
mov dword [ebp - 0x4c], 3
sub esp, 4
push ecx
push eax
push edx
call fcn.00403518
add esp, 0x10
mov eax, dword [ebp - 0x18]
test eax, eax
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x54]
je 0x413e14
mov ecx, dword [ebp - 0x10]
sub ecx, eax
cmp ecx, 0x1000
jb 0x413dfd
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.005040fc
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
sub esp, 0xc
lea eax, [ebp - 0x70]
push eax
call fcn.00403b68
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x8c]
push eax
call fcn.00403b68
add esp, 0x10
jmp 0x413e4f
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edi, [ebp - 0x54]
sub esp, 0xc
push edi
call fcn.0051ec4a
add esp, 0x10
mov eax, esi
add esp, 0x28c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x414470
Capabilities:
Get file attributes

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 0xf
ja 0x414482
add eax, 4
jmp 0x414485
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
test al, 0x10
sete al
add esp, 0xc
ret
Function at 0x41449c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0xf
ja 0x4144b3
add eax, 4
jmp 0x4144b6
mov eax, dword [eax + 4]
mov edi, dword [ebp + 8]
sub esp, 4
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push 1
push SysReAllocStringLen
push eax
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov esi, eax
lea ebx, [ebp - 0x68]
mov dword [ebx + 0x1c], 0x51dfc0
mov dword [ebx + 0x20], 0x5261b8
mov dword [ebx + 0x24], ebp
mov dword [ebx + 0x2c], esp
mov dword [ebx + 0x24], 0x414640
mov eax, ebx
call fcn.0051ec29
cmp esi, 0xffffffff
je 0x4145c9
xor ecx, ecx
dec ecx
mov dword [ebp - 0x60], ecx
sub esp, 8
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
add esp, 8
xor ecx, ecx
dec ecx
cmp eax, ecx
je 0x4145b6
mov dword [ebp - 0x24], esi
xor edx, edx
lea ecx, [ebp - 0x20]
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], edx
mov dword [ebp - 0x60], 1
sub esp, 8
push eax
push ecx
mov dword [ebp - 0x28], eax
call fcn.004146c8
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], 2
sub esp, 0xc
lea ecx, [ebp - 0x2c]
push 0
push ecx
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
test eax, eax
je 0x4145d6
mov dword [ebp - 0x60], 4
sub esp, 0xc
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], eax
jne 0x4145eb
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x68]
jmp 0x41462a
mov dword [ebp - 0x60], 0xffffffff
sub esp, 0xc
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
jmp 0x41462a
mov dword [ebp - 0x60], 3
sub esp, 0xc
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
lea ebx, [ebp - 0x68]
je 0x41462a
mov ecx, dword [ebp - 0x14]
sub ecx, eax
cmp ecx, 0x1000
jb 0x414613
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.005040fc
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
sub esp, 0xc
push ebx
call fcn.0051ec4a
add esp, 0x10
mov eax, edi
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x414720
Capabilities:
Get file size

Disassembly:
push edi
push esi
push eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 0xf
ja 0x414732
add eax, 4
jmp 0x414735
mov eax, dword [eax + 4]
sub esp, 4
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push 1
push SysReAllocStringLen
push eax
call sub.KERNEL32.DLL_CreateFileA
add esp, 4
mov esi, eax
cmp esi, 0xffffffff
je 0x414783
sub esp, 8
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
add esp, 8
mov edi, eax
sub esp, 0xc
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0xc
cmp edi, 0xffffffff
je 0x414783
mov eax, edi
add esp, 4
pop esi
pop edi
ret
add esp, 4
pop esi
pop edi
jmp sub.KERNEL32.DLL_GetLastError

Function at 0x416ac8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x27c
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x270]
mov dword [esp], edi
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
call fcn.0050df9b
lea eax, [ebp - 0x1c]
mov dword [eax], 0xff
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.DLL_GetComputerNameW
sub esp, 8
mov esi, eax
lea eax, [ebp - 0x70]
mov dword [eax + 0x1c], 0x51dfc0
mov dword [eax + 0x20], 0x5265f0
mov dword [eax + 0x24], ebp
mov dword [eax + 0x2c], esp
mov dword [eax + 0x24], 0x416c1d
call fcn.0051ec29
test esi, esi
je 0x416b6c
mov ebx, 7
lea esi, [ebp - 0x38]
mov dword [esi + 0x18], ebx
xor eax, eax
mov dword [esi + 0x14], eax
mov word [esi + 4], 0
mov dword [ebp - 0x68], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00414a88
cmp dword [esi + 0x18], ebx
mov edx, dword [esi + 0x14]
ja 0x416b99
lea eax, [ebp - 0x34]
jmp 0x416b9c
mov dword [ebx + 0x18], 0xf
xor eax, eax
mov dword [ebx + 0x14], eax
mov byte [ebx + 4], 0
mov dword [ebp - 0x68], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0x5263be
call fcn.00403518
jmp 0x416c05
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0xf
xor eax, eax
mov dword [ecx + 0x14], eax
mov byte [ecx + 4], 0
lea eax, [edx + edx]
sar eax, 1
mov dword [ebp - 0x68], 1
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x18], edx
call fcn.0040f360
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
lea eax, [edx + eax*2]
mov dword [ebp - 0x68], 2
mov cl, byte [ebp - 0x10]
mov byte [esp + 0xc], cl
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041b6bc
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.00403b68
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x70]
mov dword [esp], eax
call fcn.0051ec4a
mov eax, ebx
add esp, 0x27c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4173cc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x86c
call sub.USER32.DLL_GetForegroundWindow
mov esi, eax
lea eax, [ebp - 0x54]
mov dword [eax + 0x1c], 0x51dfc0
mov dword [eax + 0x20], 0x52667c
mov dword [eax + 0x24], ebp
mov dword [eax + 0x2c], esp
mov dword [eax + 0x24], 0x4175c2
call fcn.0051ec29
test esi, esi
je 0x417509
sub esp, 4
lea edi, [ebp - 0x870]
push 0x800
push 0
push edi
call fcn.0050df9b
add esp, 0x10
mov dword [ebp - 0x4c], 0xffffffff
sub esp, 4
push 0x400
push edi
push esi
call sub.USER32.DLL_GetWindowTextW
add esp, 4
test eax, eax
jle 0x417509
lea esi, [ebp - 0x70]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], 0
mov dword [ebp - 0x4c], 0xffffffff
sub esp, 8
push edi
push esi
call fcn.00414a88
add esp, 0x10
mov dword [ebp - 0x4c], 1
sub esp, 8
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004126dc
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0xf
mov dword [edx + 0x14], 0
mov byte [edx + 4], 0
lea ecx, [eax - 1]
cmp byte [ecx + 1], 0
lea ecx, [ecx + 1]
jne 0x4174a1
sub ecx, eax
mov dword [ebp - 0x4c], 2
sub esp, 4
push ecx
push eax
push edx
call fcn.00403518
add esp, 0x10
mov eax, dword [ebp - 0x18]
test eax, eax
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x54]
je 0x4174f5
mov ecx, dword [ebp - 0x10]
sub ecx, eax
cmp ecx, 0x1000
jb 0x4174de
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.005040fc
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
sub esp, 0xc
lea eax, [ebp - 0x70]
push eax
call fcn.00403b68
add esp, 0x10
jmp 0x4175a9
xor esi, esi
dec esi
mov dword [ebp - 0x4c], esi
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x4c], esi
lea esi, [ebp - 0x70]
push eax
push 0x5264f6
push 0x15
push esi
call fcn.005107f0
add esp, 0x10
test eax, eax
mov dword [ebp - 0x858], 0xf
mov dword [ebp - 0x85c], 0
mov byte [ebp - 0x86c], 0
jle 0x417565
mov dword [ebp - 0x4c], 0xffffffff
sub esp, 4
lea ecx, [ebp - 0x870]
push eax
push esi
push ecx
call fcn.00403518
add esp, 0x10
mov dword [ebp - 0x4c], 3
lea eax, [ebp - 0x870]
push 5
push str.W_e:
push 0
push eax
call fcn.00405014
add esp, 0x10
sub esp, 8
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.00405288
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x870]
push eax
call fcn.00403adc
add esp, 0x10
lea edi, [ebp - 0x54]
sub esp, 0xc
push edi
call fcn.0051ec4a
add esp, 0x10
mov eax, esi
add esp, 0x86c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4248a4
Capabilities:
Terminate process

Disassembly:
push edi
push esi
push eax
call sub.KERNEL32.DLL_GetCurrentProcessId
sub esp, 4
xor edi, edi
push eax
push edi
push 0x100001
call sub.KERNEL32.DLL_OpenProcess
add esp, 4
mov esi, eax
sub esp, 8
push edi
push esi
call sub.KERNEL32.DLL_TerminateProcess
add esp, 8
sub esp, 0xc
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x10
pop esi
pop edi
ret
Function at 0x424fe0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xdc
xor esi, esi
lea edi, [ebp - 0x28]
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
lea eax, [ebp - 0x74]
mov dword [eax + 0x1c], 0x51dfc0
mov dword [eax + 0x20], 0x527ab8
mov dword [eax + 0x24], ebp
mov dword [eax + 0x2c], esp
mov dword [eax + 0x24], 0x4251e9
mov dword [eax + 8], 1
call fcn.0051ec29
push edi
push 0x425810
push esi
push esi
call sub.USER32.DLL_EnumDisplayMonitors
mov ecx, dword [ebp + 0xc]
xor esi, esi
test ecx, ecx
js 0x42519f
test eax, eax
je 0x42519f
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
sub edx, eax
sar edx, 2
xor esi, esi
cmp edx, ecx
jbe 0x4251a2
mov esi, dword [eax + ecx*4]
lea edx, [ebp - 0xdc]
xor eax, eax
mov ecx, 0x19
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx - 4], 0x68
mov dword [ebp - 0x6c], 2
sub esp, 8
lea eax, [ebp - 0xe0]
push eax
push esi
call sub.USER32.DLL_GetMonitorInfoW
add esp, 8
test eax, eax
je 0x42519c
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd0]
sub eax, dword [ebp - 0xdc]
mov dword [ebp - 0x30], eax
sub ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x6c], 3
xor eax, eax
push eax
push eax
push eax
push str.DISPLAY
call sub.GDI32.DLL_CreateDCW
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x6c], 4
sub esp, 0xc
push dword [ebp - 0x14]
call sub.GDI32.DLL_CreateCompatibleDC
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x6c], 5
sub esp, 4
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call sub.GDI32.DLL_CreateCompatibleBitmap
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x6c], 6
sub esp, 8
push dword [ebp - 0x34]
push dword [ebp - 0x10]
call sub.GDI32.DLL_SelectObject
add esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x6c], 7
sub esp, 0xc
xor edx, edx
push 0xcc0020
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edx
push edx
push dword [ebp - 0x10]
call sub.GDI32.DLL_BitBlt
add esp, 0xc
mov eax, 8
mov dword [ebp - 0x6c], eax
sub esp, 8
push dword [ebp - 0x38]
push dword [ebp - 0x10]
call sub.GDI32.DLL_SelectObject
add esp, 8
mov dword [ebp - 0x6c], 9
sub esp, 0xc
push dword [ebp - 0x10]
call sub.GDI32.DLL_DeleteDC
add esp, 0xc
mov dword [ebp - 0x6c], 0xa
sub esp, 8
push dword [ebp - 0x14]
push 0
call sub.USER32.DLL_ReleaseDC
add esp, 8
jmp 0x42519c
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4251cd
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
cmp ecx, 0x1000
jb 0x4251b6
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.005040fc
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
sub esp, 0xc
lea eax, [ebp - 0x74]
push eax
call fcn.0051ec4a
add esp, 0x10
mov eax, esi
add esp, 0xdc
pop esi
pop edi
pop ebx
pop ebp
ret