joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40956f
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, 0x288
push esi
call fcn.0040cedf
mov edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push edi
call esi
cmp eax, 0x6f
jne 0x4095b2
push edi
call fcn.0040cf0e
push dword [ebp - 4]
call fcn.0040cf19
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push edi
call esi
neg eax
sbb eax, eax
not eax
and edi, eax
je 0x4095ef
lea eax, [edi + 0x10c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00407822
mov eax, dword [ebp + 8]
push dword [eax]
lea esi, [ebp - 8]
call fcn.0040357c
cmp eax, 0xffffffff
jne 0x4095f7
mov ecx, dword [ebp - 8]
mov edi, dword [edi]
add ecx, 0xfffffff0
call fcn.004016bd
test edi, edi
jne 0x4095bc
xor eax, eax
pop edi
pop esi
leave
ret 4
mov esi, 0x5958c8
lea eax, [edi + 0x1b0]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409606
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004016bd
mov eax, esi
jmp 0x4095f1

Function at 0x409633
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [0x58be10]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xc04], ax
lea eax, [ebp - 0xc02]
push eax
call fcn.0050f300
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.0050f300
add esp, 0x18
push 0x800
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push dword [ebp + 8]
lea eax, [esi + 0x20]
push eax
push esi
lea eax, [ebp - 0x404]
push str.cmd__c_route_add__s_mask__s__ws
push eax
call fcn.0050e585
add esp, 0x14
push 0
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004016bd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050da0c
leave
ret 4

Function at 0x4096e1
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [0x58be10]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xc04], ax
lea eax, [ebp - 0xc02]
push eax
call fcn.0050f300
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.0050f300
add esp, 0x18
push 0x800
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x404]
push str.cmd__c_route_delete__s
push eax
call fcn.0050e585
add esp, 0xc
push 0
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050da0c
leave
ret
Function at 0x40a659
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
call fcn.00406763
push dword [esi + 0x120]
mov ecx, esi
call fcn.0040d89a
push 5
mov ecx, esi
call fcn.0040d965
xor edi, edi
push edi
push edi
push esi
push 0x40a8f7
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x24c], eax
push 0x567d38
lea eax, [esi + 0x248]
push eax
call fcn.00401645
lea ecx, [esi + 0x128]
mov eax, dword [ecx]
mov dword [esi + 0x250], 0x2d
call dword [eax + 0x170]
cmp eax, 2
jne 0x40a6cf
push 2
mov ecx, esi
call fcn.00415b2f
xor eax, eax
jmp 0x40a6ef
cmp eax, edi
jne 0x40a6ec
push edi
push ecx
mov eax, esp
mov dword [ebp - 4], esp
push 0x567d64
push eax
call fcn.0040167d
call fcn.0040727e
jmp 0x40a6c2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x40ac69
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x58be10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.004072e2
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push dword [esi + 0x20]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul qword [0x569890]
call fcn.00512180
push eax
push edi
push 0x568020
push edi
lea ecx, [esi + 0xe8]
call fcn.0041e7fe
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul qword [0x569888]
call fcn.00512180
push eax
push edi
push 0x568030
push 1
lea ecx, [esi + 0xe8]
call fcn.0041e7fe
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul qword [0x569880]
call fcn.00512180
push eax
push edi
push 0x568038
push 2
lea ecx, [esi + 0xe8]
call fcn.0041e7fe
push 0x21
push edi
push 0x1036
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push dword [esi + 0x20]
push 0x40ada7
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0050da0c
leave
ret

Function at 0x40b8a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
cmp word [ebp - 0x24], 9
je 0x40b8c2
cmp word [ebp - 0x24], 6
je 0x40b8c2
push 0x20
jmp 0x40b8c4
push 0x40
pop eax
leave
ret
Function at 0x40ba9f
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x58be10]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.0050f300
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push dword [0x5957f0]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0050da0c
leave
ret

Function at 0x40bfe4
Capabilities:
Send icmp echo request

Disassembly:
push 0x40
mov eax, 0x535654
call fcn.0050f173
push 7
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x30], bl
pop ecx
xor eax, eax
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0xc]
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, ebx
jne 0x40c01c
call fcn.0040d1a5
push ebx
push ebx
push 0x20
lea ecx, [ebp - 0x30]
push ecx
push esi
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
call dword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov esi, eax
cmp esi, ebx
je 0x40c078
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x40c078
push 0x1f4
push 0x1c
lea ecx, [ebp - 0x4c]
push ecx
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho]
mov esi, dword [ebp - 0x48]
cmp esi, ebx
jne 0x40c069
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004016bd
mov eax, esi
jmp 0x40c08d
push esi
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004016bd
or eax, 0xffffffff
call fcn.0050f1f6
ret

Function at 0x40d5d3
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0040cf5e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x40d61d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040d5ae
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040d45d
jmp 0x40d628
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004231a9
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40d62e
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040d784
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x40d66b
call fcn.0040cf5e
mov dword [esi + 0xc], 1
jmp 0x40d670
call fcn.0040cf5e
cmp dword [esi], 0
je 0x40d6b9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x40d691
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040d5ae
jmp 0x40d6a3
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.0040d573
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040d45d
jmp 0x40d6dd
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x40d6dd
push dword [esi]
push dword [ebp + 8]
call fcn.004231a9
pop esi
pop ebp
ret 0xc

Function at 0x40dee6
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x529f2c
call fcn.0050f10a
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40df0b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40df5d
call fcn.00415569
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d48c
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050f214
push eax
call fcn.00401369
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004016bd
mov eax, esi
call fcn.0050f1e2
ret 8

Function at 0x414958
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41499f
call fcn.0041a80e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x41499f
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4149bb
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00414458
mov esi, eax
test edi, edi
je 0x4149b9
test ebx, ebx
je 0x4149b9
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041a80e
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x416499
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041609d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4164f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x41651b
cmp dword [edi + 0x74], 0
jne 0x41651b
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041a80e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004164b8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x416f39
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00412bcc
call fcn.0040fdfe
cmp eax, esi
pop esi
jne 0x416f55
mov ecx, 0x58f758
jmp fcn.00427689
ret

Function at 0x41be9a
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41bec5
call fcn.0041a80e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x41bee8
push eax
push dword [esi + 4]
call fcn.0041be20
push esi
push eax
mov ecx, 0x58f39c
call fcn.0041bac2
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4203d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42041b
call fcn.0041a80e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x42041b
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42045e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x420447
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x420447
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x68], 0
je 0x42045b
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x47c7a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x47c7bc
call fcn.0041a80e
mov esi, dword [eax + 0xc]
push dword [0x5911c4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x47c7da
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x47c7d2
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x47c807
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop ebx
jmp 0x47c7d4
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0047c6d0
mov esi, eax
jmp 0x47c7f9
Function at 0x4f40c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f40de
mov edi, dword [esi + 0xc]
jmp 0x4f411e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f40f7
call fcn.00417453
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f410c
call fcn.00417453
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
jne 0x4f411e
call fcn.00417453
call fcn.0041a80e
cmp dword [eax + 0x3c], 0
je 0x4f4133
push edi
mov ecx, ebx
call fcn.004f2f7a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f3fe0
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f4151
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f415d
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50da0c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58be10]
jne 0x50da16
repz ret
jmp fcn.00515943

Function at 0x50dfa2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x50dfc9
call fcn.0050ec1d
mov dword [eax], esi
call fcn.0050ec0a
push 0x16
pop esi
mov dword [eax], esi
call fcn.00515bd3
mov eax, esi
jmp 0x50e01e
test dword [ebp + 0xc], 0xfffffff9
jne 0x50dfaf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50dff6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0050ec30
pop ecx
call fcn.0050ec0a
mov eax, dword [eax]
jmp 0x50e01e
test al, 0x10
jne 0x50e01c
test al, 1
je 0x50e01c
test byte [ebp + 0xc], 2
je 0x50e01c
call fcn.0050ec1d
mov dword [eax], 5
call fcn.0050ec0a
mov dword [eax], 0xd
jmp 0x50dfed
xor eax, eax
pop esi
pop ebp
ret
Function at 0x523518
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58be10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051536b
and dword [ebp - 0x14], 0
cmp dword [0x593bc0], 0
mov dword [ebp - 0x18], eax
jne 0x5235cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x523673
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x562078
push ebx
call edi
test eax, eax
je 0x523673
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push 0x562068
push ebx
mov dword [0x593bc0], eax
call edi
push eax
call esi
push 0x562054
push ebx
mov dword [0x593bc4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x593bc8], eax
call edi
push eax
call esi
mov dword [0x593bd0], eax
test eax, eax
je 0x5235cb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x593bcc], eax
mov eax, dword [0x593bcc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x523624
cmp dword [0x593bd0], ecx
je 0x523624
push eax
call esi
push dword [0x593bd0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x523624
test ebx, ebx
je 0x523624
call edi
test eax, eax
je 0x52361b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52361b
test byte [ebp - 8], 1
jne 0x523624
or dword [ebp + 0x10], 0x200000
jmp 0x523657
mov eax, dword [0x593bc4]
cmp eax, dword [ebp - 0x18]
je 0x523657
push eax
call esi
test eax, eax
je 0x523657
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x523657
mov eax, dword [0x593bc8]
cmp eax, dword [ebp - 0x18]
je 0x523657
push eax
call esi
test eax, eax
je 0x523657
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x593bc0]
call esi
test eax, eax
je 0x523673
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x523675
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050da0c
leave
ret

Function at 0x52984b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x529872
call fcn.0050ec1d
mov dword [eax], esi
call fcn.0050ec0a
push 0x16
pop esi
mov dword [eax], esi
call fcn.00515bd3
mov eax, esi
jmp 0x5298c7
test dword [ebp + 0xc], 0xfffffff9
jne 0x529858
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52989f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0050ec30
pop ecx
call fcn.0050ec0a
mov eax, dword [eax]
jmp 0x5298c7
test al, 0x10
jne 0x5298c5
test al, 1
je 0x5298c5
test byte [ebp + 0xc], 2
je 0x5298c5
call fcn.0050ec1d
mov dword [eax], 5
call fcn.0050ec0a
mov dword [eax], 0xd
jmp 0x529896
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4014bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [0x42b2b8]
mov ebx, eax
push ebx
call fcn.0041d7f8
mov esi, eax
pop ecx
test esi, esi
je 0x40150d
xor edx, edx
test ebx, ebx
jbe 0x40150d
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x4014f7
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413479
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x4134b3
mov eax, dword [ecx + 0x70]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x413491
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc

Function at 0x4155a9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [0x42b400]
test eax, eax
je 0x41565f
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.004176ef
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x41564f
lea eax, [ebp - 0x118]
push eax
call dword [0x42b2b8]
test eax, eax
je 0x41560b
lea eax, [ebp - 0x118]
push 0x43025c
push eax
call fcn.0041f290
pop ecx
test eax, eax
pop ecx
jne 0x415627
mov eax, 0x486
push eax
mov dword [0x437e5c], eax
call fcn.0041760f
pop ecx
push dword [0x437e5c]
call fcn.0041f194
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.004188bf
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [0x42b3b0]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [0x42b318]
leave
ret 8