joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4175db
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x40
lea eax, [ebp - 0x2c8]
push 0
push eax
call fcn.0040be40
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x29c], ax
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x26a]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x2dc], 0
movq qword [ebp - 0x2d8], xmm0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0x44
mov dword [ebp - 0x2a0], 1
call fcn.0040be40
mov ecx, edi
add esp, 0x18
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b10
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea eax, [ebp - 0x26c]
push 0x12c
push eax
call fcn.004088dc
add esp, 0x10
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x26c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402be1
push 0x14
push str.9eError:CretateProc
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x270], 7
mov dword [ebp - 0x274], eax
mov word [ebp - 0x284], ax
call fcn.004032a0
push edi
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 4], 0
call fcn.004037d0
add esp, 4
lea ecx, [ebp - 0x284]
push eax
call fcn.004031a0
cmp dword [ebp - 0x2e0], 8
jb 0x402bca
push dword [ebp - 0x2f4]
call fcn.0040883d
add esp, 4
cmp dword [ebp - 0x270], 8
jb 0x402be1
push dword [ebp - 0x284]
call fcn.0040883d
add esp, 4
cmp esi, 0xfa1
je 0x402bf6
push esi
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408076
mov esp, ebp
pop ebp
ret
Function at 0x402c20
Capabilities:
Acquire debug privileges
Enumerate processes
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402c59
push str._fProcessMonitor_:_INVALID_HANDLE_VALUE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor esi, esi
jmp 0x402d5b
lea eax, [ebp - 0x250]
push eax
push esi
mov dword [ebp - 0x250], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ecx]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402cb7
test dx, dx
je 0x402cb3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402cb7
add eax, 4
add ecx, 4
test dx, dx
jne 0x402c91
xor eax, eax
jmp 0x402cbc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402d42
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402d26
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call ebx
test eax, eax
je 0x402d21
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x248]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402c80
lea esi, [eax + 1]
cmp dword [ebp + 0x1c], 8
jb 0x402d6c
push dword [ebp + 8]
call fcn.0040883d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408076
mov esp, ebp
pop ebp
ret
Function at 0x404730
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41770b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x413]
push 0
push eax
mov byte [ebp - 0x414], 0
call fcn.0040be40
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404782
sub ecx, edx
sar ecx, 1
push ecx
push esi
push 0x400
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00409445
add esp, 0x14
cmp byte [ebp - 0x414], 0
mov byte [ebp - 0x43c], 0
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x4a4], 0x67452301
mov dword [ebp - 0x4a0], 0xefcdab89
mov dword [ebp - 0x49c], 0x98badcfe
mov dword [ebp - 0x498], 0x10325476
mov dword [ebp - 0x4a8], 0xf
mov dword [ebp - 0x4ac], 0
mov byte [ebp - 0x4bc], 0
jne 0x404819
xor ecx, ecx
jmp 0x40482b
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404822
sub ecx, edx
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00401730
cmp dword [ebp - 0x4a8], 0x10
push dword [ebp - 0x4ac]
lea eax, [ebp - 0x4bc]
cmovae eax, dword [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00403c50
cmp dword [ebp - 0x4a8], 0x10
jb 0x40487b
push dword [ebp - 0x4bc]
call fcn.0040883d
add esp, 4
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.004046f0
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x40489e
mov edx, dword [edx]
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], 0
mov byte [ebp - 0x430], 0
cmp byte [edx], 0
jne 0x4048c2
xor ecx, ecx
jmp 0x4048d0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4048c7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x430]
call fcn.00401730
cmp dword [ebp - 0x4a8], 0x10
jb 0x4048f4
push dword [ebp - 0x4bc]
call fcn.0040883d
add esp, 4
mov edx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
cmp edx, 0x10
cmovae ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404910
sub ecx, edi
push ecx
cmp edx, 0x10
lea eax, [ebp - 0x430]
cmovae eax, esi
push eax
push 0x400
lea eax, [ebp - 0x418]
push 0x423b58
push eax
call fcn.0040969e
add esp, 0x14
cmp dword [ebp - 0x41c], 0x10
jb 0x404957
push dword [ebp - 0x430]
call fcn.0040883d
add esp, 4
mov eax, 0x423b58
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408076
mov esp, ebp
pop ebp
ret 4
Function at 0x405e70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4213fc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00401c40
mov edx, eax
cmp word [edx], 0
jne 0x405e9b
xor ecx, ecx
jmp 0x405eaf
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ea0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x422654
call fcn.004032a0
cmp dword [ebp + 0xc], 0
jne 0x405ed1
mov ecx, esi
call fcn.00405dc0
test ax, ax
je 0x405fa3
push 0
push esi
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0xcf0000
push 0
push str.MAIN
push 0x200
mov dword [0x424358], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x405fa3
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
movq qword [esp + 0x14], xmm0
movq qword [esp + 0x1c], xmm0
movq qword [esp + 0x24], xmm0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x405f53
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x405f8b
lea eax, [esp + 0x10]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x405f53
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00408076
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00408076
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407560
Capabilities:
Connect to wmi namespace via wbemlocator
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
je 0x40757e
push str.WMI_DeviceQuery_Init:faild
call edi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
je 0x4075a1
push str.WMI_DeviceQuery_Init:faild
call edi
push 0x424360
push 0x41d7a8
push 1
push 0
push 0x41d878
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [0x424360], 0
jne 0x4075d4
push str.WMI_DeviceQuery_Init:faild
call edi
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 4]
call fcn.00406f40
mov edx, dword [eax]
test edx, edx
je 0x4075e7
mov edx, dword [edx]
jmp 0x4075e9
xor edx, edx
mov eax, dword [0x424360]
push esi
mov ecx, dword [eax]
push 0x42435c
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 4]
test esi, esi
je 0x407653
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x407653
test esi, esi
je 0x407653
mov eax, dword [esi]
test eax, eax
je 0x407633
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40764a
push eax
call fcn.0040880e
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.0040883d
add esp, 4
mov eax, dword [0x42435c]
pop esi
test eax, eax
je 0x4075c3
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
je 0x407681
push str.WMI_DeviceQuery_Init:faild
call edi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41334e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040c0ea
mov dword [ebp - 0x14], eax
cmp dword [0x423658], edi
jne 0x41343f
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4133cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41351f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41351f
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41351f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x423658], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42365c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x423660], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423668], eax
test eax, eax
je 0x41343c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423664], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x413464
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x413457
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x413479
push 4
pop eax
jmp 0x413521
cmp dword [ebp - 0x14], edi
je 0x413479
push dword [0x423658]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41345e
mov eax, dword [0x423664]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4134d7
cmp dword [0x423668], esi
je 0x4134d7
push eax
call ebx
push dword [0x423668]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4134d7
test eax, eax
je 0x4134d7
call ecx
test eax, eax
je 0x4134cc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4134cc
test byte [ebp - 8], 1
jne 0x4134d7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x413507
mov eax, dword [0x42365c]
cmp eax, esi
je 0x413504
push eax
call ebx
test eax, eax
je 0x413504
call eax
mov edi, eax
test edi, edi
je 0x413504
mov eax, dword [0x423660]
cmp eax, esi
je 0x413504
push eax
call ebx
test eax, eax
je 0x413504
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x423658]
call ebx
test eax, eax
je 0x41351f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x413521
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408076
leave
ret
Function at 0x404a80
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, dword [fcn.0040408c]
push edi
push 0x10000
push 2
call esi
mov edi, dword [fcn.004040c8]
push eax
mov dword [0x4053c0], eax
call edi
push 0x8040
push 2
mov dword [0x4053bc], eax
call esi
push eax
mov dword [0x4053f8], eax
call edi
push 0x400
push 2
mov dword [0x4053e8], eax
call esi
push eax
mov dword [0x4053d8], eax
call edi
mov dword [0x4053c4], eax
and dword [eax], 0
push 1
pop eax
pop edi
pop esi
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x404aec
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x404aee
shr ecx, 1
dec edx
jne 0x404add
mov edx, dword [0x4053c4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x100
jl 0x404ad8
ret

Function at 0x405b20
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x405b32
or eax, 0xffffffff
mov dword [0x405000], eax
jmp 0x405b6b
mov edx, dword [esp + 8]
mov eax, dword [0x405000]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x405b65
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x4053c4]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x405b45
pop edi
mov dword [0x405000], eax
pop esi
not eax
ret 8
Function at 0x4042cb
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x4042f4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42294c], 0
push esi
mov esi, edx
jne 0x40432c
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040433c
mov eax, dword [eax]
mov edx, esi
mov ecx, eax
call fcn.004042cb
mov bl, al
push dword [ebp - 0xc]
call fcn.00403248
pop ecx
mov al, bl
pop ebx
jmp 0x404339
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop esi
leave
ret

Function at 0x40438b
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42294c], 0
jne 0x4043bc
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040433c
mov ecx, dword [eax]
call fcn.004042d9
mov bl, al
push dword [ebp - 0xc]
call fcn.00403248
pop ecx
mov al, bl
pop ebx
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x40444b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42294c], 0
jne 0x40447c
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040433c
mov ecx, dword [eax]
call fcn.0040443c
mov bl, al
push dword [ebp - 0xc]
call fcn.00403248
pop ecx
mov al, bl
pop ebx
leave
ret
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x4046b3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x42294c], 0
push esi
mov esi, ecx
jne 0x4046e7
push ebx
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.0040433c
mov ecx, dword [eax]
call fcn.00404695
mov bl, al
push dword [ebp - 0xc]
call fcn.00403248
pop ecx
mov al, bl
pop ebx
jmp 0x404700
xor edx, edx
mov ecx, esi
call fcn.004042f4
test al, al
je 0x404700
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
leave
ret
Function at 0x40498b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x419aa0
call fcn.00418f60
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x42294c], bl
push esi
mov esi, ecx
je 0x4049ef
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x4049b7
push edi
call fcn.004023e1
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x4049d3
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x4049cb
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x4049eb
cmp eax, 0x104
ja 0x4049eb
push 1
pop eax
jmp 0x404a3e
xor eax, eax
jmp 0x404a3e
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00402f37
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040494f
test al, al
je 0x404a33
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.00404247
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401fa2
push dword [ebp - 0x24]
call fcn.00403248
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00403248
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404f88
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404fae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404fae
xor al, al
jmp 0x404fce
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004190e0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x405b56
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
mov eax, dword [esi]
and dword [esi + 4], 0
and byte [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
test edi, edi
jne 0x405b83
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x405bba
cmp edi, dword [esi + 8]
jl 0x405b90
push edi
mov ecx, esi
call fcn.00402f37
mov eax, dword [esi]
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, esi
mov edi, eax
call fcn.00404a4c
test edi, edi
jne 0x405bb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
jmp 0x405bba
mov al, 1
pop edi
pop esi
pop ebx
ret 4
Function at 0x405bc0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x419c60
call fcn.00418f60
sub esp, 0x18
cmp byte [0x42294c], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x405c41
mov esi, dword [ebp + 8]
mov eax, dword [esi]
and dword [esi + 4], 0
and word [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
je 0x405c30
cmp edi, dword [esi + 8]
jl 0x405c03
push edi
mov ecx, esi
call fcn.004023e1
mov eax, dword [esi]
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi]
xor ebx, ebx
xor edx, edx
cmp word [ecx], bx
je 0x405c25
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x405c1d
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
jne 0x405c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x405c92
mov al, 1
jmp 0x405c92
xor esi, esi
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00402f37
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
mov dword [ebp - 4], esi
call fcn.00405b56
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.00402d6a
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.00401fa2
push dword [ebp - 0x24]
call fcn.00403248
push dword [ebp - 0x18]
call fcn.00403248
pop ecx
mov al, bl
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40cd13
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41a8bf
call fcn.00418f60
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x41c718
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41c8b4
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.00403588
push dword [esi + 8]
mov ecx, ebx
call fcn.00403588
push dword [esi + 0xc]
mov ecx, edi
call fcn.00403588
push dword [esi + 0xc]
mov ecx, edi
call fcn.00403588
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40cd1f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41a8bf
call fcn.00418f60
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x41c718
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41c8b4
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.00403588
push dword [esi + 8]
mov ecx, ebx
call fcn.00403588
push dword [esi + 0xc]
mov ecx, edi
call fcn.00403588
push dword [esi + 0xc]
mov ecx, edi
call fcn.00403588
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8