joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100031f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10017290]
jne 0x100031fe
repz ret
jmp fcn.10005573

Function at 0x10003c4d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10003c7e
call fcn.10006796
mov dword [eax], esi
call fcn.10006783
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10004bef
add esp, 0x14
push 0x16
pop eax
jmp 0x10003cd3
test dword [ebp + 0xc], 0xfffffff9
jne 0x10003c5a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10003cab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100067a9
pop ecx
call fcn.10006783
mov eax, dword [eax]
jmp 0x10003cd3
test al, 0x10
jne 0x10003cd1
test al, 1
je 0x10003cd1
test byte [ebp + 0xc], 2
je 0x10003cd1
call fcn.10006796
mov dword [eax], 5
call fcn.10006783
mov dword [eax], 0xd
jmp 0x10003ca2
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42cb90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
jmp 0x42cbaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42cbb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42cba0
mov eax, 1
add ebx, ebx
jne 0x42cbc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42cbb8
jne 0x42cbd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42cbb8
xor ecx, ecx
sub eax, 3
jb 0x42cbe8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42cc5a
mov ebp, eax
add ebx, ebx
jne 0x42cbf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42cc00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42cc24
inc ecx
add ebx, ebx
jne 0x42cc10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42cc05
jne 0x42cc21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42cc05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42cc44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42cc35
jmp 0x42cba6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42cc44
add edi, ecx
jmp 0x42cba6
pop esi
mov edi, esi
mov ecx, 0xce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42cc62
cmp byte [edi], 6
jne 0x42cc62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42cc67
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x42ccd6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d380]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d3bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42cc94
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d3c0]
or eax, eax
je 0x42ccd0
mov dword [ebx], eax
add ebx, 4
jmp 0x42ccb1
call dword [esi + 0x2d3d0]
mov ebp, dword [esi + 0x2d3c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42cd0a
sub esp, 0xffffff80
jmp 0x403861
Function at 0x10001730
Capabilities:
Encode data using xor

Disassembly:
pushfd
out 0xed, eax
leave
mov ah, 0x59
mov ecx, 0xb3f1dd81
in eax, 0xd3
push 0x3ee676f2
bnd jbe 0x10001709
outsb dx, byte ds:[esi]
insb byte es:[edi], dx
fcmovnu st(0), st(0)
imul dword [esi + 0x32ec976c]
lds edi, [ebx]
mov al, 0x1e
mov byte [edx + 0x22], cl
clc
xor ah, cl
test ecx, edi
bound eax, qword [edi + 0x17]
in eax, 0x97
jno 0x10001712
xchg edi, eax
push ecx
mov ecx, 0x259ef382
ja 0x100017aa
rol dword [edi - 0x30], 1
retf 0x747f
fild word [ecx - 0x7b95ccef]
test eax, 0xf71093cb
pushfd
idiv dword [ebp + 0xe]
push edx
xor dword [ebp + 2], esi
jne 0x100017bf
mov ecx, ds
jns 0x1000181f
sub byte [0xe4865fba], ah
pop esp
jl 0x100017e1
or esp, dword [eax]
and al, byte [edi - 0xe]
test eax, 0x9953b30e
popal
xchg esp, eax
insb byte es:[edi], dx
out 4, eax
jno 0x10001859
invalid
scasd eax, dword es:[edi]
mov dh, 0x4f
fistp qword [ecx - 0x680631de]
mov ah, 0xac
test dword [ebx + 0x63986d0f], edx
mov dword [ebp + 0x58], 0x7e2ff73f
loopne 0x10001868
out dx, al
invalid
popfd
jnp 0x10001861
mov dh, 0xa0
xor dword [ebx + edi*2 - 0x4b05a3d], edi
sal dl, cl
js 0x100017bb
leave
xchg edx, eax
jge 0x100017bf
imul ebp, dword [edx + 0xa], 0xffffffda
inc esp
pop ds
push ecx
invalid
cdq
invalid
fild qword [ecx + 0x5c]
outsb dx, byte [esi]
pop ss
cld
retf 0xea27
daa
ljmp 0x4d34

Function at 0x10013580
Capabilities:
Encode data using add xor sub operations

Disassembly:
invalid
inc esi
cmp al, 0xbb
mov eax, 0x9b74918e
pop eax
pushal
out dx, al
cli
mov edi, 0x83bb9f3d
stosb byte es:[edi], al
sahf
test dword [ecx + 0x6cbee05f], 0xe24ba6ba
pop ebx
xor eax, 0x33c3db7f
call 0xe931b6bc
add eax, 0x216886b0
cmp byte fs:[edx - 0x45ef8a40], cl
jns 0x10013569
movsd dword es:[edi], dword [esi]
mov word [ebx + 0x13], es
pop edi
sbb eax, 0xe9c99028
in al, dx
sbb byte ds:[esi - 0x5e], cl
fisub word [edi]
sbb esp, ecx
mov dword [0x3298728b], eax
pop ecx

Function at 0x100135d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x310e11e]
mov eax, dword [0x79f93118]
push ebx
xchg edi, eax
sub eax, 0x2fa736d2
aaa
fisubr word [ebp - 0x59dee7c]
cmp byte [edi], 0x97
stosb byte es:[edi], al
push edx
pop ebx
rol dword [ecx], 1
xchg edx, eax
mov ah, 0xb4
scasb al, byte es:[edi]
cdq
inc ecx
lds esp, [ebx - 0x22ffa913]
inc esp
invalid
Function at 0x7dd71282
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x7dd71291
and dword [ecx], 0
mov eax, dword [ebp + 8]
cmp eax, 0xfffffff4
je 0x7dd9f23b
cmp eax, 0xfffffff5
je 0x7dd9f227
cmp eax, 0xfffffff6
je 0x7dd9f213
push dword [ebp + 0x18]
mov edx, eax
push ecx
push dword [ebp + 0x10]
and edx, 0x10000003
push dword [ebp + 0xc]
push eax
cmp edx, 3
je 0x7dd712f0
call sub.API_MS_Win_Core_File_L1_1_0.dll_WriteFile
pop ebp
ret 0x14
call sym.KERNEL32.dll_WriteConsoleA
jmp 0x7dd712cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
jmp 0x7dd712af
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
jmp 0x7dd712af
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x20]
jmp 0x7dd712af
Function at 0x7dd73346
Capabilities:
Access pe header
Check for peb beingdebugged flag
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
je 0x7dd7662a
pop ebp
jmp fcn.7dd7338b
push dword [ebp + 0x10]
push 1
push dword [ebp + 8]
call fcn.7dd76641
jmp 0x7dd73355
Function at 0x7dd73fd5
Capabilities:
Read file on windows

Disassembly:
push 0xc
push 0x7dd74038
call fcn.7dd715c0
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x7dd73feb
and dword [edi], 0
mov esi, dword [ebp + 8]
cmp esi, 0xfffffff4
je 0x7dd9f17e
cmp esi, 0xfffffff5
je 0x7dd9f16a
cmp esi, 0xfffffff6
je 0x7dd9f156
mov eax, esi
and eax, 0x10000003
cmp eax, 3
je 0x7dd9f192
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call sub.API_MS_Win_Core_File_L1_1_0.dll_ReadFile
call fcn.7dd71605
ret 0x14
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0x18]
jmp 0x7dd74009
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0x1c]
jmp 0x7dd74009
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0x20]
jmp 0x7dd74009
push 0
push edi
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call sym.KERNEL32.dll_ReadConsoleA
test eax, eax
je 0x7dd9f20c
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x14]
push eax
push esi
call sym.KERNEL32.dll_GetConsoleMode
test eax, eax
jne 0x7dd9f1bb
and dword [ebp + 0x14], eax
test byte [ebp + 0x14], 1
je 0x7dd9f1f6
and dword [ebp - 4], 0
cmp byte [ebx], 0x1a
jne 0x7dd9f1ef
and dword [edi], 0
jmp 0x7dd9f1ef
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp + 0x10], 0
jl 0x7dd9f204
xor eax, eax
inc eax
jmp 0x7dd74029
push dword [ebp + 0x10]
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7dd74029

Function at 0x7dd7444e
Capabilities:
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x7dd7445b
jmp dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ResumeThread]

Function at 0x7dd748c7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x7dd748ec
push 0x7dd74900
push dword [ebp + 8]
call sub.ntdll.dll__strcmpi
pop ecx
pop ecx
test eax, eax
je 0x7dda38a6
push 0
push 0
push dword [ebp + 8]
call fcn.7dd747ed
pop edi
pop esi
pop ebx
pop ebp
ret 4
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
mov esi, 0x104
push esi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x7dd748ec
lea ebx, [esi - 0xd]
push ebx
push edi
call fcn.7dd92c6f
test eax, eax
je 0x7dda391d
cmp eax, ebx
jae 0x7dda391d
push 0xd
push 0x7dda3938
push esi
push edi
call sub.ntdll.dll_strncat_s
add esp, 0x10
push edi
call sym.KERNEL32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x7dda391d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
jmp 0x7dd748f8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dd748ec
Function at 0x7dd74bd4
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x10
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
je 0x7dd74c04
mov ecx, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
and dword [eax + 0xc], 0
mov dword [eax + 8], ecx
pop ebp
ret 4
Function at 0x7dd7627b
Capabilities:
Access pe header

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x7dd7cc0d
mov ecx, 0x8000
test word [eax + 0x5e], cx
je 0x7dd7cc0d
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x7dd7631b
Capabilities:
Access peb ldr_data

Disassembly:
cmp byte [0x7de40003], 0
jne 0x7dd763b0
push esi
push edi
push 0x7de40120
call dword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
mov eax, dword fs:[0x18]
mov byte [0x7de40003], 1
mov edi, dword [eax + 0x30]
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0xc]
mov si, word [eax + 0x2c]
shr si, 1
mov word [0x7de40008], si
movzx ecx, word [eax + 0x2c]
push ecx
push dword [eax + 0x30]
push 0x7de407c0
call sub.ntdll.dll_memcpy
movzx eax, si
xor ecx, ecx
mov word [eax*2 + 0x7de407c0], cx
mov eax, dword [edi + 0x10]
mov si, word [eax + 0x24]
shr si, 1
mov word [0x7de40006], si
mov edi, dword [edi + 0x10]
movzx eax, word [edi + 0x24]
push eax
push dword [edi + 0x28]
push 0x7de409c0
call sub.ntdll.dll_memcpy
add esp, 0x18
movzx eax, si
xor ecx, ecx
pop edi
mov word [eax*2 + 0x7de409c0], cx
pop esi
ret

Function at 0x7dd76cb3
Capabilities:
Persist via appinit_dlls registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp byte [0x7ffe02ec], bl
jne 0x7dd76d39
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
test byte [eax + 3], 2
jne 0x7dd76d39
lea eax, [ebp - 8]
push eax
call fcn.7dd76dcf
test eax, eax
je 0x7dd76ce7
cmp dword [ebp - 8], ebx
jne 0x7dd76d39
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x7dd76d60
push 0x80000002
call sym.KERNEL32.dll_RegOpenKeyExW
test eax, eax
jne 0x7dd76d39
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10
push 0x7dd76d3c
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call sym.KERNEL32.dll_RegGetValueW
test eax, eax
jne 0x7dd76d31
cmp dword [ebp - 0x10], ebx
jne 0x7dd9debf
push dword [ebp - 4]
call sym.KERNEL32.dll_RegCloseKey
pop ebx
leave
ret
push dword [ebp - 4]
call fcn.7dde39b0
jmp 0x7dd76d31

Function at 0x7dd776ad
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call sub.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x7ddac8b7
push edi
push esi
push esi
push esi
push 2
push esi
push ebx
call fcn.7dd718ce
mov edi, eax
cmp edi, esi
je 0x7ddac8be
push esi
push esi
push esi
push 4
push edi
call fcn.7dd718b6
cmp eax, esi
je 0x7dd77707
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ecx], eax
inc esi
push edi
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push ebx
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 8
xor eax, eax
jmp 0x7dd77716
push ebx
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
xor eax, eax
jmp 0x7dd77715
Function at 0x7dd77a37
Capabilities:
Terminate thread

Disassembly:
jmp dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_TerminateThread]
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x7dd779ce
Function at 0x7dd78194
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQueryKey]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0x80000005
je 0x7ddb173c
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
cmp dword [ebp + 0x18], 0
je 0x7ddb1755
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x10]
movzx edx, word [ebp + 0x1c]
inc ecx
inc ecx
cmp edx, ecx
jb 0x7dd781c1
mov eax, dword fs:[0x18]
push dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
mov ebx, dword [ebp + 0x14]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi], eax
test eax, eax
jne 0x7ddb177f
mov eax, 0xc0000017
jmp 0x7dd781c1
lea ecx, [ebp + 0x14]
push ecx
push ebx
push eax
push 2
push dword [ebp + 8]
call edi
jmp 0x7dd781c1
Function at 0x7dd78f0d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [edi], ebx
mov esi, dword [0x7de40c7c]
mov dword [ebp - 0x1c], ebx
cmp esi, 0xffffffff
jne 0x7dd78fb3
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x7dd78fb8
lea eax, [ebp - 0x24]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
push 0x20019
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x34], ecx
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test ebx, ebx
jge 0x7dda5ca9
cmp ebx, 0xc0000034
jne 0x7dda5c9e
xor ebx, ebx
cmp dword [ebp - 0x1c], 0
jne 0x7dda5d12
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 4
je 0x7dd78f90
jmp 0x7dd78f92
mov dword [edi], esi
jmp 0x7dd78f92
cmp ebx, 0xc000003a
jmp 0x7dd78faf
push 0x7dda5d20
lea eax, [ebp - 0x24]
push eax
call esi
lea eax, [ebp - 0x40]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test ebx, ebx
jge 0x7dda5cde
cmp ebx, 0xc0000034
jmp 0x7dd78faf
cmp dword [ebp - 0x14], 4
jne 0x7dda5cf2
cmp dword [ebp - 0x10], 4
jne 0x7dda5cf2
mov esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
jne 0x7dda5cf5
xor esi, esi
inc esi
push 0xffffffffffffffff
push esi
push 0x7de40c7c
call fcn.7dd7138c
cmp eax, 0xffffffff
je 0x7dd78fb3
mov esi, eax
jmp 0x7dd78fb3
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x7dd78f9c
Function at 0x7dd7ccc6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x7dd7ce20
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, 0x224
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x7dd7cdaf
cmp ebx, eax
je 0x7dd7cdd4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20019
lea eax, [ebp - 4]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x24], ecx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x7dd7cdaf
push 0x7dd7ce04
lea eax, [ebp - 0x14]
push eax
call edi
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jge 0x7dda51f0
push 0x7dd7cde8
lea eax, [ebp - 0x14]
push eax
call edi
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x7dd7cdde
cmp dword [ebx + 4], 4
jne 0x7dd7cdde
mov al, byte [ebx + 0xc]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
je 0x7dd7cdd4
push esi
push 0
push ebx
call sub.ntdll.dll_memset
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esp, 0xc
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x7dd7cda6
cmp dword [ebx + 4], 4
jne 0x7dd7cd74
cmp dword [ebx + 0xc], 0
je 0x7dd7cd74
mov dword [ebp - 8], 1
jmp 0x7dd7cd74
Function at 0x7dd7d329
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.7dd7ceab

Function at 0x7dd7d44e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x2c], 0
jne 0x7ddb2c28
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.7dd71442
leave
ret
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.7de1aaf6
test eax, eax
jge 0x7ddb2c4d
cmp eax, 0x8007007a
jne 0x7ddb2c89
lea eax, [ebp - 0x408]
push eax
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.7de1d803
test eax, eax
jl 0x7ddb2c89
mov eax, dword [ebp - 0x408]
test eax, eax
jbe 0x7ddb2c89
push 0
lea ecx, [ebp - 0x408]
push ecx
inc eax
push eax
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x2c]
call sub.API_MS_Win_Core_File_L1_1_0.dll_WriteFile
pop esi
jmp 0x7dd7d471

Function at 0x7dd7d60e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x41c]
call fcn.7dd7d5ff
mov eax, dword [esi + 0x1c]
cmp eax, 1
je 0x7ddb2c8f
lea ecx, [ebp - 0x41c]
call fcn.7dd7d6a5
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, 1
jne 0x7ddb2c96
mov ebx, 0x80081d4c
lea ecx, [ebp - 0x41c]
call fcn.7dd7d67d
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret
xor ebx, ebx
jmp 0x7dd7d65d
lea ecx, [ebp - 0x41c]
call fcn.7de1ef2d
push eax
xor ebx, ebx
push ebx
push 1
call fcn.7dd7492a
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x7ddb2cbd
mov ebx, 0x8007000e
jmp 0x7dd7d65d
push 0xc54
push ebx
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x7ddb2cda
mov ecx, esi
call fcn.7de1d527
jmp 0x7ddb2cb3
push dword [esi + 0x18]
mov ecx, eax
call fcn.7de1dc41
lea ecx, [ebp - 0x41c]
call fcn.7de1f0ad
test eax, eax
je 0x7ddb2dac
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x7ddb2dec
call sub.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_GetEnvironmentVariableW
cmp eax, ebx
je 0x7ddb2d17
cmp eax, edi
jb 0x7ddb2d24
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.KERNEL32.dll_GetTempPathW
dec eax
cmp eax, 0x102
ja 0x7ddb2dab
push 0x7ddb2db8
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.7de1d78d
test eax, eax
jl 0x7ddb2dab
push ebx
push 0x80
push 4
push ebx
push 7
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call sub.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW
mov dword [esi + 0x2c], eax
cmp eax, ebx
je 0x7ddb2dab
push 2
push ebx
push ebx
push eax
call fcn.7dd7168a
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x41c]
call fcn.7de1ef6d
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call fcn.7dd717e0
push eax
call fcn.7dd7501e
push eax
push 0x7ddb2dd4
push esi
call fcn.7dd7d44e
add esp, 0x10
pop edi
mov dword [esi + 0x1c], 1
jmp 0x7dd7d65d