joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42250ec0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
mov dword [esi + 4], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x42250ee9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push edi
push 0x1000
call fcn.42255483
mov edi, eax
add esp, 4
test edi, edi
je 0x42250f8b
mov ecx, dword [esi + 4]
push 0x1000
push edi
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x42250f30
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
push edi
call fcn.4225544b
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x42250f70
mov eax, dword [edi + 0x3c]
lea ecx, [eax + edi]
add eax, 0xf8
cmp eax, 0x1000
ja 0x42250f70
cmp dword [ecx], 0x4550
jne 0x42250f70
mov eax, dword [ebx]
push dword [ecx + 0x54]
mov ecx, ebx
call dword [eax + 0xc]
push edi
call fcn.4225544b
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
push edi
call fcn.4225544b
add esp, 4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x42250fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ecx + 4]
add eax, dword [ebp + 0xc]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42250ff1
cmp dword [ebp - 4], esi
jne 0x42250ff1
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x422517f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42278bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
test edi, edi
je 0x4225187f
add esi, 4
nop
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [esi - 4]
call fcn.42251a50
add esp, 0x10
test eax, eax
jns 0x4225185c
mov eax, dword [esi + 4]
test eax, eax
je 0x42251879
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x42251879
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push dword [ebp + 0x18]
push 3
push ebx
push eax
push dword [esi]
call fcn.42251210
add esp, 0x18
add esi, 0xc
dec edi
jne 0x42251820
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
Function at 0x42251950
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42278bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add eax, eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42251a34
mov eax, dword [ebp - 0x210]
cmp eax, 1
je 0x42251a32
cmp eax, 2
je 0x422519c1
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.42254ce0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x42251a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push 0x25
push eax
call fcn.42253618
add esp, 8
test eax, eax
jne 0x422519ad
lea ecx, [ebp - 0x20c]
mov eax, ecx
sub esi, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x42251a22
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
Function at 0x42252820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x42278bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [esi]
call fcn.422526b0
add esp, 0x14
test al, al
jne 0x42252888
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42252963
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x422528ac
push edi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x414]
push 0x104
push ecx
push eax
call fcn.422526b0
add esp, 0x14
test al, al
je 0x42252862
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.4225531c
add esp, 8
mov edi, eax
xor eax, eax
push eax
mov word [edi], ax
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebp + 0x18]
push 0
or eax, 2
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42252942
cmp dword [esi + 4], eax
je 0x42252955
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42252900
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0
lea eax, [edi + 2]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x42252955
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
Function at 0x42252ab0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42278bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [esi]
call fcn.422526b0
add esp, 0x14
test al, al
jne 0x42252b12
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42252c45
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.4225531c
mov edi, eax
add esp, 8
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp + 0x18]
add edi, 2
or eax, 3
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42252b6c
cmp eax, 2
jne 0x42252c0c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x42252ba2
cmp eax, 2
je 0x42252ba2
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
cmp word [edi], 0
jne 0x42252c36
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 0x210]
test eax, eax
jne 0x42252b88
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 0
jne 0x42252c20
cmp dword [ebp - 0x218], 0
jne 0x42252c20
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x42252c42
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.42252e9b
mov esp, ebp
pop ebp
ret
Function at 0x42262b40
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x422699eb
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test ebx, ebx
je 0x42262b74
mov byte [ebp + 0xb], 1
cmp esi, 0xffffffff
je 0x42262b78
mov byte [ebp + 0xb], 0
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x84]
call fcn.42264610
mov dword [ebp - 4], 0
cmp byte [ebp + 0xb], 0
je 0x42262bcd
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1a4]
push eax
push 0
mov eax, ebx
lea ecx, [ebp - 0x84]
cdq
push edx
push eax
call fcn.42265340
mov edi, eax
test edi, edi
js 0x42262ce8
lea ecx, [ebp - 0x1a4]
call fcn.42265520
mov esi, dword [ebp - 0x154]
cmp byte [ebp + 0x20], 0
mov ecx, 4
push 0
push 0x8000000
mov eax, 0x40
mov dword [ebp - 0x14], 0
cmovne eax, ecx
mov dword [ebp - 0x24], esi
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 0
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
mov edi, eax
test edi, edi
js 0x42262ce8
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push 0x100000
push 2
push eax
push 0
push 0
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
test edi, edi
js 0x42262c7b
cmp byte [ebp + 0xb], 0
je 0x42262c86
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1a4]
push ebx
push eax
call fcn.42264fa0
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x42262cad
push dword [ebp - 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x42262ce8
test ebx, ebx
je 0x42262cad
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
je 0x42262ca1
push dword [ebp - 0x10]
push eax
push ebx
call fcn.42263a50
add esp, 0x10
jmp 0x42262cad
push ebx
push dword [ebp - 0x10]
call fcn.42254690
add esp, 0xc
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x42262cbf
push dword [ebp - 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x42262cc4
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x42262cd8
push dword [ebp - 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
jmp 0x42262cdd
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x42262ce6
mov dword [eax], esi
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.422647f0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42263580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 8
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov ecx, ebx
add ecx, edx
adc eax, dword [ebp + 0xc]
cmp dword [esi + 0x16c], eax
jg 0x422635b8
jl 0x422635ab
cmp dword [esi + 0x168], ecx
jae 0x422635b8
pop esi
mov eax, 0xc000007b
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x160]
test eax, eax
je 0x422635db
push ebx
add eax, edx
push eax
push dword [ebp + 0x10]
call fcn.42254690
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x170], 0
jne 0x422635f1
pop esi
mov eax, 0xc0000008
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 0x18c], 0
push edi
mov dword [ebp + 0x14], 0
je 0x42263634
mov edi, dword [ebp + 0x18]
test edi, edi
jne 0x42263620
push edi
push edi
push edi
push 0x100002
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
mov edi, dword [ebp + 0x14]
jmp 0x42263627
push edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
test eax, eax
jns 0x42263636
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor edi, edi
push 0
lea eax, [ebp + 8]
mov dword [ebp - 8], 0
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push edi
push dword [esi + 0x170]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
cmp esi, 0x103
jne 0x4226368a
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov esi, eax
test esi, esi
je 0x42263687
js 0x42263699
mov esi, 0xc0000001
jmp 0x42263699
mov esi, dword [ebp - 8]
test esi, esi
js 0x42263699
cmp dword [ebp - 4], ebx
mov eax, 0xc000007b
cmovne esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x422636a7
push eax
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x422662b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42275d20
push 0x422550d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
or eax, edi
je 0x422664de
cmp esi, 0xffffffff
jne 0x422662f6
test edi, edi
je 0x422664de
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
je 0x422664de
cmp dword [ebp + 0x20], 0
ja 0x4226632b
jb 0x42266313
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x40
jae 0x4226632e
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
push 0
push 2
lea eax, [ebp + 0xc]
push eax
push edi
push esi
call fcn.42265770
test eax, eax
jns 0x42266362
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0x5a4d
cmp word [ebp + 0xc], ax
jne 0x422664bf
push 0
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
add ecx, 0x3c
mov eax, edi
adc eax, 0
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.42265770
test eax, eax
js 0x42266348
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp + 0x20]
cmp edx, ecx
ja 0x422664bf
jb 0x422663ab
cmp eax, ebx
jae 0x422664bf
lea edx, [eax + 0x18]
cmp edx, eax
jb 0x422664bf
mov dword [ebp + 0x20], 0
cmp dword [ebp + 0x20], ecx
ja 0x422664bf
jb 0x422663d0
cmp edx, ebx
jae 0x422664bf
cmp eax, 0x10000000
jae 0x422664bf
add eax, esi
mov ecx, 0
adc ecx, edi
push 0
push 4
lea edx, [ebp - 0x24]
push edx
push ecx
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.42265770
test eax, eax
js 0x42266348
cmp dword [ebp - 0x24], 0x4550
jne 0x422664bf
mov ebx, dword [ebp - 0x20]
xor ecx, ecx
add ebx, esi
adc ecx, edi
mov dword [ebp + 0x20], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42266423
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4226649a
mov dword [edx + 0x108], ebx
mov dword [edx + 0x10c], ecx
mov dword [edx + 0x110], esi
mov dword [edx + 0x114], edi
mov al, byte [ebp + 0x10]
mov byte [edx + 0x118], al
push 0
push 0x18
push edx
push ecx
push ebx
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.42265770
test eax, eax
js 0x42266348
mov ecx, dword [ebp + 0x18]
movzx edx, word [ecx + 0x14]
mov eax, edx
mov edi, 0xf0
cmp di, ax
jae 0x42266479
mov eax, edi
push 0
push eax
lea eax, [ecx + 0x18]
push eax
add ebx, 0x18
mov eax, dword [ebp + 0x20]
adc eax, 0
push eax
push ebx
mov ecx, esi
call fcn.42265770
test eax, eax
js 0x42266348
mov dword [ebp - 4], 0xffffffff
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 0x1c
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x42267580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x422675b7
cmp bl, 0xd7
je 0x422675b7
mov edx, dword [ebp + 0x10]
lea esi, [eax + 1]
test edx, edx
je 0x42267629
mov ecx, dword [ebp + 0xc]
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x422675a7
pop esi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.42267d80
cmp bl, 0xd8
jne 0x42267629
mov edx, dword [ebp + 0x10]
xor eax, eax
test edx, edx
je 0x42267629
cmp edx, 0x20
jb 0x42267617
movdqa xmm1, xmmword [0x42272860]
mov ecx, edx
push edi
and ecx, 0x1f
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
lea ebx, [ebx]
movdqu xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x30], xmm0
movdqu xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x20], xmm0
cmp eax, edi
jb 0x422675f0
pop edi
cmp eax, edx
jae 0x42267629
jmp 0x42267620
xor byte [eax + esi], 0xf0
inc eax
cmp eax, edx
jb 0x42267620
pop esi
pop ebx
pop ebp
ret

Function at 0x42267630
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea eax, [ebp + 0x14]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
jmp 0x42267673
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
cmp dword [ebp - 8], 4
jae 0x4226769e
cmp dword [ebp + 0x10], 0
jbe 0x4226769e
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
mov dword [ebp + edx*8 - 0x30], ecx
mov eax, dword [eax - 4]
mov dword [ebp + edx*8 - 0x2c], eax
jmp 0x42267661
mov ecx, dword [ebp - 4]
add ecx, 8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
sub edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x422676c1
mov ecx, dword [ebp + 0x10]
add ecx, 1
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xc], esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x422676e7
mov edi, dword [ebp - 0x10]
lea edi, [edi + eax*8 - 8]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x422676dc
mov eax, 4
lea edi, [ebp - 0x18]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x422676ef
xor ecx, ecx
xor edx, edx
lea esi, [ebp + 8]
push 0x33
call 0x42267708
add dword [esp], 5
retf

Function at 0x42267760
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
xor edx, edx
push 0x33
call fcn.42267772
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4cf37d20
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x5ddc69d2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x41a910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x1e4dc
mov dword [ebp - 0xc], 0x3000
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov esp, ebp
pop ebp
ret

Function at 0x41aa40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0x11cb
mov dword [ebp - 0x10], 0
jmp 0x41aa5f
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jae 0x41ab37
mov dword [ebp - 8], 0x11cb
cmp dword [ebp - 0x10], 0
jne 0x41aac8
push 0x104
push 0x41da28
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push str.SYSTEM32CABINET.DLL
push 0x41da28
call dword [sym.imp.kernel32.dll_lstrcatA]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 1
push 0x41da28
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41aac1
cmp dword [ebp - 4], 0
jne 0x41aac8
mov eax, 0x42
jmp 0x41ab37
mov dword [ebp - 8], 0x11cb
mov edx, dword [ebp - 0x10]
add edx, 0x1eed7
mov dword [0x41db2c], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0x11cb
mov ecx, dword [0x41db2c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov ecx, dword [eax]
xor ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov dword [edx], ecx
jmp 0x41aa56
mov esp, ebp
pop ebp
ret
Function at 0x4013d0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x402004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
push 0x80
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetPriorityClass]
push 6
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
test eax, eax
js 0x4014a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x4010f0
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x401492
push 0x38
lea eax, [ebp - 0x244]
mov dword [ebp - 0x248], 0x3c
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x244], 0x1500
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x23c], 0x40112c
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x234], edi
push eax
mov dword [ebp - 0x22c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40149a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004017f0
leave
ret 0x10