joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457c12
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp byte [0x4e0d04], 0
push esi
mov esi, 0x4e0d08
jne 0x457d37
push ebx
xor ebx, ebx
mov byte [0x4e0d04], 1
push ebx
push 0x13c
push esi
call fcn.0042a502
add esp, 0xc
mov dword [0x4e0d08], 0x11c
call fcn.00457e2b
mov dword [0x4e0e40], eax
mov eax, dword [0x4e0ccc]
test eax, eax
je 0x457c68
push esi
call eax
test eax, eax
je 0x457c77
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x457d36
push edi
push 6
pop edi
cmp dword [0x4e0d0c], edi
jb 0x457cc5
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.GetProductInfo
call fcn.00434476
push eax
call fcn.0043448e
add esp, 0xc
test al, al
je 0x457cc5
movzx eax, word [0x4e0e1e]
push 0x4e0e24
push eax
movzx eax, word [0x4e0e1c]
push eax
push dword [0x4e0d10]
push dword [0x4e0d0c]
call dword [ebp - 4]
cmp dword [0x4e0d0c], 5
jb 0x457d35
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.GetNativeSystemInfo
call fcn.00434476
push eax
call fcn.0043448e
add esp, 0xc
test al, al
je 0x457d35
lea eax, [ebp - 0x28]
push eax
call dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov dword [0x4e0e28], eax
mov eax, dword [ebp - 0x20]
mov dword [0x4e0e2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x4e0e30], eax
mov eax, dword [ebp - 0x18]
mov dword [0x4e0e34], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4e0e38], eax
cmp word [ebp - 0x28], di
je 0x457d2e
cmp word [ebp - 0x28], 9
mov byte [0x4e0e3c], bl
jne 0x457d35
mov byte [0x4e0e3c], 1
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x459505
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x224
mov ecx, dword [0x4e21e8]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4e0d00]
push edi
mov edi, 0x4e0cf4
cmp eax, dword [ecx + 4]
jg 0x45961e
cmp dword [0x4e0cf8], 0
jg 0x459606
xor eax, eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x224]
mov ecx, edi
push eax
call fcn.0042fa9b
mov eax, dword [0x4e0cf4]
mov esi, 0x49cb74
test eax, eax
mov ecx, esi
cmovne ecx, eax
push ecx
call fcn.00442526
pop ecx
test al, al
jne 0x4595fd
lea eax, [ebp - 0x18]
push eax
call fcn.004594c0
mov ecx, esi
mov dword [esp], str.temp
cmp dword [eax], 0
cmovne ecx, dword [eax]
lea eax, [ebp - 0xc]
push ecx
push eax
call fcn.004453af
add esp, 0xc
mov ecx, edi
push eax
call fcn.00425883
lea ecx, [ebp - 0xc]
call fcn.00426615
lea ecx, [ebp - 0x18]
call fcn.00426615
mov eax, dword [0x4e0cf4]
mov ecx, esi
test eax, eax
cmovne ecx, eax
push ecx
call fcn.00442526
pop ecx
test al, al
jne 0x4595fd
push closesocket
push str.c:_temp
mov ecx, edi
call fcn.0042fedc
mov eax, dword [0x4e0cf4]
test eax, eax
cmovne esi, eax
push esi
call fcn.004421b2
pop ecx
push 0x5c
mov ecx, edi
call fcn.00427175
mov ecx, dword [ebp + 8]
call fcn.00428cde
mov ecx, dword [ebp + 8]
push edi
call fcn.0042f968
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
mov esi, 0x4e0d00
push esi
call fcn.0046c939
cmp dword [0x4e0d00], 0xffffffff
pop ecx
jne 0x459535
mov ecx, edi
call fcn.00428cde
push 0x49b756
call fcn.0046c724
push esi
call fcn.0046c8ef
pop ecx
pop ecx
jmp 0x459535
Function at 0x45a831
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x45a851
push 0x2736
call fcn.0045c6a7
xor al, al
jmp 0x45a9b6
cmp dword [esi + 0x20], 0xffffffff
jne 0x45a85e
push 0x2726
jmp 0x45a845
push ebx
push edi
call fcn.0045bb19
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x45a883
mov ecx, dword [esi + 0xc]
shr ecx, 2
test cl, 1
jne 0x45a890
call fcn.0045af92
mov edi, eax
test edi, edi
je 0x45a890
xor eax, eax
cmp dword [edi], ebx
cmovne eax, edi
mov edi, eax
test edi, edi
jne 0x45a89d
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0045b33c
jmp 0x45a900
cmp dword [edi + 4], ebx
lea eax, [esi + 0x1c]
push eax
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
mov ecx, 0x49cb70
cmovne ecx, dword [edi + 4]
push eax
push ecx
call fcn.00438187
mov ebx, eax
push ebx
call fcn.00438a5d
add esp, 0x14
test al, al
je 0x45a8ee
push ebx
call fcn.004388d5
push eax
push ebx
lea eax, [esi + 0x44]
push str.Failed_to_resolve_the_proxy_server__code__d:__s
push eax
call fcn.0042869b
add esp, 0x14
mov ecx, esi
push 0xfffffffffffffffe
call fcn.0045c6a7
jmp 0x45a93b
push dword [edi + 0x1c]
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0045b2e7
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
sete bl
test eax, eax
je 0x45a93f
test edi, edi
je 0x45a93f
push closesocket
push str.Failed_to_connect_to_the_proxy_server.
lea ecx, [esi + 0x44]
call fcn.0042f986
push 0xfffffffffffffffe
mov ecx, esi
call fcn.0045c6a7
and dword [esi + 0x10], 0xfffffffc
xor al, al
jmp 0x45a9b4
test bl, bl
je 0x45a985
test edi, edi
je 0x45a985
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x18]
or dword [esi + 0x10], 3
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046a96d
push eax
lea ecx, [edi + 0x10]
call fcn.00408887
lea ecx, [ebp - 0x10]
call fcn.00426615
push edi
mov ecx, esi
call fcn.0045b563
test al, al
jne 0x45a985
push 0xfffffffffffffffe
mov ecx, esi
call fcn.0045c6a7
xor bl, bl
mov ecx, dword [esi + 0x10]
mov eax, ecx
and eax, 0xfffffffe
or ecx, 1
test bl, bl
cmove ecx, eax
mov eax, ecx
or ecx, 2
and eax, 0xfffffffd
test bl, bl
cmove ecx, eax
mov dword [esi + 0x10], ecx
jne 0x45a9b2
test edi, edi
jne 0x45a9b2
mov ecx, esi
call fcn.0045c695
mov al, bl
pop edi
pop ebx
pop esi
leave
ret
Function at 0x45ad58
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push 1
push dword [ebp + 8]
call fcn.0046abc7
test al, al
je 0x45ad79
mov al, 1
jmp 0x45ae5c
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
call fcn.004310e3
pop ecx
test al, al
je 0x45ad9d
push 0x2726
call fcn.0045cccd
pop ecx
xor al, al
jmp 0x45ae5b
lea ecx, [ebp - 0xc]
call fcn.00428cde
push closesocket
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0042f986
lea ecx, [ebp - 0xc]
call fcn.0042513e
cmp dword [0x4dd920], ebx
je 0x45adda
lea eax, [ebp - 0xc]
push eax
call fcn.0045af1a
pop ecx
test al, al
je 0x45adda
push 0x2afc
jmp 0x45ae1f
call fcn.0045ccc4
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x45ae03
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2afc
jne 0x45ae51
lea eax, [ebp - 0xc]
push eax
call fcn.0045ae5f
jmp 0x45ae24
cmp word [eax + 8], 2
jne 0x45ae11
cmp word [eax + 0xa], 4
je 0x45ae27
call sub.WS2_32.dll_WSAGetLastError
test eax, eax
jne 0x45ae51
push 0x273e
call fcn.0045cccd
pop ecx
jmp 0x45ae51
mov eax, dword [eax + 0xc]
mov ecx, esi
mov edx, dword [eax]
movzx eax, byte [edx + 3]
push eax
movzx eax, byte [edx + 2]
push eax
movzx eax, byte [edx + 1]
push eax
movzx eax, byte [edx]
push eax
call fcn.0046ab85
mov ecx, esi
call fcn.00439649
xor al, 1
mov bl, al
lea ecx, [ebp - 0xc]
call fcn.00426615
mov al, bl
pop ebx
pop esi
leave
ret

Function at 0x45afbc
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [0x4e0e7c]
mov ecx, 0x49cb70
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x45afda
push 3
pop eax
ret
cmp word [eax + 8], 2
je 0x45afe5
push 4
pop eax
ret
cmp word [eax + 0xa], 4
je 0x45aff0
push 5
pop eax
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
mov ecx, 0x4e0e88
push eax
call fcn.0046ab85
xor eax, eax
ret
Function at 0x45b163
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4dd938]
sub esp, 0x1a0
cmp eax, 6
jne 0x45b2a1
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x45b19f
xor eax, eax
mov dword [0x4dd938], 1
inc eax
leave
ret
push ebx
push esi
push edi
push 0x45b2a3
call fcn.0046c724
pop ecx
push 0x63
mov esi, 0x4e0e7c
push 0x64
mov ecx, esi
call fcn.00423cdd
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov ecx, esi
call fcn.004298b3
push 1
xor edi, edi
mov dword [ebp - 0x10], 0x49ce38
push str.Ws2_32.dll
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.004346af
mov ebx, 0x4e0e4c
test al, al
je 0x45b22a
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push str.GetHostNameW
lea ecx, [ebp - 0x10]
call fcn.00434643
test al, al
je 0x45b22a
mov esi, dword [ebp - 4]
mov ecx, ebx
push 0x63
push 0xc8
call fcn.00423cdd
push eax
call esi
mov ecx, ebx
call fcn.004298ce
mov esi, 0x4e0e7c
cmp dword [0x4e0e50], edi
jg 0x45b23d
push edi
push ebx
push esi
call fcn.00459d09
add esp, 0xc
mov eax, dword [0x4e0e7c]
mov ecx, 0x49cb70
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x45b280
push dword [eax]
mov esi, 0x4e0e70
mov ecx, esi
call fcn.0042fa36
mov ecx, esi
call fcn.00431a43
mov ecx, esi
call fcn.00431a2b
push 1
push 0x2e
push 0x20
mov ecx, esi
call fcn.0042e13a
call fcn.0045afbc
mov esi, eax
mov dword [ebp - 0x10], 0x49ce38
lea ecx, [ebp - 0x10]
mov dword [0x4dd938], esi
call fcn.004343f8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45bb36
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x45bd3a
and dword [ebp - 4], 0
mov ebx, dword [ebp + 0x10]
test bl, 4
je 0x45bb67
mov dword [ebp - 4], edi
test bl, 8
jne 0x45bb67
mov ecx, edi
call fcn.00426615
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 0xfffff
ja 0x45bd3a
mov eax, dword [esi + 0xc]
shr eax, 1
test al, 1
jne 0x45bb8f
test byte [esi + 0x10], 1
jne 0x45bb8f
push 0x2749
jmp 0x45bd3f
and dword [esi + 0x14], 0
and dword [ebp - 0xc], 0
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x10], eax
mov ecx, esi
mov al, bl
and al, 1
mov byte [ebp + 0xb], al
mov eax, ebx
shr eax, 1
and eax, 0xffffff01
mov dword [ebp - 0x20], eax
call fcn.0045bda1
mov dword [ebp - 0x14], eax
mov eax, ebx
shr eax, 3
and eax, 2
mov dword [ebp + 0x10], 0xa
mov ecx, eax
or ecx, 1
and bl, 0x20
mov ebx, dword [ebp - 0xc]
cmove ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, esi
call fcn.0045bd4f
mov dword [ebp - 0xc], eax
test eax, eax
jg 0x45bc59
js 0x45bd32
cmp byte [ebp + 0xb], 0
jne 0x45bd32
push dword [ebp - 0x10]
call fcn.00459374
pop ecx
cmp eax, dword [esi + 0x30]
jae 0x45bd26
mov eax, dword [esi + 0xc]
shr eax, 1
test al, 1
jne 0x45bc1f
test byte [esi + 0x10], 1
je 0x45bd12
mov ecx, esi
call fcn.0045af77
test al, al
jne 0x45bd1f
push dword [ebp + 0x10]
call fcn.00459093
add dword [ebp + 0x10], 5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], 0x3c
push eax
call fcn.004018bc
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp + 0x10], eax
jmp 0x45bbdc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00423454
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], ecx
test eax, eax
jne 0x45bc7d
mov eax, edi
jmp 0x45bc90
push ecx
mov ecx, eax
call fcn.004288c3
test eax, eax
je 0x45bd36
mov ecx, dword [ebp + 0x10]
push 0
push 0
push dword [ebp - 0x18]
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x45bcb1
mov ecx, esi
call fcn.0045c695
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x45bcdc
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00402d9d
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.00426a45
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
test eax, eax
jle 0x45bd32
add ebx, eax
cmp byte [ebp - 0x20], 0
jne 0x45bcf0
cmp eax, dword [ebp - 0xc]
jge 0x45bd32
mov edx, dword [ebp + 0xc]
sub edx, eax
mov dword [ebp + 0xc], edx
test edx, edx
jle 0x45bd32
mov dword [ebp + 0x10], 0xa
test ecx, ecx
jne 0x45bbdc
add edi, eax
jmp 0x45bbdc
cmp dword [esi + 0x14], 0
jne 0x45bd32
push 0x2749
jmp 0x45bd2b
push 0x2746
jmp 0x45bd2b
push 0x274c
mov ecx, esi
call fcn.0045c6a7
mov eax, ebx
jmp 0x45bd48
push 8
jmp 0x45bd2b
push 0x2726
mov ecx, esi
call fcn.0045c6a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45bd4f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
shr eax, 1
test al, 1
jne 0x45bd74
test byte [esi + 0x10], 1
jne 0x45bd74
push 0x2749
call fcn.0045c6a7
or eax, 0xffffffff
jmp 0x45bd9e
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x45bd9b
mov ecx, esi
call fcn.0045c695
and dword [esi + 0x10], 0xfffffffe
jmp 0x45bd6f
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x45c40d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x45c582
mov edi, dword [ebp + 0xc]
cmp edi, 0x7fffffff
jne 0x45c43a
push ebx
call fcn.004315de
mov edi, eax
pop ecx
mov dword [ebp + 0xc], edi
test edi, edi
jle 0x45c582
mov ecx, dword [esi + 0xc]
shr ecx, 1
test cl, 1
jne 0x45c45f
mov eax, dword [esi + 0x10]
shr eax, 1
test al, 1
jne 0x45c45f
push 0x2749
jmp 0x45c587
mov ecx, esi
call fcn.0045c597
mov ecx, dword [esi + 0xc]
shr ecx, 1
mov dword [ebp - 8], eax
test cl, 1
je 0x45c47e
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0045b33c
mov byte [ebp - 1], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004018e2
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
shr ecx, 1
test cl, 1
je 0x45c4b0
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x45c4bd
push 0
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x45c528
mov ecx, esi
call fcn.0045c695
cmp dword [esi + 0x14], 0x2733
jne 0x45c4e6
mov ecx, esi
call fcn.0045b2e1
test al, al
jne 0x45c53b
push 0xa
call fcn.00459093
pop ecx
jmp 0x45c482
cmp dword [esi + 0x14], 0x2747
jne 0x45c53b
cmp byte [ebp - 1], 0
jne 0x45c53b
mov eax, 0x1000
cmp dword [ebp - 8], eax
jle 0x45c53b
push eax
mov ecx, esi
mov byte [ebp - 1], 1
mov dword [ebp - 8], eax
call fcn.0045c5bf
push 0x2747
mov ecx, esi
mov bl, al
call fcn.0045c6a7
test bl, bl
je 0x45c53b
mov ebx, dword [ebp + 8]
jmp 0x45c482
sub edi, eax
mov dword [ebp + 0xc], edi
test edi, edi
jle 0x45c57e
add ebx, eax
mov dword [ebp + 8], ebx
jmp 0x45c482
mov eax, dword [esi + 0x14]
cmp eax, 0x2746
jg 0x45c563
cmp eax, 0x2744
jge 0x45c575
sub eax, 0x271e
je 0x45c55d
sub eax, 0x15
je 0x45c57e
sub eax, 0xf
je 0x45c575
and dword [esi + 0x10], 0xfffffffd
jmp 0x45c58e
sub eax, 0x274a
je 0x45c55d
dec eax
sub eax, 1
je 0x45c575
sub eax, 5
jne 0x45c55d
mov ecx, esi
call fcn.0045a7f0
jmp 0x45c58e
mov al, 1
jmp 0x45c590
push 0x2726
mov ecx, esi
call fcn.0045c6a7
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45c607
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x45c68f
push 0x4e0e8c
xor ebx, ebx
mov dword [ebp - 0x100], esi
push ebx
push ebx
lea eax, [ebp - 0x104]
mov dword [ebp - 0x104], 1
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x45c68b
lea eax, [ebp - 0x104]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45c68b
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x45c68b
je 0x45c68f
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
push esi
call fcn.0045cc98
pop ecx
test al, al
jne 0x45c685
cmp esi, 0x2726
jne 0x45c687
mov bl, 1
mov al, bl
jmp 0x45c691
xor al, al
jmp 0x45c691
mov al, 1
pop esi
pop ebx
leave
ret

Function at 0x45d9cb
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
jne 0x45d9dc
push 2
jmp 0x45d9ec
mov edi, dword [ebp + 8]
push edi
call fcn.00432524
pop ecx
test al, al
je 0x45d9f6
push 5
pop esi
call fcn.0045908a
mov eax, esi
jmp 0x45da57
test byte [ebp + 0xc], 0x20
mov ecx, esi
push dword [ebp + 0x10]
je 0x45da1a
push edi
call fcn.0045e9d1
test al, al
jne 0x45da27
push 0x91
call fcn.0045907c
pop ecx
push 4
jmp 0x45da56
mov eax, dword [ebp + 0xc]
and eax, 0xffffffef
push eax
push edi
call fcn.0045dade
push edi
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
push edi
call fcn.0045907c
pop ecx
push 2
pop eax
cmp edi, eax
je 0x45da57
test edi, edi
jne 0x45da4a
xor eax, eax
inc eax
jmp 0x45da57
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0045f2d8
push 3
pop eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45db2d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x45db44
push 6
call fcn.0045907c
pop ecx
push 2
pop eax
jmp 0x45db6b
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
test esi, esi
jne 0x45db58
inc eax
jmp 0x45db6a
push esi
call fcn.0045907c
xor eax, eax
cmp esi, 2
pop ecx
setne al
add eax, 2
pop esi
pop ebp
ret 4

Function at 0x45dd6c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push edi
or eax, 0x3000f
mov edi, ecx
push eax
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045ed72
test eax, eax
jne 0x45dd9e
call sub.KERNEL32.dll_GetLastError
xor ecx, ecx
cmp eax, 2
setne cl
lea eax, [ecx + 2]
jmp 0x45ddb5
push esi
push dword [ebp + 0x10]
mov ecx, edi
call fcn.0045ddba
mov ecx, edi
mov esi, eax
call fcn.0045d37f
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x45ddba
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x45ddd1
push 6
call fcn.0045907c
pop ecx
push 2
pop eax
jmp 0x45ddf8
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x45dde5
inc eax
jmp 0x45ddf7
push esi
call fcn.0045907c
xor eax, eax
cmp esi, 2
pop ecx
setne al
add eax, 2
pop esi
pop ebp
ret 4

Function at 0x45de55
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
jne 0x45de76
push 6
call fcn.0045907c
pop ecx
xor eax, eax
jmp 0x45def8
push edi
push 0xc7
lea eax, [ebp - 0xd4]
xor edi, edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x45dee4
push esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
call fcn.00428cde
push closesocket
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042f986
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call esi
lea ecx, [ebp - 0xc]
call fcn.00426615
push 0xc7
lea eax, [ebp - 0xd4]
inc edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x45de94
pop esi
xor ecx, ecx
cmp eax, 0x103
cmovne ecx, eax
push ecx
call fcn.0045907c
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x45defd
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
jne 0x45df1e
push 6
call fcn.0045907c
pop ecx
xor eax, eax
jmp 0x45dfa0
push edi
push 0xc7
lea eax, [ebp - 0x19c]
xor edi, edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x45df8c
push esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
call fcn.00428cde
push closesocket
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042fedc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call esi
lea ecx, [ebp - 0xc]
call fcn.00426615
push 0xc7
lea eax, [ebp - 0x19c]
inc edi
push eax
push edi
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x45df3c
pop esi
xor ecx, ecx
cmp eax, 0x103
cmovne ecx, eax
push ecx
call fcn.0045907c
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x45e7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
jne 0x45e80b
push 6
call fcn.0045907c
pop ecx
xor al, al
jmp 0x45e854
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
cmp ecx, 0x100000
ja 0x45e850
sub eax, 0
je 0x45e8a6
dec eax
sub eax, 1
je 0x45e850
sub eax, 0xe8
je 0x45e859
sub eax, 0x308
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0046b9c1
cmp dword [ebp - 4], 0
mov edi, eax
jle 0x45e92b
push dword [ebp - 4]
mov ecx, edi
call fcn.00423cdd
cmp dword [edi], 0
lea ecx, [ebp - 4]
push ecx
mov eax, 0x49cb70
cmovne eax, dword [edi]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebx + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45e901
mov ecx, edi
call fcn.00426615
jmp 0x45e850
mov eax, dword [ebp - 8]
test eax, eax
je 0x45e850
cmp eax, 3
jbe 0x45e8f0
cmp eax, 4
je 0x45e8d8
cmp eax, 7
je 0x45e8f0
cmp eax, 0xb
jne 0x45e850
cmp ecx, 8
jne 0x45e850
push dword [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0x2c]
call fcn.0046b8db
jmp 0x45e901
cmp ecx, 4
jne 0x45e850
push dword [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0046b8fd
jmp 0x45e901
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
shr ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0046b987
cmp dword [ebp - 8], 1
je 0x45e90d
cmp dword [ebp - 8], 2
jne 0x45e92b
test dword [ebp + 0x10], 0x2000
jne 0x45e92b
mov ecx, esi
call fcn.0046b69b
push 2
push 0x4b3d90
mov ecx, eax
call fcn.00426fe6
mov al, 1
jmp 0x45e852

Function at 0x45fa6d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x10], 8
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
je 0x45fa94
cmp dword [edi + 4], 0
jg 0x45fa94
push dword [ebp + 8]
call fcn.0045ddba
dec eax
neg eax
sbb al, al
inc al
jmp 0x45fb05
test dword [ebp + 0x10], 0x8000
je 0x45faad
push dword [ebp + 8]
call fcn.0045fd4e
test al, al
je 0x45faad
mov al, 1
jmp 0x45fb05
xor ecx, ecx
inc ecx
test byte [ebp + 0x10], 0x80
je 0x45fabb
push 3
pop ecx
jmp 0x45fac8
test dword [ebp + 0x10], 0x100
push 2
pop eax
cmovne ecx, eax
cmp dword [esi + 0x14], 0
jne 0x45fad9
push 6
call fcn.0045907c
xor al, al
jmp 0x45fb04
push dword [edi + 4]
cmp dword [edi], 0
mov eax, 0x49cb74
cmovne eax, dword [edi]
push eax
push ecx
push 0
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call fcn.0045907c
test esi, esi
sete al
pop ecx
pop edi
pop esi
pop ebp
ret 0xc