joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
mov ebx, ecx
jge 0x4066d2
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp + 0xc], 0x564f04
call fcn.00530e71
push 0x59d954
lea ecx, [ebp - 0xc]
push ecx
call fcn.0053111d
xor eax, eax
lea ecx, [ebx + 1]
mov byte [ecx + eax], al
inc eax
cmp eax, 0x100
jl 0x4066d7
mov esi, dword [ebp + 8]
mov word [ebx + 0x201], 0
mov edi, 0x100
jmp 0x406700
movzx edx, byte [ebx + 0x201]
mov dword [ebx + 0x204], ecx
mov al, byte [edx + esi]
add al, byte [ecx]
inc ecx
add byte [ebx + 0x202], al
movzx edx, byte [ebx + 0x202]
lea eax, [edx + ebx + 1]
mov dword [ebx + 0x208], eax
movzx edx, byte [ecx - 1]
mov byte [ebx + 0x20c], dl
movzx edx, byte [eax]
mov byte [ecx - 1], dl
movzx edx, byte [ebx + 0x20c]
mov eax, dword [ebx + 0x208]
mov byte [eax], dl
movzx eax, byte [ebx + 0x201]
inc eax
cdq
idiv dword [ebp + 0xc]
dec edi
mov byte [ebx + 0x201], dl
jne 0x406700
lea edi, [ebx + 0x101]
lea esi, [ebx + 1]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov word [ebx + 0x201], 0
mov byte [ebx], 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407d50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f383
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], 0x5653f4
call fcn.0054dcad
mov dword [ebp - 4], 0
push 4
call fcn.0042d694
mov edi, eax
add esp, 4
test edi, edi
je 0x407dd8
call fcn.0054d9a4
mov dword [edi], eax
call fcn.0054d763
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0054d698
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407dca
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0054d6c0
jmp 0x407dda
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4082a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f408
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00407d50
xor ecx, ecx
mov dword [ebp - 4], ecx
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
mov dword [esi], 0x565434
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x3c], 0x20
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x48], 4
cmp dword [ebp + 0xc], ecx
jl 0x408344
mov eax, dword [ebp + 8]
jg 0x408341
cmp eax, 0x20
jbe 0x408344
mov dword [esi + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x409490
Capabilities:
Hash data using sha256

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret

Function at 0x4094e0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov byte [ecx + 0x68], al
ret
Function at 0x40d8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fa30
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5ba6c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 4], bl
jne 0x40d992
mov edx, dword [0x5b520c]
mov eax, edx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d940
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.004046b0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
jb 0x40d964
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
jmp 0x40d96a
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x44]
call fcn.00530e71
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], 0x564f38
mov byte [ebp - 4], bl
push 0x59cfd0
lea eax, [ebp - 0x44]
push eax
call fcn.0053111d
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
jae 0x40da09
mov edx, dword [0x5b5220]
mov eax, edx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40d9b2
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.004046b0
mov ebx, 2
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
jb 0x40d9db
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
jmp 0x40d9e1
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x44]
call fcn.00530e71
mov byte [ebp - 4], 3
mov dword [ebp - 0x44], 0x564f38
mov byte [ebp - 4], bl
push 0x59cfd0
lea ecx, [ebp - 0x44]
push ecx
call fcn.0053111d
cmp ecx, ebx
jbe 0x40da8b
sub eax, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], eax
mov edx, dword [ebp + 8]
mov al, byte [edx]
xor byte [esi + 0x23d], al
lea ecx, [esi + 0x18]
call fcn.004067e0
xor al, byte [esi + 0x23d]
lea ecx, [esi + 0x18]
mov byte [ebp - 0x31], al
call fcn.004067e0
mov bl, al
add bl, byte [ebp - 0x31]
mov ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [esi + 0x22c], ecx
jle 0x40da78
nop
lea ecx, [esi + 0x18]
call fcn.004067e0
lea ecx, [esi + 0x18]
xor bl, al
call fcn.004067e0
add bl, al
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, dword [esi + 0x22c]
jl 0x40da50
mov ecx, 1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x48]
mov byte [edx + eax], bl
add eax, ecx
sub dword [ebp - 0x38], ecx
mov dword [ebp + 8], eax
jne 0x40da16
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f5f0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410d80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fff9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0042e490
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x410dc9
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea ebx, [esi + 4]
mov dword [ebp - 0x14], ebx
call fcn.0042e490
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x410dfe
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 3
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov byte [ebp - 4], 4
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov byte [ebp - 4], 5
mov dword [esi + 8], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55282b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ba6c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041ffd0
xor edi, edi
mov dword [ebp - 4], edi
lea ebx, [esi + 0x28]
mov dword [esi], 0x566d0c
mov dword [ebp - 0x14], ebx
call fcn.0042e490
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42038d
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50e61f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0043757a
call fcn.00430d30
cmp eax, esi
pop esi
jne 0x50e63b
mov ecx, 0x5be3a0
jmp fcn.004525da
ret
Function at 0x401670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4925e0
mov eax, dword [ebp + 8]
push eax
call dword [0x4923c8]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x40170b
mov dword [ebp - 8], 0
push 0x4925e4
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00448385
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x40170b
push 0x10000
call fcn.0044809b
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4016ff
push 0x10000
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.0043e450
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
push 1
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call fcn.00448d6b
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x4923c8]
mov ecx, dword [ebp - 8]
push ecx
call fcn.00448482
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4034e0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], 0x4c11db7
mov dword [ebp - 4], 0
jmp 0x403502
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xff
jg 0x4035a2
push 8
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00403620
shl eax, 0x18
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], eax
mov dword [ebp - 0xc], 0
jmp 0x40353c
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x40357e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
and edx, 0x80000000
je 0x40355c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x403563
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 4]
shl eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x403533
push 0x20
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
push edx
mov ecx, dword [ebp - 8]
call fcn.00403620
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4034f9
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10001000
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc
mov eax, dword [0x1005454c]
xor eax, esp
push esi
mov dword [esp + 0xc], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push 7
lea ecx, [esp + 8]
push ecx
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10001055
mov al, byte [esp + 4]
test al, al
lea ecx, [esp + 4]
je 0x10001055
lea ebx, [ebx]
movsx eax, al
lea edx, [esi + esi*4]
inc ecx
lea esi, [eax + edx*2 - 0x30]
mov al, byte [ecx]
test al, al
jne 0x10001040
test esi, esi
jne 0x1000106b
call dword [sym.imp.KERNEL32.dll_GetACP]
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.1003609d
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1003609d
add esp, 0xc
ret

Function at 0x100011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100011d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x100011ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x1000120e
cmp esi, eax
jae 0x100011e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001200
cmp esi, eax
jae 0x100011e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10002640
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10002660
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [esi]
push edi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x10002690
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x100026a2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x100031a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1005454c]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x230], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x1000320e
test ecx, ecx
je 0x10003200
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x1000321c
test ecx, ecx
je 0x100032c1
push ecx
jmp 0x100032bb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x1000328e
jmp 0x10003250
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.100031a0
mov edi, eax
test edi, edi
jne 0x100032dd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x10003250
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100032a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100032c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1003609d
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100032ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100032c3
Function at 0x10005900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043026
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
mov eax, dword [0x1005454c]
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, ebp
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x41c], eax
call dword [0x10053070]
xor eax, eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x418], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
mov dword [ebp - 0x424], esi
jne 0x10005988
call fcn.100024a0
mov edi, eax
jmp 0x10005a7f
mov ecx, dword [ebp - 0x41c]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100059a7
call fcn.100024a0
jmp 0x10005a76
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x41c], ebx
jne 0x100059c5
call fcn.100024a0
jmp 0x10005a76
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + edi + 2]
cmp eax, 0x400
mov dword [ebp - 0x420], edi
mov byte [ebp - 4], 2
jbe 0x100059f8
push eax
lea ecx, [ebp - 0x418]
call fcn.10002c30
jmp 0x10005a18
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
jmp 0x10005a18
mov eax, dword [ebp - 0x418]
test eax, eax
mov dword [ebp - 4], 1
jne 0x10005a30
mov edi, 0x8007000e
jmp 0x10005a78
call dword [0x10053070]
mov ecx, dword [ebp - 0x418]
push edi
push ecx
push edi
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10005a54
call fcn.100024a0
jmp 0x10005a76
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp + 0x14]
mov word [edx + edi*2], 0
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.100055a0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x418]
lea edx, [ebp - 0x414]
cmp eax, edx
je 0x10005a9a
lea ecx, [ebp - 0x418]
call fcn.10002c20
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003609d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007a60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x1005454c]
xor eax, ebp
mov dword [esp + 0x230], eax
lea eax, [esp]
push edi
push eax
call fcn.10018700
mov edx, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], cx
xor eax, eax
push edx
mov ecx, 0x82
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push 0x10046f90
push eax
mov dword [esp + 0x1c], 3
mov word [esp + 0x28], 0x10
call fcn.100372bf
add esp, 0x10
lea edx, [esp + 8]
lea ecx, [esp + 0x28]
push edx
mov dword [esp + 0x14], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007b0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x234]
xor ecx, ebp
pop edi
call fcn.1003609d
mov esp, ebp
pop ebp
ret

Function at 0x10007f30
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x100431f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x100555f8]
push edi
mov ecx, 0x100555f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
push str.1631550F_191D_4826_B069_D9439253D926
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
lea ecx, [esp + 0xc]
push 0x10046fe8
push ecx
mov dword [esp + 0x24], 0
call fcn.10005730
mov edi, dword [esp + 0x14]
add esp, 0x10
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10007fea
push esi
push 0x10046848
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esp + 0xc]
lea ecx, [eax + eax + 2]
push ecx
push 0x10046848
push 1
push 0
push 0x10046c94
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x10007fe9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
jg 0x1000800d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret