joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e17f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001e21c
push ebx
push esi
call fcn.1001e148
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001e0dc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e1c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e21b
push edi
push eax
call fcn.1001f13b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e1e9
call fcn.1001cc24
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e21a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001e0dc
add esp, 0x20
test eax, eax
jne 0x1001e208
push edi
call fcn.1001cc24
jmp 0x1001e210
push ebx
call fcn.1001cc24
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001e489
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cc8
push 0x10025cc0
push str.FlsAlloc
push 0x1f
call fcn.1001e3a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e4bd
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
jmp 0x1001e4c3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001e507
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cd8
push 0x10025cd0
push str.FlsGetValue
push 0x21
call fcn.1001e3a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e53e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001e546
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025ce0
push 0x10025cd8
push str.FlsSetValue
push 0x22
call fcn.1001e3a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001e580
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023c00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10023c2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10023c2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x518040
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc1000]
push edi
jmp 0x51805a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x518061
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x518050
mov eax, 1
add ebx, ebx
jne 0x518073
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x518084
jne 0x5180a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5180a3
dec eax
add ebx, ebx
jne 0x518090
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x518068
add ebx, ebx
jne 0x51809f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5180f5
xor ecx, ecx
sub eax, 3
jb 0x5180bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51812a
sar eax, 1
mov ebp, eax
jmp 0x5180c6
add ebx, ebx
jne 0x5180c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x518094
inc ecx
add ebx, ebx
jne 0x5180d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x518094
add ebx, ebx
jne 0x5180e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5180d6
jne 0x5180f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5180d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x518114
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x518106
jmp 0x518056
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x518114
add edi, ecx
jmp 0x518056
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x518132
cmp byte [edi], 0x11
jne 0x518132
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 0x518137
lea edi, [esi + 0x111000]
mov eax, dword [edi]
or eax, eax
je 0x5181af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x157b18]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x157c94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x518164
mov ecx, edi
jns 0x518193
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 + 0x157c98]
or eax, eax
je 0x5181a9
mov dword [ebx], eax
add ebx, 4
jmp 0x518181
call dword [esi + 0x157ca8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5181e0
cmp al, 0xef
ja 0x5181d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5181b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5181c2
mov ebp, dword [esi + 0x157c9c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x518214
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x420b4b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b8a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b8a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b8a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b8a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b8a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433300
Capabilities:
Parse pe header

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

Function at 0x4044d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x4044d2
lcall 0x5de5, 0x8b10c483
jmp int.00854b14
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 0x45e7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x4786a0]
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.00449910
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.00420a50
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.00420a50
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.0044543c
add esp, 4
test esi, esi
je 0x401acd
push esi
call fcn.0044543c
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 0x45e76b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4786a0]
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.00449910
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 [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
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.0041db90
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.00445447
mov esp, ebp
pop ebp
ret
Function at 0x402030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46130f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4786a0]
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 [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
call edx
add eax, 0x10
mov dword [edi + 0x64], eax
mov byte [ebp - 4], 1
mov eax, dword [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
call edx
add eax, 0x10
mov dword [edi + 0x68], eax
mov byte [ebp - 4], 2
mov eax, dword [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
call edx
add eax, 0x10
mov dword [edi + 0x74], eax
mov eax, dword [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
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.00402b30
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.00402830
push ebx
push ebx
push edi
mov dword [edi + 0xc0], eax
push 0x4023b0
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 0x4021a0
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 0x402830
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45db58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4786a0]
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 0x4028d2
mov edx, dword [0x478034]
mov eax, dword [edx + 0xc]
mov ecx, 0x478034
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.00422e30
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 0x4028e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4028e6
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 0x402901
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 0x402916
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 0x402930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0xcc]
test eax, eax
je 0x402945
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xcc], 0
cmp dword [edi + 0x60], 4
jne 0x40295c
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 0x4029b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push edi
push 0x402670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xd0], eax
mov esp, ebp
pop ebp
ret
Function at 0x404350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d4a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4786a0]
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 0x4043e3
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 0x4043d9
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.0041ed70
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.004041a0
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 0x404419
mov edx, dword [edi + 8]
sub edx, dword [edi + 4]
cmp edx, ecx
jae 0x40443b
mov eax, ecx
mov ecx, edi
call fcn.004041a0
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 0x404510
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e5eb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4786a0]
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 0x40459b
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 0x4045b1
or eax, 0xffffffff
call fcn.004292f0
jmp 0x4045c2
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00421af0
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 0x4045d1
mov eax, dword [esi]
jmp 0x4045d3
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 0x404616
or eax, 0xffffffff
call fcn.004292f0
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.00421af0
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 0x404640
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 0x404664
or eax, 0xffffffff
call fcn.004292f0
jmp 0x404672
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00421af0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
inc eax
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 8
jb 0x404683
mov ecx, dword [esi]
jmp 0x404685
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 0x4046be
mov dword [edi], ebx
mov dword [edi + 4], ebx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x4046ae
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 0x4046dc
or eax, 0xffffffff
call fcn.004292f0
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.00421af0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e5b6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4786a0]
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 0x404799
mov dword [edi], 0
jmp 0x404838
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
cmp ecx, eax
ja 0x4047b2
or eax, 0xffffffff
call fcn.004292f0
jmp 0x4047c3
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00421af0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, ebx
call fcn.004041a0
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 0x4047e9
mov eax, dword [esi]
jmp 0x4047eb
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 0x40481d
or eax, 0xffffffff
call fcn.004292f0
jmp 0x40482e
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00421af0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.004041a0
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