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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40ed55
pop dword [ebp - 0x30]
mov eax, 0x40ed55
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3aa4b
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x40e7
xor ebx, ebx
add ebx, eax
mov edi, 0x4e7a61e5
sub edi, 0x4e3733e5
add edi, dword [ebp - 0x30]
mov edx, 0xbe6384a3
sub edx, 0xd739d4a6
xor dword [ebp - 0x10], 0x5037dec3
mov esi, dword [edi]
xor esi, edx
sub dword [ebp - 0x1c], 0x88bb9784
mov dword [ebx], esi
xor dword [ebp - 0x1c], 0xb0bcfe56
add ebx, 0xf0c29d5c
add ebx, 0xf3d62a8
add edi, 4
loop 0x40eda6
add eax, 0xf66f
mov ebx, eax
add eax, 0xed70da15
add eax, 0x128f25f0
mov ecx, 0x7d0c5e8b
sub ecx, 0x7ccc5e8b
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x352190
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
or ebp, 0xffffffff
jmp 0x3521b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x3521b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3521a8
mov eax, 1
add ebx, ebx
jne 0x3521cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x3521c0
jne 0x3521dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3521c0
xor ecx, ecx
sub eax, 3
jb 0x3521f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x352262
mov ebp, eax
add ebx, ebx
jne 0x3521fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x352208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x35222c
inc ecx
add ebx, ebx
jne 0x352218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x35220d
jne 0x352229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x35220d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x35224c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x35223d
jmp 0x3521ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x35224c
add edi, ecx
jmp 0x3521ae
pop esi
mov edi, esi
mov ecx, 0x20d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x35226a
cmp byte [edi], 1
jne 0x35226a
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 0x35226f
mov ebp, dword [esi + 0x32034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x3522ca
sub esp, 0xffffff80
jmp 0x329c3c
Function at 0x48e120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x48e142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48e149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48e138
mov eax, 1
add ebx, ebx
jne 0x48e15b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48e150
jne 0x48e16c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48e150
xor ecx, ecx
sub eax, 3
jb 0x48e180
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48e1f2
mov ebp, eax
add ebx, ebx
jne 0x48e18b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x48e198
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x48e1bc
inc ecx
add ebx, ebx
jne 0x48e1a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48e19d
jne 0x48e1b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48e19d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48e1dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48e1cd
jmp 0x48e13e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48e1dc
add edi, ecx
jmp 0x48e13e
pop esi
mov edi, esi
mov ecx, 0x8a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48e1fa
cmp byte [edi], 2
jne 0x48e1fa
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 0x48e1ff
lea edi, [esi + 0x8c000]
mov eax, dword [edi]
or eax, eax
je 0x48e277
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x94e64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x94ea0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48e22c
mov ecx, edi
jns 0x48e25b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x94ea8]
or eax, eax
je 0x48e271
mov dword [ebx], eax
add ebx, 4
jmp 0x48e249
call dword [esi + 0x94ea4]
mov ebp, dword [esi + 0x94eac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x48e2ab
sub esp, 0xffffff80
jmp 0x401330
Function at 0x84d380
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x429000]
push edi
or ebp, 0xffffffff
jmp 0x84d3a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x84d3a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x84d398
mov eax, 1
add ebx, ebx
jne 0x84d3bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x84d3cc
jne 0x84d3eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x84d3eb
dec eax
add ebx, ebx
jne 0x84d3d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x84d3b0
add ebx, ebx
jne 0x84d3e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x84d43d
xor ecx, ecx
sub eax, 3
jb 0x84d403
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x84d472
sar eax, 1
mov ebp, eax
jmp 0x84d40e
add ebx, ebx
jne 0x84d40e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x84d3dc
inc ecx
add ebx, ebx
jne 0x84d41c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x84d3dc
add ebx, ebx
jne 0x84d429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x84d41e
jne 0x84d43a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x84d41e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x84d45c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x84d44e
jmp 0x84d39e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x84d45c
add edi, ecx
jmp 0x84d39e
pop esi
mov edi, esi
mov ecx, 0xc4c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x84d47a
cmp byte [edi], 6
jne 0x84d47a
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 0x84d47f
lea edi, [esi + 0x44b000]
mov eax, dword [edi]
or eax, eax
je 0x84d4ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x450040]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4500a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x84d4ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4500a8]
or eax, eax
je 0x84d4e8
mov dword [ebx], eax
add ebx, 4
jmp 0x84d4c9
call dword [esi + 0x4500a4]
mov ebp, dword [esi + 0x4500ac]
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 0x84d522
sub esp, 0xffffff80
jmp 0x40ad40
Function at 0x458c50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3d000]
push edi
jmp 0x458c6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x458c71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458c60
mov eax, 1
add ebx, ebx
jne 0x458c83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x458c94
jne 0x458cb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458cb3
dec eax
add ebx, ebx
jne 0x458ca0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x458c78
add ebx, ebx
jne 0x458caf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x458d05
xor ecx, ecx
sub eax, 3
jb 0x458ccb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x458d3a
sar eax, 1
mov ebp, eax
jmp 0x458cd6
add ebx, ebx
jne 0x458cd6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458ca4
inc ecx
add ebx, ebx
jne 0x458ce4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458ca4
add ebx, ebx
jne 0x458cf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x458ce6
jne 0x458d02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x458ce6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x458d24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x458d16
jmp 0x458c66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x458d24
add edi, ecx
jmp 0x458c66
pop esi
mov edi, esi
mov ecx, 0xd4d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x458d42
cmp byte [edi], 0x11
jne 0x458d42
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 0x458d47
lea edi, [esi + 0x55000]
mov eax, dword [edi]
or eax, eax
je 0x458db6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x67448]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6748c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x458d74
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x67494]
or eax, eax
je 0x458db0
mov dword [ebx], eax
add ebx, 4
jmp 0x458d91
call dword [esi + 0x67490]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x458de7
cmp al, 0xef
ja 0x458dda
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x458dbc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x458dc9
mov ebp, dword [esi + 0x67498]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x458e1b
sub esp, 0xffffff80
jmp 0x4099a0
Function at 0x405710
Capabilities:
Listen for remote procedure calls

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x26]
sub esp, 0x40
mov dword [ebp - 0x38], 0x63006e
mov dword [ebp - 0x34], 0x630061
mov dword [ebp - 0x30], 0x5f006e
mov dword [ebp - 0x2c], 0x70006e
mov word [ebp - 0x28], 0
test bl, 2
jne 0x405910
mov edi, ebx
mov esi, section..data
mov eax, 0x1a
mov ecx, eax
shr ecx, 2
test al, 2
rep movsd dword es:[edi], dword [esi]
je 0x405764
mov ax, word [esi]
mov word [edi], ax
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x420004], eax
test eax, eax
je 0x405818
lea eax, [ebp - 0x38]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcServerUseProtseqEpW]
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x4057b8
test byte [0x41801c], 2
jne 0x4058a0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4181a8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcServerRegisterIf]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x405838
test byte [0x41801c], 2
je 0x4057ad
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerRegisterIf_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x41801c
mov dword [esp], 1
call fcn.004016d0
jmp 0x4057ad
test byte [0x41801c], 2
jne 0x4058d8
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4d2
mov dword [esp], 1
call dword [sym.imp.rpcrt4.dll_RpcServerListen]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x405930
test byte [0x41801c], 2
je 0x4057ad
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerListen_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x41801c
mov dword [esp], 1
call fcn.004016d0
jmp 0x4057ad
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerUseProtseq_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x41801c
mov dword [esp], 1
call fcn.004016d0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], 0x41a4b8
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x41801c
mov dword [esp], 1
call fcn.004016d0
jmp 0x405825
mov ax, word [section..data]
lea edi, [ebp - 0x24]
mov word [ebp - 0x26], ax
mov esi, 0x418002
mov eax, 0x18
jmp 0x405753
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x420000
mov dword [esp + 4], 0x3e8
mov dword [esp], 0xffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
sub esp, 0x10
jmp 0x4057ad
Function at 0x405ab0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov ebx, eax
test ecx, ecx
je 0x405b08
cmp word [ecx], 0
mov eax, ecx
je 0x405b20
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405ac8
sub eax, ecx
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
cmp eax, 2
push edx
push edx
jne 0x405afe
xor eax, eax
jmp 0x405afe
mov eax, 2
jmp 0x405ad6

Function at 0x405b30
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov ebx, eax
test ecx, ecx
je 0x405b8e
cmp word [ecx], 0
mov eax, ecx
je 0x405ba6
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405b48
add eax, 2
cmp word [eax], 0
jne 0x405b48
sub eax, ecx
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 7
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
cmp eax, 2
push edx
push edx
jne 0x405b87
xor eax, eax
jmp 0x405b87
mov eax, 2
jmp 0x405b5f
Function at 0x4072e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 8
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 8]
lea esi, [edi + 0x18]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push eax
lock dec dword [ebx + 0xc]
jne 0x407309
mov ecx, dword [ebx + 0x74]
test ecx, ecx
jne 0x407320
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
push edx
push edx
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp], ebx
call fcn.00406fd0
jmp 0x407309

Function at 0x4074b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
lea eax, [edi + 0x18]
add edi, 0x10
mov dword [esp], eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
push ebx
push ebx
mov ebx, dword [edi]
cmp edi, ebx
jne 0x4074f6
jmp 0x40751e
mov ebx, dword [ebx]
cmp ebx, edi
je 0x40751e
cmp dword [ebx + 0x68], esi
jne 0x4074f0
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x68], 0
mov edx, dword [esi + 0x10]
dec edx
mov dword [esi + 0x10], edx
mov dword [esp], esi
call fcn.00406f40
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x4074f6
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408dc0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x10]
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [eax], 0
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x408e38
mov edi, eax
cmp eax, 2
je 0x408f08
xor ecx, ecx
test byte [0x4180a0], 2
jne 0x408e58
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x408e98
cmp eax, 2
jne 0x408e4c
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x408e98
mov edi, 0x70c
jmp 0x408e17
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
call fcn.00408a90
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], 0x41b7f0
mov dword [esp + 4], 0x4180a0
mov dword [esp], 1
call fcn.00408d10
mov ecx, dword [ebp - 0x18]
jmp 0x408e22
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x1c], eax
call eax
mov ecx, eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [ebp - 0x18], ecx
call ebx
mov ecx, dword [ebp - 0x18]
sub esp, 0x18
mov edi, eax
test eax, eax
jne 0x408e19
mov eax, dword [ebp - 0x14]
and eax, 0xfffffffe
cmp dword [ebp - 0x10], 2
mov word [ecx + eax], 0
je 0x408f18
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor edi, edi
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov esi, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
call esi
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
mov ebx, eax
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x408f50
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
jmp 0x408e19
lea eax, [eax + eax]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov ecx, dword [ebp - 0x18]
mov dword [esp], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [ebp - 0x1c], eax
call esi
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
jmp 0x408e2b
Function at 0x408f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x14]
sub esp, 0x2c
lea esi, [ebp - 0x10]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x18
test eax, eax
je 0x409048
xor edx, edx
mov ebx, eax
cmp eax, 2
je 0x4090e0
test byte [0x4180a0], 2
jne 0x409008
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
call fcn.00408a90
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], str.load_reg_multisz
mov dword [esp + 4], 0x4180a0
mov dword [esp], 1
call fcn.00408d10
mov edx, dword [ebp - 0x18]
jmp 0x408ff4
mov eax, dword [ebp - 0x10]
cmp eax, 7
je 0x409070
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40905a
dec eax
je 0x409070
xor edx, edx
mov ebx, 0x70c
test byte [0x4180a0], 2
je 0x408ff4
jmp 0x409008
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x18]
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x408feb
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
mov word [ecx + eax], 0
mov word [ecx + eax + 2], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 2
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ecx], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 4
mov dword [eax], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x4091b8
cmp eax, 2
je 0x4091e0
test byte [0x4180a0], 2
jne 0x409178
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
call fcn.00408a90
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], str.load_reg_dword
mov dword [esp + 4], 0x4180a0
mov dword [esp], 1
call fcn.00408d10
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
sub eax, 3
cmp eax, 1
ja 0x4091c9
cmp dword [ebp - 0xc], 4
je 0x40916b
test byte [0x4180a0], 2
mov ebx, 0x70c
je 0x40916b
jmp 0x409178
xor ebx, ebx
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4167f0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x416860
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
and eax, 0xff
inc eax
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004168b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]