joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bc7b
Capabilities:
Copy file
Move file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x438
push ebx
mov bl, byte [esp + 0x448]
lea eax, [esp + 0x230]
call fcn.0040fd20
mov ecx, dword [esp + 0x444]
lea eax, [esp + 0x24]
call fcn.0040fd20
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x44bcfa
test bl, bl
je 0x44bd23
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x234]
push eax
call fcn.00413194
add esp, 8
test eax, eax
je 0x44bcf0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
pop ebx
add esp, 0x438
ret
lea eax, [esp + 0x230]
push eax
call fcn.00436363
add esp, 4
test al, al
je 0x44bd23
lea ecx, [esp + 0x24]
push ecx
call fcn.00436363
add esp, 4
test al, al
je 0x44bd2d
test bl, bl
jne 0x44bd4f
xor al, al
pop ebx
add esp, 0x438
ret
lea edx, [esp + 0x24]
push edx
call fcn.00435f5d
add esp, 4
test al, al
je 0x44bd23
lea eax, [esp + 0x24]
push eax
call fcn.00436363
add esp, 4
test al, al
je 0x44bd23
lea ecx, [esp + 0x230]
push str..
push ecx
call fcn.00411413
lea edx, [esp + 0x238]
push edx
call fcn.00411085
lea edx, [esp + 0x30]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x242], cx
call fcn.00411085
xor ecx, ecx
mov word [esp + eax*2 + 0x36], cx
lea edx, [esp + 0x240]
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], edx
add esp, 0x10
mov dword [esp + 0x10], eax
xor eax, eax
lea edx, [esp + 4]
mov ecx, 0x614
push edx
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
add esp, 0x438
ret
Function at 0x44bddb
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10b4
call fcn.00424fc0
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [esp + 0x438]
xor bl, bl
call fcn.0040fd20
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x648]
call fcn.0040fd20
lea eax, [esp + 0x648]
push eax
lea ecx, [esp + 0x43c]
push ecx
call fcn.004362bc
lea edx, [esp + 0x440]
push edx
mov byte [esp + 0x1b], al
call fcn.00436363
add esp, 0xc
test al, al
je 0x44be50
lea eax, [esp + 0x438]
push str..
push eax
call fcn.00411413
add esp, 8
lea ecx, [esp + 0x648]
push ecx
call fcn.00436363
add esp, 4
test al, al
je 0x44be79
lea edx, [esp + 0x648]
push str..
push edx
call fcn.00411413
add esp, 8
lea eax, [esp + 0xcb0]
push eax
lea ecx, [esp + 0xebc]
push ecx
lea edx, [esp + 0xab0]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x448]
push ecx
call fcn.00413b60
add esp, 0x14
lea edx, [esp + 0x858]
push edx
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov byte [esp + 0xe], 1
cmp esi, 0xffffffff
je 0x44c02f
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0xe], 1
jne 0x44c02f
test byte [esp + 0x858], 0x10
jne 0x44c00f
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x64c]
push edx
lea eax, [esp + 0xcb8]
push eax
lea ecx, [esp + 0xec4]
push ecx
lea edx, [esp + 0x894]
push edx
call fcn.00436118
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00411441
lea edx, [esp + 0xab0]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00411413
lea ecx, [esp + 0x894]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00411413
lea eax, [esp + 0x240]
push eax
call fcn.004363c1
add esp, 0x1c
test al, al
je 0x44bf8d
cmp byte [ebp + 0x10], 0
je 0x44bfe6
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x44bff6
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
jne 0x44bfd1
cmp byte [esp + 0xf], 0
jne 0x44bfaf
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x44bfe2
push 0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
je 0x44bfe6
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x44bfe2
push 0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
jne 0x44c00d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x228]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x44bfe6
mov bl, 1
lea ecx, [esp + 0x858]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44bed2
mov byte [esp + 0xe], al
jmp 0x44bed2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c03f
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa88
mov ecx, dword [ebp + 8]
push ebx
push esi
lea eax, [esp + 0x18]
mov byte [esp + 0xf], 0
call fcn.0040fd20
lea eax, [esp + 0x18]
push eax
call fcn.00436363
add esp, 4
test al, al
je 0x44c081
lea ecx, [esp + 0x18]
push str..
push ecx
call fcn.00411413
add esp, 8
lea edx, [esp + 0x680]
push edx
lea eax, [esp + 0x88c]
push eax
lea ecx, [esp + 0x480]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00413b60
add esp, 0x14
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x44c146
cmp bl, 1
jne 0x44c146
test byte [esp + 0x228], 0x10
jne 0x44c120
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x17], bl
call fcn.00411441
lea edx, [esp + 0x480]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00411413
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00411413
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x44c137
lea ecx, [esp + 0x228]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44c0c7
xor bl, bl
jmp 0x44c0c7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45238d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x27c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x290]
lea esi, [esp + 0x10]
mov dword [esp + 0x20], ecx
call fcn.00401b60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
inc dword [eax]
mov dword [esp + 0x34], eax
mov edi, 0x48909c
mov eax, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.0040d160
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
push ecx
mov bl, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x452525
mov ebp, dword [esp + 0x29c]
mov edx, dword [esp + 0x20]
push edx
call fcn.00442bea
cmp eax, 1
je 0x452523
cmp eax, 0xb
jne 0x452421
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4523ff
lea eax, [esp + 0x64]
push 0x486264
push eax
call fcn.00413194
add esp, 8
test eax, eax
je 0x452509
lea ecx, [esp + 0x64]
push 0x4890a4
push ecx
call fcn.00413194
add esp, 8
test eax, eax
je 0x452509
lea edx, [esp + 0x28]
push edx
lea esi, [esp + 0x14]
call fcn.0040dd10
lea edi, [esp + 0x64]
mov eax, esi
call fcn.0040d160
test byte [esp + 0x38], 0x10
je 0x4524d6
cmp byte [esp + 0x2a0], 0
je 0x452487
add dword [ebp], 1
adc dword [ebp + 4], 0
cmp byte [esp + 0x2a4], 0
je 0x452509
mov edi, 0x483e10
lea eax, [esp + 0x10]
call fcn.0040d160
mov eax, dword [esp + 0x2a4]
mov ecx, dword [esp + 0x2a0]
mov edx, dword [esp + 0x298]
push eax
mov eax, dword [esp + 0x298]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push edx
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0045238d
mov bl, al
test bl, bl
je 0x452525
jmp 0x452509
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
xor edx, edx
xor esi, esi
or edx, eax
mov eax, dword [esp + 0x294]
or ecx, esi
add dword [eax], edx
adc dword [eax + 4], ecx
cmp byte [esp + 0x2a0], 0
je 0x452509
mov eax, dword [esp + 0x298]
add dword [eax], 1
adc dword [eax + 4], esi
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4523ff
jmp 0x452525
xor bl, bl
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x28]
call fcn.00402610
lea ecx, [esp + 0x10]
call fcn.00402610
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x27c
ret 0x18
Function at 0x452635
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x430
push ebx
push ebp
push esi
mov esi, dword [esp + 0x440]
push edi
xor ebp, ebp
mov eax, dword [esi]
push eax
push 4
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00414f60
add esp, 0x10
push 0x18ee
push 4
lea edx, [esp + 0x1c]
push edx
call fcn.0044b090
lea eax, [esp + 0x14]
push str.FILE
push eax
mov byte [esp + 0x20], 0
call fcn.00414f80
add esp, 8
test eax, eax
jne 0x4527c9
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
inc ebp
call fcn.00414f60
mov edi, dword [esp + 0x20]
mov eax, dword [esi]
push eax
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea ecx, [esp + 0x38]
push 1
push ecx
call fcn.00414f60
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea edx, [esp + 0x28]
push edx
call fcn.0044b090
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x234]
xor eax, eax
push edx
mov word [esp + ebx + 0x28], ax
call fcn.00411441
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.00414f60
mov edi, dword [esp + 0x28]
mov edx, dword [esi]
push edx
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [esp + 0x40]
push 1
push eax
call fcn.00414f60
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.0044b090
mov ecx, dword [esp + 0x44c]
lea eax, [esp + 0x20]
push eax
xor edx, edx
push ecx
mov word [esp + ebx + 0x28], dx
call fcn.00411441
mov edi, dword [esp + 0x450]
lea edx, [esp + 0x238]
push edi
push edx
call fcn.00413194
add esp, 0x10
test eax, eax
je 0x4527ba
push 0x486710
push edi
call fcn.00413194
add esp, 8
test eax, eax
jne 0x452777
test ebp, ebp
je 0x4527ba
mov eax, dword [esi]
push 1
push 1
push eax
call fcn.0041532c
mov ecx, dword [esi]
add esp, 0xc
push ecx
push 1
lea edx, [esp + 0x24]
push 4
push edx
call fcn.00414f60
mov eax, dword [esp + 0x2c]
xor eax, 0x87bc
mov dword [esp + 0x2c], eax
add eax, 0x18
push 1
push eax
mov eax, dword [esi]
push eax
call fcn.0041532c
add esp, 0x1c
jmp 0x452648
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x430
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x430
ret 0xc
Function at 0x4527db
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x694
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x6ac]
push esi
mov esi, dword [esp + 0x6a4]
mov edx, dword [esi + 4]
push edi
xor eax, eax
push ebx
mov word [esp + 0x50], ax
mov eax, dword [esi]
push edx
xor ecx, ecx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov word [esp + 0x262], cx
mov dword [esp + 0x488], ebx
mov dword [esp + 0x2c], 1
call fcn.0041532c
mov edx, dword [esp + 0x6b8]
add esp, 0xc
lea ecx, [esp + 0x490]
push ecx
push edx
push esi
call fcn.00452635
test eax, eax
je 0x452873
lea eax, [ebx + 6]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret 0x10
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
call fcn.00414f60
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.00414f60
mov ecx, dword [esi]
mov edi, dword [esp + 0x38]
push ecx
push 1
lea edx, [esp + 0x40]
push 4
push edx
xor edi, 0x87bc
call fcn.00414f60
mov ecx, dword [esi]
mov eax, dword [esp + 0x48]
push ecx
push 1
lea edx, [esp + 0x50]
xor eax, 0x87bc
push 4
push edx
mov dword [ebp], eax
call fcn.00414f60
mov eax, dword [esp + 0x58]
add esp, 0x40
xor eax, 0xa685
push 1
mov dword [esp + 0x28], eax
mov eax, dword [esi]
push 0x10
push eax
call fcn.0041532c
mov ecx, dword [ebp]
add esp, 0xc
push ecx
call fcn.0041366a
add esp, 4
push edi
mov dword [esp + 0x20], eax
call fcn.0041366a
mov edx, dword [esi]
add esp, 4
push edx
push 1
mov ebp, eax
push edi
push ebp
call fcn.00414f60
mov eax, dword [esi + 8]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push ebp
call fcn.0044b090
push edi
push ebp
lea ecx, [esp + 0x28]
push ecx
call fcn.00434b74
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x20]
je 0x452964
mov eax, dword [esp + 0x1c]
push eax
call fcn.00413838
add esp, 4
push ebp
call fcn.00413838
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret 0x10
cmp byte [esp + 0x17], 1
jne 0x4529c2
xor ecx, ecx
mov eax, 1
mov word [esp + 0x4c], cx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
xor edx, edx
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov word [esp + 0x25a], dx
mov dword [esp + 0x480], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
call fcn.0044b249
push ebp
call fcn.00413838
jmp 0x4529d0
mov edx, dword [esp + 0x1c]
push edx
call fcn.00413838
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x6b4]
mov ecx, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
add esp, 0x694
ret 0x10
Function at 0x453752
Capabilities:
Move file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xa54
lea eax, [esp + 0x234]
call fcn.0040fd20
mov ecx, dword [esp + 0xa5c]
lea eax, [esp + 0x28]
call fcn.0040fd20
lea eax, [esp + 0x234]
push eax
call fcn.00436363
add esp, 4
test al, al
jne 0x453793
add esp, 0xa54
ret
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.00436363
add esp, 4
xor ebx, ebx
test al, al
je 0x45387f
cmp byte [esp + 0xa64], bl
je 0x4538e0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x453812
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x23c]
push edx
call fcn.00413194
add esp, 8
test eax, eax
je 0x453808
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
pop ebx
add esp, 0xa54
ret
mov al, 1
pop ebx
add esp, 0xa54
ret
lea edx, [esp + 0x444]
push edx
lea eax, [esp + 0x64c]
push eax
lea ecx, [esp + 0x854]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x248]
push eax
call fcn.00413b60
lea ecx, [esp + 0x40]
push 0x483e10
push ecx
call fcn.00411413
lea edx, [esp + 0x664]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00411413
add esp, 0x24
cmp word [esp + 0x444], bx
je 0x45387f
lea ecx, [esp + 0x444]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00411413
add esp, 8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x23c]
push ecx
call fcn.004362bc
add esp, 8
test al, al
lea edx, [esp + 0x2c]
lea eax, [esp + 0x238]
je 0x4538d2
push 1
push edx
push eax
call fcn.0044bc7b
add esp, 0xc
test al, al
je 0x4538e0
lea ecx, [esp + 0x238]
push 1
push ecx
call fcn.0044bbd2
add esp, 8
test al, al
setne al
pop ebx
add esp, 0xa54
ret
push edx
push eax
call fcn.00413194
add esp, 8
test eax, eax
jne 0x4538ea
xor al, al
pop ebx
add esp, 0xa54
ret
lea ecx, [esp + 0x238]
push ecx
call fcn.00411085
xor edx, edx
mov word [esp + eax*2 + 0x23e], dx
lea eax, [esp + 0x30]
push eax
call fcn.00411085
xor ecx, ecx
lea edx, [esp + 0x240]
mov word [esp + eax*2 + 0x36], cx
mov dword [esp + 0x14], edx
add esp, 8
lea edx, [esp + 4]
lea eax, [esp + 0x2c]
mov ecx, 0x614
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
add esp, 0xa54
ret
Function at 0x455efb
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esi + 0x160], ecx
mov dword [esi + 0x164], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, dword [esi + 0x168]
jne 0x455f4f
cmp ecx, dword [esi + 0x16c]
je 0x455f6d
cmp dword [esp + 0x24], 1
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], ecx
jl 0x455f6d
push ecx
push eax
push esi
push 0xfffffffffffffff5
push ebx
call fcn.00451d10
mov ecx, dword [ebx + 0x18]
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push ecx
call ebp
mov edx, dword [ebx + 0x1c]
movzx edi, ax
push edx
shr edi, 0xf
call ebp
movzx ebp, ax
shr ebp, 0xf
cmp edi, dword [esi + 0x170]
je 0x45600d
cmp dword [esp + 0x24], 1
jl 0x45600d
cmp byte [esi + 0x19c], 0
je 0x45600d
test edi, edi
je 0x455fb6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push 0xfffffffffffffff9
jmp 0x456000
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffff8
push ebx
call fcn.00451d10
cmp byte [esi + 0x178], 0
je 0x456006
mov ecx, dword [esi]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
je 0x455ff3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffffa
jmp 0x456000
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
push 0xfffffffffffffff4
push ebx
call fcn.00451d10
mov byte [esi + 0x178], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45601b
mov dword [esi + 0x170], edi
cmp ebp, dword [esi + 0x174]
je 0x45604e
cmp eax, 1
jl 0x45604e
test ebp, ebp
je 0x45603b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push 0xfffffffffffffff7
jmp 0x456048
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffff6
push ebx
call fcn.00451d10
cmp dword [esp + 0x24], 0
je 0x45605b
mov dword [esi + 0x174], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x457866
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0040be80
xor esi, esi
push 0x3c
lea eax, [esp + 0x28]
push esi
push eax
xor ebx, ebx
mov dword [esp + 0x78], esi
mov dword [esp + 0x1c], 1
call fcn.00412fa0
add esp, 0xc
cmp dword [esp + 0x70], 2
jb 0x4578c7
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 4]
push eax
call fcn.004532e8
cmp word [eax], bx
je 0x4578c7
mov edx, dword [ebp + 4]
mov eax, dword [edx + 4]
push eax
call fcn.004532e8
mov edi, eax
call fcn.0040fd60
mov ebx, eax
cmp dword [esp + 0x70], 3
jb 0x4578e7
mov eax, dword [ebp + 4]
mov eax, dword [eax + 8]
push eax
call fcn.004532e8
mov edi, eax
call fcn.0040fd60
mov dword [esp + 0x6c], eax
mov esi, eax
cmp dword [esp + 0x70], 4
jb 0x457924
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0xc]
push eax
call fcn.004532e8
cmp word [eax], 0
je 0x457924
mov edx, dword [ebp + 4]
mov edi, dword [edx + 0xc]
push edi
call fcn.0044aee3
test al, al
jne 0x457924
push edi
call fcn.004532ca
push eax
lea esi, [esp + 0x18]
call fcn.0040dd10
mov esi, dword [esp + 0x6c]
cmp dword [esp + 0x70], 5
jb 0x45793d
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x10]
call fcn.0040c5a0
movzx ecx, ax
mov dword [esp + 0x10], ecx
push 0x3c
lea edx, [esp + 0x28]
push 0
push edx
call fcn.00412fa0
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
add esp, 0xc
push eax
call fcn.004532e8
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
test ebx, ebx
je 0x4579a7
push ebx
call fcn.0041109f
add esp, 4
test esi, esi
je 0x4579b4
push esi
call fcn.0041109f
add esp, 4
test edi, edi
jne 0x4579f2
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
push 1
add eax, ecx
call fcn.00404110
mov esi, dword [esp + 0x74]
call fcn.00409280
lea ecx, [esp + 0x14]
mov dword [esi + 8], 1
mov dword [esi], edi
call fcn.00402610
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 0x14
cmp byte [esp + 0x68], 0
je 0x457a1c
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x454], eax
lea ecx, [esp + 0x14]
call fcn.00402610
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 0x14
mov esi, dword [esp + 0x74]
call fcn.00409280
mov eax, dword [esp + 0x5c]
mov dword [esi + 8], 1
mov dword [esi], 1
test eax, eax
je 0x457a41
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00402610
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret 0x14
Function at 0x4580b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2020
call fcn.00424fc0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040be80
lea ecx, [esp + 0x20]
call fcn.0040be80
mov eax, dword [esp + 0x2034]
push eax
xor ebp, ebp
call fcn.004532e8
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x4581db
nop
inc ebp
cmp ax, 0x25
jne 0x4581b0
cmp word [esi + ebp*2], ax
jne 0x458114
push 0x25
lea eax, [esp + 0x14]
mov bl, 1
call fcn.00403460
inc ebp
jmp 0x4581ba
push 0x4838e8
lea eax, [esp + 0x24]
call fcn.004021d0
movzx eax, word [esi + ebp*2]
cmp ax, 0x25
je 0x45814e
lea esp, [esp]
test ax, ax
je 0x45814e
movzx eax, ax
push eax
lea eax, [esp + 0x24]
call fcn.00403460
movzx eax, word [esi + ebp*2 + 2]
inc ebp
cmp ax, 0x25
jne 0x458130
cmp word [esi + ebp*2], 0
je 0x4581fa
mov eax, dword [esp + 0x20]
push 0xfff
lea edx, [esp + 0x34]
push edx
xor ecx, ecx
push eax
inc ebp
mov word [esp + 0x3c], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
lea eax, [esp + 0x10]
je 0x45818b
lea edi, [esp + 0x30]
call fcn.0040d160
mov bl, 1
jmp 0x4581ba
mov edi, 0x48a7ec
mov bl, 1
call fcn.0040d160
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x14]
call fcn.0040bfb0
lea eax, [esp + 0x10]
call fcn.0040d160
jmp 0x4581ba
push eax
lea eax, [esp + 0x14]
call fcn.00403460
movzx eax, word [esi + ebp*2]
test ax, ax
jne 0x4580f0
test bl, bl
je 0x4581db
mov esi, dword [esp + 0x2034]
lea edi, [esp + 0x10]
call fcn.0040e370
lea ecx, [esp + 0x20]
call fcn.00402610
lea ecx, [esp + 0x10]
call fcn.00402610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2020
ret 4
mov edi, 0x48a7ec
lea eax, [esp + 0x10]
call fcn.0040d160
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
call fcn.0040bfb0
jmp 0x4581cb