joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020770
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1018135c
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x101f7210]
xor eax, esp
mov dword [esp + 0xf0], eax
push esi
mov eax, dword [0x101f7210]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
push str.Zshield
lea ecx, [esp + 0x30]
call fcn.10002570
push str.WPFHelper
lea ecx, [esp + 0x90]
mov dword [esp + 0x10c], 0
call fcn.10002570
sub esp, 0x60
mov dword [esp + 0x168], 2
lea eax, [esp + 0x8c]
mov dword [esp + 0x88], esp
mov ecx, esp
push eax
call fcn.100026c0
sub esp, 0x60
mov byte [esp + 0x1c8], 3
lea eax, [esp + 0x14c]
mov ecx, esp
push eax
call fcn.100026c0
push 0x64
mov byte [esp + 0x1cc], 2
call fcn.100068a0
lea ecx, [esp + 0x8c]
call fcn.100024d0
lea ecx, [esp + 0x2c]
call fcn.100024d0
xorps xmm0, xmm0
mov dword [esp + 0xf4], 0
movq qword [esp + 0xec], xmm0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0x108], 4
lea ecx, [esp + 0xc]
push 6
push str.common
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.1001ec60
lea eax, [esp + 0xc]
mov byte [esp + 0x108], 5
push eax
lea ecx, [esp + 0xf0]
call fcn.10012930
mov byte [esp + 0x108], 4
cmp dword [esp + 0x20], 0x10
jb 0x100208d6
push dword [esp + 0xc]
call fcn.1002fb32
add esp, 4
cmp dword [0x102036cc], 0
je 0x100208ea
push 0x102036c8
call dword [0x10203730]
lea eax, [esp + 0xec]
mov ecx, 0x10203c54
push eax
call fcn.100129b0
cmp dword [0x102036cc], 0
je 0x10020910
push 0x102036c8
call dword [0x10203738]
sub esp, 0x18
mov ecx, esp
push 1
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x101cfc74
mov byte [ecx], 0
call fcn.1001ec60
call fcn.100057b0
add esp, 0x18
mov dword [esp + 0xc], str.WPFHelper.cpp:WPFInit__:Line_147
mov dword [esp + 0x10], 0
movq xmm0, qword [esp + 0xc]
push str._tInit.
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.10005540
mov esi, dword [esp + 0xfc]
add esp, 0x10
test esi, esi
je 0x1002098e
push dword [esp + 0xf0]
push esi
call fcn.1001dcb0
push esi
call fcn.1002fb32
add esp, 4
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret
Function at 0x10020da0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1018135c
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x101f7210]
xor eax, esp
mov dword [esp + 0xf0], eax
push esi
mov eax, dword [0x101f7210]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
push str.Zshield
lea ecx, [esp + 0x30]
call fcn.10002570
push str.NSIS_Ins
lea ecx, [esp + 0x90]
mov dword [esp + 0x10c], 0
call fcn.10002570
sub esp, 0x60
mov dword [esp + 0x168], 2
lea eax, [esp + 0x8c]
mov dword [esp + 0x88], esp
mov ecx, esp
push eax
call fcn.100026c0
sub esp, 0x60
mov byte [esp + 0x1c8], 3
lea eax, [esp + 0x14c]
mov ecx, esp
push eax
call fcn.100026c0
push 0x64
mov byte [esp + 0x1cc], 2
call fcn.100068a0
lea ecx, [esp + 0x8c]
call fcn.100024d0
lea ecx, [esp + 0x2c]
call fcn.100024d0
xorps xmm0, xmm0
mov dword [esp + 0xf4], 0
movq qword [esp + 0xec], xmm0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0x108], 4
lea ecx, [esp + 0xc]
push 6
push str.common
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.1001ec60
lea eax, [esp + 0xc]
mov byte [esp + 0x108], 5
push eax
lea ecx, [esp + 0xf0]
call fcn.10012930
mov byte [esp + 0x108], 4
cmp dword [esp + 0x20], 0x10
jb 0x10020f06
push dword [esp + 0xc]
call fcn.1002fb32
add esp, 4
cmp dword [0x102036cc], 0
je 0x10020f1a
push 0x102036c8
call dword [0x10203730]
lea eax, [esp + 0xec]
mov ecx, 0x10203c54
push eax
call fcn.100129b0
cmp dword [0x102036cc], 0
je 0x10020f40
push 0x102036c8
call dword [0x10203738]
sub esp, 0x18
mov ecx, esp
push 1
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x101cfc74
mov byte [ecx], 0
call fcn.1001ec60
call fcn.100057b0
add esp, 0x18
mov dword [esp + 0xc], str.WPFHelper.cpp:NSIS_Init__:Line_193
mov dword [esp + 0x10], 0
movq xmm0, qword [esp + 0xc]
push str._tInit.
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 1
call fcn.10005540
sub esp, 0x50
mov ecx, esp
push str.zs_isp_ins
call fcn.10002570
call fcn.100247d0
mov ecx, esp
push str.zs_sip_ins_plugin
call fcn.10002570
call fcn.100247d0
mov esi, dword [esp + 0x14c]
add esp, 0x60
test esi, esi
je 0x10020fe3
push dword [esp + 0xf0]
push esi
call fcn.1001dcb0
push esi
call fcn.1002fb32
add esp, 4
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret
Function at 0x10021760
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10181558
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x101f7210]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [0x101f7210]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
lea ecx, [esp + 4]
call fcn.100237c0
push ecx
lea ecx, [esp + 8]
mov dword [esp + 0x7c], 0
call fcn.10002b70
push 0x25
push str.Zshieldzs_isp_clientconfigins.json
lea ecx, [esp + 0xc]
call fcn.100125b0
cmp dword [esp + 0x18], 8
lea eax, [esp + 4]
cmovae eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
call fcn.100024d0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret
Function at 0x100237c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f4e7
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x101f7210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x424], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x428], esi
mov word [esi], ax
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], eax
mov byte [esi + 0x18], al
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
mov dword [esi + 0x5c], 0xf
mov dword [esi + 0x58], eax
mov byte [esi + 0x48], al
push eax
push 0x101cf8e0
mov byte [ebp - 4], 4
call fcn.1001e640
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x23
push 0
mov dword [ebp - 0x424], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100238c0
cmp word [ebp - 0x218], ax
jne 0x10023893
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.1001e640
jmp 0x1002390e
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100238a0
sub eax, edx
mov ecx, esi
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1001e640
jmp 0x1002390e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.10150100
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 3
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.100125b0
push 0xb
push str.ProgramData
mov ecx, esi
call fcn.100125b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret
Function at 0x10027530
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10182730
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x101f7210]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [0x101f7210]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
lea ecx, [esp + 0x24]
call fcn.10021a10
mov dword [esp + 0x98], 0
cmp dword [esp + 0x34], 0
jne 0x100275bd
push str._tInstPathnull_n
sub esp, 0xc
mov dword [esp + 0x1c], str.WPFHelper.cpp:DeleteProductDirectory__:Line_1442
mov eax, esp
mov dword [esp + 0x20], 0
movq xmm0, qword [esp + 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], 2
call fcn.10005540
add esp, 0x10
jmp 0x1002760c
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str..
call fcn.1001eb00
push ecx
push esp
lea ecx, [esp + 0x38]
mov byte [esp + 0xac], 1
call fcn.10002900
mov ecx, 0x10203748
mov byte [esp + 0xa8], 0
call fcn.10011480
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x24]
call fcn.100024d0
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret

Function at 0x10032eec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x10032f31
call fcn.1003f04f
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10032f31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10032f4d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1004308d
mov ebx, eax
test edi, edi
je 0x10032f4b
test esi, esi
je 0x10032f4b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10044bfb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.1003f04f
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10044c32
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10044c53
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100481c9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10030e42
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10048205
call fcn.100483e8
mov dword [esi + 0xc], 1
jmp 0x1004820a
call fcn.100483e8
cmp dword [esi], 0
je 0x10048253
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1004822d
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10030b69
jmp 0x1004823e
push 0xff
mov ecx, esi
call fcn.1001f570
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10030b8c
jmp 0x10048277
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x10048277
push dword [esi]
push dword [ebp - 4]
call fcn.10043d0e
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1004833d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.100483e8
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10048385
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10030b69
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10030b8c
jmp 0x10048390
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10043d0e
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10059757
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1008f432
call fcn.1003f0a3
cmp dword [eax + 0x14], 0
jne 0x10059772
mov ecx, esi
pop esi
jmp fcn.10058b5d
pop esi
ret

Function at 0x1005a48d
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.1001d0b0
call fcn.1003f0a3
cmp dword [eax + 0x14], 0
jne 0x1005a4a8
mov ecx, esi
pop esi
jmp fcn.10059d76
pop esi
ret
Function at 0x1016fb40
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.1016fe30
push 0
call fcn.1014b9ae
push eax
call fcn.1017cf28
add esp, 8
mov dword [ebp - 4], 0
call fcn.1017cf07
mov edi, dword [esi + 0x19c]
mov ecx, eax
sar ecx, 6
movzx eax, al
test cl, cl
movzx ebx, cl
cmove ebx, eax
mov eax, dword [esi + 0x1a4]
and eax, 0xfffd
mov dword [ebp - 0xc], ebx
or eax, 2
mov dword [ebp - 8], eax
call fcn.10175250
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.10175250
mov edx, dword [ebp - 4]
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
xor ecx, 1
imul ecx, dword [ebp - 8]
mov dword [esi + 0x1a4], edi
mov eax, dword [eax + 4]
sar ecx, 8
xor cl, byte [ebp - 0xc]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 4], edx
cmp edx, 0xa
jl 0x1016fb67
mov eax, dword [esi + 0x1a4]
mov ebx, dword [ebp + 8]
and eax, 0xfffd
mov edi, dword [esi + 0x19c]
or eax, 2
sar ebx, 0x10
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
call fcn.10175250
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.10175250
movsx ecx, bl
xor ecx, edi
mov ebx, dword [ebp + 8]
and ecx, 0xff
shr edi, 8
sar ebx, 0x18
mov dword [ebp + 8], ebx
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
xor ecx, 1
imul ecx, dword [ebp - 0xc]
mov dword [esi + 0x1a4], edi
mov eax, dword [eax + 4]
sar ecx, 8
xor cl, byte [ebp - 8]
mov byte [eax + 0xa], cl
mov eax, dword [esi + 0x1a4]
mov edi, dword [esi + 0x19c]
and eax, 0xfffd
or eax, 2
mov dword [ebp - 0xc], eax
call fcn.10175250
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.10175250
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
xor ecx, 1
imul ecx, dword [ebp - 0xc]
mov dword [esi + 0x1a4], edi
pop edi
mov eax, dword [eax + 4]
pop esi
sar ecx, 8
xor cl, byte [ebp + 8]
mov byte [eax + 0xb], cl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1016fd50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x100]
test byte [eax + 0xc], 1
je 0x1016fe1f
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [esi + 0x6c], eax
jbe 0x1016fe1f
push ebx
push edi
lea esp, [esp]
mov ecx, dword [esi + 0x7c]
mov edi, dword [esi + 0x19c]
add ecx, eax
mov eax, dword [esi + 0x1a4]
and eax, 0xfffd
mov dword [ebp - 0xc], ecx
or eax, 2
mov bl, byte [ecx]
mov dword [ebp - 8], eax
call fcn.10175250
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.10175250
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor eax, 1
imul eax, dword [ebp - 8]
mov dword [esi + 0x1a4], edi
sar eax, 8
xor byte [ecx], al
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x6c]
jb 0x1016fd80
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1016fe30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [esi + 0x19c], 0x12345678
mov dword [esi + 0x1a0], 0x23456789
mov dword [esi + 0x1a4], 0x34567890
cmp dword [esi + 0x198], ecx
jbe 0x1016feea
push ebx
push edi
jmp 0x1016fe70
mov eax, dword [esi + 0x194]
mov edi, dword [esi + 0x19c]
mov bl, byte [ecx + eax]
call fcn.10175250
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.10175250
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi + 0x1a4], edi
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 0x198]
jb 0x1016fe70
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10171be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp method.CFile.virtual_56

Function at 0x10172d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp method.CFile.virtual_60
Function at 0x10173420
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10192278
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x101f7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0x2e
lea ecx, [ebp - 0x20]
call fcn.10175c50
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 1
push 0x2e
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.10177080
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [edi + 4], eax
movzx eax, word [ecx + 4]
mov word [edi + 8], ax
movzx eax, word [ecx + 6]
mov word [edi + 0xa], ax
movzx eax, word [ecx + 8]
mov word [edi + 0xc], ax
movzx eax, word [ecx + 0xa]
mov word [edi + 0xe], ax
movzx eax, word [ecx + 0xc]
mov word [edi + 0x10], ax
movzx eax, word [ecx + 0xe]
mov word [edi + 0x12], ax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x1c], eax
movzx eax, word [ecx + 0x1e]
movzx esi, word [ecx + 0x1c]
mov dword [ebp + 8], eax
movzx eax, word [ecx + 0x20]
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x22]
mov word [edi + 0x20], ax
movzx eax, word [ecx + 0x24]
mov word [edi + 0x22], ax
mov eax, dword [ecx + 0x26]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0x2a]
lea ecx, [ebp - 0x20]
mov dword [edi + 0x28], eax
call fcn.10175e30
mov eax, dword [edi + 4]
cmp eax, dword [0x101f8638]
je 0x101734fd
xor bl, bl
jmp 0x1017356a
mov eax, dword [ebx + 0x54]
lea ecx, [edi + 0x38]
push 0
push esi
mov dword [ebp - 0x14], eax
call fcn.10175da0
push 1
push esi
push dword [edi + 0x3c]
mov ecx, ebx
call fcn.10177080
mov eax, dword [ebp + 8]
test ax, ax
je 0x1017353e
movzx esi, ax
lea ecx, [edi + 0x2c]
push 0
push esi
call fcn.10175da0
push 1
push esi
push dword [edi + 0x30]
mov ecx, ebx
call fcn.10177080
mov eax, dword [ebp - 0x10]
test ax, ax
je 0x10173561
movzx esi, ax
lea ecx, [edi + 0x44]
push 0
push esi
call fcn.10175da0
push 1
push esi
push dword [edi + 0x48]
mov ecx, ebx
call fcn.10177080
mov eax, dword [ebp - 0x14]
cmp dword [ebx + 0x54], eax
sete bl
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.10175ca0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x101737f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10192278
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x101f7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [eax + 0x34]
lea ecx, [ebp - 0x20]
mov esi, dword [eax + 0x40]
movzx eax, si
mov dword [ebp - 0x14], eax
add eax, 0x1e
movzx ebx, di
add eax, ebx
push 0
push eax
call fcn.10175c50
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x101f863c]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0xa]
mov word [eax + 4], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0xc]
mov word [eax + 6], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0xe]
mov word [eax + 8], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0x10]
mov word [eax + 0xa], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0x12]
mov word [eax + 0xc], cx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x14]
mov dword [eax + 0xe], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x12], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x16], ecx
mov eax, dword [ebp - 0x1c]
mov word [eax + 0x1a], si
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
push esi
mov word [eax + 0x1c], di
mov eax, dword [ebp - 0x1c]
push dword [edx + 0x3c]
add eax, 0x1e
push eax
call fcn.10153210
mov eax, dword [ebp - 0x10]
push ebx
push dword [eax + 0x30]
mov eax, dword [ebp - 0x1c]
add eax, 0x1e
add eax, esi
push eax
call fcn.10153210
add esp, 0x18
lea edi, [esi + 0x1e]
mov esi, dword [ebp + 8]
add edi, ebx
mov ecx, esi
push 1
push edi
push dword [ebp - 0x1c]
call fcn.10177470
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x2c]
call fcn.10175e30
mov eax, dword [esi + 0x54]
mov word [ebx + 0x20], ax
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [esi + 0x34]
sub ecx, edi
add eax, ecx
lea ecx, [ebp - 0x20]
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10175ca0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4