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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10014e3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10014e3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x472b3060
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x49e71c87
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401638
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40166a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401666
cmp esi, eax
jae 0x40166a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401658
cmp esi, eax
jb 0x401670
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4019b0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4683c0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00453220
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
mov edi, dword [edx - 0xc]
add esp, 0xc
lea eax, [ebp - 0x10]
add edi, 8
push eax
lea esi, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.00424ee0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
push ecx
lea esi, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00424ee0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edi
mov edx, dword [eax - 0xc]
push ebx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
cmp esi, ebx
je 0x401a75
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401a64
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [ebp + 0xc]
push esi
push eax
call fcn.00401330
mov edi, dword [ebp - 0x20]
test edi, edi
jne 0x401a8a
xor eax, eax
jmp 0x401a9f
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a90
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 0x10]
push edi
push ecx
mov ebx, eax
call fcn.00401330
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
test edi, edi
je 0x401ac0
push edi
call fcn.0044ebcc
add esp, 4
test esi, esi
je 0x401acd
push esi
call fcn.0044ebcc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401af0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46837b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x40f]
mov dword [ebp - 0x414], ebx
push ebx
push eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], 0x400
mov byte [ebp - 0x410], bl
call fcn.00453220
add esp, 0xc
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x410]
push edx
push ebx
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 4], ebx
test eax, 0xffff0000
jne 0x401ba3
mov ecx, eax
movzx edi, cx
call fcn.004014d0
cmp eax, ebx
je 0x401bb0
push eax
mov eax, edi
mov edi, esi
call fcn.00401290
jmp 0x401bb0
lea ebx, [ebp - 0x410]
mov eax, esi
call fcn.004216a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x402330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b06f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [edi + 0x10]
push esi
mov dword [edi], vtable.FCHttpRequest.0
call fcn.004017c0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [edi + 0x64], eax
mov byte [ebp - 4], 1
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [edi + 0x68], eax
mov byte [ebp - 4], 2
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [edi + 0x74], eax
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [edi + 0x78], eax
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x80], ebx
lea eax, [edi + 0x88]
push eax
mov dword [edi + 0x84], vtable.inner::FCAutoCSec.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x84], vtable.inner::CReceiveBuffer.0
mov dword [edi + 0xb4], 0xf
mov dword [edi + 0xb0], ebx
mov byte [edi + 0xa0], bl
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xc8], ebx
mov dword [edi + 0xcc], ebx
mov dword [edi + 0xd0], ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 9
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
call fcn.00402e30
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x68]
push eax
lea eax, [edi + 0x64]
push eax
push esi
call fcn.004019b0
mov ecx, edi
call fcn.00402b30
push ebx
push ebx
push edi
mov dword [edi + 0xc0], eax
push 0x4026b0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [edi + 0x5c], ebx
cmp eax, ebx
je 0x4024a0
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402b30
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469c58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x48]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x402bd2
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push ecx
push edx
push str._s:_d
lea edi, [ebp - 0x10]
call fcn.00428b20
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi + 0x38]
add esp, 0xc
push 0
push 0
push ebx
push 3
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402be6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402be6
mov eax, dword [esi + 0x38]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov ecx, dword [esi + 0x50]
cmp dword [ecx - 0xc], 0
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x402c01
mov eax, ecx
mov edx, dword [eax - 0xc]
push edx
push eax
push 0x2b
push edi
call ebx
mov eax, dword [esi + 0x54]
cmp dword [eax - 0xc], 0
je 0x402c16
mov esi, eax
mov ecx, dword [esi - 0xc]
push ecx
push esi
push 0x2c
push edi
call ebx
mov eax, edi
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 0x402c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0xcc]
test eax, eax
je 0x402c45
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xcc], 0
cmp dword [edi + 0x60], 4
jne 0x402c5c
or dword [edi + 0x40], 0x800000
or dword [edi + 0x40], 0x4000000
push esi
lea eax, [edi + 0x10]
lea esi, [ebp - 4]
call fcn.00401950
mov esi, dword [edi + 0x40]
mov ecx, dword [edi + 0x68]
mov eax, dword [eax]
mov edx, dword [edi + 0xc4]
push 0
push esi
push 0
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0xc8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x402cb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push edi
push 0x402970
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xd0], eax
mov esp, ebp
pop ebp
ret
Function at 0x4046c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466f48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
jne 0x404753
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
sub eax, ecx
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push edi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x404749
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov dword [edi], ecx
lea eax, [ebp - 0x24]
lea ecx, [edi + 4]
call fcn.00422a20
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
mov ecx, edi
call fcn.00404510
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebx + 4]
push edi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x10]
cmp eax, 0xea
je 0x404789
mov edx, dword [edi + 8]
sub edx, dword [edi + 4]
cmp edx, ecx
jae 0x4047ab
mov eax, ecx
mov ecx, edi
call fcn.00404510
mov esi, dword [edi + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404880
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46822b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, dword [ebp + 8]
mov dword [edi], ecx
xor ecx, ecx
lea ebx, [edi + 8]
lea esi, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov dword [ebp - 0x10], ebx
mov word [esi], dx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
lea edx, [ebp + 0xc]
push edx
push ecx
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp + 0xc], 0
jne 0x40490b
mov dword [edi], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx]
inc ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x10]
cmp ecx, eax
ja 0x404921
or eax, 0xffffffff
call fcn.0042fef0
jmp 0x404932
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426a10
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
cmp dword [esi + 0x14], 8
mov ecx, dword [ebx]
mov dword [ebp + 0xc], ecx
jb 0x404941
mov eax, dword [esi]
jmp 0x404943
mov eax, esi
mov ecx, dword [edi]
push 0
push 0
push 0
push 0
lea edx, [ebp + 0xc]
push edx
push eax
mov eax, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
inc ecx
cmp ecx, eax
ja 0x404986
or eax, 0xffffffff
call fcn.0042fef0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426a10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4049b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x1c]
lea esi, [edi + 0xc]
mov dword [ebp - 4], ecx
cmp ecx, eax
ja 0x4049d4
or eax, 0xffffffff
call fcn.0042fef0
jmp 0x4049e2
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426a10
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
inc eax
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 8
jb 0x4049f3
mov ecx, dword [esi]
jmp 0x4049f5
mov ecx, esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 4]
push edx
push ecx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404a2e
mov dword [edi], ebx
mov dword [edi + 4], ebx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x404a1e
mov esi, dword [esi]
xor ecx, ecx
mov eax, edi
pop edi
mov word [esi], cx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x10]
inc ecx
cmp ecx, eax
ja 0x404a4c
or eax, 0xffffffff
call fcn.0042fef0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426a10
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4681f6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, dword [ebp + 8]
mov dword [edi], ecx
xor edx, edx
lea eax, [edi + 8]
lea ecx, [edi + 0xc]
lea esi, [edi + 0x10]
mov dword [edi + 4], edx
mov dword [eax], edx
mov dword [ecx], edx
xor ebx, ebx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], ecx
mov word [esi], bx
lea ebx, [edi + 0x2c]
mov dword [ebp - 4], edx
mov dword [ebx], edx
mov dword [ebp - 0x18], ebx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
push edx
push edx
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push edx
push edx
push edx
push edx
push edx
mov byte [ebp - 4], 1
mov ecx, dword [edi]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x20], 0
jne 0x404b09
mov dword [edi], 0
jmp 0x404ba8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
cmp ecx, eax
ja 0x404b22
or eax, 0xffffffff
call fcn.0042fef0
jmp 0x404b33
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426a10
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, ebx
call fcn.00404510
cmp dword [esi + 0x14], 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
jb 0x404b59
mov eax, dword [esi]
jmp 0x404b5b
mov eax, esi
mov edx, dword [edi + 0x30]
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov edx, dword [edi + 4]
push ebx
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x10]
inc ecx
cmp ecx, eax
ja 0x404b8d
or eax, 0xffffffff
call fcn.0042fef0
jmp 0x404b9e
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426a10
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.00404510
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jne 0x404cd2
push 0x47b9c8
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], str.d:projects_adx.net_adx.netcommon_source_adxbootstrapperclicktwice.downloaderRegistryKey.h_501__:_ensure:__k___failed
call fcn.00453150
mov eax, dword [edi + 0x20]
lea esi, [edi + 0x10]
cmp ecx, eax
ja 0x404ce6
or eax, 0xffffffff
call fcn.0042fef0
jmp 0x404cf4
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426a10
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea ebx, [edi + 0x2c]
mov ecx, ebx
mov dword [ebp - 0xc], ebx
call fcn.00404510
mov eax, dword [edi + 4]
inc eax
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 8
jb 0x404d15
mov ecx, dword [esi]
jmp 0x404d17
mov ecx, esi
lea edx, [ebp - 4]
push edx
mov edx, dword [edi + 0x30]
push edx
push ebx
push 0
lea edx, [ebp - 8]
push edx
push ecx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x404d75
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x404d47
mov esi, dword [esi]
xor ecx, ecx
mov word [esi], cx
mov eax, dword [edi + 0x34]
mov ebx, dword [edi + 0x30]
cmp ebx, eax
je 0x404da5
mov esi, eax
sub esi, eax
push esi
push eax
push ebx
call fcn.0044efa0
add esp, 0xc
add esi, ebx
mov dword [edi + 0x34], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x10]
inc ecx
cmp ecx, eax
ja 0x404d8a
or eax, 0xffffffff
call fcn.0042fef0
jmp 0x404d9b
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426a10
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, ebx
call fcn.00404510
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409e20
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, eax
xor eax, eax
xor esi, esi
mov ecx, 0x20000004
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
cmp dword [ebp + 8], eax
je 0x409eab
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.0041bc90
test al, al
je 0x409e99
push 2
push 8
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x409ea3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea edi, [ebx + 0x118]
mov edx, str.Failed_to_create_well_known_SID.
mov dword [ebx + 0x120], eax
call fcn.004011b0
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x409e99
call esi
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 8]
mov ecx, 0x20000005
lea eax, [ebp - 0x10]
push eax
push esi
push ecx
mov ecx, edi
call section..text
test eax, eax
jns 0x409ee0
push edi
push str.Failed_to_reset_the_ACL_on_cached_file:__ls.
lea edi, [ebx + 0x118]
mov dword [ebx + 0x120], eax
call fcn.00428b20
add esp, 8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x409f06
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f450
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469c20
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 4], ebx
mov eax, SysReAllocStringLen
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov byte [ebp - 4], 1
call fcn.00401110
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], eax
je 0x40f4d6
cmp eax, ebx
je 0x40f4d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
push edx
push 0xf003f
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, esi
mov dword [ebp - 0x34], 0xf003f
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f500
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00430290
cmp edi, ebx
jne 0x40f57a
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
push ecx
push str.vsbootstrapper__d
lea edi, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00428b20
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
add esp, 8
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f57a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f59d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x40f5b0
cmp dword [ebp - 0x3c], eax
je 0x40f5b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x40f5c2
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044ebcc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret 4