joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x86d38c]
xor edx, edx
cmp eax, edx
jne 0x490346
xor eax, eax
mov byte [eax + 0x86d28c], al
inc eax
cmp eax, 0x100
jl 0x49032e
mov dword [0x86d38c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x86d28c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4903d7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4903aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x490378
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x490450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4904a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49048a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x496e30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c6abe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00497750
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x7fa9cc
call fcn.004b695c
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x496ec3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b695c
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x496ebc
push 0
mov ecx, eax
call fcn.0048df60
mov dword [esi + 0xc], eax
jmp 0x496ec5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x496ec5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4b8fe9
Capabilities:
Get graphical window text

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

Function at 0x4ba6da
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 0x4ba71c
call fcn.004c0622
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ba71c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ba713
xor eax, eax
jmp 0x4ba724
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ba72a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c0b52
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 0x4c0b80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c0b9e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c0ab8
jmp 0x4c0b9e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c0b9e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c0ab8
test edi, edi
mov eax, edi
jne 0x4c0b88
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001a59
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x10030b1
call fcn.01002ae0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.01001739
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x14]
mov esi, 0x1006108
push 0x800
push esi
call fcn.01001959
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push eax
mov dword [ebp - 0x1c], eax
call edi
push eax
mov dword [ebp - 0x10], eax
call fcn.01001597
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x1001afa
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1001ae6
mov eax, dword [0x1004004]
cmp eax, 0x1004004
je 0x1001ae6
test byte [eax + 0x1c], 8
je 0x1001ae6
cmp byte [eax + 0x19], bl
jne 0x1001ae6
push 0x100115c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010016a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010017b2
mov eax, ebx
call fcn.01002b53
ret
push ebx
push ebx
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp - 0x1c]
call edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [ebp - 0x10]
push ebx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [edi - 1]
push ecx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp + 8], bl
je 0x1001b5e
push 0xffffffffffffffff
call dword [sym.imp.wbemcomn.dll_class_CMemoryLog____stdcall_GetMemLogObject_void_]
mov ecx, eax
call dword [sym.imp.wbemcomn.dll_public:_void___thiscall_CMemoryLog::Write_long_int_]
mov eax, dword [0x1004004]
cmp eax, 0x1004004
je 0x1001b89
test byte [eax + 0x1c], 1
je 0x1001b89
cmp byte [eax + 0x19], 2
jb 0x1001b89
push esi
push 0x100115c
push 0xb
jmp 0x1001b7e
mov eax, dword [0x1004004]
cmp eax, 0x1004004
je 0x1001b89
test byte [eax + 0x1c], 1
je 0x1001b89
cmp byte [eax + 0x19], 5
jb 0x1001b89
push esi
push 0x100115c
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010016cc
push dword [ebp - 0x18]
call fcn.010015a7
pop ecx
mov ebx, edi
jmp 0x1001ae6
Function at 0x1001cc4
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, 0xc8
mov dword [ebp - 8], eax
mov esi, 0x80041006
lea edi, [ebx + 1]
test eax, eax
jne 0x1001cfd
push 0xca
push ebx
push edi
push esi
mov dword [ebp - 4], esi
call fcn.01001bbb
and dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
jl 0x1001dce
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1001d34
push 0xca
push ebx
push edi
push esi
mov dword [ebp - 4], esi
call fcn.01001bbb
jmp 0x1001dce
cmp dword [ebp - 0xc], 3
je 0x1001d54
push 0xd5
push 1
mov dword [ebp - 4], 0x80041008
call fcn.01001a59
pop ecx
pop ecx
call fcn.01001b9e
cmp dword [ebp - 4], 0
jl 0x1001dce
call fcn.01002fe9
lea eax, [ebp - 8]
push eax
push 0x10013a4
push 4
xor esi, esi
push esi
push 0x1001454
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x1001dbb
push 0x11
push 1
call dword [sym.imp.wbemcomn.dll_int___stdcall_EnablePrivilege_unsigned_long_int__long_int_]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push esi
push dword [edx + 8]
push eax
call dword [ecx + 0xc]
cmp eax, esi
mov dword [ebp - 4], eax
jge 0x1001db0
push 0xca
push ebx
push edi
push eax
call fcn.01001bbb
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1001dc8
push 0xca
push ebx
push edi
push eax
call fcn.01001bbb
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001ddb
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
mov esi, 0x80041006
test edi, edi
jne 0x1001e0f
push 0xcb
push 0xc8
push 0xc9
push esi
mov ebx, esi
call fcn.01001bbb
and dword [ebp - 8], 0
test ebx, ebx
jl 0x1001f85
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x1001e48
push 0xcb
push 0xc8
push 0xc9
push esi
mov ebx, esi
call fcn.01001bbb
jmp 0x1001f85
cmp dword [ebp - 8], 4
je 0x1001e66
push 0xd5
push 1
mov ebx, 0x80041008
call fcn.01001a59
pop ecx
pop ecx
call fcn.01001b9e
test ebx, ebx
jl 0x1001f85
mov esi, dword [edi + 0xc]
mov ecx, 0x10011c0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001e9e
test dx, dx
je 0x1001e9a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001e9e
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001e78
xor eax, eax
jmp 0x1001ea3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1001ef5
mov ecx, 0x10011bc
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001ed4
test dx, dx
je 0x1001ed0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001ed4
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001eae
xor eax, eax
jmp 0x1001ed9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1001ef5
push 0xd5
push 1
mov ebx, 0x80041008
call fcn.01001a59
pop ecx
pop ecx
call fcn.01001b9e
test ebx, ebx
jl 0x1001f85
mov eax, dword [edi + 0xc]
movzx esi, word [eax]
sub esi, 0x30
call fcn.01002fe9
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x10013a4
push 4
push 0
push 0x1001454
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
jl 0x1001f6a
push 0x12
push 1
call dword [sym.imp.wbemcomn.dll_int___stdcall_EnablePrivilege_unsigned_long_int__long_int_]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push dword [edi + 8]
push eax
call dword [ecx + 0x10]
mov ebx, eax
test ebx, ebx
jge 0x1001f5f
push 0xcb
push 0xc8
push 0xc9
push ebx
call fcn.01001bbb
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1001f7f
push 0xcb
push 0xc8
push 0xc9
push ebx
call fcn.01001bbb
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1001f91
Capabilities:
Create process on windows

Disassembly:
push 0xe0
mov eax, 0x10030dc
call fcn.01002b18
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0xec]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x40
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xc0], 0x80
call dword [sym.imp.wbemcomn.dll_unsigned_short_int____stdcall_GetWMIADAPCmdLine_int_]
mov edi, eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], esi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x1002036
push 0x10011c4
push 0x40
lea eax, [ebp - 0x90]
push eax
call fcn.010018ea
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xec]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
lea eax, [ebp - 0x90]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1002036
push dword [ebp - 0xa4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xa8]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.01001880
call fcn.01002b6c
ret
Function at 0x1002ab1
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003160
call fcn.01002d14
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, 0x1007478
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10028c6
cmp eax, esi
jne 0x10028b9
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10028c9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10028a0
xor esi, esi
inc esi
mov eax, dword [0x1007474]
cmp eax, esi
jne 0x10028dc
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002917
mov eax, dword [0x1007474]
test eax, eax
jne 0x1002911
mov dword [0x1007474], esi
push 0x100112c
push 0x1001120
call fcn.0100281d
pop ecx
pop ecx
test eax, eax
je 0x1002917
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10029e1
mov dword [0x100712c], esi
mov eax, dword [0x1007474]
cmp eax, esi
jne 0x100293b
push 0x100111c
push 0x1001114
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1007474], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002948
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100747c], ebx
je 0x1002969
push 0x100747c
call fcn.01002c89
pop ecx
test eax, eax
je 0x1002969
push ebx
push 2
push ebx
call dword [0x100747c]
push dword [0x1007114]
push dword [0x1007118]
push dword [0x1007110]
call fcn.010023ab
add esp, 0xc
mov dword [0x1007128], eax
cmp dword [0x100711c], ebx
jne 0x10029c7
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 [0x100712c], ebx
jne 0x10029d5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1007128]
call fcn.01002d59
ret
call fcn.01002e61
jmp 0x100287e
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a004]
jne 0x40100a
repz ret
jmp fcn.00401858

Function at 0x408aa5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406172
and dword [ebp - 4], 0
cmp dword [0x4600bc], 0
mov ebx, eax
jne 0x408b56
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c07
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c07
push eax
call fcn.00406100
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4600bc], eax
call esi
push eax
call fcn.00406100
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4600c0], eax
call esi
push eax
call fcn.00406100
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4600c4], eax
call esi
push eax
call fcn.00406100
pop ecx
mov dword [0x4600cc], eax
test eax, eax
je 0x408b56
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406100
pop ecx
mov dword [0x4600c8], eax
mov eax, dword [0x4600c8]
cmp eax, ebx
je 0x408bae
cmp dword [0x4600cc], ebx
je 0x408bae
push eax
call fcn.0040617b
push dword [0x4600cc]
mov esi, eax
call fcn.0040617b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bae
test edi, edi
je 0x408bae
call esi
test eax, eax
je 0x408ba5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408ba5
test byte [ebp - 0xc], 1
jne 0x408bae
or dword [ebp + 0x10], 0x200000
jmp 0x408be7
mov eax, dword [0x4600c0]
cmp eax, ebx
je 0x408be7
push eax
call fcn.0040617b
pop ecx
test eax, eax
je 0x408be7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408be7
mov eax, dword [0x4600c4]
cmp eax, ebx
je 0x408be7
push eax
call fcn.0040617b
pop ecx
test eax, eax
je 0x408be7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4600bc]
call fcn.0040617b
pop ecx
test eax, eax
je 0x408c07
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c09
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b962
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [0x23778f4], 0x930
jne 0x40b98a
push str.hidipezilac
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x23778f4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x2377610], eax
jne 0x40b9bc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
lea eax, [ebp - 0x1c]
push eax
push str.receyodat
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
leave
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40de38
nop
mov ecx, 0x22ed3935
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x71211c2e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402400
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0040d320
add esp, 0xc
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
je 0x4024e6
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
lea edi, [ebp - 0x224]
xor al, al
mov ecx, 0x208
rep stosb byte es:[edi], al
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x2c]
shr ecx, 1
add ecx, 1
cmp ecx, 0x103
jbe 0x40247e
mov dword [ebp - 0x10], 0x103
jmp 0x40248d
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x2c]
shr eax, 1
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, eax
call fcn.00402e00
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], 0x613d6c6b
jne 0x4024d9
cmp dword [ebp - 0x18], 0xf5e5
jne 0x4024d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
jmp 0x4024e8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
jmp 0x402440
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4024f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402517
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x402517
xor eax, eax
jmp 0x402647
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x4550
je 0x402535
xor eax, eax
jmp 0x402647
mov eax, dword [ebp - 0x18]
add eax, 0x18
mov dword [ebp - 0x20], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0x60]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x40259d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x18]
jae 0x4025de
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.00402f00
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp + 0xc]
jne 0x4025dc
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp + 0x10]
jne 0x4025dc
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
mov dword [ebp - 0x1c], ecx
jmp 0x4025de
jmp 0x402582
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x18]
jne 0x4025ed
xor eax, eax
jmp 0x402647
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x64]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004023d0
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x402644
cmp dword [ebp + 0x14], 0
je 0x402644
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret