joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4df301
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4df339
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.004dd3b5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dd38d
jmp 0x4df345
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e09f4
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 0x4e0a36
call fcn.004e69e3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e0a36
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e0a2d
xor eax, eax
jmp 0x4e0a3e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e0a44
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e6f13
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 0x4e6f41
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e6f5f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e6e79
jmp 0x4e6f5f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e6f5f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e6e79
test edi, edi
mov eax, edi
jne 0x4e6f49
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10019eb
Capabilities:
List domain servers

Disassembly:
push ebp
mov ebp, esp
mov ax, word [0x1004380]
neg ax
push 0
sbb eax, eax
and eax, 0x1004380
push eax
push 0x2000000
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp + 8]
push 0x65
push 0
call sub.NETAPI32.dll_NetServerEnum
pop ebp
ret 8
Function at 0x1002fc4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 0xc
lea eax, [ebp + eax*2 - 0x100]
dec eax
dec eax
mov cx, word [eax]
cmp cx, 0x5c
je 0x1003005
cmp cx, 0x2f
jne 0x100300b
and word [eax], 0
jmp 0x1002ff4
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret 4

Function at 0x1003026
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
push esi
push dword [edi + 4]
mov esi, dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x108]
push eax
call esi
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_wcslen]
lea eax, [ebp + eax*2 - 0x108]
push 0x1001550
push eax
mov dword [ebp - 8], eax
call esi
add esp, 0x14
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x100308e
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x10031b8
push ebx
mov ebx, dword [sym.imp.ntdll.dll_wcscmp]
lea eax, [ebp - 0x32c]
push 0x100154c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1003190
lea eax, [ebp - 0x32c]
push 0x1001544
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1003190
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.ntdll.dll__wcslwr]
push eax
push dword [ebp - 8]
call esi
mov eax, dword [edi + 0xc]
add esp, 0xc
test eax, eax
je 0x10030f2
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ntdll.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x32c]
push eax
push dword [edi + 8]
call fcn.0100338d
test eax, eax
je 0x1003190
cmp dword [edi + 0xc], 0
je 0x100316b
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
lea edx, [ebp - 0x108]
call fcn.01002eff
test eax, eax
je 0x100316b
test byte [ebp - 0x358], 0x10
je 0x1003190
lea eax, [ebp - 0x458]
push eax
call fcn.01002fc4
test eax, eax
je 0x1003190
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
mov eax, dword [ebp + 8]
call fcn.01002d68
jmp 0x1003190
lea eax, [ebp - 0x108]
push eax
call fcn.01002fc4
test eax, eax
je 0x1003190
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 0xc]
call fcn.01002e38
mov ebx, eax
test ebx, ebx
jne 0x10031b5
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x100308f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10031b5
mov eax, ebx
pop ebx
pop esi
leave
ret 8
Function at 0x10035a0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001558
call fcn.0100373c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10035db
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10035db
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10035f3
cmp eax, 0x20b
je 0x10035e0
mov dword [ebp - 0x1c], edi
jmp 0x1003607
cmp dword [ecx + 0x84], 0xe
jbe 0x10035db
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1003601
cmp dword [ecx + 0x74], 0xe
jbe 0x10035db
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10055c0], 0xffffffff
or dword [0x10055c4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10042b8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10042b4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10055c8], eax
call fcn.01003738
cmp dword [0x1004270], edi
jne 0x1003662
push fcn.01003738
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003726
push 0x100114c
push 0x1001148
call sub.msvcrt.dll__initterm
mov eax, dword [0x10042b0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10042ac]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001144
push 0x1001140
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100174c
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10036d9
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100370e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01003775
ret
Function at 0x407a30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x48c4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x407a97
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fe53
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x407a85
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x407a85
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.00450f95
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0044fe53
mov esp, ebp
pop ebp
ret
Function at 0x407b30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x271c
call fcn.00466b80
mov eax, dword [0x48c4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x270f
push eax
lea eax, [ebp - 0x2714]
push eax
mov esi, ecx
mov ebx, edx
mov byte [ebp - 0x2715], 0
call fcn.00451060
add esp, 0xc
test esi, esi
je 0x407bb7
push edi
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407b78
mov cx, word [0x476e60]
mov eax, esi
mov word [edi], cx
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407b90
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407ba0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407c59
test ebx, ebx
je 0x407c13
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407bf0
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push ebx
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x407c34
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fe53
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fe53
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fe53
mov esp, ebp
pop ebp
ret

Function at 0x407c70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.00466b80
mov eax, dword [0x48c4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x270f
push eax
lea eax, [ebp - 0x2714]
push eax
call fcn.00451060
add esp, 0xc
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
xor ecx, ebp
call fcn.0044fe53
mov esp, ebp
pop ebp
ret
Function at 0x40cc70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47179b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x48c4c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov ecx, dword [0x4761d8]
mov dword [esi + 0xc], ecx
mov edx, dword [0x4761dc]
mov dword [esi + 0x10], edx
mov ecx, dword [0x4761e0]
mov dword [esi + 0x14], ecx
mov edx, dword [0x4761e4]
mov dword [esi + 0x18], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [esi + 0x30], edi
cmp edi, ebx
je 0x40cd44
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push esi
push edi
call ecx
cmp eax, ebx
mov eax, dword [esi + 0x30]
jl 0x40cd35
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
cmp eax, ebx
jl 0x40cd44
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea eax, [esi + 4]
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40cd44
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 8], ebx
jmp 0x40cd44
cmp eax, ebx
je 0x40cd44
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x30], ebx
push 8
call fcn.004500ad
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40cd75
mov dword [ebx], vtable.tcomxTypeHandler.0
mov dword [ebx + 4], edi
test edi, edi
je 0x40cd77
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
jmp 0x40cd77
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x34]
mov ecx, 0x96
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x40cd82
mov eax, dword [0x48ed98]
mov dword [esi + 0x994], eax
inc eax
mov dword [0x48ed98], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x415865
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x415843.2
jmp dword [eax*4 + 0x4158ec]
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffc0
cmp edx, 0xfffffffc
sete al
push eax
call fcn.00415f70
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x4158a1
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x4158a1
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x4158a1
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x4158ce
push 0x30b
push 0x48ddf0
call fcn.00414d30
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x317
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.00414d30
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41a9e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x48c4c4]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041a910
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41aa61
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x41aa27
mov edx, dword [ebp - 0x18]
push edx
jmp 0x41aa5b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00439b90
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fe53
mov esp, ebp
pop ebp
ret
Function at 0x41afe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
test esi, esi
jne 0x41aff8
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test esi, esi
jne 0x41b016
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x41b00d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41b00d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41b00d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edi, eax
push edi
push edx
call fcn.00419850
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x4778e0
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x42bd28
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42bd38
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x18], edi
mov edx, edi
cmp edi, ecx
jb 0x42bd78
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0x10]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42bd55
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42bde6
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x42bde0
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42bdb4
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42bdd8
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42bda0
test ecx, ecx
je 0x42be26
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42bdd8
cmp ecx, 1
jbe 0x42be26
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42bdd8
cmp ecx, 2
jbe 0x42be26
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42be26
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x42bd90
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042d3b0
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov edx, dword [edx + 0x10]
mov eax, dword [ecx + edx]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x100
jl 0x42bd24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x42bdf5
xor cl, 3
mov byte [eax + 5], cl
jmp 0x42bdf5
Function at 0x42d460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0xc], edi
mov edx, edi
cmp edi, ecx
jb 0x42d4a1
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42d47f
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42d50a
cmp dword [eax + 0xc], edi
jne 0x42d504
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42d4dc
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42d500
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42d4c8
test ecx, ecx
je 0x42d523
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42d500
cmp ecx, 1
jbe 0x42d523
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42d500
cmp ecx, 2
jbe 0x42d523
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42d523
mov ebx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x42d4b6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, ebx
call fcn.0042d3b0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x42d51c
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e900
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x43e9c6
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0xf
push 0x47a12c
push esi
mov ebx, eax
lea edi, [esi + 0x40]
call fcn.0042d460
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
mov dword [esp + 0x28], 4
call fcn.00427cf0
add dword [esi + 8], 0x10
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 8]
add esp, 0x10
test eax, eax
je 0x43e9b2
cmp eax, 1
jne 0x43e977
cmp dword [ecx - 0x10], 0
je 0x43e9b2
cmp eax, 3
jne 0x43e98a
fld qword [ecx - 0x10]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x43e9b2
push 0
push ebx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0
push 0
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
push 1
push 0x43e8e0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
add dword [esi + 8], 0xfffffff0
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esi + 0xc]
add eax, 0x20
cmp eax, dword [esi + 8]
jae 0x43e9de
cmp eax, 0x477790
je 0x43e9de
cmp dword [eax + 8], 0
jg 0x43e9e5
mov eax, dword [0x48edb0]
jmp 0x43e9f3
push 0
push 3
mov eax, esi
call fcn.0041c2e0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x48edc4], 0
jne 0x43eb1e
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call esi
push 0xfffffffffffffff5
mov ebx, eax
call esi
push 0xfffffffffffffff4
mov edi, eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0xb7
push ebx
mov dword [esp + 0x14], eax
call esi
push 3
push edi
call esi
push 0x4000
push edi
call fcn.004571de
push 0x476e2c
push eax
call fcn.004578d8
push 0
push 4
push 0
push eax
mov dword [0x48edc4], eax
call fcn.004566c0
mov esi, dword [0x48edc4]
mov ecx, 8
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
call fcn.00452ed0
lea edi, [eax + 0x20]
push 0x4000
mov ecx, 8
lea esi, [esp + 0x34]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004571de
push 0x4788e4
push eax
call fcn.004578d8
push 0
push 4
push 0
push eax
mov dword [0x48edc8], eax
call fcn.004566c0
mov esi, dword [0x48edc8]
mov ecx, 8
lea edi, [esp + 0x50]
add esp, 0x40
rep movsd dword es:[edi], dword [esi]
call fcn.00452ed0
mov edx, dword [esp + 0xc]
mov edi, eax
push 0x4000
mov ecx, 8
lea esi, [esp + 0x14]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004571de
push 0x476e2c
push eax
call fcn.004578d8
push 0
push 4
push 0
push eax
mov dword [0x48edcc], eax
call fcn.004566c0
mov esi, dword [0x48edcc]
mov ecx, 8
lea edi, [esp + 0x30]
add esp, 0x20
rep movsd dword es:[edi], dword [esi]
call fcn.00452ed0
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret