joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10139131
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101b4ef8], 0x123
mov dword [0x101b4efc], 0
mov dword [0x101b4f00], 0
mov dword [0x101b4f0c], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x101392a5
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101b4efc], edx
mov dword [0x101b4ef4], 0xfe6
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101b4f00], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101b4f04], cl
mov dword [0x101b4ef4], 0x3d8
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x101b4f04]
mov edx, dword [0x101b4f00]
mov byte [edi + edx], cl
mov edx, dword [0x101b4efc]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101b4f00]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101b4f0c], ebx
mov dword [0x101b4ef4], 0x24f
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov dl, cl
add dl, byte [0x101b4f11]
mov byte [0x101b4f10], dl
mov byte [0x101b4f11], ch
mov byte [0x101b4f12], cl
xor ch, cl
mov dword [0x101b4ef4], 0x273
mov edx, dword [ebp - 0x1c]
mov byte [edx + ebx], ch
mov dword [0x101b4ef8], 0x17cb
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x101392a5
mov eax, dword [0x101b4efc]
mov ecx, dword [0x101b4f00]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x10139194
mov dword [0x101b4ef4], 0x1708
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1013945c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101b4f00], 0
mov byte [0x101b4f04], 0
mov dword [0x101b4ef4], 0x1066
mov dword [0x101b4efc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101394cb
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x101b4efc], 0
mov ecx, dword [0x101b4ef8]
add ecx, 0x24dd
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x101394fd
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101b4ef4], 0x14c8
mov eax, dword [0x101b4efc]
add eax, 1
mov dword [0x101b4efc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101394cb
jmp 0x101394ab
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x31a6
mov esi, 0x100
mov dword [0x101b4f08], 0
mov dword [ebp - 0x28], eax
mov eax, ecx
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov ebx, dword [0x101b4f00]
mov edi, dword [ebp - 0x18]
movzx edi, byte [edi + ecx]
add edi, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x101b4f08], edi
mov edx, dword [ebp - 0x28]
mov dword [0x101b4ef4], edx
mov eax, edi
cdq
idiv esi
mov dword [0x101b4f00], edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x101b4f04], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x101b4f04]
mov ecx, dword [0x101b4f00]
mov byte [esi + ecx], bl
mov dword [0x101b4ef4], 0xe81
mov dword [0x101b4ef8], 0xcc9
mov ecx, dword [0x101b4efc]
add ecx, 1
mov dword [0x101b4efc], ecx
cmp ecx, 0x100
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jl 0x101394fd
jmp 0x101394a3
Function at 0x4027bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402854
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402834
xor eax, eax
push ebp
push 0x40282d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402870
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402834
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x403f0c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4040c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f6d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4040e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403fda
xor eax, eax
push ebp
push 0x403fd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403fbc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404100
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403fda
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4040bb
cmp byte [ebp - 0xd], 0
jne 0x40401c
cmp byte [ebp - 0x12], 0
je 0x4040bb
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404035
dec ebx
cmp byte [ebx], 0x2e
je 0x404044
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404034
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4040bb
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404071
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4040bb
cmp byte [ebp - 0xd], 0
je 0x4040bb
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4040bb
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40693c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406a46
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40698f
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004031d8
jmp 0x406a2d
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.004068f0
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00406910
mov ebx, eax
test esi, esi
je 0x4069b7
dec esi
test esi, esi
jl 0x4069b7
cmp edi, ebx
jne 0x406996
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403218
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403470
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040326c
cmp eax, 2
jl 0x406a2d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x406a2d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040326c
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x406a2d
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040326c
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a4d
lea eax, [ebp - 0x110]
call fcn.004030f4
ret

Function at 0x406a88
Capabilities:
Get file attributes

Disassembly:
call fcn.004052c0
push eax
call sub.kernel32.dll_GetFileAttributesA
and al, 0x10
sete al
ret

Function at 0x406ae0
Capabilities:
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x406aef
dec eax
and al, 0x10
setne al
ret

Function at 0x406d8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406df6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00403218
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00406ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406dfd
lea eax, [ebp - 0x10c]
call fcn.004030f4
ret

Function at 0x406e04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406e6e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00403218
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00406ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e75
lea eax, [ebp - 0x10c]
call fcn.004030f4
ret
Function at 0x406e7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406ee6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00403218
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00406ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406eed
lea eax, [ebp - 0x10c]
call fcn.004030f4
ret

Function at 0x407258
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov ebx, eax
pushal
call fcn.00406f54
call fcn.00405520
mov dword [ebx + 0x18], eax
popal
pushal
lea eax, [ebx + 0x1c]
call fcn.00403148
popal
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x407357
pushal
lea edx, [ebx + 0x1c]
mov eax, dword [edx]
call fcn.00406ba0
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x4072cd
call fcn.0040b6f8
mov dword [ebx + 0x20], eax
popal
pushal
push ecx
xchg ecx, eax
mov edx, 0x4072bf
call fcn.00406888
test al, al
pop edx
jne 0x4072b5
mov edx, 0x4072cb
mov eax, dword [ebx + 0x20]
call fcn.0040b724
jmp 0x4072cd
popal
add esp, 0xfffffec0
xor edx, edx
push edx
push edx
xchg ecx, eax
mov edx, esp
call fcn.00406f7c
lea eax, [esp + 4]
mov edx, dword [ebx + 0x1c]
pop ecx
push ecx
call fcn.004032b8
call fcn.004052e4
pop eax
mov edx, esp
push eax
push edx
push eax
call sub.kernel32.dll_FindFirstFileA
mov edi, eax
inc eax
mov eax, esp
pushfd
call fcn.004030f4
popfd
pop ecx
je 0x407351
mov ecx, dword [esp]
push dword [ebp + 8]
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00406fb4
test al, al
je 0x407340
mov eax, 0x140
push eax
call fcn.004024e4
push eax
xchg edx, eax
mov eax, dword [ebx + 0x18]
call fcn.0040559c
pop edx
pop ecx
mov eax, esp
call fcn.004025b8
push esp
push edi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40730d
push edi
call sub.kernel32.dll_FindClose
add esp, 0x140
xor eax, eax
xchg dword [ebx + 0x20], eax
call fcn.004054a4
pop edi
pop ebx
pop ebp
ret 4

Function at 0x407398
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403430
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x4075c4
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x436ac4]
mov byte [eax], 1
mov edx, dword [0x405124]
xor eax, eax
call fcn.0040545c
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x4075b4
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret
Function at 0x407654
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x40766f
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x40767e
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x407680
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret

Function at 0x407a20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407ab8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x407a6d
mov eax, dword [ebx + 0x19]
call fcn.00403430
push eax
push esi
mov eax, edi
call fcn.00403430
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403430
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x407aa2
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.00403430
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.004065cc
mov eax, dword [ebp - 8]
call fcn.00403430
push eax
mov eax, edi
call fcn.00403430
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403430
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407abf
lea eax, [ebp - 8]
call fcn.004030f4
ret

Function at 0x407acc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x407ad5
mov eax, dword [ebp - 4]
add esp, 4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp byte [ebx + 0x18], 0
jne 0x407b43
mov byte [ebp - 0x8000], 0
mov eax, dword [ebx + 0x19]
call fcn.00403430
push eax
push 0x8000
lea eax, [ebp - 0x8000]
push eax
mov eax, esi
call fcn.00403430
push eax
mov eax, edi
call fcn.00403430
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403430
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x8000]
mov ecx, 0x8000
call fcn.00403254
jmp 0x407b74
mov eax, dword [ebp + 8]
mov edx, esi
call fcn.0040318c
mov eax, dword [ebx + 0x19]
call fcn.00403430
push eax
mov eax, esi
call fcn.00403430
push eax
mov eax, edi
call fcn.00403430
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403430
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a238
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x40a247
mov edx, dword [edx + 0x36]
jmp fcn.00403218
mov ecx, dword [edx + 0x18]
jecxz 0x40a23f
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.0040359c
pop edx
mov ecx, dword [ebx]
jecxz 0x40a26f
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40a2e0
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40a2ec
or byte [eax + 0x27], 0x10
mov byte [eax + 0x4e], dl
mov ecx, dword [eax + 0x18]
jecxz 0x40a308
push eax
je 0x40a309
call dword [0x435148]
pop eax
push 5
push dword [eax + 0x18]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x15a], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x435148]
ret

Function at 0x40cc2c
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040c5ac
je 0x40cc71
mov eax, ebx
push edx
call fcn.0040d004
pop edx
cmp eax, edx
je 0x40cc71
test edx, edx
mov eax, ebx
jne 0x40cc50
pop ebx
inc edx
jmp fcn.0040cff4
mov byte [ebx + 0x49], dl
cmp dl, 5
jne 0x40cc59
dec edx
push edx
xor edx, edx
call fcn.0040cff4
mov eax, dword [ebx + 0x3d]
movzx eax, word [eax + 0xe]
call fcn.0040c098
pop edx
cmp al, dl
xchg ebx, eax
pop ebx
jne fcn.0040cd0c
ret
Function at 0x40d9c8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
cmp byte [0x4353a4], 0xff
je 0x40d9de
mov al, byte [0x4353a4]
jmp 0x40da3e
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40da17
mov al, 3
mov edx, dword [esp + 4]
cmp edx, 6
jb 0x40da03
mov al, 6
jmp 0x40da39
cmp edx, 5
jb 0x40da39
cmp dword [esp + 8], 1
jb 0x40da13
mov al, 5
jmp 0x40da39
mov al, 4
jmp 0x40da39
cmp eax, 1
jne 0x40da37
mov al, 1
cmp dword [esp + 4], 4
ja 0x40da33
cmp dword [esp + 4], 4
jne 0x40da39
cmp dword [esp + 8], 0xa
jb 0x40da39
mov al, 2
jmp 0x40da39
xor eax, eax
mov byte [0x4353a4], al
add esp, 0x94
ret
Function at 0x4145fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4146ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor eax, eax
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004026ec
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
xor eax, eax
mov al, byte [ebx + 0x38]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0x4000000
push 0
push 0
push 0
push edi
push 0x4146e4
push dword [ebp - 4]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.0040332c
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.004066e0
mov eax, dword [ebp - 0x5c]
call fcn.00403430
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4146af
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x2c], eax
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4146d1
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00403118
ret

Function at 0x4147f8
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov esi, eax
cmp dword [esi + 8], 0
je 0x41480d
mov bl, 1
jmp 0x4148b7
mov dword [esp], 0xc
mov dword [esp + 8], 0xffffffff
xor eax, eax
mov dword [esp + 4], eax
push 0
lea eax, [esp + 4]
push eax
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x414870
push 0x2000
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x414870
push 0x2000
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x414874
xor ebx, ebx
jmp 0x414876
mov bl, 1
test bl, bl
je 0x4148a3
push 0
push 1
mov eax, dword [esi + 0x10]
push eax
call sub.kernel32.dll_SetHandleInformation
push 0
push 1
mov eax, dword [esi + 0x18]
push eax
call sub.kernel32.dll_SetHandleInformation
push 0
push 1
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_SetHandleInformation
jmp 0x4148b7
call sub.kernel32.dll_GetLastError_1
mov edi, eax
mov eax, esi
call fcn.004148c0
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x414b74
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x414cec
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
jne 0x414cd1
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x28], eax
mov eax, ebx
call fcn.004147f8
test al, al
jne 0x414bcf
call sub.kernel32.dll_GetLastError_1
mov edx, eax
lea eax, [ebx + 0xa0]
call fcn.0040ed00
jmp 0x414cd1
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.004026ec
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 0x101
xor eax, eax
mov al, byte [ebx + 0x38]
mov word [ebp - 0x14], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0x10
push 0xffffffffffffffff
push 0
push 0
push esi
push 0x414d04
push edi
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.0040332c
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.004066e0
mov eax, dword [ebp - 0x58]
call fcn.00403430
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x414cb4
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebx + 0x39], 1
jne 0x414ca0
cmp dword [ebx + 0x20], 0
jne 0x414c81
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x94]
call fcn.0040ef08
mov eax, ebx
call fcn.0041491c
push 0xffffffffffffffff
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x414cd1
lea eax, [ebx + 0x94]
call fcn.0040ef08
mov eax, ebx
call fcn.0041491c
jmp 0x414cd1
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x44], eax
mov eax, ebx
call fcn.004148c0
lea eax, [ebx + 0xa0]
mov edx, dword [ebp - 0x44]
call fcn.0040ed00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414cf3
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00403118
ret