joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x491153
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x491145
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x491164
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.004985a0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x491190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x4911cb
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4911c6
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x4911f8
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4911dc
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.004985a0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x49120c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x491203
cmp byte [esi + 8], 0
je 0x491203
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x493aa5
Capabilities:
Encode data using xor

Disassembly:
mov byte [edi + 0x63], bl
in eax, dx
xchg esi, eax
enter 0xffffffffffffd56a, 0xfffffffffffffffc
invalid
Function at 0x4a93a0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0049c865
mov dword [ebp - 0x14], eax
cmp dword [0x4db328], esi
jne 0x4a9493
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a9420
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a9573
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a9573
push 0x4bcdf8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a9573
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4db328], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4db32c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4db330], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4db338], eax
test eax, eax
je 0x4a9490
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4db334], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a94b8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a94ab
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a94cd
push 4
pop eax
jmp 0x4a9575
cmp dword [ebp - 0x14], esi
je 0x4a94cd
push dword [0x4db328]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a94b2
mov eax, dword [0x4db334]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a952b
cmp dword [0x4db338], edi
je 0x4a952b
push eax
call ebx
push dword [0x4db338]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a952b
test eax, eax
je 0x4a952b
call ecx
test eax, eax
je 0x4a9520
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4a9520
test byte [ebp - 8], 1
jne 0x4a952b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a955b
mov eax, dword [0x4db32c]
cmp eax, edi
je 0x4a9558
push eax
call ebx
test eax, eax
je 0x4a9558
call eax
mov esi, eax
test esi, esi
je 0x4a9558
mov eax, dword [0x4db330]
cmp eax, edi
je 0x4a9558
push eax
call ebx
test eax, eax
je 0x4a9558
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4db328]
call ebx
test eax, eax
je 0x4a9573
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a9575
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47a004]
jne 0x40100a
repz ret
jmp fcn.0040170c

Function at 0x404c0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47a004]
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.00402b8c
and dword [ebp - 0x14], 0
cmp dword [0x47c4f0], 0
mov dword [ebp - 0x18], eax
jne 0x404cbe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404d66
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404d66
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47c4f0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47c4f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47c4f8], eax
call edi
push eax
call esi
mov dword [0x47c500], eax
test eax, eax
je 0x404cbe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47c4fc], eax
mov eax, dword [0x47c4fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404d17
cmp dword [0x47c500], ecx
je 0x404d17
push eax
call esi
push dword [0x47c500]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404d17
test ebx, ebx
je 0x404d17
call edi
test eax, eax
je 0x404d0e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404d0e
test byte [ebp - 8], 1
jne 0x404d17
or dword [ebp + 0x10], 0x200000
jmp 0x404d4a
mov eax, dword [0x47c4f4]
cmp eax, dword [ebp - 0x18]
je 0x404d4a
push eax
call esi
test eax, eax
je 0x404d4a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404d4a
mov eax, dword [0x47c4f8]
cmp eax, dword [ebp - 0x18]
je 0x404d4a
push eax
call esi
test eax, eax
je 0x404d4a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47c4f0]
call esi
test eax, eax
je 0x404d66
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404d68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x476857
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x47dda4]
push dword [0x47dbf0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x4768e6
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x47a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80c], eax
cmp ebx, 0x19f
jne 0x476912
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x47695a
push esi
and dword [ebp - 0x808], 0
lea esi, [ebp - 0x808]
call fcn.004768db
mov eax, dword [ebp - 0x80c]
mov cl, byte [ebp - 0x808]
xor byte [eax + edi], cl
cmp ebx, 0xf
jne 0x476954
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc edi
cmp edi, ebx
jl 0x47691a
pop esi
pop edi
cmp ebx, 0x2d
jne 0x476971
or dword [0x47dedc], 0xffffffff
mov dword [0x47ded8], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret
Function at 0x1003e469
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x100feaf4], 0x95d
call fcn.10001083
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x1003e52e
jmp 0x1003e5d6
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
je 0x1003e558
jmp 0x1003e56c
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.1003f151
lea ecx, [0x1003e5e0]
mov dword [0x100feaf4], 0x210b
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0x12b000
mov edx, dword [0x100feae0]
mov dword [esp + 0x8c], edx
mov edx, dword [0x100feae4]
mov dword [esp + 0x84], edx
mov edx, dword [0x100feae8]
mov dword [esp + 0x40], edx
mov edx, dword [0x100feaec]
mov dword [esp + 0x38], edx
mov edx, dword [0x100feaf0]
mov dword [esp + 0x5c], edx
mov dword [0x100feaf8], 0x198c
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
jmp 0x1003e49b
lea eax, [esp + 0x38]
mov dword [0x100feaf4], 0x1c87
mov dword [esp + 0x14], eax
call fcn.1003ef47
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x1003e4b3
jmp 0x1003e5ce
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1003e583
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x20], eax
jmp 0x1003e49b
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x7c], ecx
mov dword [0x100feaf8], 0x76c
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1003e64b
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x1003e64b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x100feaf4], 0xa46
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1004b569]
mov dh, byte [eax + 0x1004b53a]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x1003e66d
lea eax, [ebp - 0x24]
mov dword [0x100feaf4], 0x99c
mov dword [ebp - 0x34], eax
call fcn.1003e249
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1003ec58
mov ecx, dword [0x100feaf4]
add ecx, 0xffffe9ea
mov dword [0x100feaf4], ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1003e78f
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1003e9d3
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [0x100feaf4], 0xad8
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x100feaf4]
mov esi, ecx
add esi, 0xfffff066
mov dword [0x100feaf4], esi
mov esi, dword [ebp - 0x3c]
mov dword [edx + 0x14], esi
add ecx, 0xffffccfd
mov dword [0x100feaf8], ecx
add esi, 0x21ab
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], eax
je 0x1003e786
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1003e797
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x100feafc], 0
mov dword [0x100feb00], 0
mov dword [0x100feb0c], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1003e92e
xor eax, eax
mov ecx, dword [0x100feaf4]
add ecx, 0xffffedc3
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
jmp 0x1003e821
mov eax, 0x6dc
mov ecx, dword [0x100feafc]
mov edx, dword [0x100feb00]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
mov edi, 0x100
mov dword [0x100feaf8], 0x15cf
mov ebx, esi
add ebx, 1
add edx, 1
mov dword [ebp - 0x34], eax
mov eax, edx
cdq
idiv edi
mov dword [0x100feafc], edx
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x38]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x100feb00], edx
mov ecx, dword [ebp - 0x34]
mov dword [0x100feaf4], ecx
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x3c]
mov cl, byte [ecx + edi]
mov byte [0x100feb04], cl
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x1c]
mov byte [edx + edi], cl
mov dword [0x100feaf8], 0x1471
mov cl, byte [0x100feb04]
mov edx, dword [0x100feb00]
mov edi, dword [ebp - 0x1c]
mov byte [edi + edx], cl
mov edx, dword [0x100feafc]
movzx edx, byte [edi + edx]
mov ecx, dword [0x100feb00]
movzx ecx, byte [edi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x100feb0c], ecx
mov dword [0x100feaf4], 0x2254
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x14]
mov ch, byte [edx + esi]
mov dl, cl
add dl, byte [0x100feb11]
mov byte [0x100feb10], dl
mov byte [0x100feb11], ch
mov byte [0x100feb12], cl
xor ch, cl
mov dword [0x100feaf8], 0x1050
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov dword [0x100feaf4], 0x1919
mov esi, dword [ebp - 0x10]
cmp ebx, esi
mov dword [ebp - 0x30], ebx
jne 0x1003e801
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1003ede0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1003e2ff
xor ecx, ecx
mov edx, eax
mov esi, dword [0x100feaf4]
mov edi, dword [eax + 0x3c]
mov ebx, edx
add ebx, edi
mov edi, dword [eax + edi]
cmp edi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
je 0x1003ee25
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffff104
mov dword [0x100feaf8], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
je 0x1003ef3c
jmp 0x1003ee8e
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], eax
jb 0x1003eea0
jmp 0x1003ef3c
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x1003ef0b
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x1003eeba
mov al, byte [ebp - 0x52]
test al, 1
jne 0x1003ef17
jmp 0x1003ee65
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x100feaf4], 0x1ddf
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1003ef47
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x100feaf8], 0x238c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1003ef85
mov eax, dword [ebp - 0x14]
add esp, 0x20
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1003efb2
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1003ef85
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1003f039
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1003f039
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1003f039
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1003f039
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1003f039
mov eax, dword [0x100feaf4]
add eax, 0x11e7
mov dword [0x100feaf8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1003f039
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x14], eax
je 0x1003ef7d
xor eax, eax
mov dword [0x100feaf4], 0xb83
mov dword [ebp - 0x14], eax
jmp 0x1003ef7d
Function at 0x1003f151
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x100feaf4], 0x18a6
mov dword [0x100feaf8], 0x862
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1003f1a0
xor eax, eax
mov dword [0x100feaf8], 0x5da
mov dword [ebp - 0x13c], eax
jmp 0x1003f1ff
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, ecx, 0xe0
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, ecx
add esi, 1
imul ecx, ecx, 0xe0
add edx, ecx
add edx, 0x64
mov ecx, dword [edi]
movzx edx, word [edx]
xor edx, ecx
add edx, eax
cmp esi, 0x1b1
mov eax, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x138], eax
je 0x1003f18c
jmp 0x1003f1a0
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax + 0x1004b569]
mov dl, byte [eax + 0x1004b53a]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x13c], eax
jne 0x1003f1ff
lea eax, [ebp - 0x12c]
mov dword [0x100feaf4], 4
mov dword [ebp - 0x144], eax
call fcn.1003e249
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.1003ec58
mov ecx, eax
mov dword [0x100feb14], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0xe0
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0xe0
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xe0
add edx, ebx
add edx, 0x64
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.1003eb32
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x1b1
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x1003f29c
lea eax, [0x1004b548]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [0x100feaf4]
add esi, 0xffffdbf8
mov dword [0x100feaf4], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.1003f493
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.1003e797
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x81711
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x12b000
mov dword [0x100feaf4], 0x1951
mov ecx, dword [ebp - 0x148]
add ecx, 0x114eb
mov dword [edx + 8], ecx
mov dword [0x100feaf8], 0x1b96
mov dword [edx + 0xc], 0x1f40
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret