joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018c0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41e29c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x14], ebx
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401919
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x401921
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x401932
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x401947
push 0x41c838
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], esi
call fcn.0040a4ea
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405b0e
mov esp, ebp
pop ebp
ret

Function at 0x401960
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x41e29c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004018c0
test eax, eax
jne 0x4019f2
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4019f2
push 0x38
lea ecx, [ebp - 0x140]
push 0
push ecx
mov dword [ebp - 0x144], 0x3c
call fcn.00409090
add esp, 0xc
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
push eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x128], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x401a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b0e
mov esp, ebp
pop ebp
ret
push 0
call fcn.00406fbe
int3
Function at 0x404710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416d08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41e29c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x4048bf
cmp byte [ebx + 0x49], 0
je 0x4048bf
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4048b3
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x404786
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4047a3
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4047da
dec eax
je 0x4047de
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x4048ba
call fcn.00402b50
xor al, al
jmp 0x4048c1
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4047ee
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40481b
cmp edi, 0x10
jae 0x4047fd
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00406b8f
add esp, 0x10
cmp esi, eax
jne 0x4048ab
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4048b7
test esi, esi
jne 0x404797
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4048dd
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4048dd
cmp edi, esi
jae 0x404894
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405060
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x404797
mov ecx, eax
cmp edi, 0x10
jae 0x404870
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40488b
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x404791
test esi, esi
jne 0x404866
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4048a3
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x404791
lea ecx, [ebp - 0x2c]
call fcn.00402b50
xor al, al
jmp 0x4048c1
lea ecx, [ebp - 0x2c]
call fcn.00402b50
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405b0e
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00411faa
int3
Function at 0x404e60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416c7b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41e29c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004120fe
push 4
mov dword [ebp - 4], 0
call fcn.00407026
mov edi, eax
add esp, 4
test edi, edi
je 0x404ee0
call fcn.00411ef9
mov dword [edi], eax
call fcn.00411cb8
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004120bf
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404ed6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004120e7
jmp 0x404ee2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405b0e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e29c]
jne 0x405b18
repz ret
jmp fcn.0040723a
Function at 0x40c644
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e29c]
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.00409b73
and dword [ebp - 0x14], 0
cmp dword [0x4204e4], 0
mov dword [ebp - 0x18], eax
jne 0x40c6f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c79f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c79f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4204e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4204e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4204ec], eax
call edi
push eax
call esi
mov dword [0x4204f4], eax
test eax, eax
je 0x40c6f7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4204f0], eax
mov eax, dword [0x4204f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c750
cmp dword [0x4204f4], ecx
je 0x40c750
push eax
call esi
push dword [0x4204f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c750
test ebx, ebx
je 0x40c750
call edi
test eax, eax
je 0x40c747
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c747
test byte [ebp - 8], 1
jne 0x40c750
or dword [ebp + 0x10], 0x200000
jmp 0x40c783
mov eax, dword [0x4204e8]
cmp eax, dword [ebp - 0x18]
je 0x40c783
push eax
call esi
test eax, eax
je 0x40c783
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c783
mov eax, dword [0x4204ec]
cmp eax, dword [ebp - 0x18]
je 0x40c783
push eax
call esi
test eax, eax
je 0x40c783
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4204e4]
call esi
test eax, eax
je 0x40c79f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c7a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405b0e
leave
ret
Function at 0x4ade3f
Capabilities:
Get graphical window text

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

Function at 0x4af531
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 0x4af573
call fcn.004b4feb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4af573
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4af56a
xor eax, eax
jmp 0x4af57b
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004af581
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b551b
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 0x4b5549
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4b5567
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b5481
jmp 0x4b5567
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b5567
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b5481
test edi, edi
mov eax, edi
jne 0x4b5551
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x438c99
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
add edx, 0x98e052e4
sub edx, eax
call fcn.00438ccd
and edx, eax
dec edx
xor dword [edi], ecx
and eax, edx
sub eax, edx
inc edi
or eax, edx
add eax, edx
add eax, 0x289ed442
cmp edi, ebx
jne fcn.00438c99
mov edx, eax
sub edx, eax
ret
Function at 0x10004900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
push ebx
push esi
push edi
test eax, eax
je 0x10004a10
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004a10
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x10004a10
cmp dword [ecx], 0x4550
jne 0x10004a10
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
xor eax, eax
cmp edi, 0xffffffff
cmove edi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1000495d
mov eax, dword [ecx + 0x50]
mov dword [ebp - 8], eax
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004962
sub ecx, esi
mov dword [ebp - 4], edx
xor esi, esi
lea eax, [ecx + edx]
mov dword [ebp - 0x10], eax
cmp edx, eax
jae 0x100049c9
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov eax, edx
cmp byte [edx], 0x3f
jne 0x10004999
lea edx, [eax + 1]
mov dword [ebp - 4], edx
cmp byte [edx], 0x3f
jne 0x10004993
inc edx
xor bl, bl
xor al, al
jmp 0x100049aa
push 0x10
lea eax, [ebp - 4]
mov bl, 1
push eax
push edx
call edi
mov edx, dword [ebp - 4]
add esp, 0xc
mov byte [esi + 0x1019f460], al
lea ecx, [esi + 1]
inc edx
mov byte [esi + 0x1019f660], bl
mov eax, edx
mov dword [ebp - 4], edx
mov esi, ecx
cmp edx, dword [ebp - 0x10]
jb 0x10004982
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
sub ebx, esi
cmp edi, ebx
jae 0x10004a10
mov edx, dword [ebp - 0xc]
add edx, edi
xor eax, eax
test esi, esi
je 0x100049f9
nop dword [eax]
mov cl, byte [eax + 0x1019f460]
cmp cl, byte [edx + eax]
je 0x100049f4
cmp byte [eax + 0x1019f660], 1
je 0x10004a0a
inc eax
cmp eax, esi
jb 0x100049e0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, edi
add eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc edi
inc edx
cmp edi, ebx
jb 0x100049d7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004a20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10004a53
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x10004a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10004a53
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x1001115b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1001116a
pop dword [ebp - 0x24]
mov eax, 0x9cb72c7d
sub eax, 0x8cb61b13
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xd2922883
add dword [ebp - 0x34], 0x7bc01cc8
mov dword [ebp - 0x30], 0x2836d5af
add dword [ebp - 0x30], 0x9fc7696
mov dword [ebp - 0x2c], 0xca3e2d8
sub dword [ebp - 0x2c], 0xc0579eaa
mov dword [ebp - 0x28], 0xec43f4cd
add dword [ebp - 0x28], 0x13bc0b33
lea eax, [ebp - 0x34]
push eax
mov eax, 0x8432ead9
add eax, 0x8bd2a633
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x48bead92
sub dword [ebp - 0x34], 0xd44c443c
mov dword [ebp - 0x30], 0xf9a6c54b
add dword [ebp - 0x30], 0x47c59c2a
mov dword [ebp - 0x2c], 0xb5c9eca2
add dword [ebp - 0x2c], 0xada57fca
mov dword [ebp - 0x28], 0x626a1f3a
add dword [ebp - 0x28], 0x9d95e0c6
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x19712775
add eax, 0xf69468cb
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x5e478
push 0
call eax
mov ecx, 0x4a48
mov ebx, eax
mov esi, 0x10069400
add esi, dword [ebp - 0x24]
mov edi, 0x671e91a7
sub dword [ebp - 0x14], eax
mov edx, dword [esi]
xor dword [ebp - 0x1c], edi
xor edx, edi
sub dword [ebp - 8], edx
mov dword [ebx], edx
add dword [ebp - 0x1c], edx
add ebx, 0x3b9d8ee3
add ebx, 0xc4627121
add esi, 4
loop 0x1001127a
add eax, 0x11bf3
mov ebx, eax
add eax, 0x2df1716e
sub eax, 0x2df17169
mov ecx, 0xaef1c6e
add ecx, 0x510e392
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10004620
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
xor ecx, ecx
xor edx, edx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov cl, byte [esi + 0x100]
mov dl, byte [esi + 0x101]
test ebp, ebp
je 0x1000466f
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x10004644
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x10004681
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov eax, 0x3020100
push esi
mov ecx, 0x40
mov esi, dword [esp + 0xc]
push edi
mov edx, esi
push ebp
mov dword [edx], eax
add edx, 4
add eax, 0x4040404
dec ecx
jne 0x10004695
xor ecx, ecx
xor edi, edi
mov ebp, dword [esp + 0x1c]
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor ebx, ebx
xor edx, edx
xor eax, eax
mov dl, byte [edi + esi]
mov al, byte [ebp + ecx]
add bl, al
inc ecx
add bl, dl
inc edi
mov al, byte [ebx + esi]
mov byte [edi + esi - 1], al
cmp dword [esp + 0x18], ecx
mov byte [ebx + esi], dl
jne 0x100046db
xor ecx, ecx
cmp edi, 0x100
jb 0x100046b8
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x10004f90
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x10004fdc
jle 0x10004fd7
cmp eax, 3
jg 0x10004fd7
push esi
mov esi, dword [ecx]
test esi, esi
je 0x10004fce
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x10004fbc
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.10021d82
mov eax, 1
ret 0x10

Function at 0x10005550
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x1000559c
jle 0x10005597
cmp eax, 3
jg 0x10005597
push esi
mov esi, dword [ecx]
test esi, esi
je 0x1000558e
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
sub ecx, eax
push edi
sub edx, eax
mov edi, dword [ecx + eax]
mov ebx, dword [eax]
xor edi, ebx
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x1000557c
pop edi
pop ebx
mov eax, 1
pop esi
ret 0x10
xor eax, eax
ret 0x10
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call fcn.10006440
mov eax, 1
ret 0x10
Function at 0x10005a70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 0x124]
sub eax, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
je 0x10005bb2
dec eax
je 0x10005ab6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 0xc
mov ecx, dword [esi + 0x20]
push esi
mov edi, ecx
lea eax, [esp + 0x20]
and ecx, 0x1f
mov ebx, 1
push 1
push eax
shr edi, 5
shl ebx, cl
call fcn.10005000
test eax, eax
mov ebp, dword [esp + 0x124]
je 0x10005af4
push esi
push 1
push ebp
call fcn.10005000
test eax, eax
je 0x10005af4
mov eax, 1
jmp 0x10005af6
xor eax, eax
mov ecx, dword [esp + 0x10]
lea edi, [esp + edi*4 + 0x1c]
cmp ecx, 1
mov dword [edi], ebx
je 0x10005b67
dec ecx
mov dword [esp + 0x10], ecx
test eax, eax
je 0x10005b54
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.10005380
test eax, eax
je 0x10005b54
push esi
push ebp
push ebp
push ebp
call fcn.10005380
test eax, eax
je 0x10005b54
mov ecx, dword [esp + 0x120]
push esi
push ebp
push ebp
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.100053f0
test eax, eax
je 0x10005b54
mov eax, 1
jmp 0x10005b56
xor eax, eax
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
xor edx, ebx
dec ecx
mov dword [edi], edx
mov dword [esp + 0x10], ecx
jne 0x10005b0a
test eax, eax
je 0x10005aa7
lea eax, [esp + 0x1c]
push esi
push eax
push ebp
push ebp
push ebp
call fcn.100053f0
test eax, eax
je 0x10005aa7
mov ecx, dword [esp + 0x120]
push esi
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.10021d82
test eax, eax
je 0x10005aa7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret 0xc
xor esi, esi
xor edx, edx
test edi, edi
mov edi, dword [esp + 0x124]
je 0x10005c09
mov ebx, dword [esp + 0x120]
mov eax, edx
shr eax, 5
mov ecx, edx
mov ebx, dword [ebx + eax*4]
and ecx, 0x1f
shr ebx, cl
mov ebp, dword [edi + eax*4]
and ebx, 1
xor esi, ebx
mov ebx, esi
not ebx
and ebx, 1
shl ebx, cl
not ebx
and ebx, ebp
mov ebp, esi
and ebp, 1
shl ebp, cl
or ebx, ebp
inc edx
mov dword [edi + eax*4], ebx
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x10005bc1
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + ebx*4 - 4]
xor eax, eax
test esi, esi
sete al
shl edx, cl
shr edx, cl
mov dword [edi + ebx*4 - 4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc

Function at 0x10006e30
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
sub eax, 0x182
je 0x10006e64
sub eax, 0x64
je 0x10006e64
sub eax, 0x64
cmp word [esp + 0x20], 6
jb 0x10006e64
push 0xc
call fcn.1000cc10
add esp, 0x24
ret
push 4
call fcn.1000cc10
add esp, 0x24
ret
Function at 0x1000c160
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
sub esp, 0x51c
lea edx, [eax + 0x1f]
push ebx
push ebp
lea ebp, [ecx + 0x1f]
push esi
shr edx, 5
shr ebp, 5
cmp edx, ebp
mov ebx, edx
ja 0x1000c185
mov ebx, ebp
mov ecx, dword [esp + 0x53c]
xor esi, esi
xor eax, eax
cmp ecx, esi
setne al
cmp ebx, esi
mov dword [esp + 0xc], eax
je 0x1000c38c
cmp ebx, 0x40
ja 0x1000c38c
lea eax, [esp + 0x324]
mov ecx, ebx
mov dword [eax - 0x204], esi
mov dword [eax], esi
mov dword [eax - 0x104], esi
mov dword [eax + 0x100], esi
add eax, 4
dec ecx
jne 0x1000c1b3
mov ecx, dword [esp + 0x120]
mov esi, dword [esp + 0x52c]
xor ecx, 1
push edi
mov dword [esp + 0x124], ecx
mov ecx, edx
lea edi, [esp + 0x224]
push edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x53c]
lea ecx, [ebp*4]
mov dword [esp + 0x24], ecx
mov eax, ecx
lea edi, [esp + 0x42c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x534]
push ecx
call fcn.10021d82
push ebp
mov edx, dword [esp + 0x53c]
mov dword [esp + 0x328], eax
push edx
call fcn.10021d82
xor edx, edx
mov dword [esp + 0x528], eax
mov eax, edx
mov dword [esp + 0x18], edx
shl eax, 7
add eax, edx
shl eax, 2
mov ecx, eax
neg ecx
mov esi, dword [esp + ecx + 0x528]
test esi, esi
je 0x1000c32e
lea esi, [esp + eax + 0x124]
lea ebp, [esp + ecx + 0x328]
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x200]
mov ecx, dword [ebp + 0x200]
cmp eax, ecx
jb 0x1000c320
sub eax, ecx
push ebx
mov edi, eax
lea eax, [esp + 0x28]
push eax
lea eax, [ebp + 0x100]
push edi
push eax
call fcn.1000aa20
lea edx, [esi + 0x100]
lea ecx, [esp + 0x24]
mov eax, edx
mov dword [esp + 0x14], ebx
mov ebp, dword [ecx]
add ecx, 4
xor dword [eax], ebp
mov ebp, dword [esp + 0x14]
add eax, 4
dec ebp
mov dword [esp + 0x14], ebp
jne 0x1000c2b2
push ebx
push edx
call fcn.10021d82
mov dword [esi + 0x200], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c304
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ebx
push ecx
push edi
push ebp
call fcn.1000aa20
lea ecx, [esp + 0x24]
mov eax, esi
sub ecx, esi
mov edx, ebx
mov edi, dword [ecx + eax]
xor dword [eax], edi
add eax, 4
dec edx
jne 0x1000c2f7
jmp 0x1000c308
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 0x200]
mov ecx, dword [ebp + 0x200]
cmp eax, ecx
jae 0x1000c28b
mov edx, dword [esp + 0x18]
mov eax, 1
sub eax, edx
mov edx, eax
jmp 0x1000c244
mov edi, dword [esp + 0x544]
test edi, edi
je 0x1000c34b
mov eax, edx
mov ecx, ebx
shl eax, 7
add eax, edx
lea esi, [esp + eax*4 + 0x224]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000c37a
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x540]
mov eax, edx
shl eax, 7
add eax, edx
mov edx, ecx
shr ecx, 2
lea esi, [esp + eax*4 + 0x124]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x51c
ret 0x18
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x51c
ret 0x18