joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018870
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x10018877
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x1001894d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006ce60]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006ce60]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006ce60]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006ce60]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006ce60]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006ce60]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006ce60]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006ce60]
add ecx, 8
sub edx, 8
dec esi
jne 0x10018890
pop edi
test edx, edx
je 0x1001896a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x1006ce60]
inc ecx
dec edx
jne 0x10018951
not eax
pop esi
ret

Function at 0x10018970
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1006ce60]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x1006ce60]
mov dword [edx + 8], ecx
ret

Function at 0x100189c0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x1006ce60]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x1006ce60]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x10019090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x100190c6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100190bc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x100190d7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.1004a3d0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x10019100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x10019133
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001912e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x1001915e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x10019145
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.1004a3d0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x10019173
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x1001916d
cmp byte [esi + 8], 0
je 0x1001916d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x10019260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x100192a7
cmp byte [esi + 1], 0
je 0x100192af
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x100192c2
cmp byte [esi + 1], 0
je 0x100192b6
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x100192ca
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x10019281
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x100192ca
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x100192dc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.10046faa
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x100192f9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x1001940d
jmp 0x10019319
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x10019328
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x1001933f
mov ebx, 0x404
cmp byte [esi], 0
je 0x10019364
cmp byte [esi + 1], 0
je 0x1001940d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x10019367
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x10019390
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001938b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x100193b9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x100193a1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.1004a3d0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x1001940d
lea eax, [ebx - 3]
test eax, eax
js 0x100193fb
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x100193ef
cmp byte [eax + ecx + 1], 0x4b
jne 0x100193ef
cmp byte [eax + ecx + 2], 5
jne 0x100193ef
cmp byte [eax + ecx + 3], 6
je 0x100193f5
test eax, eax
jns 0x100193d0
jmp 0x100193fb
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1001940d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x10019310
mov eax, dword [ebp - 0x10]
push eax
call fcn.10046f6e
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001a480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
jne 0x1001a52e
cmp dword [esi + 4], 0xffffffff
jne 0x1001a52e
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a4b0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x1001a4e7
cmp eax, 0x2f
je 0x1001a4e7
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001a4d4
mov eax, dword [0x1006e9b4]
mov dword [edi], eax
push 0x20
call fcn.10046eee
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 4
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.10019430
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 8
mov eax, 0x1000000
pop ebp
ret 8
Function at 0x1001ca70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [ebp - 4], 0
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x1001cc8e
lea ebx, [ebx]
cmp dword [esi + 0x6af90], 3
jb 0x1001caf7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1001cb37
mov edx, dword [esi + 0x6af84]
sub edx, ecx
cmp edx, 0x7efa
ja 0x1001cb37
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x1001cb22
mov dword [esi + 0x6afa0], eax
mov eax, ecx
call fcn.1001c790
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x1001cb37
mov ebx, eax
mov eax, dword [esi + 0x6af84]
mov ecx, esi
cmp ebx, 3
jb 0x1001cc1b
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.1001bf90
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x1001cbe4
cmp ecx, 3
jb 0x1001cbe4
mov edi, 1
sub ebx, edi
lea esp, [esp]
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub ebx, edi
mov dword [esi + edx*4 + 0x2af70], ecx
mov edx, dword [esi + 0x6af84]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x1001cb80
add dword [esi + 0x6af84], edi
mov eax, dword [ebp - 8]
jmp 0x1001cc36
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x1001cc36
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.1001bf90
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x1001cc70
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x1001cc4d
lea edx, [ecx + esi + 0x1af70]
jmp 0x1001cc4f
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
xor edi, edi
mov ecx, esi
call fcn.1001bdf0
mov ecx, dword [esi + 0x6af84]
add esp, 4
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x1001cc81
call fcn.1001c930
cmp dword [esi + 0x6af90], 0
jne 0x1001caa0
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x1001cca1
lea edx, [ecx + esi + 0x1af70]
jmp 0x1001cca3
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
mov edi, 1
mov ecx, esi
call fcn.1001bdf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001d950
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x1001d957
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x1001da2d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006b680]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006b680]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006b680]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006b680]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006b680]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006b680]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006b680]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x1006b680]
add ecx, 8
sub edx, 8
dec esi
jne 0x1001d970
pop edi
test edx, edx
je 0x1001da4a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x1006b680]
inc ecx
dec edx
jne 0x1001da31
not eax
pop esi
ret

Function at 0x1001da50
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1006b680]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x1006b680]
mov dword [edx + 8], ecx
ret
Function at 0x1001dc40
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x1001dd2b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1001dc77
cmp dword [esi + 0x40], edi
jae 0x1001dc77
push eax
call fcn.10046e92
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x1001dc8f
lea eax, [edi + edi]
push eax
call fcn.10046eee
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.1004a3d0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x1001dd28
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1006b680]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1006b680]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x1001dca7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x1001dd6a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x1001dd4f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.1004a3d0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1001dd8c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001dfb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x1001e003
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x1001e040
sub edi, eax
cmp edi, edx
jbe 0x1001dfd7
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.1004a3d0
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.1001d950
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x1001e039
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e040
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.1001d950
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1001efb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x1007a010]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, ecx
mov esi, dword [eax + 4]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edx
xor edi, edi
or esi, 0x2001f
push esi
push edi
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x1001f035
xor eax, eax
cmp ecx, edi
je 0x1001f01d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov ebx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
cmp eax, edi
je 0x1001f059
cmp ecx, edi
je 0x1001f040
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1004677e
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x1001f0bb
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x10]
call fcn.1001efb0
mov ebx, eax
cmp ebx, edi
jne 0x1001f109
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x1001f081
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x1001f0ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
call fcn.1001ee80
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x1001f0f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1004677e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x1001f118
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1004677e
mov esp, ebp
pop ebp
ret 4
Function at 0x1001f680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1001f693
mov eax, 3
pop ebp
ret 4
movzx edx, word [eax + 2]
mov ecx, edx
shr ecx, 8
test cl, cl
je 0x1001f6a9
mov eax, 8
pop ebp
ret 4
movzx ecx, word [eax]
push edi
mov edi, 0xc4
cmp cx, di
pop edi
jb 0x1001f68a
mov word [0x1007dc4a], dx
mov edx, dword [eax + 0x3c]
mov word [0x1007dc48], cx
mov ecx, dword [eax + 4]
mov dword [0x1007dc84], edx
mov edx, dword [eax + 0x40]
mov dword [0x1007dc4c], ecx
mov ecx, dword [eax + 8]
mov dword [0x1007dc88], edx
mov edx, dword [eax + 0xc]
mov dword [0x1007dc50], ecx
mov ecx, dword [eax + 0x10]
mov dword [0x1007dc54], edx
mov edx, dword [eax + 0x14]
mov dword [0x1007dc58], ecx
mov ecx, dword [eax + 0x18]
mov dword [0x1007dc5c], edx
mov edx, dword [eax + 0x1c]
mov dword [0x1007dc60], ecx
mov ecx, dword [eax + 0x20]
mov dword [0x1007dc64], edx
mov edx, dword [eax + 0x24]
mov dword [0x1007dc68], ecx
mov ecx, dword [eax + 0x28]
mov dword [0x1007dc6c], edx
mov edx, dword [eax + 0x2c]
mov dword [0x1007dc70], ecx
mov ecx, dword [eax + 0x30]
mov dword [0x1007dc74], edx
mov edx, dword [eax + 0x44]
mov dword [0x1007dc78], ecx
mov ecx, dword [eax + 0x48]
mov dword [0x1007dc8c], edx
mov edx, dword [eax + 0x4c]
mov dword [0x1007dc90], ecx
mov ecx, dword [eax + 0x50]
mov dword [0x1007dc94], edx
mov edx, dword [eax + 0x54]
mov dword [0x1007dc98], ecx
mov ecx, dword [eax + 0x58]
mov dword [0x1007dc9c], edx
mov edx, dword [eax + 0x5c]
mov dword [0x1007dca0], ecx
mov ecx, dword [eax + 0x60]
mov dword [0x1007dca4], edx
mov edx, dword [eax + 0x64]
mov dword [0x1007dca8], ecx
mov ecx, dword [eax + 0x68]
mov dword [0x1007dcac], edx
mov edx, dword [eax + 0x6c]
mov dword [0x1007dcb0], ecx
mov ecx, dword [eax + 0x70]
mov dword [0x1007dcb4], edx
mov edx, dword [eax + 0x74]
mov dword [0x1007dcb8], ecx
mov ecx, dword [eax + 0x78]
mov dword [0x1007dcbc], edx
mov edx, dword [eax + 0x7c]
mov dword [0x1007dcc0], ecx
mov ecx, dword [eax + 0x80]
mov dword [0x1007dcc4], edx
mov edx, dword [eax + 0x84]
mov dword [0x1007dcc8], ecx
mov ecx, dword [eax + 0x88]
mov dword [0x1007dccc], edx
mov edx, dword [eax + 0x8c]
mov dword [0x1007dcd0], ecx
mov ecx, dword [eax + 0x90]
mov dword [0x1007dcd4], edx
mov edx, dword [eax + 0x94]
mov dword [0x1007dcd8], ecx
mov ecx, dword [eax + 0x98]
mov dword [0x1007dcdc], edx
mov edx, dword [eax + 0x9c]
mov eax, dword [eax + 0xa0]
mov dword [0x1007dce8], eax
mov dword [0x1007dc7c], 0
mov dword [0x1007dc80], 0
mov dword [0x1007dce0], ecx
mov dword [0x1007dce4], edx
xor eax, eax
pop ebp
ret 4
Function at 0x10020b10
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100602d8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1007a010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
push 0xc8
mov dword [ebp - 4], 0
lea ecx, [esi + 0x10]
push 0
push ecx
mov dword [esi], vtable.ScriptablePluginObject.0
mov dword [esi + 0xd8], 0
mov dword [esi + 0xdc], 0
call fcn.1004acc0
push 0xc8
call fcn.10035cee
push 0xc8
push 0
push eax
mov dword [esi + 0xdc], eax
call fcn.1004acc0
mov eax, dword [esi + 0xdc]
add esp, 0x1c
lea edx, [ebp + 0xc]
push edx
push eax
mov dword [ebp + 0xc], 0xc8
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1003545d
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x1005f45c
call fcn.1004abca
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x10035554
cmp byte [esi + 0x4a], bl
je 0x10035554
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x10035499
xor al, al
jmp 0x10035556
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.100105b0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100354f7
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x100354fc
dec eax
je 0x10035500
dec eax
dec eax
je 0x10035550
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003220
mov al, bl
jmp 0x10035556
mov edx, dword [ebp - 0x2c]
jmp 0x100354c2
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1003550c
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x10035532
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1003551f
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.100484c9
add esp, 0x10
cmp edi, eax
jne 0x100354e5
cmp byte [esi + 0x4a], 0
je 0x10035550
test edi, edi
jne 0x100354b4
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10008080
jmp 0x100354b4
mov bl, 1
jmp 0x100354e7
mov al, 1
call fcn.1004ac14
ret