joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463590
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push esi
lea esi, [ecx + 4]
mov dword [esp + 8], edx
lea ebx, [eax + 1]
mov dword [esp + 0x10], eax
add esi, 4
push edi
test bl, 3
je 0x4635b9
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x46e3d8]
test eax, eax
jne 0x4635dd
mov ecx, 0xb7762a69
call fcn.00463f00
mov edx, 0x2788995d
mov ecx, eax
call fcn.00463e60
mov dword [0x46e3d8], eax
call eax
mov edi, eax
mov eax, dword [0x46e664]
test eax, eax
jne 0x463605
mov ecx, 0xb7762a69
call fcn.00463f00
mov edx, 0xc7d427f1
mov ecx, eax
call fcn.00463e60
mov dword [0x46e664], eax
lea ecx, [ebx + ebx]
push ecx
push 8
push edi
call eax
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x463685
shr ebx, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, edi
lea ecx, [esi + ebx*4]
mov ebx, ecx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, ecx
cmova ebx, eax
test ebx, ebx
je 0x46367a
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, edi
lea esi, [esi + 4]
movzx eax, cl
inc ebp
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, ebx
jb 0x463640
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [edi + eax*2], cx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x463690
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
xor eax, edx
push ebx
push ebp
push esi
lea esi, [ecx + 4]
mov dword [esp + 0xc], edx
lea ebx, [eax + 1]
mov dword [esp + 0x14], eax
add esi, 4
push edi
test bl, 3
je 0x4636ba
and ebx, 0xfffffffc
add ebx, 4
mov eax, dword [0x46e3d8]
test eax, eax
jne 0x4636de
mov ecx, 0xb7762a69
call fcn.00463f00
mov edx, 0x2788995d
mov ecx, eax
call fcn.00463e60
mov dword [0x46e3d8], eax
call eax
mov edi, eax
mov eax, dword [0x46e664]
test eax, eax
jne 0x463706
mov ecx, 0xb7762a69
call fcn.00463f00
mov edx, 0xc7d427f1
mov ecx, eax
call fcn.00463e60
mov dword [0x46e664], eax
push ebx
push 8
push edi
call eax
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x463772
shr ebx, 2
xor eax, eax
xor edi, edi
mov ecx, ebp
lea edx, [esi + ebx*4]
mov ebx, edx
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, edx
cmova ebx, eax
test ebx, ebx
je 0x46376a
mov ebp, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, ebp
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x463740
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [eax + ebp], 0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x463c70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov dword [esp + 4], 0x99a0
add dword [esp + 4], 0x7e22
mov eax, dword [esp + 4]
push ebx
mov ebx, ecx
lea eax, [eax + eax*8]
mov dword [esp + 8], eax
xor dword [esp + 8], 0x9d5d2
mov dword [esp + 4], 0xffb7
add dword [esp + 4], 0xffffc0e2
xor dword [esp + 4], 0xc09f
mov dword [esp + 4], 0x28c6
or dword [esp + 4], 0xecedb68f
add dword [esp + 4], 0xbdfb
shl dword [esp + 4], 0xb
xor dword [esp + 4], 0x73e65010
cmp byte [ebx], 0
je 0x463d55
push esi
push edi
lea ecx, [ecx]
mov edi, dword [esp + 0x10]
lea ebx, [ebx + 1]
mov dword [esp + 0xc], 0xffb7
add dword [esp + 0xc], 0xffffc0e2
xor dword [esp + 0xc], 0xc09f
movzx ecx, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], 0x28c6
or dword [esp + 0xc], 0xecedb68f
add dword [esp + 0xc], 0xbdfb
shl dword [esp + 0xc], 0xb
xor dword [esp + 0xc], 0x73e65010
shl esi, cl
movzx ecx, byte [esp + 0xc]
mov edx, dword [esp + 0x10]
movsx eax, byte [ebx - 1]
mov dword [esp + 0x10], eax
add dword [esp + 0x10], esi
shl edx, cl
add dword [esp + 0x10], edx
sub dword [esp + 0x10], edi
cmp byte [ebx], 0
jne 0x463ce0
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebx
add esp, 8
ret
Function at 0x463e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x463ebc
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.00463c70
xor eax, 0x63bd76f8
cmp eax, dword [esp + 0x10]
je 0x463ec6
inc esi
cmp esi, dword [edi + 0x18]
jb 0x463ea0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x463ef4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x463ef4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x464050
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x464076
cmp al, 0x2e
je 0x464073
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x464063
jmp 0x464076
mov byte [edx], 0
mov eax, dword [0x46e414]
test eax, eax
jne 0x46409a
mov ecx, 0xb7762a69
call fcn.00463f00
mov edx, 0x9485c9cf
mov ecx, eax
call fcn.00463e60
mov dword [0x46e414], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x4640e1
mov eax, dword [0x46e590]
test eax, eax
jne 0x4640cb
mov ecx, 0xb7762a69
call fcn.00463f00
mov edx, 0xbc96cd14
mov ecx, eax
call fcn.00463e60
mov dword [0x46e590], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x4640e1
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.00463c70
xor eax, 0x63bd76f8
mov ecx, edi
mov edx, eax
call fcn.00463e60
pop edi
pop esi
add esp, 0x104
ret
Function at 0x463f00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
mov dword [esp + 0xc], ecx
push ebx
push ebp
mov ecx, dword [eax + 0xc]
add ecx, 0xc
push esi
push edi
mov dword [esp + 0x18], ecx
mov ebp, dword [ecx]
cmp ebp, ecx
je 0x464030
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x14], 0x99a0
add dword [esp + 0x14], 0x7e22
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*8]
mov dword [esp + 0x14], eax
xor dword [esp + 0x14], 0x9d5d2
mov dword [esp + 0x10], 0xffb7
add dword [esp + 0x10], 0xffffc0e2
xor dword [esp + 0x10], 0xc09f
mov dword [esp + 0x10], 0x28c6
or dword [esp + 0x10], 0xecedb68f
add dword [esp + 0x10], 0xbdfb
shl dword [esp + 0x10], 0xb
xor dword [esp + 0x10], 0x73e65010
cmp word [edx], 0
je 0x464016
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 0xffb7
add dword [esp + 0x10], 0xffffc0e2
xor dword [esp + 0x10], 0xc09f
movzx ecx, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], 0x28c6
or dword [esp + 0x10], 0xecedb68f
add dword [esp + 0x10], 0xbdfb
shl dword [esp + 0x10], 0xb
xor dword [esp + 0x10], 0x73e65010
shl esi, cl
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x14]
movzx eax, word [edx]
shl edi, cl
cmp eax, 0x41
jb 0x463ff9
cmp eax, 0x5a
ja 0x463ff9
add eax, 0x20
mov dword [esp + 0x14], eax
add edx, 2
add dword [esp + 0x14], esi
add dword [esp + 0x14], edi
sub dword [esp + 0x14], ebx
cmp word [edx], 0
jne 0x463f92
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor eax, 0x3808cc1b
cmp eax, dword [esp + 0x1c]
je 0x46403a
mov ebp, dword [ebp]
cmp ebp, ecx
jne 0x463f25
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x464310
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x4644ae
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x4644ae
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x4644ae
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x4644ae
mov eax, dword [0x46dc0c]
test eax, eax
jne 0x46437b
mov ecx, 0xb7762a69
call fcn.00463f00
mov edx, 0x5a6cd0b2
mov ecx, eax
call fcn.00463e60
mov dword [0x46dc0c], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x4644a5
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x46decc]
test eax, eax
jne 0x4643db
mov ecx, 0xea26ec0f
call fcn.00463f00
mov edx, 0x5e00a98f
mov ecx, eax
call fcn.00463e60
mov dword [0x46decc], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x46445e
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x46decc]
test eax, eax
jne 0x464446
mov ecx, 0xea26ec0f
call fcn.00463f00
mov edx, 0x5e00a98f
mov ecx, eax
call fcn.00463e60
mov dword [0x46decc], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x464405
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.004645e0
mov edx, edi
mov ecx, ebx
call fcn.004644f0
pop esi
test eax, eax
jne 0x4644a5
mov eax, dword [0x46df10]
test eax, eax
jne 0x464499
mov ecx, 0xb7762a69
call fcn.00463f00
mov edx, 0x994fa9af
mov ecx, eax
call fcn.00463e60
mov dword [0x46df10], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x401613
Capabilities:
Query or enumerate registry value
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4050b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
push edi
push eax
push 0x20019
xor edi, edi
push edi
push 0x4016b8
push 0x80000002
mov dword [ebp - 0x214], edi
call esi
test eax, eax
je 0x402db7
push edi
push 0x401480
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_SetEnvironmentVariableW]
test eax, eax
je 0x402e70
call fcn.0040200e
xor esi, esi
inc esi
test al, al
je 0x401688
call dword [sym.imp.ext_ms_win_session_userinit_l1_1_0.dll_IsTSAppCompatOn]
test eax, eax
jne 0x402e96
cmp dword [ebp - 0x214], 0
jne 0x402ebe
mov ecx, dword fs:[0x30]
mov eax, dword [0x7ffe02d8]
cmp eax, dword [ecx + 0x1d4]
je 0x40175a
jmp 0x402edf
push esi
xor ebx, ebx
test al, al
push edi
sete bl
push ebx
push edi
push edi
push 0x401400
call fcn.00401766
test eax, eax
jne 0x401747
push esi
push edi
push ebx
push esi
push 0x4013ec
push 0x401400
call fcn.00401766
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013df
mov esp, ebp
pop ebp
ret
call fcn.0040200e
jmp 0x40171a
mov ebx, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x21c], 4
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x402efc
push dword [ebp - 0x218]
call ebx
push dword [ebp - 0x218]
mov edi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
call edi
cmp dword [ebp - 0x214], 0
je 0x402e69
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
push 0x402f20
push 0x80000002
call esi
test eax, eax
jne 0x402e89
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0x402f74
push dword [ebp - 0x218]
call ebx
test eax, eax
jne 0x402e5a
cmp word [ebp - 0x210], ax
jne 0x402e61
and dword [ebp - 0x214], 0
push dword [ebp - 0x218]
call edi
xor edi, edi
jmp 0x40165a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0xcb
je 0x40166e
xor eax, eax
inc eax
jmp 0x401749
xor edi, edi
mov dword [ebp - 0x214], edi
jmp 0x40165a
push esi
push esi
push esi
push edi
push edi
mov ebx, 0x402f94
push ebx
call fcn.00401766
test eax, eax
jne 0x401688
push esi
push esi
push esi
push esi
push edi
push ebx
call fcn.00401766
jmp 0x401688
push edi
push 3
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00401a6b
test eax, eax
je 0x40175a
xor eax, eax
jmp 0x401749
call fcn.0040200e
test al, al
je 0x40175a
call dword [sym.imp.ext_ms_win_session_userinit_l1_1_0.dll_ProcesRemoteSessionInitialCommand]
test al, al
je 0x402ed8
jmp 0x40175a
Function at 0x401b82
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401bd0
call fcn.004015c9
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401bf3
cmp eax, 0xffffffff
je 0x401bf3
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401bec
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401bec
cmp edx, 0x10000000
jae 0x401bec
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401bfd
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00401c02
ret 4
mov dword [ebp - 0x1c], ecx
jmp 0x401bec

Function at 0x4020fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push ebx
mov ebx, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
push esi
push edi
push eax
push 0x20019
push 0
push 0x401410
push 0x80000001
call ebx
mov esi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test eax, eax
jne 0x40215c
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x402204
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401410
push 0x80000002
call ebx
test eax, eax
jne 0x40219b
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x402204
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401098
push 0x80000001
call ebx
test eax, eax
je 0x4030d2
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401098
push 0x80000002
call ebx
test eax, eax
jne 0x4021f9
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x402204
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x402204
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
jmp 0x4021ba
Function at 0x403488
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, 0x4032e0
push ebx
mov ebx, edx
call fcn.00401ef9
mov dword [ebx], eax
test eax, eax
je 0x40350d
push esi
mov esi, dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
push edi
push eax
call esi
push dword [ebp - 4]
mov edi, eax
call esi
add edi, eax
lea edi, [edi*2 + 4]
push edi
push 0x40
call dword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40350b
push dword [ebp - 4]
shr edi, 1
mov ecx, esi
mov edx, edi
call fcn.00401c1b
push 0x403514
mov edx, edi
mov ecx, esi
call fcn.00403371
push dword [ebx]
mov edx, edi
mov ecx, esi
call fcn.00403371
push esi
push 0x4032e0
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_SetEnvironmentVariableW]
push esi
call dword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40383d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401410
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x403894
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4038e8
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401098
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x4038df
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4038e8
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x40391b
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
mov ebx, dword [ebp + 0x28]
push esi
push edi
mov edi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
and dword [ebx], 0
push eax
push 0x20019
push 0
push 0x401410
push 0x80000002
call edi
mov esi, eax
test esi, esi
jne 0x4039f5
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x403a20
push 0x80000002
call edi
mov edi, dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x4039f0
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x24], eax
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push 0x401400
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4039eb
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
push esi
push 0x403a00
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4039eb
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jne 0x4039eb
mov eax, dword [ebp + 0x28]
cmp eax, dword [ebp + 0x24]
jne 0x4039eb
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4039eb
mov dword [ebx], 1
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x403ab1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4050b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0xc]
mov ebx, esi
push edi
mov dword [ebp - 0x2c], eax
mov edi, esi
mov dword [ebp - 0x3c], ecx
push esi
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], 7
push ecx
push esi
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
push dword [eax + 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x403b57
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
cmp eax, ebx
jle 0x403b67
mov dword [ebp - 0x38], eax
lea ebx, [ebp - 0x14]
lea eax, [ebp - 0x24]
push 7
mov edx, eax
pop ecx
sub ebx, edx
test ecx, ecx
je 0x403b3d
movzx edx, word [ebx + eax]
test dx, dx
je 0x403b39
mov word [eax], dx
add eax, 2
dec ecx
jne 0x403b23
test ecx, ecx
jne 0x403b47
sub eax, 2
mov ecx, 0x8007007a
jmp 0x403b49
mov ecx, esi
xor edx, edx
mov word [eax], dx
test ecx, ecx
js 0x403b75
mov ebx, dword [ebp - 0x38]
jmp 0x403b67
mov ecx, 0x103
cmp eax, ecx
je 0x403b7c
cmp eax, 0xea
jne 0x403b9a
inc edi
cmp edi, 0xffffffff
jae 0x403ba0
mov eax, dword [ebp - 0x2c]
jmp 0x403ae0
mov esi, 0x10a
jmp 0x403ba0
test ebx, ebx
je 0x403b9e
push dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push esi
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax + 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
jmp 0x403ba0
mov esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013df
mov esp, ebp
pop ebp
ret 8

Function at 0x403d11
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x403d4f
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403d47
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403d51
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403d37
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403e39
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x403e4f
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x403e6a
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x100069a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0xabf1c48], 0
jne 0x10006a45
xor ecx, ecx
nop
mov eax, ecx
shr eax, 1
test cl, 1
je 0x100069be
xor eax, 0xedb88320
test al, 1
je 0x100069cb
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069cd
shr eax, 1
test al, 1
je 0x100069da
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069dc
shr eax, 1
test al, 1
je 0x100069e9
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069eb
shr eax, 1
test al, 1
je 0x100069f8
shr eax, 1
xor eax, 0xedb88320
jmp 0x100069fa
shr eax, 1
test al, 1
je 0x10006a07
shr eax, 1
xor eax, 0xedb88320
jmp 0x10006a09
shr eax, 1
test al, 1
je 0x10006a16
shr eax, 1
xor eax, 0xedb88320
jmp 0x10006a18
shr eax, 1
test al, 1
je 0x10006a25
shr eax, 1
xor eax, 0xedb88320
jmp 0x10006a27
shr eax, 1
mov dword [ecx*4 + 0xabf1c50], eax
inc ecx
cmp ecx, 0x100
jl 0x100069b0
mov dword [0xabf1c48], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x10006a72
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0xabf1c50]
dec edx
jne 0x10006a56
pop esi
ret