joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10072cc9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100cc5b0]
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.100657f2
and dword [ebp - 0x14], 0
cmp dword [0x100d6e64], 0
mov dword [ebp - 0x18], eax
jne 0x10072d7c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10072e24
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10072e24
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100d6e64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100d6e68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100d6e6c], eax
call edi
push eax
call esi
mov dword [0x100d6e74], eax
test eax, eax
je 0x10072d7c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100d6e70], eax
mov eax, dword [0x100d6e70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10072dd5
cmp dword [0x100d6e74], ecx
je 0x10072dd5
push eax
call esi
push dword [0x100d6e74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10072dd5
test ebx, ebx
je 0x10072dd5
call edi
test eax, eax
je 0x10072dcc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10072dcc
test byte [ebp - 8], 1
jne 0x10072dd5
or dword [ebp + 0x10], 0x200000
jmp 0x10072e08
mov eax, dword [0x100d6e68]
cmp eax, dword [ebp - 0x18]
je 0x10072e08
push eax
call esi
test eax, eax
je 0x10072e08
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10072e08
mov eax, dword [0x100d6e6c]
cmp eax, dword [ebp - 0x18]
je 0x10072e08
push eax
call esi
test eax, eax
je 0x10072e08
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100d6e64]
call esi
test eax, eax
je 0x10072e24
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10072e26
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c747
leave
ret
Function at 0x1007c560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10093d18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cc5b0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x100cd61c]
cmp eax, 0xffffffff
jne 0x1007c595
xor ebx, ebx
jmp 0x1007c59e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], 0
test ebx, ebx
je 0x1007c5e1
mov edi, edi
cmp dword [ebx + 0x18], 0
jne 0x1007c627
cmp dword [ebx + 0xc], 0
jne 0x1007c630
push 0x1007b690
push 0x100d724c
call fcn.1007b8b0
mov eax, dword [0x100cd61c]
add esp, 8
cmp eax, 0xffffffff
je 0x1007c5e1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test ebx, ebx
je 0x1007c613
lea edx, [ebx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1007c613
mov edx, dword [ebx]
mov eax, dword [edx]
push 0
mov ecx, ebx
call eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [ebx + 0xc], 0
je 0x1007c678
lea ecx, [ecx]
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x1007c662
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0xc], 0
jne 0x1007c630
mov ebp, dword [ebx + 0x14]
mov esi, dword [ebp]
cmp esi, ebp
je 0x1007c5b0
cmp byte [esi + 0x1d], 0
mov edi, esi
jne 0x1007c6c8
mov eax, dword [esi + 8]
cmp byte [eax + 0x1d], 0
jne 0x1007c6ad
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
jne 0x1007c6c8
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x1d], 0
je 0x1007c6a1
jmp 0x1007c6c8
mov eax, dword [esi + 4]
cmp byte [eax + 0x1d], 0
jne 0x1007c6c6
cmp esi, dword [eax + 8]
jne 0x1007c6c6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x1d], 0
je 0x1007c6b6
mov esi, eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x1007c6de
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1007c6de
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebx + 0x10]
call fcn.1003c00d
cmp esi, ebp
jne 0x1007c686
jmp 0x1007c5b0
Function at 0x1007c790
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x20]
push ecx
push 4
push eax
push 0x1007c700
push 0
push 0
call fcn.10060069
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1007c7b9
pop edi
xor al, al
pop ebx
ret
mov edx, dword [edi]
push esi
add edx, 4
mov eax, 1
lock xadd dword [edx], eax
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x1007c7dd
cmp eax, 0xffffffff
je 0x1007c7dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x1007eb20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100940f0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x100cc5b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x100a41d8
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.1002e538
mov byte [esp + 0x38], 1
call fcn.1007a94b
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.1002e5b2
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x1004f89
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push 0x30
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [eax], edi
pop ebx
add ebx, 0x900
cmp esi, edi
je 0x1004fb7
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
cmp esi, edi
je 0x1004ffb
push ebx
push edi
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
push edi
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1005004
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x7a
je 0x1004fa5
jmp 0x1005009
mov dword [ebp - 4], 8
jmp 0x100500e
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
cmp dword [ebp - 4], edi
je 0x100501a
cmp esi, edi
je 0x100501a
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1009c4f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x101f8e4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0101d138
leave
ret
Function at 0x100a2d0
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dab2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x180c
call fcn.0101d1a0
mov eax, dword [0x101f8e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
xor esi, esi
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
mov dword [ebp - 0x1818], esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
jne 0x100a32e
mov eax, 0x8007000e
jmp 0x100a48d
push 0x100180c
push esi
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
push 4
add eax, 0x20
push esi
push eax
call dword [sym.imp.msvcrt.dll_setvbuf]
add esp, 0x10
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
mov dword [0x101f9ec], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test al, 2
je 0x100a38e
lea eax, [ebp - 0x181c]
push eax
push dword [0x101f9ec]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [0x101f9e8], edi
test eax, eax
jne 0x100a394
mov dword [0x101f9e8], esi
mov edi, 0x400
push edi
lea eax, [ebp - 0x1814]
push eax
push 0x108
call fcn.010124cd
push 0x1db1
push 0x1001808
lea eax, [ebp - 0x1814]
push eax
lea eax, [ebp - 0x1014]
push edi
push eax
call fcn.01005575
add esp, 0x14
lea eax, [ebp - 0x1014]
push eax
call fcn.01012604
push 0x39
call fcn.01012b18
lea eax, [ebp - 0x1818]
push eax
lea eax, [ebp - 0x1814]
push eax
mov dword [ebp - 0x1818], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x100a436
push edi
lea eax, [ebp - 0x1014]
push eax
push 0x2d
call fcn.010124cd
lea eax, [ebp - 0x1814]
push eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.01005575
add esp, 0x10
lea eax, [ebp - 0x814]
push eax
call fcn.01012503
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
mov edi, eax
cmp edi, esi
jge 0x100a45d
push 0x239
call fcn.01012b18
push edi
call fcn.01012bb1
push eax
call fcn.01012b18
push ebx
push dword [ebp + 8]
call fcn.0100a0e7
cmp eax, esi
jne 0x100a48d
push dword [0x101f90c]
call fcn.0100ae9e
jmp 0x100a48d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0101d138
leave
ret
Function at 0x100ab2d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0101d1a0
mov eax, dword [0x101f8e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x1008], 0
push esi
mov dword [ebp - 0x1010], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x100c], eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x1004]
push eax
push pe_nt_image_headers32
call fcn.010124cd
mov edi, dword [ebp + 0x10]
cmp edi, esi
jle 0x100ab89
mov eax, 0x80070057
jmp 0x100ac14
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call sub.msvcrt.dll_memset
lea ebx, [edi - 1]
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x100abef
push dword [ebp - 0x1010]
call sub.msvcrt.dll_fgetwc
movzx eax, ax
pop ecx
mov ecx, 0xffff
cmp ax, cx
je 0x100abe5
push eax
mov word [ebp + esi*2 - 0x804], ax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x100abef
inc esi
cmp esi, ebx
jl 0x100aba9
jmp 0x100abef
mov dword [ebp - 0x1008], 0x3b9ac9ff
xor eax, eax
push edi
push dword [ebp - 0x100c]
mov word [ebp + esi*2 - 0x804], ax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0x1008]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101d138
leave
ret 0xc

Function at 0x1012503
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [0x101f9e8], esi
je 0x101254d
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x101251e
push esi
sub eax, edx
lea ecx, [ebp - 4]
push ecx
sar eax, 1
push eax
push dword [ebp + 8]
push dword [0x101f9ec]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x10125be
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10125be
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 1
call edi
mov ebx, eax
cmp ebx, esi
jne 0x1012571
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10125bc
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x10125bc
push esi
push esi
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 1
call edi
cmp eax, esi
je 0x10125ad
push esi
lea ecx, [ebp - 4]
push ecx
dec eax
push eax
push dword [ebp - 8]
push dword [0x101f9ec]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10125b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x1012604
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01012503

Function at 0x10126b3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.01009cac
test eax, eax
je 0x10126c7
pop ebp
jmp fcn.01012503
pop ebp
ret 4
Function at 0x101d129
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x101e1c0
call fcn.0101d704
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x101fd50
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101cf3e
cmp eax, esi
jne 0x101cf31
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x101cf41
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101cf18
xor esi, esi
inc esi
mov eax, dword [0x101fd4c]
cmp eax, esi
jne 0x101cf54
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101cf8f
mov eax, dword [0x101fd4c]
test eax, eax
jne 0x101cf89
mov dword [0x101fd4c], esi
push 0x1001228
push 0x100121c
call fcn.0101ce95
pop ecx
pop ecx
test eax, eax
je 0x101cf8f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x101d059
mov dword [0x101fa1c], esi
mov eax, dword [0x101fd4c]
cmp eax, esi
jne 0x101cfb3
push 0x1001218
push 0x10011e4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101fd4c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x101cfc0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101fd5c], ebx
je 0x101cfe1
push 0x101fd5c
call fcn.0101d679
pop ecx
test eax, eax
je 0x101cfe1
push ebx
push 2
push ebx
call dword [0x101fd5c]
push dword [0x101fa04]
push dword [0x101fa08]
push dword [0x101fa00]
call fcn.0100a2d0
add esp, 0xc
mov dword [0x101fa18], eax
cmp dword [0x101fa0c], ebx
jne 0x101d03f
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x101fa1c], ebx
jne 0x101d04d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101fa18]
call fcn.0101d749
ret
call fcn.0101d851
jmp 0x101cef6
Function at 0x1001bdc
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.01001beb
jmp fcn.01001b4b

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7adc03ef
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x190e7dfd
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x100400d
Capabilities:
Accept command line arguments
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x104
mov esi, 0x100cf40
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004030
sub eax, ecx
lea eax, [eax + 0x100cf40]
jmp 0x100404b
lea ecx, [eax - 1]
cmp byte [ecx], 0x5c
je 0x100404f
mov eax, ecx
cmp eax, esi
ja 0x1004041
push eax
call fcn.01003e3a
push esi
mov dword [0x100c4b0], eax
call fcn.01003016
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
mov dword [ebp - 0x14], ebx
xor ecx, ecx
mov al, byte [ebx]
cmp al, 0x20
je 0x100407b
cmp al, 9
je 0x100407b
cmp al, 0x22
jne 0x1004085
cmp al, 0x22
jne 0x1004082
xor ecx, ecx
inc ecx
inc ebx
jmp 0x100406d
test ecx, ecx
mov dword [ebp - 0x14], ebx
je 0x10040a3
cmp byte [ebx], 0
mov eax, ebx
je 0x10040a3
cmp byte [eax], 0x22
je 0x10040a0
inc eax
cmp byte [eax], 0
jne 0x1004093
jmp 0x10040a3
mov byte [eax], 0x20
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10040a8
sub eax, edx
lea eax, [eax + ebx - 1]
jmp 0x10040c7
mov cl, byte [eax]
cmp cl, 0x20
je 0x10040c3
cmp cl, 9
jne 0x10040cb
mov byte [eax], 0
dec eax
cmp eax, ebx
jae 0x10040b7
mov eax, dword [0x100c4b0]
and dword [ebp - 4], 0
mov ecx, eax
mov byte [0x100d1a0], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10040e0
sub ecx, esi
lea edx, [ecx + eax - 1]
jmp 0x10040f5
cmp byte [edx], 0x2e
je 0x10040fb
dec edx
cmp edx, eax
ja 0x10040ef
jmp 0x100412c
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004100
sub eax, esi
lea ecx, [eax + 1]
mov dword [ebp - 4], eax
mov eax, ecx
shr ecx, 2
mov esi, edx
mov edi, 0x100d1a0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [edx], 0
mov eax, dword [0x100c4b0]
mov dword [0x100c4a8], 0x10022bb
cmp byte [ebx], 0
mov dword [ebp - 8], ebx
je 0x1004252

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, esi
xor ebx, ebx
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10044c1
push 0x2e
push esi
call dword [sym.imp.msvcrt.dll_strrchr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x100452e
push 0x1002504
push edi
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x100452e
xor ebx, ebx
inc ebx
mov eax, dword [0x101d3e8]
xor edx, edx
mov ecx, 0x3e8
div ecx
inc dword [0x101d3e8]
push edx
push 0x10024fc
push edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10044f1
push esi
push 0x100c004
call fcn.0100447f
jmp 0x1004531
mov byte [esi], 0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x10045eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c028]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100460b
sub eax, ecx
lea ecx, [eax + 1]
mov edx, ecx
push edi
shr ecx, 2
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + eax - 0x108]
cmp byte [eax - 1], 0x5c
pop edi
je 0x1004641
mov byte [eax], 0x5c
mov byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.01004590
test eax, eax
pop esi
pop ebx
je 0x10046a6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10046a6
test al, 0x10
je 0x10046a6
push 0x100245c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10046a1
push 0x100250c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10046a1
push 0
lea ecx, [ebp - 0x108]
push ecx
call eax
test eax, eax
jne 0x10046a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x10046a8
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.010062ff
leave
ret 0xc
Function at 0x42cb90
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b333b
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.004a5a0a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42cc12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a2fd0
mov eax, dword [eax]
push 0x504cb0
push eax
call fcn.00495914
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a5c95
test bl, bl
je 0x42cc12
push 0x504cb0
lea ecx, [esp + 0xc]
call fcn.004a6071
push 0x504cbc
lea ecx, [esp + 0xc]
call fcn.004a6071
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 0x42cc4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a5c95
jmp 0x42cd19
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 0x42ccd2
lea edx, [esp + 0x7c]
push 0x504cb8
push edx
call fcn.00495914
add esp, 8
test eax, eax
je 0x42ccd2
lea eax, [esp + 0x7c]
push 0x504cb4
push eax
call fcn.00495914
add esp, 8
test eax, eax
je 0x42ccd2
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 0x42cc62
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.004a5c95
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 0x42d510
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 0x42d572
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