joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449d85
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x449e9d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x449e9d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045e64c
mov esi, eax
test esi, esi
je 0x449e9d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x449e9d
mov ecx, esi
call fcn.00449cf0
cmp edi, eax
jge 0x449e9d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x449e23
mov dword [esp + 0x34], 1
jmp 0x449e7e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x449e9d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004492f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45efef
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45f027
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045d0a6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045d07e
jmp 0x45f033
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4606e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x460726
call fcn.00466199
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x460726
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46071d
xor eax, eax
jmp 0x46072e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00460734
pop edi
pop esi
pop ebx
ret 4
Function at 0x4666c9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4666f7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x466715
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046662f
jmp 0x466715
mov eax, dword [esi + 0x14]
test eax, eax
je 0x466715
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046662f
test edi, edi
mov eax, edi
jne 0x4666ff
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40f3ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40f3d9
pop dword [ebp - 0x10]
mov eax, 0xaa925d96
add eax, 0x55ae9643
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3f79d
push 0
mov eax, 0xa7aff87
add eax, 0xf5c75291
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x48bcf5f6
add ecx, 0xb743588a
mov edx, eax
mov ebx, 0x435400
add ebx, dword [ebp - 0x10]
mov edi, 0x26d8ebb
sub edi, 0x56d1d00c
mov dword [ebp - 4], 0xe408fcac
mov esi, dword [ebx]
xor dword [ebp - 8], 0x3b0ade34
sub esi, edi
xor dword [ebp - 0xc], ecx
mov dword [edx], esi
sub dword [ebp - 8], 0x488e0c68
add edx, 0xe0069615
add edx, 0x1ff969ef
add ebx, 0xc7eecd2a
add ebx, 0x381132da
loop 0x40f432
add eax, 0x15e9fe3a
sub eax, 0x15e8d167
mov ebx, eax
add eax, 0xf6f18430
add eax, 0x90e7bd5
mov ecx, 0x8dabc053
sub ecx, 0x8d6bc053
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10002db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10002e09
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10002e09
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10002dfa
cmp esi, edx
jae 0x10002e09
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10002de8
cmp esi, edx
jae 0x10002e09
cmp word [esi], 0
je 0x10002e09
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4238c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
push 0x64
call fcn.0042190d
push 0x80000301
push 0
push 0x31
push 0x30001
push 0
push dword [0x5c]
push 2
mov ebx, 0x58
mov eax, 2
call fcn.00438bf1
add esp, 0x1c
push 0x80000301
push 0
push 9
push 0x30001
push 0
push dword [0x5c]
push 2
mov ebx, 0x58
mov eax, 2
call fcn.00438bf1
add esp, 0x1c
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
push 0xc8
call fcn.0042190d
push 0xa0000301
push 0
push 0xb8
push 0xa0000301
push 0
push 0xb4
push 0x80000301
push 0
push 0
push 0x80000601
push 0x3fe99999
push 0x9999999a
push 0x80000004
push 0
push 0x567
push 0x80000004
push 0
push 0x67f
push 0x80000301
push 0
push 0x130
push 0x80000301
push 0
push 0x2d1
push 0x80000301
push 0
push 0x4e
push 0x80000301
push 0
push 0xee
push 0x30001
push 0
push dword [0x5c]
push 0xb
mov ebx, 0x1d0
mov eax, 2
call fcn.00438bf1
add esp, 0x88
mov dword [0xcc], eax
push 0x80000601
push 0x3ff00000
push 0
push 0x80000004
push 0
push 0x6bc
push 0x80000301
push 0
push 0x34
push 0x80000301
push 0
push 0x74
push 0x30001
push 0
push dword [0x5c]
push 5
mov ebx, 0xa0
mov eax, 2
call fcn.00438bf1
add esp, 0x40
mov dword [0xb0], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
push 0x1f4
call fcn.0042190d
cmp dword [0xcc], 0xffffffff
jg 0x423a8c
cmp dword [0xb0], 0
je 0x423a8c
xor eax, eax
jmp 0x423a91
mov eax, 1
test eax, eax
je 0x423ba0
push 0x80000301
push 0
push 0x41
push 0x30001
push 0
push dword [0x5c]
push 2
mov ebx, 0x5c
mov eax, 2
call fcn.00438bf1
add esp, 0x1c
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
push 0x190
call fcn.0042190d
push 0x80000301
push 0
push 0x41
push 0x30001
push 0
push dword [0x5c]
push 2
mov ebx, 0x60
mov eax, 2
call fcn.00438bf1
add esp, 0x1c
push 0x80000301
push 0
push 0x31
push 0x30001
push 0
push dword [0x5c]
push 2
mov ebx, 0x58
mov eax, 2
call fcn.00438bf1
add esp, 0x1c
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
push 0x64
call fcn.0042190d
push 0x80000301
push 0
push 9
push 0x30001
push 0
push dword [0x5c]
push 2
mov ebx, 0x58
mov eax, 2
call fcn.00438bf1
add esp, 0x1c
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
push 0x64
call fcn.0042190d
jmp 0x423bde
mov dword [0xd8], 0
xor ecx, ecx
mov eax, 0xd8
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 3
jg 0x423bdb
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
push 0x320
call fcn.0042190d
pop ebx
pop ecx
jmp 0x423bb3
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x449ba0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov ebx, dword [eax]
push edi
push 0x800
push 0x40
mov dword [esp + 0x1c], ebx
call dword [ebx + 0x2c]
mov edi, eax
test edi, edi
jne 0x449bcc
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push 0
push 0
push ecx
push edx
call dword [ebx + 0x24]
mov eax, dword [esp + 0x2c]
mov ebp, 0x543a2110
test eax, eax
je 0x449c90
jmp 0x449bf4
mov eax, dword [esp + 0x2c]
cmp eax, 0x800
jb 0x449c00
mov eax, 0x800
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edi
push edx
call dword [ebx + 0x14]
test eax, eax
je 0x449ca0
mov edx, dword [esp + 0x10]
test edx, edx
je 0x449ce2
xor esi, esi
test edx, edx
jle 0x449c67
mov ecx, ebp
xor ecx, 0x2da05629
mov eax, ecx
mov ebx, ecx
shr eax, 0x18
shr ebx, 0x10
xor al, bl
mov ebx, ecx
shr ebx, 8
xor al, bl
mov bl, byte [esi + edi]
xor al, bl
xor al, cl
mov byte [esi + edi], al
and eax, 0xff
shl ebp, 8
add ebp, eax
inc esi
cmp esi, edx
jl 0x449c2b
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push 0
push eax
push edx
push edi
push ecx
call dword [ebx + 0x18]
test eax, eax
je 0x449cc2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x2c], eax
jne 0x449bf0
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0xc
ret
push 0
call dword [ebx + 0x78]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.0044a910
add esp, 0xc
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
call dword [ebx + 0x78]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.0044a980
add esp, 8
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
push 0
call dword [ebx + 0x78]
mov edx, dword [esp + 0x34]
push eax
push edx
call fcn.0044a910
add esp, 0xc
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret

Function at 0x44a780
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [esi], al
mov al, byte [ecx]
test al, al
je 0x44a7ba
mov edx, esi
push ebx
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc edi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
mov al, byte [ecx]
test al, al
jne 0x44a79b
mov byte [edi + esi], 0
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
ret
Function at 0x401851
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x405c8c
call fcn.00405870
push ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
and dword [ebp - 4], 0
push str.QQ.exe
lea ecx, [ebp - 0x10]
call fcn.004056cc
push 5
push 0
push 0x40a9fc
push dword [ebp - 0x10]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x4018a7
Capabilities:
Get disk size

Disassembly:
mov eax, 0x405cc0
call fcn.00405870
sub esp, 0x20
push ebx
push esi
push 1
lea eax, [ebp - 0x24]
pop esi
xor ebx, ebx
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], esi
push dword [ebp + 0x18]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add ecx, 0x100000
adc eax, ebx
cmp eax, dword [ebp - 0x18]
jb 0x4019b5
ja 0x401907
cmp ecx, dword [ebp - 0x1c]
jb 0x4019b5
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
push 6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_1
push dword [ebp + 0x18]
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 4
push dword [ebp + 0x14]
push dword [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 2
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
jne 0x40196f
push 2
pop esi
jmp 0x401976
cmp eax, 4
je 0x401976
xor esi, esi
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4019ce
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402c58
Capabilities:
Get common file path

Disassembly:
mov eax, 0x405fc3
call fcn.00405870
sub esp, 0x118
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push 1
pop ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.QQHelperDll.dll_int___cdecl_IsVistaSystem_void_]
test eax, eax
jne 0x402c94
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004057f2
mov dword [ebp - 0x10], ebx
jmp 0x402ded
mov eax, dword [ebp + 0xc]
mov esi, dword [eax - 8]
cmp esi, ebx
jg 0x402cb2
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004057f2
mov dword [ebp - 0x10], ebx
jmp 0x402ded
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov al, byte [esi + eax - 1]
cmp al, 0x5c
je 0x402cfa
cmp al, 0x2f
je 0x402cfa
lea eax, [ebp + 0xc]
push 0x40a15c
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004056a8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
jmp 0x402d06
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004056a8
push 0x104
lea eax, [ebp - 0x124]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push ebx
push 0x1c
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x18]
push eax
call fcn.004057f2
push edi
push 0x3a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::Find
cmp eax, edi
jl 0x402d56
inc eax
lea ecx, [ebp - 0x18]
push eax
push edi
call sub.MFC42.DLL_CString::Delete
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x14]
push str._sVirtualStore
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.BasicCtrlDll.dll_int___cdecl_CheckDirecExist_class_CString_const__]
test eax, eax
pop ecx
je 0x402d9a
lea eax, [ebp - 0x14]
jmp 0x402dbe
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004057f2
mov byte [ebp - 4], 5
call dword [sym.imp.QQHelperDll.dll_int___cdecl_CanDirectoryAddFile_class_CString_]
cmp eax, ebx
pop ecx
lea eax, [ebp - 0x14]
jne 0x402dbe
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.004057f2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42cbb0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42cbde
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42cbfc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042cb1a
jmp 0x42cbfc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42cbfc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042cb1a
test edi, edi
mov eax, edi
jne 0x42cbe6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x440e88]
test ecx, ecx
je 0x42ccaf
jmp 0x42cbaf
ret 8
Function at 0x406176
Capabilities:
Create pipe
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4dffe0]
mov ecx, dword [0x4def34]
sub esp, 0xe84
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x406279
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x4dffe0], 0x959
jne 0x406267
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x405940
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x405960
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00405f8f
add ebx, 8
dec dword [ebp - 8]
jne 0x40619f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408d8b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e718]
jne 0x408d95
repz ret
jmp fcn.0041125c

Function at 0x412fd7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a50d
and dword [ebp - 4], 0
cmp dword [0x430b28], 0
mov ebx, eax
jne 0x413088
push 0x40394c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413139
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403940
push edi
call esi
test eax, eax
je 0x413139
push eax
call fcn.0040a49b
mov dword [esp], 0x403930
push edi
mov dword [0x430b28], eax
call esi
push eax
call fcn.0040a49b
mov dword [esp], 0x40391c
push edi
mov dword [0x430b2c], eax
call esi
push eax
call fcn.0040a49b
mov dword [esp], 0x403900
push edi
mov dword [0x430b30], eax
call esi
push eax
call fcn.0040a49b
pop ecx
mov dword [0x430b38], eax
test eax, eax
je 0x413088
push 0x4038e8
push edi
call esi
push eax
call fcn.0040a49b
pop ecx
mov dword [0x430b34], eax
mov eax, dword [0x430b34]
cmp eax, ebx
je 0x4130e0
cmp dword [0x430b38], ebx
je 0x4130e0
push eax
call fcn.0040a516
push dword [0x430b38]
mov esi, eax
call fcn.0040a516
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4130e0
test edi, edi
je 0x4130e0
call esi
test eax, eax
je 0x4130d7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4130d7
test byte [ebp - 0xc], 1
jne 0x4130e0
or dword [ebp + 0x10], 0x200000
jmp 0x413119
mov eax, dword [0x430b2c]
cmp eax, ebx
je 0x413119
push eax
call fcn.0040a516
pop ecx
test eax, eax
je 0x413119
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413119
mov eax, dword [0x430b30]
cmp eax, ebx
je 0x413119
push eax
call fcn.0040a516
pop ecx
test eax, eax
je 0x413119
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430b28]
call fcn.0040a516
pop ecx
test eax, eax
je 0x413139
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41313b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a540
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a3ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045ed40
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a5c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045caed
mov eax, dword [eax]
push 0x4821d0
push eax
call fcn.0044ef74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045efcb
test bl, bl
je 0x40a5c2
push 0x4821d0
lea ecx, [esp + 0xc]
call fcn.0045f35b
push 0x485d44
lea ecx, [esp + 0xc]
call fcn.0045f35b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a5fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045efcb
jmp 0x40a6c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a682
lea edx, [esp + 0x7c]
push 0x485d40
push edx
call fcn.0044ef74
add esp, 8
test eax, eax
je 0x40a682
lea eax, [esp + 0x7c]
push 0x485d3c
push eax
call fcn.0044ef74
add esp, 8
test eax, eax
je 0x40a682
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a612
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045efcb
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40aec0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40af22
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc