joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ef0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [str.V_6]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x118], edi
mov byte [ebp - 0x108], 0
call fcn.00409000
mov ecx, dword [edi]
xor eax, eax
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], ecx
cmp ecx, dword [edi + 4]
je 0x4050ec
push ebx
jmp 0x404f5c
mov ecx, dword [ebp - 0x110]
mov esi, dword [ebp - 0x114]
mov ebx, dword [ecx]
push esi
push 0x41b40c
push 0x422ab8
call fcn.004038b0
add esp, 8
mov ecx, eax
call fcn.00404140
push str._:_n__PID:
push eax
call fcn.004038b0
inc esi
add esp, 8
mov dword [ebp - 0x114], esi
test eax, eax
jne 0x404f95
xor ecx, ecx
jmp 0x404f9c
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
and edx, 0xfffff3ff
or edx, 0x200
mov dword [ecx + 0x14], edx
push ebx
mov ecx, eax
call fcn.00404140
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00404330
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x404fe6
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x404fe6
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x405007
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x404fff
or eax, 4
push 0
push eax
call fcn.00401510
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4050c7
push 0x104
lea edx, [ebp - 0x108]
push 0
push edx
call fcn.00409000
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameA
lea ecx, [ebp - 0x108]
push ecx
push str.__Path:
push 0x422ab8
call fcn.004038b0
add esp, 8
push eax
call fcn.004038b0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00404330
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x405099
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x405099
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4050ba
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x4050b2
or eax, 4
push 0
push eax
call fcn.00401510
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x118]
add eax, 4
mov dword [ebp - 0x110], eax
cmp eax, dword [edx + 4]
jne 0x404f50
mov eax, dword [ebp - 0x10c]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408f0f
mov esp, ebp
pop ebp
ret
Function at 0x405100
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41aa38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [str.V_6]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], ebx
call esi
mov edi, eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00406aa0
add esp, 8
call esi
mov esi, eax
push str.________
push 0x422ab8
sub esi, edi
call fcn.004038b0
push eax
call fcn.00404db0
push str.Finished_scan_in:
push 0x422ab8
call fcn.004038b0
add esp, 0x14
cmp eax, ebx
jne 0x405185
xor edx, edx
jmp 0x40518c
mov edx, dword [eax]
mov edx, dword [edx + 4]
add edx, eax
mov ecx, dword [edx + 0x14]
and ecx, 0xfffff3ff
or ecx, 0x200
push str._milliseconds
mov dword [edx + 0x14], ecx
push esi
mov ecx, eax
call fcn.00404140
push eax
call fcn.004038b0
push eax
call fcn.00404db0
push str.SUMMARY:
push 0x422ab8
call fcn.004038b0
push eax
call fcn.00404db0
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x1c]
push str.___Total_Suspicious:
push 0x422ab8
sar esi, 2
call fcn.004038b0
add esp, 0x20
cmp eax, ebx
jne 0x4051ef
xor ecx, ecx
jmp 0x4051f6
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
and edx, 0xfffff3ff
or edx, 0x200
mov dword [ecx + 0x14], edx
push esi
mov ecx, eax
call fcn.00404140
push eax
call fcn.00404db0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
add esp, 4
sar eax, 2
test eax, eax
je 0x40523e
push str.___List_of_suspicious:
push 0x422ab8
call fcn.004038b0
push eax
call fcn.00404db0
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00404ef0
mov edx, dword [ebp + 8]
add esp, 4
cmp byte [edx + 0x1d], bl
je 0x40525e
lea eax, [ebp - 0x1c]
push eax
call fcn.00404e10
add esp, 4
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
sub esi, eax
sar esi, 2
cmp eax, ebx
je 0x405276
push eax
call fcn.00408415
add esp, 4
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 0x406770
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [str.V_6]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406826
lea eax, [ebp - 0x110]
push eax
push 4
lea ecx, [ebp - 0x10c]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40681f
mov eax, dword [ebp - 0x10c]
push 0x104
lea edx, [ebp - 0x108]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea ecx, [ebp - 0x108]
push ebx
push ecx
call fcn.004094de
add esp, 8
test eax, eax
jne 0x40681f
cmp byte [ebp + 0x10], al
jne 0x406805
push edi
lea edx, [ebp - 0x108]
push edx
push str._s___PID:__u__n
call fcn.004092a1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f0f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00408f0f
mov esp, ebp
pop ebp
ret
Function at 0x406aa0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00409530
mov eax, dword [str.V_6]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1010]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
mov dword [ebp - 0x1008], edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x406af3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f0f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1010]
shr eax, 2
xor ebx, ebx
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x406bea
lea esp, [esp]
mov edi, dword [ebp + ebx*4 - 0x1004]
test edi, edi
je 0x406bdb
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x1014], edi
jbe 0x406b49
movzx edx, byte [esi + 0x1e]
push edx
mov ecx, esi
call fcn.00401730
push eax
push edi
call fcn.00406770
add esp, 0xc
test al, al
je 0x406bd5
cmp byte [esi + 0x1e], 0
jne 0x406b93
push str.___Scanning_PID:
push 0x422ab8
call fcn.004038b0
add esp, 8
test eax, eax
jne 0x406b69
xor edx, edx
jmp 0x406b70
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
add edx, eax
mov ecx, dword [edx + 0x14]
and ecx, 0xfffff3ff
or ecx, 0x200
mov dword [edx + 0x14], ecx
push edi
mov ecx, eax
call fcn.00404140
push eax
call fcn.00404db0
add esp, 4
mov dword [esi + 0x20], edi
mov ecx, dword [esi + 0x24]
sub esp, 0x14
mov eax, esp
mov edx, edi
mov dword [eax], edx
mov edx, dword [esi + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x2c]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x30]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
call fcn.004069f0
add esp, 0x14
test al, al
je 0x406bd5
mov ecx, dword [ebp - 0x1008]
lea eax, [ebp - 0x1014]
push eax
call fcn.00406980
mov eax, dword [ebp - 0x100c]
inc ebx
cmp ebx, eax
jb 0x406b10
mov edi, dword [ebp - 0x1008]
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
sar eax, 2
pop ebx
call fcn.00408f0f
mov esp, ebp
pop ebp
ret

Function at 0x408f0f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [str.V_6]
jne 0x408f19
repz ret
jmp fcn.0040d3dc
Function at 0x41741b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [str.V_6]
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.0040ce79
and dword [ebp - 0x14], 0
cmp dword [0x423914], 0
mov dword [ebp - 0x18], eax
jne 0x4174ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417576
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417576
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x423914], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x423918], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42391c], eax
call edi
push eax
call esi
mov dword [0x423924], eax
test eax, eax
je 0x4174ce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423920], eax
mov eax, dword [0x423920]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417527
cmp dword [0x423924], ecx
je 0x417527
push eax
call esi
push dword [0x423924]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417527
test ebx, ebx
je 0x417527
call edi
test eax, eax
je 0x41751e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41751e
test byte [ebp - 8], 1
jne 0x417527
or dword [ebp + 0x10], 0x200000
jmp 0x41755a
mov eax, dword [0x423918]
cmp eax, dword [ebp - 0x18]
je 0x41755a
push eax
call esi
test eax, eax
je 0x41755a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41755a
mov eax, dword [0x42391c]
cmp eax, dword [ebp - 0x18]
je 0x41755a
push eax
call esi
test eax, eax
je 0x41755a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x423914]
call esi
test eax, eax
je 0x417576
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417578
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f0f
leave
ret
Function at 0x403a20
Capabilities:
Get disk information
Get disk size

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x403adc
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebp, eax
mov esi, 2
mov edx, ebp
mov ecx, esi
shr edx, cl
test dl, 1
je 0x403ac4
mov eax, dword [0x42075c]
mov ecx, dword [0x420760]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
lea edx, [esi + 0x41]
mov dword [esp + 0x10], ecx
push eax
mov word [esp + 0x10], dx
mov word [esp + 0x14], 0x5c
call edi
cmp eax, 5
je 0x403ac4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x403ac4
mov eax, dword [esp + 0x18]
test eax, eax
ja 0x403aaf
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x403ac4
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
mov word [esp + 0x14], 0
call fcn.004026b0
inc esi
cmp esi, 0x19
jle 0x403a48
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x20
ret 8
mov eax, 1
add esp, 0x20
ret 8
Function at 0x403cb0
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
sub esp, 0x20c
lea eax, [esp + 0xcc]
push ebp
mov ebp, ecx
push eax
push str..res
mov dword [esp + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x403ce3
xor eax, eax
pop ebp
add esp, 0x20c
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
test byte [esp + 0xdc], 0x10
jne 0x403e1f
lea edi, [esp + 0x108]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xc
jne 0x403e1f
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x108]
push ecx
push str._08X.res
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
jl 0x403e1f
lea eax, [esp + 0x108]
push 0x41fb84
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x18], esi
je 0x403e1f
push esi
push 1
lea ecx, [esp + 0x5c]
push 0x88
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x403e15
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jne 0x403e15
test eax, eax
jne 0x403db0
lea edx, [esp + 0x20]
push str.My_Computer
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea eax, [esp + 0x20]
push eax
push 0
push 0x14a
jmp 0x403dd4
lea edx, [esp + 0x22]
mov byte [esp + 0x21], 0x5c
push edx
push eax
mov byte [esp + 0x28], 0x5c
call fcn.00401c30
add esp, 8
lea eax, [esp + 0x20]
push eax
push 0
push 0x143
mov ecx, dword [ebp + 0xc0]
push ecx
call ebx
push 0x88
mov ebp, eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, 0x22
lea esi, [esp + 0x54]
mov edi, eax
push eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0xc0]
push ebp
push 0x151
push eax
call ebx
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xdc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403cec
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x20c
ret
Function at 0x4049b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415e48
push 0x413050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push 3
push ebx
push 1
push bind
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
je 0x404ac1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, 0xffffffff
jne 0x404a25
push eax
lea edx, [ebp - 0x10]
push edx
jmp 0x404ac7
cmp esi, 0x19000
jbe 0x404a38
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
jmp 0x404ac7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x404ac1
push 0
lea edx, [ebp - 0x1c]
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404a64
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
jmp 0x404ac7
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [0x4217c4]
test eax, eax
push 0xffffffffffffffff
je 0x404ac3
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e6e1
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push 4
pop eax
imul eax, eax, 0
movsx ecx, byte [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
push 4
pop eax
imul eax, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x100399d8]
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
push 4
pop eax
shl eax, 0
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + eax]
push 4
pop eax
shl eax, 0
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp + 8]
imul eax, dword [ecx + eax], 0x8088405
inc eax
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
push 4
pop eax
shl eax, 1
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x18
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
push 4
pop eax
shl eax, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x100399d8]
push 4
pop ecx
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
pop ebp
ret
Function at 0x10012a66
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x10012a76
xor eax, eax
jmp 0x10012bf9
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x10012bbf
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x100399d8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x100399d8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x100399d8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x100399d8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x100399d8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x100399d8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x100399d8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x100399d8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x10012a7f
cmp dword [ebp + 0x10], 0
je 0x10012bf3
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x100399d8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jne 0x10012bc5
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x100175e9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
inc eax
jmp 0x100178a9
in al, dx
push 1
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
push 0x17
push edi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.1000ac0e
add esp, 0x50
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x1c
mov dword [ebp - 0xc], eax
push eax
push 0x18
push edi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
push 0x50
push edi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
push 0x51
push edi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
push 0x1a
push edi
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.1000ac0e
add esp, 0x50
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x29
push eax
push 0x19
push edi
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x2a
push eax
push 0x54
push edi
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x2b
push eax
push 0x55
push edi
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x2c
push eax
push 0x56
push edi
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000ac0e
add esp, 0x50
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x2d
push eax
push 0x57
push edi
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x2e
push eax
push 0x52
push edi
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x2f
push eax
push 0x53
push edi
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x38
push eax
push 0x15
push edi
push 2
lea eax, [ebp - 0x14]
push eax
call fcn.1000ac0e
add esp, 0x50
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x3c
push eax
push 0x14
push edi
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x40
push eax
push 0x16
push edi
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x44
push eax
push 0x17
push edi
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.1000ac0e
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x48
push eax
push 0x50
push edi
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.1000ac0e
add esp, 0x50
or esi, eax
mov eax, dword [ebp + 8]
add eax, 0x4c
push eax
push 0x51
push edi
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.1000ac0e
add esp, 0x14
or eax, esi
je 0x100177d2
mov ebx, dword [ebp + 8]
push ebx
call fcn.10017413
push ebx
call fcn.1000435e
mov eax, dword [ebp - 4]
push eax
call fcn.1000435e
mov eax, dword [ebp - 8]
push eax
call fcn.1000435e
add esp, 0x10
jmp 0x10017559
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
jmp 0x100177e8